3
0
Fork 0
forked from mirrors/nixpkgs

lib: tiny cleanup

This commit is contained in:
Jan Malakhovski 2019-02-03 15:30:15 +00:00
parent 107f0fc9e7
commit 51687d9a7f

View file

@ -121,7 +121,7 @@ rec {
auto = builtins.intersectAttrs (lib.functionArgs f) autoArgs;
origArgs = auto // args;
pkgs = f origArgs;
mkAttrOverridable = name: pkg: makeOverridable (newArgs: (f newArgs).${name}) origArgs;
mkAttrOverridable = name: _: makeOverridable (newArgs: (f newArgs).${name}) origArgs;
in lib.mapAttrs mkAttrOverridable pkgs;