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:
parent
05a02c639e
commit
03b6fe7422
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue