2015-06-22 07:19:23 -07:00
|
|
|
{stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcre, zlib, lzma}:
|
2014-01-19 04:24:32 -08:00
|
|
|
|
2015-06-22 03:10:03 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "silver-searcher";
|
2018-08-07 07:06:49 -07:00
|
|
|
version = "2.2.0";
|
2014-01-19 04:24:32 -08:00
|
|
|
|
2015-06-22 07:19:23 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ggreer";
|
|
|
|
repo = "the_silver_searcher";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2018-08-07 07:06:49 -07:00
|
|
|
sha256 = "0cyazh7a66pgcabijd27xnk1alhsccywivv6yihw378dqxb22i1p";
|
2014-01-19 04:24:32 -08:00
|
|
|
};
|
|
|
|
|
2017-11-20 01:14:36 -08:00
|
|
|
patches = [ ./bash-completion.patch ];
|
|
|
|
|
2014-03-12 09:48:32 -07:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
2014-02-03 08:41:25 -08:00
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ pcre zlib lzma ];
|
2014-01-19 04:24:32 -08:00
|
|
|
|
2015-06-21 23:25:07 -07:00
|
|
|
meta = with stdenv.lib; {
|
2014-01-19 04:24:32 -08:00
|
|
|
homepage = https://github.com/ggreer/the_silver_searcher/;
|
|
|
|
description = "A code-searching tool similar to ack, but faster";
|
2019-03-12 15:45:33 -07:00
|
|
|
maintainers = with maintainers; [ madjar ];
|
2015-06-21 23:25:07 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.asl20;
|
2014-01-19 04:24:32 -08:00
|
|
|
};
|
|
|
|
}
|