ripgrep: use buildFeatures

main
figsoda 3 years ago
parent 59a143e206
commit 4b8d8fc923
  1. 4
      pkgs/tools/text/ripgrep/default.nix

@ -22,13 +22,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1kfdgh8dra4jxgcdb0lln5wwrimz0dpp33bq3h7jgs8ngaq2a9wp";
cargoBuildFlags = lib.optional withPCRE2 "--features pcre2";
nativeBuildInputs = [ asciidoctor installShellFiles ]
++ lib.optional withPCRE2 pkg-config;
buildInputs = lib.optional withPCRE2 pcre2
++ lib.optional stdenv.isDarwin Security;
buildFeatures = lib.optional withPCRE2 "pcre2";
preFixup = ''
installManPage $releaseDir/build/ripgrep-*/out/rg.1

Loading…
Cancel
Save