Jan Tojnar 2020-02-05 23:50:47 +01:00
parent a21c2fa3ea
commit e8a766883f
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,25 +1,25 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python3 { stdenv, fetchFromGitHub, cmake, pkgconfig, python3
, zlib, libssh2, openssl, http-parser, curl , zlib, libssh2, openssl, http-parser
, libiconv, Security , libiconv, Security
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libgit2"; pname = "libgit2";
version = "0.27.8"; version = "0.28.4";
# keep the version in sync with pythonPackages.pygit2 and libgit2-glib # keep the version in sync with python3.pkgs.pygit2 and libgit2-glib
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "libgit2"; owner = "libgit2";
repo = "libgit2"; repo = "libgit2";
rev = "v${version}"; rev = "v${version}";
sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9"; sha256 = "171b25aym4q88bidc4c76y4l6jmdwifm3q9zjqsll0wjhlkycfy1";
}; };
cmakeFlags = [ "-DTHREADSAFE=ON" ]; cmakeFlags = [ "-DTHREADSAFE=ON" ];
nativeBuildInputs = [ cmake python3 pkgconfig ]; nativeBuildInputs = [ cmake python3 pkgconfig ];
buildInputs = [ zlib libssh2 openssl http-parser curl ] buildInputs = [ zlib libssh2 openssl http-parser ]
++ stdenv.lib.optional stdenv.isDarwin Security; ++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv; propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;