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

29 lines
803 B
Nix
Raw Normal View History

{stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcre, zlib, lzma}:
2014-01-19 12:24:32 +00:00
2015-06-22 10:10:03 +00:00
stdenv.mkDerivation rec {
pname = "silver-searcher";
version = "2.2.0";
2014-01-19 12:24:32 +00:00
src = fetchFromGitHub {
owner = "ggreer";
repo = "the_silver_searcher";
2019-09-08 23:38:31 +00:00
rev = version;
sha256 = "0cyazh7a66pgcabijd27xnk1alhsccywivv6yihw378dqxb22i1p";
2014-01-19 12:24:32 +00:00
};
patches = [ ./bash-completion.patch ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ pcre zlib lzma ];
2014-01-19 12:24:32 +00:00
2015-06-22 06:25:07 +00: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";
maintainers = with maintainers; [ madjar ];
2015-06-22 06:25:07 +00:00
platforms = platforms.all;
license = licenses.asl20;
2014-01-19 12:24:32 +00:00
};
}