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