mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Optimizations] Add ability to specify additional attributes to package override
This commit is contained in:
parent
38e8749e77
commit
3e472dff54
2 changed files with 6 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue