mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
lib: improve implementation of overrideExisting (#549843)
This commit is contained in:
@@ -1863,7 +1863,7 @@ rec {
|
||||
|
||||
:::
|
||||
*/
|
||||
overrideExisting = old: new: mapAttrs (name: value: new.${name} or value) old;
|
||||
overrideExisting = old: new: old // intersectAttrs old new;
|
||||
|
||||
/**
|
||||
Turns a list of strings into a human-readable description of those
|
||||
|
||||
Reference in New Issue
Block a user