diff --git a/lib/customisation.nix b/lib/customisation.nix index e9e88aff7cb5..5db9275aadc7 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -401,7 +401,25 @@ rec { condition: passthru: drv: let commonAttrs = - drv // (listToAttrs outputsList) // { all = map (x: x.value) outputsList; } // passthru; + drv + // listToAttrs ( + outputsList + ++ [ + { + name = "all"; + value = map (x: x.value) outputsList; + } + ] + ) + // passthru + // { + drvPath = + assert condition; + drv.drvPath; + outPath = + assert condition; + drv.outPath; + }; outputsList = map (outputName: { name = outputName; @@ -423,15 +441,7 @@ rec { }; }) (drv.outputs or [ "out" ]); in - commonAttrs - // { - drvPath = - assert condition; - drv.drvPath; - outPath = - assert condition; - drv.outPath; - }; + commonAttrs; /** Strip a derivation of all non-essential attributes, returning