2016-09-23 13:39:58 -07:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "ripgrep-${version}";
|
2017-08-24 15:25:02 -07:00
|
|
|
version = "0.6.0";
|
2016-09-23 13:39:58 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BurntSushi";
|
|
|
|
repo = "ripgrep";
|
|
|
|
rev = "${version}";
|
2017-08-24 15:25:02 -07:00
|
|
|
sha256 = "1cnvwxbznmsn1gand8hhy5zadax5p67lvm46fkj1a1s89f158w3a";
|
2016-09-23 13:39:58 -07:00
|
|
|
};
|
|
|
|
|
2017-08-24 15:25:02 -07:00
|
|
|
depsSha256 = "1kx9xazhj93xa3cnys39wwr84qqjqrlsbbi5ih71vxppskdpvd6m";
|
2016-09-23 13:39:58 -07:00
|
|
|
|
2017-03-09 23:12:16 -08:00
|
|
|
preFixup = ''
|
|
|
|
mkdir -p "$out/man/man1"
|
|
|
|
cp "$src/doc/rg.1" "$out/man/man1"
|
|
|
|
'';
|
|
|
|
|
2016-09-23 13:39:58 -07:00
|
|
|
meta = with stdenv.lib; {
|
2016-12-15 15:41:22 -08:00
|
|
|
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
|
2016-09-23 13:39:58 -07:00
|
|
|
homepage = https://github.com/BurntSushi/ripgrep;
|
2017-08-24 15:25:02 -07:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
2016-09-23 13:39:58 -07:00
|
|
|
maintainers = [ maintainers.tailhook ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|