From d7e77e0202cc1351e52fcc753d47a612df32cf02 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Fri, 19 Feb 2021 09:33:59 -0500 Subject: [PATCH] ripgrep: Add PCRE2 check --- pkgs/tools/text/ripgrep/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/text/ripgrep/default.nix b/pkgs/tools/text/ripgrep/default.nix index 3ec81b62c48..8c9eef9cc3d 100644 --- a/pkgs/tools/text/ripgrep/default.nix +++ b/pkgs/tools/text/ripgrep/default.nix @@ -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; {