ripgrep: use buildFeatures
This commit is contained in:
parent
59a143e206
commit
4b8d8fc923
|
@ -22,13 +22,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "1kfdgh8dra4jxgcdb0lln5wwrimz0dpp33bq3h7jgs8ngaq2a9wp";
|
cargoSha256 = "1kfdgh8dra4jxgcdb0lln5wwrimz0dpp33bq3h7jgs8ngaq2a9wp";
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional withPCRE2 "--features pcre2";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ asciidoctor installShellFiles ]
|
nativeBuildInputs = [ asciidoctor installShellFiles ]
|
||||||
++ lib.optional withPCRE2 pkg-config;
|
++ lib.optional withPCRE2 pkg-config;
|
||||||
buildInputs = lib.optional withPCRE2 pcre2
|
buildInputs = lib.optional withPCRE2 pcre2
|
||||||
++ lib.optional stdenv.isDarwin Security;
|
++ lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
|
buildFeatures = lib.optional withPCRE2 "pcre2";
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
installManPage $releaseDir/build/ripgrep-*/out/rg.1
|
installManPage $releaseDir/build/ripgrep-*/out/rg.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue