Merge pull request #181754 from ken-matsui/patch-1

libgit2: enable static build
This commit is contained in:
Sandro 2022-07-16 23:34:15 +02:00 committed by GitHub
commit c14b86d5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
, http-parser
, libiconv
, Security
, staticBuild ? stdenv.hostPlatform.isStatic
}:
stdenv.mkDerivation rec {
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
"-DTHREADSAFE=ON"
"-DUSE_HTTP_PARSER=system"
"-DUSE_SSH=ON"
"-DBUILD_SHARED_LIBS=${if staticBuild then "OFF" else "ON"}"
];
nativeBuildInputs = [ cmake python3 pkg-config ];