From 9fc2bfda831466bbc62182f2095f5773eb51342d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 23 Apr 2025 16:47:04 +0100 Subject: [PATCH] emacs: disable native compilation on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The duplicate `rpath` issue prevents running Emacs on macOS 15.4 and also breaks the build on that platform, blocking the channels. From asking around, it seems like native compilation shouldn’t have such a huge impact on performance as to not make this worth it as a temporary hack to unblock security fixes and give us more time to sort out a proper solution. --- pkgs/applications/editors/emacs/make-emacs.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index b8156c5b3bcc..4f6fbd9a55c5 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -66,7 +66,11 @@ zlib, # Boolean flags - withNativeCompilation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, + + # FIXME: Native compilation breaks build and runtime on macOS 15.4; + # see . + withNativeCompilation ? + stdenv.buildPlatform.canExecute stdenv.hostPlatform && !stdenv.hostPlatform.isDarwin, noGui ? false, srcRepo ? true, withAcl ? false,