2015-06-22 16:19:23 +02:00
|
|
|
{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 {
|
|
|
|
name = "silver-searcher-${version}";
|
2016-12-07 07:22:03 +01:00
|
|
|
version = "1.0.2";
|
2014-01-19 13:24:32 +01:00
|
|
|
|
2015-06-22 16:19:23 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ggreer";
|
|
|
|
repo = "the_silver_searcher";
|
|
|
|
rev = "${version}";
|
2016-12-07 07:22:03 +01:00
|
|
|
sha256 = "1c504x62yxf4b5k8ixvr97g97nd4kff32flxdjnvxvcrrnany8zx";
|
2014-01-19 13:24:32 +01:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2014-01-19 13:24:32 +01:00
|
|
|
buildInputs = [ autoreconfHook pkgconfig pcre zlib lzma ];
|
|
|
|
|
2015-06-22 08:25:07 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-01-19 13:24:32 +01:00
|
|
|
homepage = https://github.com/ggreer/the_silver_searcher/;
|
|
|
|
description = "A code-searching tool similar to ack, but faster";
|
2015-06-22 08:25:07 +02:00
|
|
|
maintainers = with maintainers; [ madjar jgeerds ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.asl20;
|
2014-01-19 13:24:32 +01:00
|
|
|
};
|
|
|
|
}
|