From 8d84de455e53e1cd503f8618ed90ef4b01dfc9ef Mon Sep 17 00:00:00 2001 From: Tharun T Date: Wed, 3 Apr 2024 08:26:42 +0530 Subject: [PATCH] outputSpecified doesnt exit in top attr-set --- tests/functional/flakes/build-paths.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/tests/functional/flakes/build-paths.sh b/tests/functional/flakes/build-paths.sh index 98827947d..4e5c68095 100644 --- a/tests/functional/flakes/build-paths.sh +++ b/tests/functional/flakes/build-paths.sh @@ -57,16 +57,21 @@ cat > $flake1Dir/flake.nix < \$foo/file - echo "out" > \$out/file - ''; - outputSpecified = true; + a14 = with import ./config.nix; let + top = mkDerivation { + name = "dot-installable"; + outputs = [ "foo" "out" ]; + meta.outputsToInstall = [ "out" ]; + buildCommand = '' + mkdir \$foo \$out + echo "foo" > \$foo/file + echo "out" > \$out/file + ''; + }; + in top // { + foo = top.foo // { + outputSpecified = true; + }; }; }; }