From 91e76a90a0adcc143cab33aeb343d4f6b0662a66 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 28 Aug 2024 11:57:58 +0300 Subject: refactor(tools/eaglemode): overridable mkCommand People might especially want to change the default configuration. Change-Id: If046e036a6d1a702abb8dcd1c08dac4730a01b98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12371 Reviewed-by: tazjin Reviewed-by: azahi Tested-by: BuildkiteCI --- tools/eaglemode/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/eaglemode/default.nix') 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. -- cgit 1.4.1