diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-08-28T08·57+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2024-08-30T18·05+0000 |
commit | 91e76a90a0adcc143cab33aeb343d4f6b0662a66 (patch) | |
tree | 5e89f6b12faa73e687442bcde6ba9595544e3c2a /tools/eaglemode/default.nix | |
parent | 9803712ab8db5e71354ee192776c00f85b9b0ffb (diff) |
refactor(tools/eaglemode): overridable mkCommand r/8620
People might especially want to change the default configuration. Change-Id: If046e036a6d1a702abb8dcd1c08dac4730a01b98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12371 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: azahi <azat@bahawi.net> Tested-by: BuildkiteCI
Diffstat (limited to 'tools/eaglemode/default.nix')
-rw-r--r-- | tools/eaglemode/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/eaglemode/default.nix b/tools/eaglemode/default.nix index 879235b62e05..eade62c02898 100644 --- a/tools/eaglemode/default.nix +++ b/tools/eaglemode/default.nix @@ -22,7 +22,7 @@ rec { # # Commands are basically little Perl scripts with a command standard library # available. They receive the user's selected target from Eagle Mode. - mkCommand = + mkCommand = lib.makeOverridable ( { # Name of the command. name @@ -60,7 +60,8 @@ rec { else (if builtins.isPath code then builtins.readFile code else throw "code must be a string (literal code) or path to file")} - ''); + '') + ); # etcDir creates a directory layout suitable for use in the EM_USER_CONFIG_DIR # environment variable. |