[Optimizations] Recursive optimizations (!)

This commit is contained in:
Antoine Viallon 2022-10-12 19:31:54 +02:00
parent b2c521273f
commit 52d7d35514
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 81 additions and 21 deletions

View file

@ -42,14 +42,14 @@ in
inherit unstable;
inherit nur;
})]
++ optional cfg.traceCallPackage [(self: super: {
++ optional cfg.traceCallPackage (self: super: {
callPackage = path: overrides:
let
_pkg = super.callPackage path overrides;
_name = _pkg.name or _pkg.pname or "<unknown>";
in trace "callPackage ${_name}" _pkg
;
})]
})
++ [(self: super: {
htop = super.htop.overrideAttrs (old: {
configureFlags = old.configureFlags ++ [