1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Derivation "advanced attrs" test: Ensure fields are set to distinct values

We had fields set to the same values before in our test data. This is
not a problem per-se, but does mean we wouldn't catch certain mixups.
Now, the fields are set to distinct values (where possible), which makes
the test more robust.
This commit is contained in:
John Ericson 2025-04-15 11:53:17 -04:00
parent 99a16c5203
commit a0b2b75f59
11 changed files with 91 additions and 64 deletions

View file

@ -23,6 +23,10 @@ let
"-c"
"echo foo > $out"
];
outputs = [
"out"
"dev"
];
};
bar = derivation' {
@ -33,6 +37,10 @@ let
"-c"
"echo bar > $out"
];
outputs = [
"out"
"dev"
];
};
in
@ -50,9 +58,9 @@ derivation' {
impureEnvVars = [ "UNICORN" ];
__darwinAllowLocalNetworking = true;
allowedReferences = [ foo ];
allowedRequisites = [ foo ];
allowedRequisites = [ foo.dev ];
disallowedReferences = [ bar ];
disallowedRequisites = [ bar ];
disallowedRequisites = [ bar.dev ];
requiredSystemFeatures = [
"rainbow"
"uid-range"