mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
25 lines
757 B
Nix
25 lines
757 B
Nix
{stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcre, zlib, lzma}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "silver-searcher-${version}";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ggreer";
|
|
repo = "the_silver_searcher";
|
|
rev = "${version}";
|
|
sha256 = "1c504x62yxf4b5k8ixvr97g97nd4kff32flxdjnvxvcrrnany8zx";
|
|
};
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
|
|
|
buildInputs = [ autoreconfHook pkgconfig pcre zlib lzma ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/ggreer/the_silver_searcher/;
|
|
description = "A code-searching tool similar to ack, but faster";
|
|
maintainers = with maintainers; [ madjar jgeerds ];
|
|
platforms = platforms.all;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|