mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Lib/Optimizations]: merge attributes with priority handling
This commit is contained in:
parent
d7d489674f
commit
1c7ee1e60a
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ rec {
|
|||
};
|
||||
|
||||
addAttrs = pkg: attrs: pkg.overrideAttrs (old:
|
||||
(myLib.attrsets.mergeAttrsRecursive old attrs) // {
|
||||
(myLib.attrsets.mergeAttrsRecursiveWithPriority old attrs) // {
|
||||
passthru = (pkg.passthru or {}) // (attrs.passtru or {});
|
||||
}
|
||||
);
|
||||
|
|
@ -362,7 +362,7 @@ rec {
|
|||
if (! isNull cpuTune) then cpuTune
|
||||
else if (! isNull cpuArch) then cpuArch
|
||||
else "generic";
|
||||
in myLib.debug.traceValWithPrefix "optimizations" (foldl' myLib.attrsets.mergeAttrsRecursive {} [
|
||||
in myLib.debug.traceValWithPrefix "optimizations" (foldl' myLib.attrsets.mergeAttrsRecursiveWithPriority {} [
|
||||
(rec {
|
||||
CFLAGS = unique
|
||||
([ ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue