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; };
rhs = optCall rhs_ { inherit pkgs; };
in
lhs // rhs //
recursiveUpdate lhs rhs //
optionalAttrs (lhs ? packageOverrides) {
packageOverrides = pkgs:
optCall lhs.packageOverrides pkgs //