|
|
@ -1,7 +1,6 @@ |
|
|
|
{ lib |
|
|
|
{ lib |
|
|
|
, stdenv |
|
|
|
, stdenv |
|
|
|
, fetchFromGitHub |
|
|
|
, fetchFromGitHub |
|
|
|
, fetchpatch |
|
|
|
|
|
|
|
, cmake |
|
|
|
, cmake |
|
|
|
, pkg-config |
|
|
|
, pkg-config |
|
|
|
, python3 |
|
|
|
, python3 |
|
|
@ -16,23 +15,16 @@ |
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
stdenv.mkDerivation rec { |
|
|
|
pname = "libgit2"; |
|
|
|
pname = "libgit2"; |
|
|
|
version = "1.4.0"; |
|
|
|
version = "1.4.3"; |
|
|
|
# also check the following packages for updates: python3.pkgs.pygit2 and libgit2-glib |
|
|
|
# also check the following packages for updates: 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 = "sha256-21t7fD/5O+HIHUDEv8MqloDmAIm9sSpJYqreCD3Co2k="; |
|
|
|
sha256 = "sha256-WnRzH5uMVEStA5ns4GNgMD5YoLQoats9aPLfnz9RoQs="; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
patches = [ |
|
|
|
|
|
|
|
(fetchpatch { |
|
|
|
|
|
|
|
url = "https://github.com/libgit2/libgit2/commit/8bc9eda779b2e2602fc74944aba5d39198e0642f.patch"; |
|
|
|
|
|
|
|
sha256 = "sha256-r2i4+WsrxIpSwH0g/AikBdAajBncXb1zz0uOQB0h1Jk="; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmakeFlags = [ |
|
|
|
cmakeFlags = [ |
|
|
|
"-DTHREADSAFE=ON" |
|
|
|
"-DTHREADSAFE=ON" |
|
|
|
"-DUSE_HTTP_PARSER=system" |
|
|
|
"-DUSE_HTTP_PARSER=system" |
|
|
@ -48,11 +40,11 @@ stdenv.mkDerivation rec { |
|
|
|
|
|
|
|
|
|
|
|
doCheck = false; # hangs. or very expensive? |
|
|
|
doCheck = false; # hangs. or very expensive? |
|
|
|
|
|
|
|
|
|
|
|
meta = { |
|
|
|
meta = with lib; { |
|
|
|
description = "Linkable library implementation of Git that you can use in your application"; |
|
|
|
description = "Linkable library implementation of Git that you can use in your application"; |
|
|
|
homepage = "https://libgit2.org/"; |
|
|
|
homepage = "https://libgit2.org/"; |
|
|
|
license = lib.licenses.gpl2Plus; |
|
|
|
license = licenses.gpl2Plus; |
|
|
|
platforms = lib.platforms.all; |
|
|
|
platforms = platforms.all; |
|
|
|
maintainers = with lib.maintainers; [ ]; |
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|