select-shell: Fix breakage with previous shell.nix change

This commit is contained in:
Qubasa
2024-03-25 00:32:03 +01:00
parent 8dd6dc79cf
commit 240af17c2f
8 changed files with 32 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
# BUG: If this is enabled the devshell depends on clan_cli building successfully
# source_up
source_up
watch_file flake-module.nix shell.nix default.nix

View File

@@ -22,9 +22,13 @@ mkShell {
] ++ devshellTestDeps;
shellHook = ''
export PATH=$(pwd)/bin:$PATH
export GIT_ROOT="$(git rev-parse --show-toplevel)"
export PKG_ROOT="$GIT_ROOT/pkgs/clan-cli"
# Add clan command to PATH
export PATH="$PKG_ROOT/bin":"$PATH"
# Needed for impure tests
ln -sfT ${clan-cli.nixpkgs} clan_cli/nixpkgs
ln -sfT ${clan-cli.nixpkgs} "$PKG_ROOT/clan_cli/nixpkgs"
'';
}