libgit2: fixup build on x86_64-darwin

https://hydra.nixos.org/build/229709542/nixlog/28/tail
This commit is contained in:
Vladimír Čunát 2023-07-30 07:17:17 +02:00
parent 167f6dfee4
commit 98b5317976
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, python3
@ -29,6 +30,14 @@ stdenv.mkDerivation rec {
hash = "sha256-3ZVBGd2T5DQKsDEc5a7pS0yz01+rDCszU9ZK0zxvfyQ=";
};
patches = [
(fetchpatch {
name = "darwin-errSSLNetworkTimeout.patch";
url = "https://github.com/libgit2/libgit2/commit/3e15292d8863da316a57be23fede04f443460686.patch";
hash = "sha256-N314YK7osO9L3hCXb+FcMoDM8iBW9Bt8D5O2Szdz7YA=";
})
];
cmakeFlags = [
"-DUSE_HTTP_PARSER=system"
"-DUSE_SSH=ON"