Skip to content

Commit a66623a

Browse files
committed
Set devenv-root
1 parent d59fee8 commit a66623a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devenv-devShell.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pkgs.writeScriptBin "devenv" ''
1919
2020
case $command in
2121
up)
22-
procfilescript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-up' --no-link --print-out-paths --no-pure-eval)
22+
procfilescript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-up' --no-link --print-out-paths --override-input devenv-root path:.devenv/state/pwd)
2323
if [ "$(cat $procfilescript|tail -n +2)" = "" ]; then
2424
echo "No 'processes' option defined: https://devenv.sh/processes/"
2525
exit 1
@@ -29,7 +29,7 @@ pkgs.writeScriptBin "devenv" ''
2929
;;
3030
3131
test)
32-
testscript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-test' --no-link --print-out-paths --no-pure-eval)
32+
testscript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-test' --no-link --print-out-paths --override-input devenv-root path:.devenv/state/pwd)
3333
exec $testscript "$@"
3434
;;
3535

0 commit comments

Comments
 (0)