Skip to content

Commit 8d84de4

Browse files
committed
outputSpecified doesnt exit in top attr-set
1 parent 52359ca commit 8d84de4

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

tests/functional/flakes/build-paths.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,21 @@ cat > $flake1Dir/flake.nix <<EOF
5757
5858
a13 = "\${self.drvCall.drvPath}\${self.drvCall.outPath}";
5959
60-
a14 = with import ./config.nix; mkDerivation {
61-
name = "dot-installable";
62-
outputs = [ "foo" "out" ];
63-
meta.outputsToInstall = [ "out" ];
64-
buildCommand = ''
65-
mkdir \$foo \$out
66-
echo "foo" > \$foo/file
67-
echo "out" > \$out/file
68-
'';
69-
outputSpecified = true;
60+
a14 = with import ./config.nix; let
61+
top = mkDerivation {
62+
name = "dot-installable";
63+
outputs = [ "foo" "out" ];
64+
meta.outputsToInstall = [ "out" ];
65+
buildCommand = ''
66+
mkdir \$foo \$out
67+
echo "foo" > \$foo/file
68+
echo "out" > \$out/file
69+
'';
70+
};
71+
in top // {
72+
foo = top.foo // {
73+
outputSpecified = true;
74+
};
7075
};
7176
};
7277
}

0 commit comments

Comments
 (0)