Merge #228318: notmuch: fix darwin build

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-04-26 18:29:43 +02:00
commit fc67ff643d
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

@ -42,6 +42,10 @@ stdenv.mkDerivation rec {
substituteInPlace lib/Makefile.local \
--replace '-install_name $(libdir)' "-install_name $out/lib"
# do not override CFLAGS of the Makefile created by mkmf
substituteInPlace bindings/Makefile.local \
--replace 'CFLAGS="$(CFLAGS) -pipe -fno-plt -fPIC"' ""
'' + lib.optionalString withEmacs ''
substituteInPlace emacs/notmuch-emacs-mua \
--replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \