[Optimizations] Add ability to specify additional attributes to package override

This commit is contained in:
Antoine Viallon 2023-08-10 16:32:26 +02:00
parent 38e8749e77
commit 3e472dff54
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 6 additions and 2 deletions

View file

@ -16,11 +16,12 @@ let
ltoBlacklist ? cfg.lto.blacklist,
overrideMap ? cfg.overrideMap,
lto ? cfg.lto,
attributes ? {},
stdenv ? null,
...
}@attrs: pkg:
myLib.optimizations.optimizePkg pkg (cfg.defaultSettings // {
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv;
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv attributes;
} // attrs);
in {
options.aviallon.optimizations = {