mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
* Check whether the outputName attribute works.
This commit is contained in:
parent
9d43a02382
commit
9936da6b54
@ -17,8 +17,8 @@ rec {
|
|||||||
|
|
||||||
b = mkDerivation {
|
b = mkDerivation {
|
||||||
defaultOutput = assert a.second.helloString == "Hello, world!"; a;
|
defaultOutput = assert a.second.helloString == "Hello, world!"; a;
|
||||||
firstOutput = a.first.first;
|
firstOutput = assert a.outputName == "first"; a.first.first;
|
||||||
secondOutput = a.second.first.first.second.second.first.second;
|
secondOutput = assert a.second.outputName == "second"; a.second.first.first.second.second.first.second;
|
||||||
allOutputs = a.all;
|
allOutputs = a.all;
|
||||||
name = "multiple-outputs-b";
|
name = "multiple-outputs-b";
|
||||||
builder = builtins.toFile "builder.sh"
|
builder = builtins.toFile "builder.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user