@@ -12,7 +12,11 @@ stdenv.mkDerivation rec {
1212
1313 buildInputs = [ boost zlib ];
1414
15− cmakeFlags = [ "-DBUILD_CONTRIBS=ON" "-DBUILD_CONTRIBS_LIB=ON" ];
15+ cmakeFlags = [
16+ "-DBUILD_CONTRIBS=ON"
17+ "-DBUILD_CONTRIBS_LIB=ON"
18+ "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
19+ ];
1620
1721 patches = # From debian
1822 [ ./Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
@@ -20,13 +24,9 @@ stdenv.mkDerivation rec {
2024 ./Install-contribs-lib.patch
2125 ] ++ stdenv.lib.optionals stdenv.isDarwin [ ./fix-darwin.patch ];
2226
23− postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
24− install_name_tool -change libclucene-shared.1.dylib \
25− $out/lib/libclucene-shared.1.dylib \
26− $out/lib/libclucene-core.1.dylib
27− '';
28−
29− doCheck = false; # fails with "Unable to find executable: /build/clucene-core-2.3.3.4/build/bin/cl_test"
27+ # fails with "Unable to find executable:
28+ # /build/clucene-core-2.3.3.4/build/bin/cl_test"
29+ doCheck = false;
3030
3131 meta = with stdenv.lib; {
3232 description = "Core library for full-featured text search engine";