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.
This commit is contained in:
parent
22a183bf78
commit
f76ac449d1
1 changed files with 2 additions and 0 deletions
|
@ -15,5 +15,7 @@ in
|
|||
stdenv.mkDerivation (args // {
|
||||
name = "${name}-source";
|
||||
installPhase = "cp -r . $out";
|
||||
outputs = [ "out" ];
|
||||
separateDebugInfo = false;
|
||||
phases = ["unpackPhase" "patchPhase" "installPhase"];
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue