Merge pull request #113691 from NeQuissimus/ripgrep_pcre2

ripgrep: Add PCRE2 check
This commit is contained in:
Daniël de Kok 2021-02-19 15:53:10 +01:00 committed by GitHub
commit 40652f8603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ rustPlatform.buildRustPackage rec {
echo "abc\nbcd\ncde" > "$file" echo "abc\nbcd\ncde" > "$file"
$out/bin/rg -N 'bcd' "$file" $out/bin/rg -N 'bcd' "$file"
$out/bin/rg -N 'cd' "$file" $out/bin/rg -N 'cd' "$file"
'' + lib.optionalString withPCRE2 ''
echo '(a(aa)aa)' | $out/bin/rg -P '\((a*|(?R))*\)'
''; '';
meta = with lib; { meta = with lib; {