mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Add a test for the gc with CA derivations
Also add a small architecture to easily run CA-enabled tests
This commit is contained in:
parent
96d7170e12
commit
a3ce88725b
3 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
let
|
||||
contentAddressedByDefault = builtins.getEnv "NIX_TESTS_CA_BY_DEFAULT" == "1";
|
||||
caArgs = if contentAddressedByDefault then {
|
||||
__contentAddressed = true;
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
} else {};
|
||||
in
|
||||
|
||||
rec {
|
||||
shell = "@bash@";
|
||||
|
||||
|
@ -15,4 +24,4 @@ rec {
|
|||
PATH = path;
|
||||
} // removeAttrs args ["builder" "meta"])
|
||||
// { meta = args.meta or {}; };
|
||||
}
|
||||
} // caArgs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue