Unverified Commit 6fb3a3d1 authored by Emily's avatar Emily Committed by GitHub
Browse files

lib: make `warnOnInstantiate` recurse into `overrideAttrs` result (#488797)

parents 1068dc82 d6b70122
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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
        { }
    );
}