2014-01-19 13:24:32 +01:00
|
|
|
{stdenv, fetchgit, autoreconfHook, pkgconfig, pcre, zlib, lzma}:
|
|
|
|
|
2014-03-27 17:47:18 +01:00
|
|
|
let release = "0.21.0"; in
|
2014-01-19 13:24:32 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "silver-searcher-${release}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/ggreer/the_silver_searcher.git";
|
|
|
|
rev = "refs/tags/${release}";
|
2014-03-27 17:47:18 +01:00
|
|
|
sha256 = "bd49c6cadabeaf7bde130e5d2d0083367ae2d19cfedb40e45f5bb1ff9f4a3e51";
|
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 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ggreer/the_silver_searcher/;
|
|
|
|
description = "A code-searching tool similar to ack, but faster";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.madjar ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|