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
5 changed files with 57 additions and 14 deletions

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