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

29 lines
794 B
Nix
Raw Normal View History

2021-03-14 11:12:53 -07:00
{lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, pcre, zlib, xz}:
2014-01-19 04:24:32 -08:00
2015-06-22 03:10:03 -07:00
stdenv.mkDerivation rec {
pname = "silver-searcher";
version = "2.2.0";
2014-01-19 04:24:32 -08:00
src = fetchFromGitHub {
owner = "ggreer";
repo = "the_silver_searcher";
2019-09-08 16:38:31 -07:00
rev = version;
sha256 = "0cyazh7a66pgcabijd27xnk1alhsccywivv6yihw378dqxb22i1p";
2014-01-19 04:24:32 -08:00
};
patches = [ ./bash-completion.patch ];
2021-01-15 01:19:50 -08:00
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
nativeBuildInputs = [ autoreconfHook pkg-config ];
2021-03-14 11:12:53 -07:00
buildInputs = [ pcre zlib xz ];
2014-01-19 04:24:32 -08:00
meta = with lib; {
homepage = "https://github.com/ggreer/the_silver_searcher/";
2014-01-19 04:24:32 -08:00
description = "A code-searching tool similar to ack, but faster";
maintainers = with maintainers; [ madjar ];
2015-06-21 23:25:07 -07:00
platforms = platforms.all;
license = licenses.asl20;
2014-01-19 04:24:32 -08:00
};
}