Commit 6f85aa198cd5

Vincent Demeester <vincent@sbr.pm>
2022-02-25 17:55:16
shell.nix: fix PATH/REPO_ROOT expension
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 7e2ddb2
Changed files (1)
shell.nix
@@ -25,7 +25,7 @@ pkgs.mkShell
     export NIX_PATH="nixpkgs=${pkgs.path}:nixos=${nixos.path}:nixos-unstable=${nixos-unstable.path}"
     test -f .secrets && source .secrets || echo "no secrets"
     export QEMU_OPTS="-m 8096 -cpu host"
-    export PATH="$(pwd)/bin:$PATH"
-    export REPO_ROOT="$(pwd)"
+    export PATH="${builtins.toString ./.}/bin:$PATH"
+    export REPO_ROOT="${builtins.toString ./.}"
   '';
 }