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.
commitbcc543135fc1a264f6199646b201222ed4aa94a3
authorPuck Meerburg <puck@puckipedia.com>
dateSat 31 Aug 2019, 18:20 (7 years ago)
parentabd8f6c
pkgs/applications/networking/mailreaders/notmuch/default.nix+4
@@ -42,6 +42,10 @@ stdenv.mkDerivation rec {
4242
4343 substituteInPlace lib/Makefile.local \
4444 --replace '-install_name $(libdir)' "-install_name $out/lib"
45+
46+ substituteInPlace emacs/notmuch-emacs-mua \
47+ --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
48+ --replace 'EMACSCLIENT:-emacsclient' 'EMACSCLIENT:-${emacs}/bin/emacsclient'
4549 '';
4650
4751 configureFlags = [ "--zshcompletiondir=${placeholder "out"}/share/zsh/site-functions" ];