From 4b8d8fc923512256f83f72f9f76c1a688c0acb57 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 15 Nov 2021 18:52:56 -0500 Subject: [PATCH] ripgrep: use buildFeatures --- pkgs/tools/text/ripgrep/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/text/ripgrep/default.nix b/pkgs/tools/text/ripgrep/default.nix index 3fa202135f5..022f8bd25bb 100644 --- a/pkgs/tools/text/ripgrep/default.nix +++ b/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