Rename getOpts to applyCombinators
This commit is contained in:
parent
5a1d814b63
commit
a5c957f45b
2 changed files with 6 additions and 6 deletions
|
|
@ -3,13 +3,13 @@
|
|||
lib = let
|
||||
runJail = import ./lib.nix;
|
||||
in {
|
||||
init = pkgs: name: exe: getOpts: runJail {
|
||||
inherit pkgs name exe getOpts;
|
||||
init = pkgs: name: exe: applyCombinators: runJail {
|
||||
inherit pkgs name exe applyCombinators;
|
||||
};
|
||||
|
||||
extend = { pkgs, additionalCombinators }: name: exe: getOpts: runJail {
|
||||
extend = { pkgs, additionalCombinators }: name: exe: applyCombinators: runJail {
|
||||
inherit pkgs name exe;
|
||||
getOpts = combinators: getOpts (combinators // additionalCombinators combinators);
|
||||
applyCombinators = combinators: applyCombinators (combinators // additionalCombinators combinators);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
4
lib.nix
4
lib.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, name, exe, getOpts }: let
|
||||
{ pkgs, name, exe, applyCombinators }: let
|
||||
inherit (pkgs) lib;
|
||||
|
||||
helpers = rec {
|
||||
|
|
@ -52,7 +52,7 @@ in lib.pipe initial-state (
|
|||
])
|
||||
|
||||
# apply user combinators
|
||||
++ getOpts combinators
|
||||
++ applyCombinators combinators
|
||||
|
||||
# apply post-user combinators
|
||||
++ (with combinators; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue