Skip to content

Commit

Permalink
libgit2: Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Nov 24, 2023
1 parent 966e7af commit 2ba2808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/libgit2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ stdenv.mkDerivation rec {
"-DUSE_HTTP_PARSER=system"
"-DUSE_SSH=ON"
"-DBUILD_SHARED_LIBS=${if staticBuild then "OFF" else "ON"}"
] ++ lib.optionals stdenv.hostPlatform.isWindows [
"-DDLLTOOL=${stdenv.cc.bintools.targetPrefix}dlltool"
# For ws2_32, refered to by a `*.pc` file
"-DCMAKE_LIBRARY_PATH=${stdenv.cc.libc}/lib"
];

nativeBuildInputs = [ cmake python3 pkg-config ];
Expand Down

0 comments on commit 2ba2808

Please sign in to comment.