Make output binary name configurable

This commit is contained in:
Marien Zwart 2024-03-31 16:51:00 +11:00
parent 03eaf7517f
commit ffe2eae6cb
No known key found for this signature in database

View file

@ -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}"
'';