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