diff options
author | Tim Steinbach <tim@nequissimus.com> | 2021-02-19 09:33:59 -0500 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2021-02-19 09:33:59 -0500 |
commit | d7e77e0202cc1351e52fcc753d47a612df32cf02 (patch) | |
tree | 820ed8d9145edcf4dd4149e388f10fd65c2f8c36 /pkgs/tools/text/ripgrep | |
parent | bc1d90eb252be9e157dcea7938397c6ff65a1429 (diff) | |
download | nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar.gz nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar.bz2 nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar.lz nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar.xz nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.tar.zst nixpkgs-d7e77e0202cc1351e52fcc753d47a612df32cf02.zip |
ripgrep: Add PCRE2 check
Diffstat (limited to 'pkgs/tools/text/ripgrep')
-rw-r--r-- | pkgs/tools/text/ripgrep/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
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; { |