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 = [