Skip to content

Commit

Permalink
Merge pull request #81496 from r-ryantm/auto-update/libgit2
Browse files Browse the repository at this point in the history
libgit2: 0.28.4 -> 0.99.0
  • Loading branch information
jtojnar authored Mar 9, 2020
2 parents dc55150 + b0be937 commit 6301e0a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
11 changes: 7 additions & 4 deletions pkgs/development/libraries/git2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@

stdenv.mkDerivation rec {
pname = "libgit2";
version = "0.28.4";
version = "0.99.0";
# keep the version in sync with python3.pkgs.pygit2 and libgit2-glib

src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "171b25aym4q88bidc4c76y4l6jmdwifm3q9zjqsll0wjhlkycfy1";
sha256 = "0qxzv49ip378g1n7hrbifb9c6pys2kj1hnxcafmbb94gj3pgd9kg";
};

cmakeFlags = [ "-DTHREADSAFE=ON" ];
cmakeFlags = [
"-DTHREADSAFE=ON"
"-DUSE_HTTP_PARSER=system"
];

nativeBuildInputs = [ cmake python3 pkgconfig ];

Expand All @@ -30,7 +33,7 @@ stdenv.mkDerivation rec {

meta = {
description = "The Git linkable library";
homepage = https://libgit2.github.com/;
homepage = "https://libgit2.github.com/";
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/libgit2-glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

stdenv.mkDerivation rec {
pname = "libgit2-glib";
version = "0.28.0.1";
version = "0.99.0.1";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7";
sha256 = "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0";
};

postPatch = ''
Expand Down Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
description = "A glib wrapper library around the libgit2 git access library";
homepage = https://wiki.gnome.org/Projects/Libgit2-glib;
homepage = "https://wiki.gnome.org/Projects/Libgit2-glib";
license = licenses.lgpl21;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
Expand Down
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/pygit2/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, libgit2, pytestCheckHook, cffi, cacert }:
{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, libgit2, cached-property, pytestCheckHook, cffi, cacert }:

buildPythonPackage rec {
pname = "pygit2";
version = "1.0.3";
version = "1.1.1";

src = fetchPypi {
inherit pname version;
sha256 = "1ql7hkcxrh8yszglrg7d3y0ivh1l56xdc3j34j2fjy4qq06ifv6y";
sha256 = "klXVB9XYe/It/VeZeniQgBAzH8IfmoPsoSGlP2V76zw=";
};

preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
'';

propagatedBuildInputs = [ libgit2 ] ++ lib.optional (!isPyPy) cffi;
buildInputs = [
libgit2
];

propagatedBuildInputs = [
cached-property
] ++ lib.optional (!isPyPy) cffi;

checkInputs = [ pytestCheckHook ];

Expand Down

0 comments on commit 6301e0a

Please sign in to comment.