git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113691 from NeQuissimus/ripgrep_pcre2

ripgrep: Add PCRE2 check

commit40652f8603bc9dea36c1b4c1c64da5320fccc554 authorDaniël de Kok <me@danieldk.eu> dateFri 19 Feb 2021, 15:53 (6 years ago) parente88bfd7d7e77e0
1 file changed+2
pkgs/tools/text/ripgrep/default.nix+2
pkgs/tools/text/ripgrep/default.nix+2
@@ -42,6 +42,8 @@ rustPlatform.buildRustPackage rec {
4242 echo "abc\nbcd\ncde" > "$file"
4343 $out/bin/rg -N 'bcd' "$file"
4444 $out/bin/rg -N 'cd' "$file"
45+ '' + lib.optionalString withPCRE2 ''
46+ echo '(a(aa)aa)' | $out/bin/rg -P '\((a*|(?R))*\)'
4547 '';
4648
4749 meta = with lib; {