mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
lib/customisation/makeOverridable: inline mirrorFunctionArgs
This commit is contained in:
@@ -151,8 +151,12 @@ rec {
|
||||
makeOverridable =
|
||||
f:
|
||||
let
|
||||
fArgs = functionArgs f;
|
||||
# Creates a functor with the same arguments as f
|
||||
mirrorArgs = mirrorFunctionArgs f;
|
||||
mirrorArgs = g: {
|
||||
__functor = self: g;
|
||||
__functionArgs = fArgs;
|
||||
};
|
||||
|
||||
f' =
|
||||
origArgs:
|
||||
|
||||
Reference in New Issue
Block a user