From ffe2eae6cb3cdc25c27c774554445dbdfc105b5f Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sun, 31 Mar 2024 16:51:00 +1100 Subject: [PATCH] Make output binary name configurable --- doom.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doom.nix b/doom.nix index f14cf46..d543946 100644 --- a/doom.nix +++ b/doom.nix @@ -10,6 +10,8 @@ full ? false, /* Name of doom profile to use. */ profileName ? "nix", + /* Name to give to the main binary (to facilitate parallel installs with Emacs). */ + binaryName ? "emacs", callPackages, git, @@ -291,7 +293,7 @@ let nativeBuildInputs = [ makeBinaryWrapper ]; } '' - makeWrapper ${emacsWithPackages}/bin/emacs $out/bin/emacs \ + makeWrapper ${emacsWithPackages}/bin/emacs $out/bin/${binaryName} \ --set DOOMPROFILELOADFILE ${doomProfile}/loader/init.el \ --add-flags "--init-directory=${doomSource} --profile ${profileName}" '';