git.iko.soy/typeable/nixpkgs
on master help sign in
clucene-core: fix install name
commit8511f045b723b27e0a3549d815002cd114669400 authorMatthew Bauer <mjbauer95@gmail.com> dateTue 6 Nov 2018, 20:00 (8 years ago) parent147ff75
1 file changed+8−8
pkgs/development/libraries/clucene-core/2.x.nix+8−8
pkgs/development/libraries/clucene-core/2.x.nix+8−8
@@ -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";