diff options
author | Puck Meerburg <puck@puckipedia.com> | 2019-08-31 18:20:48 +0000 |
---|---|---|
committer | Puck Meerburg <puck@puckipedia.com> | 2019-09-01 08:40:26 +0000 |
commit | bcc543135fc1a264f6199646b201222ed4aa94a3 (patch) | |
tree | e7f918108c504c6e2732be4e69ef9f26c6f60f77 /pkgs/applications | |
parent | abd8f6c045c72fe1e37e5c6cec93e04bb1d2f752 (diff) |
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')
-rw-r--r-- | pkgs/applications/networking/mailreaders/notmuch/default.nix | 4 |
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 e3b55b719ca54..01081ebfb3e24 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" ]; |