Rename getOpts to applyCombinators

This commit is contained in:
Alex David 2025-06-07 16:37:26 -07:00
commit a5c957f45b
2 changed files with 6 additions and 6 deletions

View file

@ -3,13 +3,13 @@
lib = let lib = let
runJail = import ./lib.nix; runJail = import ./lib.nix;
in { in {
init = pkgs: name: exe: getOpts: runJail { init = pkgs: name: exe: applyCombinators: runJail {
inherit pkgs name exe getOpts; inherit pkgs name exe applyCombinators;
}; };
extend = { pkgs, additionalCombinators }: name: exe: getOpts: runJail { extend = { pkgs, additionalCombinators }: name: exe: applyCombinators: runJail {
inherit pkgs name exe; inherit pkgs name exe;
getOpts = combinators: getOpts (combinators // additionalCombinators combinators); applyCombinators = combinators: applyCombinators (combinators // additionalCombinators combinators);
}; };
}; };
}; };

View file

@ -1,4 +1,4 @@
{ pkgs, name, exe, getOpts }: let { pkgs, name, exe, applyCombinators }: let
inherit (pkgs) lib; inherit (pkgs) lib;
helpers = rec { helpers = rec {
@ -52,7 +52,7 @@ in lib.pipe initial-state (
]) ])
# apply user combinators # apply user combinators
++ getOpts combinators ++ applyCombinators combinators
# apply post-user combinators # apply post-user combinators
++ (with combinators; [ ++ (with combinators; [