13 generic = version: hash: stdenv.mkDerivation {
16 passthru = { inherit version; };
19 url = "https://oligarchy.co.uk/xapian/${version}/xapian-core-${version}.tar.xz";
23 outputs = [ "out" "man" "doc" ];
25 buildInputs = [ libuuid zlib ];
26 nativeBuildInputs = [ autoreconfHook ];
29 AUTOMATED_TESTING = true; # https://trac.xapian.org/changeset/8be35f5e1/git
31 patches = lib.optionals stdenv.isDarwin [ ./skip-flaky-darwin-test.patch ];
33 # the configure script thinks that Darwin has ___exp10
34 # but it’s not available on my systems (or hydra apparently)
35 postConfigure = lib.optionalString stdenv.isDarwin ''
36 substituteInPlace config.h \
37 --replace "#define HAVE___EXP10 1" "#undef HAVE___EXP10"
45 description = "Search engine library";
46 homepage = "https://xapian.org/";
47 changelog = "https://xapian.org/docs/xapian-core-${version}/NEWS";
48 license = licenses.gpl2Plus;
49 maintainers = with maintainers; [ ];
50 platforms = platforms.unix;
54 # Don't forget to change the hashes in xapian-omega and
55 # python3Packages.xapian. They inherit the version from this package, and
56 # should always be built with the equivalent xapian version.
57 xapian_1_4 = generic "1.4.21" "sha256-gPhgNNL7VZAHlUgd+uaBv6oQ776BirrTYizcDFXgb4g=";