Merge pull request #113178 from danieldk/ripgrep-pcre2-shared
ripgrep: link PCRE2 dynamically
This commit is contained in:
commit
e108c2a998
|
@ -4,6 +4,7 @@
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, asciidoctor
|
, asciidoctor
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, pkg-config
|
||||||
, Security
|
, Security
|
||||||
, withPCRE2 ? true
|
, withPCRE2 ? true
|
||||||
, pcre2 ? null
|
, pcre2 ? null
|
||||||
|
@ -24,9 +25,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional withPCRE2 "--features pcre2";
|
cargoBuildFlags = lib.optional withPCRE2 "--features pcre2";
|
||||||
|
|
||||||
nativeBuildInputs = [ asciidoctor installShellFiles ];
|
nativeBuildInputs = [ asciidoctor installShellFiles ]
|
||||||
|
++ 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);
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
installManPage $releaseDir/build/ripgrep-*/out/rg.1
|
installManPage $releaseDir/build/ripgrep-*/out/rg.1
|
||||||
|
|
Loading…
Reference in New Issue