mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #81496 from r-ryantm/auto-update/libgit2
libgit2: 0.28.4 -> 0.99.0
This commit is contained in:
commit
6301e0af06
@ -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 ];
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
@ -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 = ''
|
||||
@ -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;
|
||||
|
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user