summary refs log tree commit diff
path: root/pkgs/development/libraries/clucene-core/2.x.nix
blob: 72460184df21aef1310d79b970159a4985a899b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, cmake, boost, zlib}:

stdenv.mkDerivation rec {
  name = "clucene-core-2.3.3.4";

  src = fetchurl {
    url = "mirror://sourceforge/clucene/${name}.tar.gz";
    sha256 = "1arffdwivig88kkx685pldr784njm0249k0rb1f1plwavlrw9zfx";
  };

  buildNativeInputs = [ cmake ];

  buildInputs = [ boost zlib ];

  cmakeFlags = [ "-DBUILD_CONTRIBS=ON" "-DBUILD_CONTRIBS_LIB=ON" ];

  patches = # From debian
    [ ./Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
      ./Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
      ./Install-contribs-lib.patch
    ];

  meta = {
    description = "CLucene is a port of the very popular Java Lucene text search engine API. Core package, 2.x branch.";
    homepage = http://clucene.sourceforge.net;
  };
}