@@ -1,19 +1,26 @@
1−{ stdenv, fetchFromGitHub, rustPlatform, asciidoc, docbook_xsl, libxslt }:
1+{ stdenv, fetchFromGitHub, rustPlatform, asciidoc, docbook_xsl, libxslt
2+, Security
3+, withPCRE2 ? false, pcre2 ? null
4+}:
25
36rustPlatform.buildRustPackage rec {
47 name = "ripgrep-${version}";
5− version = "0.9.0";
8+ version = "0.10.0";
69
710 src = fetchFromGitHub {
811 owner = "BurntSushi";
912 repo = "ripgrep";
1013 rev = version;
11− sha256 = "089xffrqi4wm0w1lhy5iqxrcb82ca44bxl8qps4ilv0ih91vxwfj";
14+ sha256 = "017fz5kv1kv9jz7mb7vcxrklf5vybvfz2x61g6myzshqz4z1v1yb";
1215 };
1316
14− cargoSha256 = "1wsw7s1bc1gnpq4kjzkas5zf2snhpx9f6cyrrf6g5jr8l0hcbyih";
17+ cargoSha256 = "0k2b2vbklfdjk2zdc8ip480drc12gy1whlwj94p44hr3402azcgr";
18+
19+ cargoBuildFlags = stdenv.lib.optional withPCRE2 "--features pcre2";
1520
1621 nativeBuildInputs = [ asciidoc docbook_xsl libxslt ];
22+ buildInputs = (stdenv.lib.optional withPCRE2 pcre2)
23+ ++ (stdenv.lib.optional stdenv.isDarwin Security);
1724
1825 preFixup = ''
1926 mkdir -p "$out/man/man1"