ripgrep: Add PCRE2 check

This commit is contained in:
Tim Steinbach 2021-02-19 09:33:59 -05:00
parent bc1d90eb25
commit d7e77e0202
No known key found for this signature in database
GPG Key ID: 1B40229F19262402

View File

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