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

31 lines
820 B
Nix
Raw Normal View History

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