impure-checks: improve performance by disabling dynamic deps
This commit is contained in:
@@ -103,7 +103,7 @@ def nix_metadata(flake_url: str | Path) -> dict[str, Any]:
|
||||
def nix_shell(packages: list[str], cmd: list[str]) -> list[str]:
|
||||
# we cannot use nix-shell inside the nix sandbox
|
||||
# in our tests we just make sure we have all the packages
|
||||
if os.environ.get("IN_NIX_SANDBOX"):
|
||||
if os.environ.get("IN_NIX_SANDBOX") or os.environ.get("CLAN_NO_DYNAMIC_DEPS"):
|
||||
return cmd
|
||||
return [
|
||||
*nix_command(["shell", "--inputs-from", f"{nixpkgs_flake()!s}"]),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[
|
||||
"age",
|
||||
"bash",
|
||||
"bubblewrap",
|
||||
"e2fsprogs",
|
||||
"git",
|
||||
"mypy",
|
||||
@@ -8,8 +9,10 @@
|
||||
"openssh",
|
||||
"qemu",
|
||||
"rsync",
|
||||
"pass",
|
||||
"sops",
|
||||
"sshpass",
|
||||
"tor",
|
||||
"virtiofsd",
|
||||
"zbar"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user