mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
lib.overrideDerivation: override attrs in __spliced
This commit is contained in:
parent
dba0c71b6d
commit
7022556622
1 changed files with 8 additions and 6 deletions
|
@ -38,12 +38,14 @@ rec {
|
||||||
//
|
//
|
||||||
(drv.passthru or {})
|
(drv.passthru or {})
|
||||||
//
|
//
|
||||||
(if (drv ? crossDrv && drv ? nativeDrv)
|
(lib.optionalAttrs (drv ? crossDrv && drv ? nativeDrv) {
|
||||||
then {
|
crossDrv = overrideDerivation drv.crossDrv f;
|
||||||
crossDrv = overrideDerivation drv.crossDrv f;
|
nativeDrv = overrideDerivation drv.nativeDrv f;
|
||||||
nativeDrv = overrideDerivation drv.nativeDrv f;
|
})
|
||||||
}
|
//
|
||||||
else { }));
|
lib.optionalAttrs (drv ? __spliced) {
|
||||||
|
__spliced = {} // (lib.mapAttrs (_: sDrv: overrideDerivation sDrv f) drv.__spliced);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/* `makeOverridable` takes a function from attribute set to attribute set and
|
/* `makeOverridable` takes a function from attribute set to attribute set and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue