1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 06:22:42 +01:00
nix/tests/functional/ca/issue-13247.nix
John Ericson e35abb1102 Create test for issue 13247
This test ends up being skipped, since the bug has not yet been fixed. A
future commit will fix the bug.

Progress on #13247, naturally.
2025-09-27 21:53:14 -04:00

46 lines
912 B
Nix

with import ./config.nix;
rec {
a = mkDerivation {
name = "issue-13247-a";
builder = builtins.toFile "builder.sh" ''
mkdir $out
test -z $all
echo "output" > $out/file
'';
};
# Same output, different drv
a-prime = mkDerivation {
name = "issue-13247-a";
builder = builtins.toFile "builder.sh" ''
echo 'will make the same stuff as `a`, but different drv hash'
mkdir $out
test -z $all
echo "output" > $out/file
'';
};
# Multiple outputs in a derivation that depends on other derivations
f =
dep:
mkDerivation {
name = "use-a-more-outputs";
outputs = [
"first"
"second"
];
inherit dep;
builder = builtins.toFile "builder.sh" ''
ln -s $dep/file $first
ln -s $first $second
'';
};
use-a-more-outputs = f a;
use-a-prime-more-outputs = f a-prime;
}