From f76ac449d1bdbd9cd9b76fbf98c511d26f849abc Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 26 Jun 2022 12:11:51 +0200 Subject: [PATCH] srcOnly: fix with separateDebugInfo and/or multiple outputs Before this change `srcOnly git` gives: duplicate derivation output 'debug', at pkgs/stdenv/generic/make-derivation.nix:270:7 This was because separateDebugInfo = true was passed on to the srcOnly mkDerivation as well as the outputs list _including_ the debug output. Luckily we don't need to untangle this mess since srcOnly is only supposed to have a single output anyways. --- pkgs/build-support/src-only/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index 143166cfadd7..b4e373cd058e 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -15,5 +15,7 @@ in stdenv.mkDerivation (args // { name = "${name}-source"; installPhase = "cp -r . $out"; + outputs = [ "out" ]; + separateDebugInfo = false; phases = ["unpackPhase" "patchPhase" "installPhase"]; })