git.iko.soy/typeable/nixpkgs
on master help sign in
ripgrep: 0.9.0 -> 0.10.0 (#46331)
commit3b4ab85f01673e7573f5e740fa50bbaf0174c03b authorVladyslav M <dywedir@pm.me> dateSat 8 Sep 2018, 15:21 (8 years ago) parent37032db
2 files changed+15−5
pkgs/tools/text/ripgrep/default.nix+11−4 pkgs/top-level/all-packages.nix+4−1
pkgs/tools/text/ripgrep/default.nix+11−4
@@ -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"
pkgs/top-level/all-packages.nix+4−1
@@ -2911,7 +2911,10 @@ with pkgs;
29112911 }) (x: { configureFlags = x.configureFlags ++ ["--with-cgraph=no"];});
29122912
29132913 grin = callPackage ../tools/text/grin { };
2914− ripgrep = callPackage ../tools/text/ripgrep { };
2914+
2915+ ripgrep = callPackage ../tools/text/ripgrep {
2916+ inherit (darwin.apple_sdk.frameworks) Security;
2917+ };
29152918
29162919 grive2 = callPackage ../tools/filesystems/grive2 { };
29172920