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:
Tom Hubrecht
2026-04-07 11:02:53 +02:00
parent d0190cff6f
commit cbeb4fcd69
+1 -2
View File
@@ -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());