Revert "Revert "overrideDerivation: Re-attatch passthru and meta to all outputs""

This reverts commit 18df66f466.

I will fix the breakage in upcoming commits.

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-15 00:39:17 -04:00
parent 05a02c639e
commit 03b6fe7422

View file

@ -34,7 +34,7 @@ rec {
overrideDerivation = drv: f:
let
newDrv = derivation (drv.drvAttrs // (f drv));
in newDrv //
in addPassthru newDrv (
{ meta = drv.meta or {};
passthru = if drv ? passthru then drv.passthru else {};
}
@ -46,7 +46,7 @@ rec {
crossDrv = overrideDerivation drv.crossDrv f;
nativeDrv = overrideDerivation drv.nativeDrv f;
}
else { });
else { }));
# usage: (you can use override multiple times)