2016-09-23 22:39:58 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "ripgrep-${version}";
|
2017-05-15 20:16:57 +02:00
|
|
|
version = "0.5.2";
|
2016-09-23 22:39:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BurntSushi";
|
|
|
|
repo = "ripgrep";
|
|
|
|
rev = "${version}";
|
2017-05-15 20:16:57 +02:00
|
|
|
sha256 = "128sfczms14zgfbhgmf84jjlivd4q6i581rxirhz3kmpnnby18rz";
|
2016-09-23 22:39:58 +02:00
|
|
|
};
|
|
|
|
|
2017-05-15 20:16:57 +02:00
|
|
|
depsSha256 = "1kjmv4bn5sicx8g5gyzq2zhxmqsqlgckhcg4ypvnjmcyq1ifiv2m";
|
2016-09-23 22:39:58 +02:00
|
|
|
|
2017-03-10 08:12:16 +01: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;
|
|
|
|
};
|
|
|
|
}
|