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

29 lines
826 B
Nix
Raw Normal View History

{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}";
2017-08-26 21:00:52 +02:00
version = "2.1.0";
2014-01-19 13:24:32 +01:00
src = fetchFromGitHub {
owner = "ggreer";
repo = "the_silver_searcher";
rev = "${version}";
2017-08-26 21:00:52 +02:00
sha256 = "0wcw4kyivb10m9b173183jrj46a0gisd35yqxi1mr9hw5l5dhkpa";
2014-01-19 13:24:32 +01:00
};
patches = [ ./bash-completion.patch ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ pcre zlib lzma ];
2014-01-19 13:24:32 +01:00
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
};
}