From 571b17de5ea4561a7662fb8c36ea76148bd7ce47 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Thu, 3 Dec 2020 11:41:46 -0500 Subject: [PATCH] emacs: Link native-lisp directory into Mac app (#103933) Without the symlink, the application can't be launched. Fixes Co-authored-by: Dmitry Kalinkin --- pkgs/applications/editors/emacs/generic.nix | 2 ++ 1 file changed, 2 insertions(+) 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" [