From ad60eaedf1d761f1a83b773f0bc2dd985f5f404d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Feb 2015 01:40:17 -0600 Subject: [PATCH] clucene-core: make darwin-related patch conditional This relates to pull request #6137, and was made at request of the submitter. --- pkgs/development/libraries/clucene-core/2.x.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/clucene-core/2.x.nix b/pkgs/development/libraries/clucene-core/2.x.nix index e348142f1d8c..90ee1cd03ca4 100644 --- a/pkgs/development/libraries/clucene-core/2.x.nix +++ b/pkgs/development/libraries/clucene-core/2.x.nix @@ -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 \