diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libgit2')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libgit2/default.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libgit2/default.nix b/nixpkgs/pkgs/development/libraries/libgit2/default.nix index c0e3ab0aca40..3d7b6ff9e012 100644 --- a/nixpkgs/pkgs/development/libraries/libgit2/default.nix +++ b/nixpkgs/pkgs/development/libraries/libgit2/default.nix @@ -12,22 +12,24 @@ , libiconv , Security , staticBuild ? stdenv.hostPlatform.isStatic +# for passthru.tests +, libgit2-glib +, python3Packages }: stdenv.mkDerivation rec { pname = "libgit2"; - version = "1.5.0"; - # also check the following packages for updates: python3.pkgs.pygit2 and libgit2-glib + version = "1.6.4"; + # also check the following packages for updates: python3Packages.pygit2 and libgit2-glib src = fetchFromGitHub { owner = "libgit2"; repo = "libgit2"; rev = "v${version}"; - sha256 = "sha256-lXFQo+tt56BFoPgdkTfz6WdIngeotTm+8cAGcBP6XqY="; + hash = "sha256-lW3mokVKsbknVj2xsxEbeZH4IdKZ0aIgGutzenS0Eh0="; }; cmakeFlags = [ - "-DTHREADSAFE=ON" "-DUSE_HTTP_PARSER=system" "-DUSE_SSH=ON" "-DBUILD_SHARED_LIBS=${if staticBuild then "OFF" else "ON"}" @@ -42,6 +44,11 @@ stdenv.mkDerivation rec { doCheck = false; # hangs. or very expensive? + passthru.tests = { + inherit libgit2-glib; + inherit (python3Packages) pygit2; + }; + meta = with lib; { description = "Linkable library implementation of Git that you can use in your application"; homepage = "https://libgit2.org/"; |