clan-core/pkgs/clan-cli/shell.nix
Qubasa e26d1052b6
All checks were successful
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m51s
checks / checks (pull_request) Successful in 4m11s
select-shell: Fix breakage with previous shell.nix change
2024-03-25 00:32:03 +01:00

35 lines
579 B
Nix

{
nix-unit,
clan-cli,
mkShell,
ruff,
python3,
}:
let
devshellTestDeps =
clan-cli.passthru.testDependencies
++ (with python3.pkgs; [
rope
setuptools
wheel
pip
]);
in
mkShell {
buildInputs = [
nix-unit
ruff
] ++ devshellTestDeps;
shellHook = ''
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} "$PKG_ROOT/clan_cli/nixpkgs"
'';
}