summary refs log tree commit diff
path: root/pkgs/tools/text/silver-searcher
diff options
context:
space:
mode:
authorGeorges Dubus <georges.dubus@compiletoi.net>2014-03-12 17:48:32 +0100
committerGeorges Dubus <georges.dubus@compiletoi.net>2014-03-12 17:48:32 +0100
commitb805528552ab1fd734b7c0ec997001de1ca370a6 (patch)
treea083da4f434e634e919617bc5a7d82d9c8843c27 /pkgs/tools/text/silver-searcher
parent4640a6b9db6dbe934df65fc204ad9e18cda403d9 (diff)
downloadnixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar.gz
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar.bz2
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar.lz
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar.xz
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.tar.zst
nixpkgs-b805528552ab1fd734b7c0ec997001de1ca370a6.zip
silver-searcher: avoid -lgcc_s on darwin
Diffstat (limited to 'pkgs/tools/text/silver-searcher')
-rw-r--r--pkgs/tools/text/silver-searcher/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/text/silver-searcher/default.nix b/pkgs/tools/text/silver-searcher/default.nix
index e8a1ee96505..d5d022c8063 100644
--- a/pkgs/tools/text/silver-searcher/default.nix
+++ b/pkgs/tools/text/silver-searcher/default.nix
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
     sha256 = "b6993e077f650eb0976cbc924640665fa9b2499a899ecba5a6cad5cf9addfdff";
   };
 
-  NIX_LDFLAGS = "-lgcc_s";
+  NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
 
   buildInputs = [ autoreconfHook pkgconfig pcre zlib lzma ];