repl: Fix the use command
The culprit was a space added at the wrong place, which messed with c++ raw strings. Fixes #1178 Change-Id: Ic1e09cb7215d9a6dd2d13fd92242649b0e1fcd13
This commit is contained in:
+1
-2
@@ -952,8 +952,7 @@ void NixRepl::initBuiltinCommands()
|
||||
[](NixRepl & repl, const std::string & arg) {
|
||||
Value v = repl.evalString(arg);
|
||||
Value f = repl.evalString(
|
||||
R""("drv: (import <nixpkgs> {}).runCommand "shell") ""
|
||||
R""({ buildInputs = [ drv ]; } "")""
|
||||
R"(drv: (import <nixpkgs> {}).runCommand "shell" { buildInputs = [ drv ]; } "")"
|
||||
);
|
||||
Value result = repl.state.callFunction(f, v, PosIdx());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user