mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
ripgrep: Add installCheckPhase (#113621)
* ripgrep: Add installCheckPhase
Convert test removed in dd63561bcb
to an installCheckPhase
* Update pkgs/tools/text/ripgrep/default.nix
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
681e6e60a4
commit
a54275ba76
@ -37,6 +37,14 @@ rustPlatform.buildRustPackage rec {
|
||||
installShellCompletion --zsh complete/_rg
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
file="$(mktemp)"
|
||||
echo "abc\nbcd\ncde" > "$file"
|
||||
$out/bin/rg -N 'bcd' "$file"
|
||||
$out/bin/rg -N 'cd' "$file"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
|
||||
homepage = "https://github.com/BurntSushi/ripgrep";
|
||||
|
Loading…
Reference in New Issue
Block a user