libgit2: add 0.21.x version as it's incompatible with the new 0.23

This commit is contained in:
Luca Bruno 2015-09-27 15:27:57 +02:00
parent be9bb0904e
commit 57d41aaed7
3 changed files with 28 additions and 1 deletions

View File

@ -369,12 +369,13 @@ let
gitg = callPackage ./misc/gitg { gitg = callPackage ./misc/gitg {
webkitgtk = webkitgtk24x; webkitgtk = webkitgtk24x;
libgit2 = pkgs.libgit2_0_21;
}; };
libgda = callPackage ./misc/libgda { }; libgda = callPackage ./misc/libgda { };
libgit2-glib = callPackage ./misc/libgit2-glib { libgit2-glib = callPackage ./misc/libgit2-glib {
libgit2 = pkgs.libgit2.override { libssh2 = null; }; libgit2 = pkgs.libgit2_0_21.override { libssh2 = null; };
}; };
libmediaart = callPackage ./misc/libmediaart { }; libmediaart = callPackage ./misc/libmediaart { };

View File

@ -0,0 +1,24 @@
{stdenv, fetchurl, cmake, zlib, python, libssh2, openssl, http-parser}:
stdenv.mkDerivation rec {
version = "0.21.2";
name = "libgit2-${version}";
src = fetchurl {
name = "${name}.tar.gz";
url = "https://github.com/libgit2/libgit2/tarball/v${version}";
sha256 = "0icf119lhha96rk8m6s38sczjr0idr7yczw6knby61m81a25a96y";
};
cmakeFlags = "-DTHREADSAFE=ON";
nativeBuildInputs = [ cmake python ];
buildInputs = [ zlib libssh2 openssl http-parser ];
meta = {
description = "the Git linkable library";
homepage = http://libgit2.github.com/;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
}

View File

@ -6276,6 +6276,8 @@ let
libgit2 = callPackage ../development/libraries/git2 { }; libgit2 = callPackage ../development/libraries/git2 { };
libgit2_0_21 = callPackage ../development/libraries/git2/0.21.nix { };
glew = callPackage ../development/libraries/glew { }; glew = callPackage ../development/libraries/glew { };
glfw = glfw3; glfw = glfw3;