From f33ca4edc6884e2625db00debc338d2e4b0ce02e Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sat, 13 May 2017 23:45:02 -0500 Subject: [PATCH] xapian: fixup darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The configure script is detecting that __exp10 is available even though it isn’t on latest versions. This is the best fix I can find for now. --- pkgs/development/libraries/xapian/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/xapian/default.nix b/pkgs/development/libraries/xapian/default.nix index 145ebdec8e5d..764200c89f55 100644 --- a/pkgs/development/libraries/xapian/default.nix +++ b/pkgs/development/libraries/xapian/default.nix @@ -18,6 +18,13 @@ let doCheck = true; + # the configure script thinks that Darwin has ___exp10 + # but it’s not available on my systems (or hydra apparently) + postConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace config.h \ + --replace "#define HAVE___EXP10 1" "#undef HAVE___EXP10" + ''; + meta = with stdenv.lib; { description = "Search engine library"; homepage = http://xapian.org/;