Merge pull request #34888 from dywedir/ripgrep
ripgrep: 0.7.1 -> 0.8.0, install shell completions
This commit is contained in:
commit
99913c41a0
@ -1,23 +1,28 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, asciidoc, docbook_xsl, libxslt }:
|
||||||
|
|
||||||
with rustPlatform;
|
rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildRustPackage rec {
|
|
||||||
name = "ripgrep-${version}";
|
name = "ripgrep-${version}";
|
||||||
version = "0.7.1";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "BurntSushi";
|
owner = "BurntSushi";
|
||||||
repo = "ripgrep";
|
repo = "ripgrep";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "0z3f83vhy464k93bc55i9lr6z41163q96if938p9ndhx2q3a20ql";
|
sha256 = "0ha46vhma2diqxfgasdc9gwlkcrlhc4l65nayvdy4m2ah5bm4qp6";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1d6s01gmyfzb0vdf7flq6nvlapwcgbj0mzcprzyg4nj5gjkvznrn";
|
cargoSha256 = "0q44qa9myrzg42q0lvclpk5nypmf0q7v3xy5nnsb28j3imvcrs4p";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ asciidoc docbook_xsl libxslt ];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
mkdir -p "$out/man/man1"
|
mkdir -p "$out/man/man1"
|
||||||
cp "$src/doc/rg.1" "$out/man/man1"
|
cp target/release/build/ripgrep-*/out/rg.1 "$out/man/man1/"
|
||||||
|
|
||||||
|
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
|
||||||
|
cp target/release/build/ripgrep-*/out/rg.bash "$out/share/bash-completion/completions/"
|
||||||
|
cp target/release/build/ripgrep-*/out/rg.fish "$out/share/fish/vendor_completions.d/"
|
||||||
|
cp "$src/complete/_rg" "$out/share/zsh/site-functions/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user