2024-03-17 18:48:49 +00:00
|
|
|
{
|
|
|
|
nix-unit,
|
|
|
|
clan-cli,
|
|
|
|
mkShell,
|
|
|
|
ruff,
|
|
|
|
python3,
|
|
|
|
}:
|
2023-07-20 16:07:27 +00:00
|
|
|
let
|
2024-03-24 22:36:00 +00:00
|
|
|
devshellTestDeps =
|
|
|
|
clan-cli.passthru.testDependencies
|
|
|
|
++ (with python3.pkgs; [
|
|
|
|
rope
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
pip
|
|
|
|
]);
|
2023-07-26 06:29:34 +00:00
|
|
|
in
|
2023-08-27 08:21:02 +00:00
|
|
|
mkShell {
|
2024-03-24 22:36:00 +00:00
|
|
|
buildInputs = [
|
2023-08-27 08:21:02 +00:00
|
|
|
nix-unit
|
2023-10-04 09:39:22 +00:00
|
|
|
ruff
|
2024-03-24 22:36:00 +00:00
|
|
|
] ++ devshellTestDeps;
|
2023-09-15 11:44:47 +00:00
|
|
|
|
2023-07-26 06:29:34 +00:00
|
|
|
shellHook = ''
|
2024-03-24 23:32:03 +00:00
|
|
|
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
|
|
|
|
2024-03-24 22:52:30 +00:00
|
|
|
# Needed for impure tests
|
2024-03-24 23:32:03 +00:00
|
|
|
ln -sfT ${clan-cli.nixpkgs} "$PKG_ROOT/clan_cli/nixpkgs"
|
2023-07-26 06:29:34 +00:00
|
|
|
'';
|
|
|
|
}
|