libgit2: enable static build

This commit is contained in:
Ken Matsui
2022-07-17 04:57:15 +09:00
parent 5ae35a88d3
commit fa3d1dc94b
@@ -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 ];