Revert "libgit2: 0.26.6 → 0.27.7"

This reverts commit cc50638176 because
it breaks cargo (again, see fca4fbeba9):

  $ cargo build
      Updating crates.io index
  Segmentation fault
This commit is contained in:
Eelco Dolstra 2019-01-11 10:45:23 +01:00
parent 10b50b661b
commit ac97ba25ae
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
5 changed files with 57 additions and 14 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }:
let
version = "0.3.1";
in
buildGo19Package {
name = "grv-${version}";
buildInputs = [ ncurses readline curl libgit2 ];
buildInputs = [ ncurses readline curl libgit2_0_27 ];
nativeBuildInputs = [ pkgconfig ];
goPackagePath = "github.com/rgburke/grv";

View File

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
, zlib, libssh2, openssl, http-parser, curl
, libiconv, Security
}:
stdenv.mkDerivation rec {
version = "0.27.7";
name = "libgit2-${version}";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
};
cmakeFlags = [ "-DTHREADSAFE=ON" ];
nativeBuildInputs = [ cmake python pkgconfig ];
buildInputs = [ zlib libssh2 openssl http-parser curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
enableParallelBuilding = true;
doCheck = false; # hangs. or very expensive?
meta = {
description = "The Git linkable library";
homepage = https://libgit2.github.com/;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
}

View File

@ -1,18 +1,18 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
, zlib, libssh2, openssl, http-parser, curl
{ stdenv, fetchFromGitHub, pkgconfig, cmake
, zlib, python, libssh2, openssl, curl, http-parser
, libiconv, Security
}:
stdenv.mkDerivation rec {
pname = "libgit2";
version = "0.27.7";
stdenv.mkDerivation (rec {
name = "libgit2-${version}";
version = "0.26.6";
# keep the version in sync with pythonPackages.pygit2 and libgit2-glib
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
};
cmakeFlags = [ "-DTHREADSAFE=ON" ];
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib libssh2 openssl http-parser curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
enableParallelBuilding = true;
@ -34,4 +34,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
platforms = with platforms; all;
};
}
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
})

View File

@ -1,4 +1,4 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }:
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2_0_27, six, cffi }:
buildPythonPackage rec {
pname = "pygit2";
@ -10,7 +10,7 @@ buildPythonPackage rec {
};
preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib"
'';
patches = [ (fetchpatch {
@ -19,7 +19,7 @@ buildPythonPackage rec {
sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
}) ];
propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi;
preCheck = ''
# disable tests that require networking

View File

@ -1007,7 +1007,9 @@ in
blockdiag = with python3Packages; toPythonApplication blockdiag;
blsd = callPackage ../tools/misc/blsd { };
blsd = callPackage ../tools/misc/blsd {
libgit2 = libgit2_0_27;
};
bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { };
@ -9919,6 +9921,10 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
libgit2_0_27 = callPackage ../development/libraries/git2/0.27.nix {
inherit (darwin.apple_sdk.frameworks) Security;
};
libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
glbinding = callPackage ../development/libraries/glbinding { };