Make output binary name configurable
This commit is contained in:
parent
03eaf7517f
commit
ffe2eae6cb
1 changed files with 3 additions and 1 deletions
4
doom.nix
4
doom.nix
|
|
@ -10,6 +10,8 @@
|
||||||
full ? false,
|
full ? false,
|
||||||
/* Name of doom profile to use. */
|
/* Name of doom profile to use. */
|
||||||
profileName ? "nix",
|
profileName ? "nix",
|
||||||
|
/* Name to give to the main binary (to facilitate parallel installs with Emacs). */
|
||||||
|
binaryName ? "emacs",
|
||||||
|
|
||||||
callPackages,
|
callPackages,
|
||||||
git,
|
git,
|
||||||
|
|
@ -291,7 +293,7 @@ let
|
||||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
makeWrapper ${emacsWithPackages}/bin/emacs $out/bin/emacs \
|
makeWrapper ${emacsWithPackages}/bin/emacs $out/bin/${binaryName} \
|
||||||
--set DOOMPROFILELOADFILE ${doomProfile}/loader/init.el \
|
--set DOOMPROFILELOADFILE ${doomProfile}/loader/init.el \
|
||||||
--add-flags "--init-directory=${doomSource} --profile ${profileName}"
|
--add-flags "--init-directory=${doomSource} --profile ${profileName}"
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue