summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/notmuch
diff options
context:
space:
mode:
authorPuck Meerburg <puck@puckipedia.com>2019-08-31 18:20:48 +0000
committerPuck Meerburg <puck@puckipedia.com>2019-09-01 08:40:26 +0000
commitbcc543135fc1a264f6199646b201222ed4aa94a3 (patch)
treee7f918108c504c6e2732be4e69ef9f26c6f60f77 /pkgs/applications/networking/mailreaders/notmuch
parentabd8f6c045c72fe1e37e5c6cec93e04bb1d2f752 (diff)
downloadnixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar.gz
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar.bz2
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar.lz
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar.xz
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.tar.zst
nixpkgs-bcc543135fc1a264f6199646b201222ed4aa94a3.zip
notmuch: fix notmuch-emacs-mua
Before this patch, notmuch-emacs-mua would try to call emacs in PATH,
 which would obviously fail on systems with no emacs. This fixes that,
 while still keeping the capability to override your emacs' path.
Diffstat (limited to 'pkgs/applications/networking/mailreaders/notmuch')
-rw-r--r--pkgs/applications/networking/mailreaders/notmuch/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/notmuch/default.nix b/pkgs/applications/networking/mailreaders/notmuch/default.nix
index e3b55b719ca..01081ebfb3e 100644
--- a/pkgs/applications/networking/mailreaders/notmuch/default.nix
+++ b/pkgs/applications/networking/mailreaders/notmuch/default.nix
@@ -42,6 +42,10 @@ stdenv.mkDerivation rec {
 
     substituteInPlace lib/Makefile.local \
       --replace '-install_name $(libdir)' "-install_name $out/lib"
+
+    substituteInPlace emacs/notmuch-emacs-mua \
+      --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
+      --replace 'EMACSCLIENT:-emacsclient' 'EMACSCLIENT:-${emacs}/bin/emacsclient'
   '';
 
   configureFlags = [ "--zshcompletiondir=${placeholder "out"}/share/zsh/site-functions" ];