From 7372590a440726afc70784af498d99f3ed9046b7 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 13 May 2026 21:10:42 +0200 Subject: [PATCH] notmuch: fix darwin build --- .../networking/mailreaders/notmuch/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/networking/mailreaders/notmuch/default.nix b/pkgs/applications/networking/mailreaders/notmuch/default.nix index 54403b0ea321..df945098ef7b 100644 --- a/pkgs/applications/networking/mailreaders/notmuch/default.nix +++ b/pkgs/applications/networking/mailreaders/notmuch/default.nix @@ -79,6 +79,16 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace emacs/notmuch-emacs-mua \ --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \ --replace 'EMACSCLIENT:-emacsclient' 'EMACSCLIENT:-${emacs}/bin/emacsclient' + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' + # The configure script runs the minimal test program + # when checking support for address and thread sanitizer (asan and tsan). + # On Darwin the minimal test program hangs when compiled + # with the asan and tsan compile options. + # Since asan and tsan are supported on Darwin the runtime + # check is skipped as follows: + substituteInPlace configure \ + --replace './minimal' 'true' ''; configureFlags = [