commit 6f85aa198cd52a320d651ecc7ecb273eb8473708
parent 7e2ddb2f17f395a719b00eaca10ab81c62d4082f
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 25 Feb 2022 17:55:16 +0100
shell.nix: fix PATH/REPO_ROOT expension
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shell.nix b/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 ./.}"
'';
}