git.iko.soy/typeable/nixpkgs
on master help sign in
stdenv: Also splice unlisted default "out" output

Otherwise, some cross builds will use the wrong type of dep. This won't affect native builds, and perhaps no extant cross buids either.

commit64aebc7679bc9aaa94c3696390174acd62ef1f3a authorJohn Ericson <John.Ericson@Obsidian.Systems> dateTue 19 Sep 2017, 14:46 (9 years ago) parent13fc982
1 file changed+3−2
pkgs/top-level/splice.nix+3−2
pkgs/top-level/splice.nix+3−2
@@ -43,8 +43,9 @@ let
4343 // (lib.optionalAttrs (buildPkgs ? ${name}) { nativeDrv = buildValue; })
4444 // (lib.optionalAttrs (runPkgs ? ${name}) { crossDrv = runValue; });
4545 # Get the set of outputs of a derivation
46− getOutputs = value:
47− lib.genAttrs (value.outputs or []) (output: value.${output});
46+ getOutputs = value: lib.genAttrs
47+ (value.outputs or (lib.optional (value ? out) "out"))
48+ (output: value.${output});
4849 in
4950 # Certain *Cross derivations will fail assertions, but we need their
5051 # nativeDrv. We are assuming anything that fails to evaluate is an