10 lines
179 B
Nix
10 lines
179 B
Nix
{ lib }:
|
|
|
|
rec {
|
|
makeOverridable =
|
|
f: origArgs:
|
|
let
|
|
origRes = f origArgs;
|
|
in
|
|
origRes // { override = newArgs: makeOverridable f (origArgs // newArgs); };
|
|
}
|