@@ -1,18 +1,18 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, cmake
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2−, zlib, python, libssh2, openssl, curl, http-parser
2+, zlib, libssh2, openssl, http-parser, curl
3, libiconv, Security
3, libiconv, Security
6−stdenv.mkDerivation (rec {
6+stdenv.mkDerivation rec {
7− name = "libgit2-${version}";
7+ pname = "libgit2";
8− version = "0.26.6";
8+ version = "0.27.8";
9 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
9 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
11 src = fetchFromGitHub {
11 src = fetchFromGitHub {
12 owner = "libgit2";
12 owner = "libgit2";
13 repo = "libgit2";
13 repo = "libgit2";
14 rev = "v${version}";
14 rev = "v${version}";
15− sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
15+ sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
18 cmakeFlags = [ "-DTHREADSAFE=ON" ];
18 cmakeFlags = [ "-DTHREADSAFE=ON" ];
@@ -22,17 +22,16 @@ stdenv.mkDerivation (rec {
22 buildInputs = [ zlib libssh2 openssl http-parser curl ]
22 buildInputs = [ zlib libssh2 openssl http-parser curl ]
23 ++ stdenv.lib.optional stdenv.isDarwin Security;
23 ++ stdenv.lib.optional stdenv.isDarwin Security;
25− propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
25+ propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
27 enableParallelBuilding = true;
27 enableParallelBuilding = true;
29 doCheck = false; # hangs. or very expensive?
29 doCheck = false; # hangs. or very expensive?
31− meta = with stdenv.lib; {
31+ meta = {
32 description = "The Git linkable library";
32 description = "The Git linkable library";
33 homepage = https://libgit2.github.com/;
33 homepage = https://libgit2.github.com/;
34− license = licenses.gpl2;
34+ license = stdenv.lib.licenses.gpl2;
35− platforms = with platforms; all;
35+ platforms = with stdenv.lib.platforms; all;
37−} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
37+}