nixpkgs/pkgs/tools/text/ripgrep/default.nix

31 lines
806 B
Nix
Raw Normal View History

2016-09-23 13:39:58 -07:00
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
name = "ripgrep-${version}";
2017-03-13 14:48:38 -07:00
version = "0.5.0";
2016-09-23 13:39:58 -07:00
src = fetchFromGitHub {
owner = "BurntSushi";
repo = "ripgrep";
rev = "${version}";
2017-03-13 14:48:38 -07:00
sha256 = "13mg624867hqxp9pzpq1gn9kqkvbaqcphdjia3bz5wvff1cbxkfy";
2016-09-23 13:39:58 -07:00
};
2017-03-13 14:48:38 -07:00
depsSha256 = "0glw8xk77w2h1xg6c451fg8cmwx3vz7dyzdrbf0i8d84yq8sh0i1";
2016-09-23 13:39:58 -07: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;
license = with licenses; [ unlicense ];
maintainers = [ maintainers.tailhook ];
platforms = platforms.all;
};
}