clan-core/pkgs/clan-cli/shell.nix

38 lines
630 B
Nix
Raw Normal View History

2024-03-17 18:48:49 +00:00
{
nix-unit,
clan-cli,
mkShell,
ruff,
python3,
}:
let
devshellTestDeps =
clan-cli.passthru.testDependencies
++ (with python3.pkgs; [
rope
setuptools
wheel
2024-04-23 16:55:00 +00:00
ipdb
pip
]);
in
mkShell {
buildInputs = [
nix-unit
ruff
] ++ devshellTestDeps;
2023-09-15 11:44:47 +00:00
2024-04-23 16:55:00 +00:00
PYTHONBREAKPOINT = "ipdb.set_trace";
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"
2023-10-23 20:34:43 +00:00
# Needed for impure tests
ln -sfT ${clan-cli.nixpkgs} "$PKG_ROOT/clan_cli/nixpkgs"
'';
}