libgit2: 0.25.1 -> 0.26.0
This commit is contained in:
parent
1aef6f40bb
commit
ce1b0c05a5
43
pkgs/development/libraries/git2/0.25.nix
Normal file
43
pkgs/development/libraries/git2/0.25.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
|
||||||
|
, zlib, libssh2, openssl, http-parser, curl, libiconv
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (rec {
|
||||||
|
version = "0.25.1";
|
||||||
|
name = "libgit2-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "libgit2";
|
||||||
|
repo = "libgit2";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj";
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: `cargo` (rust's package manager) surfaced a serious bug in
|
||||||
|
# libgit2 when the `Security.framework` transport is used on Darwin.
|
||||||
|
# The upstream issue is tracked at
|
||||||
|
# https://github.com/libgit2/libgit2/issues/3885 - feel free to
|
||||||
|
# remove this patch as soon as it's resolved (i.E. when cargo is
|
||||||
|
# working fine without this patch)
|
||||||
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
./disable-security.framework.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = "-DTHREADSAFE=ON";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake python pkgconfig ];
|
||||||
|
|
||||||
|
buildInputs = [ zlib libssh2 openssl http-parser curl ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "The Git linkable library";
|
||||||
|
homepage = https://libgit2.github.com/;
|
||||||
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
platforms = with stdenv.lib.platforms; all;
|
||||||
|
};
|
||||||
|
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
|
||||||
|
NIX_LDFLAGS = "-liconv";
|
||||||
|
propagatedBuildInputs = [ libiconv ];
|
||||||
|
})
|
@ -1,28 +1,17 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, zlib, python, libssh2, openssl, curl, http-parser, libiconv }:
|
||||||
, zlib, libssh2, openssl, http-parser, curl, libiconv
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
version = "0.25.1";
|
|
||||||
name = "libgit2-${version}";
|
name = "libgit2-${version}";
|
||||||
|
version = "0.26.0";
|
||||||
|
# keep the version in sync with pythonPackages.pygit2 and gnome3.libgit2-glib
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libgit2";
|
owner = "libgit2";
|
||||||
repo = "libgit2";
|
repo = "libgit2";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj";
|
sha256 = "0zrrmfkfhd2xb4879z5khjb6xsdklrm01f1lscrs2ks68v25fk78";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: `cargo` (rust's package manager) surfaced a serious bug in
|
|
||||||
# libgit2 when the `Security.framework` transport is used on Darwin.
|
|
||||||
# The upstream issue is tracked at
|
|
||||||
# https://github.com/libgit2/libgit2/issues/3885 - feel free to
|
|
||||||
# remove this patch as soon as it's resolved (i.E. when cargo is
|
|
||||||
# working fine without this patch)
|
|
||||||
patches = stdenv.lib.optionals stdenv.isDarwin [
|
|
||||||
./disable-security.framework.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
cmakeFlags = "-DTHREADSAFE=ON";
|
cmakeFlags = "-DTHREADSAFE=ON";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python pkgconfig ];
|
nativeBuildInputs = [ cmake python pkgconfig ];
|
||||||
@ -31,11 +20,11 @@ stdenv.mkDerivation (rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "The Git linkable library";
|
description = "The Git linkable library";
|
||||||
homepage = https://libgit2.github.com/;
|
homepage = https://libgit2.github.com/;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = with stdenv.lib.platforms; all;
|
platforms = with platforms; all;
|
||||||
};
|
};
|
||||||
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
|
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
|
||||||
NIX_LDFLAGS = "-liconv";
|
NIX_LDFLAGS = "-liconv";
|
||||||
|
@ -8293,11 +8293,13 @@ with pkgs;
|
|||||||
|
|
||||||
icon-lang = callPackage ../development/interpreters/icon-lang { };
|
icon-lang = callPackage ../development/interpreters/icon-lang { };
|
||||||
|
|
||||||
libgit2 = callPackage ../development/libraries/git2 (
|
inherit (rec {
|
||||||
stdenv.lib.optionalAttrs stdenv.isDarwin {
|
arg = stdenv.lib.optionalAttrs stdenv.isDarwin {
|
||||||
inherit (darwin) libiconv;
|
inherit (darwin) libiconv;
|
||||||
}
|
};
|
||||||
);
|
libgit2 = callPackage ../development/libraries/git2 arg;
|
||||||
|
libgit2_0_25 = callPackage ../development/libraries/git2/0.25.nix arg;
|
||||||
|
}) libgit2 libgit2_0_25;
|
||||||
|
|
||||||
gle = callPackage ../development/libraries/gle { };
|
gle = callPackage ../development/libraries/gle { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user