nixos/misc: Fix nixpkgs.config merge function

Previously nested attrsets would override each other
This commit is contained in:
Silvan Mosberger 2019-08-10 20:03:11 +02:00
parent 809b38a784
commit ca3820dd00
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -19,7 +19,7 @@ let
lhs = optCall lhs_ { inherit pkgs; }; lhs = optCall lhs_ { inherit pkgs; };
rhs = optCall rhs_ { inherit pkgs; }; rhs = optCall rhs_ { inherit pkgs; };
in in
lhs // rhs // recursiveUpdate lhs rhs //
optionalAttrs (lhs ? packageOverrides) { optionalAttrs (lhs ? packageOverrides) {
packageOverrides = pkgs: packageOverrides = pkgs:
optCall lhs.packageOverrides pkgs // optCall lhs.packageOverrides pkgs //