Merge pull request #29571 from obsidiansystems/better-splice
stdenv: Also splice unlisted default "out" output
This commit is contained in:
commit
45e87854df
@ -43,8 +43,9 @@ let
|
|||||||
// (lib.optionalAttrs (buildPkgs ? ${name}) { nativeDrv = buildValue; })
|
// (lib.optionalAttrs (buildPkgs ? ${name}) { nativeDrv = buildValue; })
|
||||||
// (lib.optionalAttrs (runPkgs ? ${name}) { crossDrv = runValue; });
|
// (lib.optionalAttrs (runPkgs ? ${name}) { crossDrv = runValue; });
|
||||||
# Get the set of outputs of a derivation
|
# Get the set of outputs of a derivation
|
||||||
getOutputs = value:
|
getOutputs = value: lib.genAttrs
|
||||||
lib.genAttrs (value.outputs or []) (output: value.${output});
|
(value.outputs or (lib.optional (value ? out) "out"))
|
||||||
|
(output: value.${output});
|
||||||
in
|
in
|
||||||
# Certain *Cross derivations will fail assertions, but we need their
|
# Certain *Cross derivations will fail assertions, but we need their
|
||||||
# nativeDrv. We are assuming anything that fails to evaluate is an
|
# nativeDrv. We are assuming anything that fails to evaluate is an
|
||||||
|
Loading…
x
Reference in New Issue
Block a user