Skip to content

Commit

Permalink
Set devenv-root
Browse files Browse the repository at this point in the history
  • Loading branch information
noverby committed Dec 11, 2024
1 parent d59fee8 commit a66623a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devenv-devShell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pkgs.writeScriptBin "devenv" ''
case $command in
up)
procfilescript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-up' --no-link --print-out-paths --no-pure-eval)
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)
if [ "$(cat $procfilescript|tail -n +2)" = "" ]; then
echo "No 'processes' option defined: https://devenv.sh/processes/"
exit 1
Expand All @@ -29,7 +29,7 @@ pkgs.writeScriptBin "devenv" ''
;;
test)
testscript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-test' --no-link --print-out-paths --no-pure-eval)
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)
exec $testscript "$@"
;;
Expand Down

0 comments on commit a66623a

Please sign in to comment.