@@ -1,18 +1,18 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, cmake
2−, zlib, python, libssh2, openssl, curl, http-parser
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2+, zlib, libssh2, openssl, http-parser, curl
33, libiconv, Security
44}:
55
6−stdenv.mkDerivation (rec {
7− name = "libgit2-${version}";
8− version = "0.26.6";
6+stdenv.mkDerivation rec {
7+ pname = "libgit2";
8+ version = "0.27.8";
99 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
1010
1111 src = fetchFromGitHub {
1212 owner = "libgit2";
1313 repo = "libgit2";
1414 rev = "v${version}";
15− sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
15+ sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
1616 };
1717
1818 cmakeFlags = [ "-DTHREADSAFE=ON" ];
@@ -22,17 +22,16 @@ stdenv.mkDerivation (rec {
2222 buildInputs = [ zlib libssh2 openssl http-parser curl ]
2323 ++ stdenv.lib.optional stdenv.isDarwin Security;
2424
25− propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
25+ propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
2626
2727 enableParallelBuilding = true;
2828
2929 doCheck = false; # hangs. or very expensive?
3030
31− meta = with stdenv.lib; {
31+ meta = {
3232 description = "The Git linkable library";
3333 homepage = https://libgit2.github.com/;
34− license = licenses.gpl2;
35− platforms = with platforms; all;
34+ license = stdenv.lib.licenses.gpl2;
35+ platforms = with stdenv.lib.platforms; all;
3636 };
37−} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
38−})
37+}