about summary refs log tree commit diff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/emacs.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlays/emacs.nix b/overlays/emacs.nix
index 3db8f027921a..4c4b12f360de 100644
--- a/overlays/emacs.nix
+++ b/overlays/emacs.nix
@@ -27,6 +27,11 @@ let
 
               patches = [ ];
 
+              # fixes segfaults that only occur on aarch64-linux (issue#264)
+              configureFlags = old.configureFlags ++
+                               super.lib.optionals (super.stdenv.isLinux && super.stdenv.isAarch64)
+                                 [ "--enable-check-lisp-object-type" ];
+
               postPatch = old.postPatch + ''
                 substituteInPlace lisp/loadup.el \
                 --replace '(emacs-repository-get-version)' '"${repoMeta.rev}"' \