clan-cli: stop propagating build inputs, remove wrapper

This commit is contained in:
DavHau
2023-10-04 10:34:32 +02:00
parent c0e2bfbcb8
commit 017221febb
4 changed files with 13 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
{ nix-unit, clan-cli-unwrapped, ui-assets, system, mkShell, writeScriptBin, openssh }:
{ nix-unit, clan-cli, ui-assets, system, mkShell, writeScriptBin, openssh }:
let
checkScript = writeScriptBin "check" ''
nix build .#checks.${system}.{treefmt,clan-pytest} -L "$@"
@@ -8,14 +8,14 @@ mkShell {
packages = [
nix-unit
openssh
clan-cli-unwrapped.checkPython
clan-cli.checkPython
];
shellHook = ''
tmp_path=$(realpath ./.direnv)
rm -f clan_cli/nixpkgs clan_cli/webui/assets
ln -sf ${clan-cli-unwrapped.nixpkgs} clan_cli/nixpkgs
ln -sf ${clan-cli.nixpkgs} clan_cli/nixpkgs
ln -sf ${ui-assets} clan_cli/webui/assets
export PATH="$tmp_path/bin:${checkScript}/bin:$PATH"