We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 966e7af commit 2ba2808Copy full SHA for 2ba2808
1 file changed
pkgs/development/libraries/libgit2/default.nix
@@ -33,6 +33,10 @@ stdenv.mkDerivation rec {
33
"-DUSE_HTTP_PARSER=system"
34
"-DUSE_SSH=ON"
35
"-DBUILD_SHARED_LIBS=${if staticBuild then "OFF" else "ON"}"
36
+ ] ++ lib.optionals stdenv.hostPlatform.isWindows [
37
+ "-DDLLTOOL=${stdenv.cc.bintools.targetPrefix}dlltool"
38
+ # For ws2_32, refered to by a `*.pc` file
39
+ "-DCMAKE_LIBRARY_PATH=${stdenv.cc.libc}/lib"
40
];
41
42
nativeBuildInputs = [ cmake python3 pkg-config ];
0 commit comments