summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/emacs
diff options
context:
space:
mode:
authorMatt Jones <matt-biz@mhjones.org>2020-12-03 11:41:46 -0500
committerGitHub <noreply@github.com>2020-12-03 11:41:46 -0500
commit571b17de5ea4561a7662fb8c36ea76148bd7ce47 (patch)
tree638d06e09319922b6a12036ca8aa0f3093f9a956 /pkgs/applications/editors/emacs
parentae7aa4d6bbfa0bfdaf66d740e375696479faf2e8 (diff)
emacs: Link native-lisp directory into Mac app (#103933)
Without the symlink, the application can't be launched. Fixes <https://github.com/nix-community/emacs-overlay/issues/71> Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Diffstat (limited to 'pkgs/applications/editors/emacs')
-rw-r--r--pkgs/applications/editors/emacs/generic.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix
index a0bd1193d2cd..0e09b0c20ee0 100644
--- a/pkgs/applications/editors/emacs/generic.nix
+++ b/pkgs/applications/editors/emacs/generic.nix
@@ -154,6 +154,8 @@ in stdenv.mkDerivation {
'' + lib.optionalString withNS ''
mkdir -p $out/Applications
mv nextstep/Emacs.app $out/Applications
+ '' + lib.optionalString (nativeComp && withNS) ''
+ ln -snf $out/lib/emacs/*/native-lisp $out/Applications/Emacs.app/Contents/native-lisp
'';
postFixup = lib.concatStringsSep "\n" [