[Backport staging-24.11] libgit2: switch to pcre2 (#356867)

This commit is contained in:
Emily 2024-11-18 08:11:02 +00:00 committed by GitHub
commit 6099041fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@
, zlib
, libssh2
, openssl
, pcre
, pcre2
, libiconv
, Security
, staticBuild ? stdenv.hostPlatform.isStatic
@ -35,6 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
};
cmakeFlags = [
"-DREGEX_BACKEND=pcre2"
"-DUSE_HTTP_PARSER=system"
"-DUSE_SSH=ON"
(lib.cmakeBool "USE_GSSAPI" withGssapi)
@ -47,7 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake python3 pkg-config ];
buildInputs = [ zlib libssh2 openssl pcre llhttp ]
buildInputs = [ zlib libssh2 openssl pcre2 llhttp ]
++ lib.optional withGssapi krb5
++ lib.optional stdenv.hostPlatform.isDarwin Security;