diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-06-26 12:11:51 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-07-02 19:32:24 +0200 |
commit | f76ac449d1bdbd9cd9b76fbf98c511d26f849abc (patch) | |
tree | e73fad197e84b5bd45d96a542a4bee8cacaad354 /pkgs/build-support | |
parent | 22a183bf789cb60a2d80d757b1b6c25786cf3829 (diff) | |
download | nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar.gz nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar.bz2 nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar.lz nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar.xz nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.tar.zst nixpkgs-f76ac449d1bdbd9cd9b76fbf98c511d26f849abc.zip |
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.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/src-only/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index 143166cfadd..b4e373cd058 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"]; }) |