From 0b960b8595ed799fb3bdf74640355f5a20d7a483 Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Wed, 24 Dec 2025 13:08:47 -0800 Subject: [PATCH] srcOnly: override output{Dev,Bin,...}. fixes #308050 This wouldn't matter, except pkgs/build-support/setup-hooks/multiple-outputs.sh uses these and errors if they're set to a non-existent output. Ex: if `outputDev=dev`, then multiple-outputs tries to set `outputInclude=$dev`, but `dev` isn't set. --- pkgs/build-support/src-only/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index b732c6156041..f44e41a62eef 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -54,6 +54,19 @@ let dontInstall = false; installPhase = "cp -pr --reflink=auto -- . $out"; + + # the original derivation might've set something like outputDev = "lib", but "lib" isn't an output anymore + # some things get confused and error if one of these is set to an output that doesn't exist + # ex: pkgs/build-support/setup-hooks/multiple-outputs.sh + outputDev = "out"; + outputBin = "out"; + outputInclude = "out"; + outputLib = "out"; + outputDoc = "out"; + outputDevdoc = "out"; + outputMan = "out"; + outputDevman = "out"; + outputInfo = "out"; }; in