mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
lib: make warnOnInstantiate recurse into overrideAttrs result (#488797)
This commit is contained in:
@@ -261,5 +261,12 @@ in
|
||||
"outputName"
|
||||
];
|
||||
in
|
||||
drv // mapAttrs (_: lib.warn msg) drvToWrap;
|
||||
drv
|
||||
// mapAttrs (_: lib.warn msg) drvToWrap
|
||||
// (
|
||||
if drv ? overrideAttrs && builtins.isFunction drv.overrideAttrs then
|
||||
{ overrideAttrs = x: lib.derivations.warnOnInstantiate msg (drv.overrideAttrs x); }
|
||||
else
|
||||
{ }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user