mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
libgit2: remove 0.26, default to 0.27
This commit is contained in:
parent
6daac686c5
commit
10812379fa
@ -1,6 +1,6 @@
|
|||||||
{fetchFromGitHub, libgit2_0_27, ...}:
|
{fetchFromGitHub, libgit2, ...}:
|
||||||
|
|
||||||
libgit2_0_27.overrideAttrs (oldAttrs: rec {
|
libgit2.overrideAttrs (oldAttrs: rec {
|
||||||
cmakeFlags = oldAttrs.cmakeFlags ++ [
|
cmakeFlags = oldAttrs.cmakeFlags ++ [
|
||||||
"-DUSE_BUNDLED_ZLIB=ON"
|
"-DUSE_BUNDLED_ZLIB=ON"
|
||||||
"-DUSE_ICONV=OFF"
|
"-DUSE_ICONV=OFF"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
|
||||||
let
|
let
|
||||||
version = "0.3.1";
|
version = "0.3.1";
|
||||||
in
|
in
|
||||||
buildGoPackage {
|
buildGoPackage {
|
||||||
name = "grv-${version}";
|
name = "grv-${version}";
|
||||||
|
|
||||||
buildInputs = [ ncurses readline curl libgit2_0_27 ];
|
buildInputs = [ ncurses readline curl libgit2 ];
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
goPackagePath = "github.com/rgburke/grv";
|
goPackagePath = "github.com/rgburke/grv";
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
|
|
||||||
, zlib, libssh2, openssl, http-parser, curl
|
|
||||||
, libiconv, Security
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "0.27.8";
|
|
||||||
name = "libgit2-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "libgit2";
|
|
||||||
repo = "libgit2";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
|
|
||||||
};
|
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,18 +1,18 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, cmake
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
|
||||||
, zlib, python, libssh2, openssl, curl, http-parser
|
, zlib, libssh2, openssl, http-parser, curl
|
||||||
, libiconv, Security
|
, libiconv, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libgit2-${version}";
|
pname = "libgit2";
|
||||||
version = "0.26.6";
|
version = "0.27.8";
|
||||||
# keep the version in sync with pythonPackages.pygit2 and libgit2-glib
|
# keep the version in sync with pythonPackages.pygit2 and libgit2-glib
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libgit2";
|
owner = "libgit2";
|
||||||
repo = "libgit2";
|
repo = "libgit2";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
|
sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [ "-DTHREADSAFE=ON" ];
|
cmakeFlags = [ "-DTHREADSAFE=ON" ];
|
||||||
@ -22,17 +22,16 @@ stdenv.mkDerivation (rec {
|
|||||||
buildInputs = [ zlib libssh2 openssl http-parser curl ]
|
buildInputs = [ zlib libssh2 openssl http-parser curl ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin Security;
|
++ stdenv.lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
|
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = false; # hangs. or very expensive?
|
doCheck = false; # hangs. or very expensive?
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = {
|
||||||
description = "The Git linkable library";
|
description = "The Git linkable library";
|
||||||
homepage = https://libgit2.github.com/;
|
homepage = https://libgit2.github.com/;
|
||||||
license = licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
platforms = with platforms; all;
|
platforms = with stdenv.lib.platforms; all;
|
||||||
};
|
};
|
||||||
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
|
}
|
||||||
})
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2_0_27, six, cffi }:
|
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pygit2";
|
pname = "pygit2";
|
||||||
@ -10,7 +10,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||||
export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib"
|
export DYLD_LIBRARY_PATH="${libgit2}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [ (fetchpatch {
|
patches = [ (fetchpatch {
|
||||||
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
|
sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
|
||||||
}) ];
|
}) ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi;
|
propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# disable tests that require networking
|
# disable tests that require networking
|
||||||
|
@ -1083,9 +1083,7 @@ in
|
|||||||
|
|
||||||
blockdiag = with python3Packages; toPythonApplication blockdiag;
|
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 { };
|
bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { };
|
||||||
|
|
||||||
@ -10512,10 +10510,6 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
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 { };
|
libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
|
||||||
|
|
||||||
glbinding = callPackage ../development/libraries/glbinding { };
|
glbinding = callPackage ../development/libraries/glbinding { };
|
||||||
|
Loading…
Reference in New Issue
Block a user