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

31 lines
806 B
Nix
Raw Normal View History

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