diff options
author | Vincent Ambo <Vincent Ambo> | 2020-01-07T22·28+0000 |
---|---|---|
committer | Vincent Ambo <Vincent Ambo> | 2020-01-07T22·28+0000 |
commit | efc782fcdcab4ce177d40f9f70171ccd3c700523 (patch) | |
tree | 237f930054dd9ace63aafeb4144f7f5e147ac989 | |
parent | 31f66491a9b3243b7f1c4ed2a5efdf24522d6596 (diff) |
fix(emacs): Disable linking of imagemagick due to vterm crashes r/340
See explanatory comment.
-rw-r--r-- | tools/emacs/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/emacs/default.nix b/tools/emacs/default.nix index e5c695a3e5e2..e2d8c7d19272 100644 --- a/tools/emacs/default.nix +++ b/tools/emacs/default.nix @@ -1,6 +1,12 @@ # This file builds an Emacs pre-configured with the packages I need # and my personal Emacs configuration. - +# +# On NixOS machines, this Emacs currently does not support +# Imagemagick, see https://github.com/NixOS/nixpkgs/issues/70631. +# +# Forcing Emacs to link against Imagemagick currently causes libvterm +# to segfault, which is a lot less desirable than not having telega +# render images correctly. { pkgs, ... }: with pkgs; @@ -8,12 +14,7 @@ with third_party.emacsPackagesNg; with third_party.emacs; let - emacsWithImagemagick = third_party.emacs26.override { - # See https://github.com/NixOS/nixpkgs/issues/70631 - imagemagick = third_party.imagemagickBig; - }; - localPackages = pkgs.tools.emacs-pkgs; - emacsWithPackages = (third_party.emacsPackagesNgGen emacsWithImagemagick).emacsWithPackages; + emacsWithPackages = (third_party.emacsPackagesNgGen third_party.emacs26).emacsWithPackages; # $PATH for binaries that need to be available to Emacs emacsBinPath = lib.makeBinPath [ third_party.telega ]; @@ -91,7 +92,7 @@ let ]) ++ # Custom packages - (with localPackages; [ + (with localpkgs.tools.emacs-pkgs; [ carp-mode dottime nix-util |