lib.chooseDevOutputs: Use lib.getDev

Reduces duplication, plus is actually needed for Go packages (at least
go-repo-root).
This commit is contained in:
Tuomas Tynkkynen 2016-09-01 18:31:26 +03:00
parent b308b1e9bf
commit e0b5eef4e7

View File

@ -455,7 +455,7 @@ rec {
getDev = getOutput "dev"; getDev = getOutput "dev";
/* Pick the outputs of packages to place in buildInputs */ /* Pick the outputs of packages to place in buildInputs */
chooseDevOutputs = drvs: builtins.map (drv: if drv.outputUnspecified or false then drv.dev or drv else drv) drvs; chooseDevOutputs = drvs: builtins.map getDev drvs;
/*** deprecated stuff ***/ /*** deprecated stuff ***/