nix-pills/pills/14/rec-make-overridable.txt
Samuel Leathers 88a6910fdb port pill #14
2017-08-17 12:48:38 -04:00

7 lines
167 B
Text

rec {
makeOverridable = f: origArgs:
let
origRes = f origArgs;
in
origRes // { override = newArgs: makeOverridable f (origArgs // newArgs); };
}