blob: e8fbf91bfa894daa13cef8de75c9c77cdec5316f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
with import ./config.nix;
let
a = mkDerivation {
name = "multiple-outputs-a";
outputs = [ "first" "second" ];
builder = ./multiple-outputs.a.builder.sh;
helloString = "Hello, world!";
};
in
assert a.second.helloString == "Hello, world!";
mkDerivation {
defaultOutput = a;
firstOutput = a.first.first;
secondOutput = a.second.first.first.second.second.first.second;
allOutputs = a.all;
name = "multiple-outputs-b";
builder = ./multiple-outputs.b.builder.sh;
}
|