From e0b5eef4e7d21d0a914e248635f1f9360772a6d9 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 1 Sep 2016 18:31:26 +0300 Subject: [PATCH] lib.chooseDevOutputs: Use lib.getDev Reduces duplication, plus is actually needed for Go packages (at least go-repo-root). --- lib/attrsets.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 686e125f100c..539eeb7b1721 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -455,7 +455,7 @@ rec { getDev = getOutput "dev"; /* 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 ***/