mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-29 14:33:37 -05:00
Wrap emacs app if it was created on darwin
This commit is contained in:
committed by
László Vaskó
parent
473e37cf42
commit
4cd7e15082
@@ -228,6 +228,14 @@ emacs.overrideAttrs (esuper:
|
||||
--set __DEBUG_doom_emacs_DIR ${doom-emacs} \
|
||||
--set __DEBUG_doomLocal_DIR ${doomLocal}
|
||||
done
|
||||
${lib.optionalString stdenv.isDarwin ''
|
||||
if [[ -e $out/Applications ]]; then
|
||||
wrapProgram "$out/Applications/Emacs.app/Contents/MacOS/Emacs" \
|
||||
--set DOOMDIR ${doomDir} \
|
||||
--set __DEBUG_doom_emacs_DIR ${doom-emacs} \
|
||||
--set __DEBUG_doomLocal_DIR ${doomLocal}
|
||||
fi
|
||||
''}
|
||||
# emacsWithPackages assumes share/emacs/site-lisp/subdirs.el
|
||||
# exists, but doesn't pass it along. When home-manager calls
|
||||
# emacsWithPackages again on this derivation, it fails due to
|
||||
|
Reference in New Issue
Block a user