clucene-core: make darwin-related patch conditional

This relates to pull request #6137, and was made at request of the
submitter.
This commit is contained in:
John Wiegley 2015-02-04 01:40:17 -06:00
parent 33ecb3438f
commit ad60eaedf1

View file

@ -18,8 +18,7 @@ stdenv.mkDerivation rec {
[ ./Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
./Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
./Install-contribs-lib.patch
./fix-darwin.patch
];
] ++ stdenv.lib.optionals stdenv.isDarwin [ ./fix-darwin.patch ];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -change libclucene-shared.1.dylib \