mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-26 12:17:18 +02:00

* A test to verify that locking of output paths (caused by concurrent invocations of Nix) works correctly.
18 lines
No EOL
314 B
Nix
18 lines
No EOL
314 B
Nix
let {
|
|
|
|
mkDrv = text: inputs: derivation {
|
|
name = "locking";
|
|
system = "@system@";
|
|
builder = "@shell@";
|
|
args = ["-e" "-x" ./locking.builder.sh];
|
|
inherit text inputs;
|
|
};
|
|
|
|
a = mkDrv "a" [];
|
|
b = mkDrv "b" [a];
|
|
c = mkDrv "c" [a b];
|
|
d = mkDrv "d" [a];
|
|
e = mkDrv "e" [c d];
|
|
|
|
body = e;
|
|
} |