nixpkgs/pkgs/tools/text/silver-searcher/default.nix

26 lines
758 B
Nix
Raw Normal View History

{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 {
name = "silver-searcher-${version}";
2016-01-09 11:22:56 -08:00
version = "0.31.0";
2014-01-19 04:24:32 -08:00
src = fetchFromGitHub {
owner = "ggreer";
repo = "the_silver_searcher";
rev = "${version}";
2016-01-09 11:22:56 -08:00
sha256 = "1xmvdi2nbmwkmrdwkqm3zm596dz1zx87bn8i0ylkmy8rvb8ybgdv";
2014-01-19 04:24:32 -08:00
};
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
2014-01-19 04:24:32 -08:00
buildInputs = [ autoreconfHook pkgconfig pcre zlib lzma ];
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";
2015-06-21 23:25:07 -07:00
maintainers = with maintainers; [ madjar jgeerds ];
platforms = platforms.all;
license = licenses.asl20;
2014-01-19 04:24:32 -08:00
};
}