mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
dhallPackages: use lib.mirrorFunctionArgs
This commit is contained in:
@@ -9,11 +9,9 @@ let
|
||||
let
|
||||
result = lib.makeOverridable f args;
|
||||
|
||||
copyArgs = g: lib.setFunctionArgs g (lib.functionArgs f);
|
||||
|
||||
overrideWith = update: args // (if lib.isFunction update then update args else update);
|
||||
|
||||
overridePackage = copyArgs (update: makePackageOverridable f (overrideWith update));
|
||||
overridePackage = lib.mirrorFunctionArgs f (update: makePackageOverridable f (overrideWith update));
|
||||
|
||||
in
|
||||
result // { inherit overridePackage; };
|
||||
|
||||
Reference in New Issue
Block a user