mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
* Add a test for unsafeDiscardOutputDependency. Not really related to
multiple outputs, but good to have anyway.
This commit is contained in:
parent
179409b911
commit
4be5a2c096
2 changed files with 16 additions and 0 deletions
|
@ -42,6 +42,16 @@ rec {
|
|||
'';
|
||||
};
|
||||
|
||||
d = mkDerivation {
|
||||
name = "multiple-outputs-d";
|
||||
drv = builtins.unsafeDiscardOutputDependency b.drvPath;
|
||||
builder = builtins.toFile "builder.sh"
|
||||
''
|
||||
mkdir $out
|
||||
echo $drv > $out/drv
|
||||
'';
|
||||
};
|
||||
|
||||
cyclic = (mkDerivation {
|
||||
name = "cyclic-outputs";
|
||||
outputs = [ "a" "b" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue