git.iko.soy/typeable/nixpkgs
on master help sign in
libgit2: remove 0.26, default to 0.27
1081237Franz Pletz
pkgs/applications/version-management/git-and-tools/gitstatus/romkatv_libgit2.nix+2−2
@@ -1,6 +1,6 @@
1−{fetchFromGitHub, libgit2_0_27, ...}:
1+{fetchFromGitHub, libgit2, ...}:
2
2
3−libgit2_0_27.overrideAttrs (oldAttrs: rec {
3+libgit2.overrideAttrs (oldAttrs: rec {
4 cmakeFlags = oldAttrs.cmakeFlags ++ [
4 cmakeFlags = oldAttrs.cmakeFlags ++ [
5 "-DUSE_BUNDLED_ZLIB=ON"
5 "-DUSE_BUNDLED_ZLIB=ON"
6 "-DUSE_ICONV=OFF"
6 "-DUSE_ICONV=OFF"
pkgs/applications/version-management/git-and-tools/grv/default.nix+2−2
@@ -1,11 +1,11 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }:
1+{ stdenv, buildGoPackage, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
2let
2let
3 version = "0.3.1";
3 version = "0.3.1";
4in
4in
5buildGoPackage {
5buildGoPackage {
6 name = "grv-${version}";
6 name = "grv-${version}";
7
7
8− buildInputs = [ ncurses readline curl libgit2_0_27 ];
8+ buildInputs = [ ncurses readline curl libgit2 ];
9 nativeBuildInputs = [ pkgconfig ];
9 nativeBuildInputs = [ pkgconfig ];
10
10
11 goPackagePath = "github.com/rgburke/grv";
11 goPackagePath = "github.com/rgburke/grv";
pkgs/development/libraries/git2/0.27.nixdeleted−36
@@ -1,36 +0,0 @@
1−{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2−, zlib, libssh2, openssl, http-parser, curl
3−, libiconv, Security
4−}:
5−
6−stdenv.mkDerivation rec {
7− version = "0.27.8";
8− name = "libgit2-${version}";
9−
10− src = fetchFromGitHub {
11− owner = "libgit2";
12− repo = "libgit2";
13− rev = "v${version}";
14− sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
15− };
16−
17− cmakeFlags = [ "-DTHREADSAFE=ON" ];
18−
19− nativeBuildInputs = [ cmake python pkgconfig ];
20−
21− buildInputs = [ zlib libssh2 openssl http-parser curl ]
22− ++ stdenv.lib.optional stdenv.isDarwin Security;
23−
24− propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
25−
26− enableParallelBuilding = true;
27−
28− doCheck = false; # hangs. or very expensive?
29−
30− meta = {
31− description = "The Git linkable library";
32− homepage = https://libgit2.github.com/;
33− license = stdenv.lib.licenses.gpl2;
34− platforms = with stdenv.lib.platforms; all;
35− };
36−}
pkgs/development/libraries/git2/default.nix+11−12
@@ -1,18 +1,18 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, cmake
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2−, zlib, python, libssh2, openssl, curl, http-parser
2+, zlib, libssh2, openssl, http-parser, curl
3, libiconv, Security
3, libiconv, Security
4}:
4}:
5
5
6−stdenv.mkDerivation (rec {
6+stdenv.mkDerivation rec {
7− name = "libgit2-${version}";
7+ pname = "libgit2";
8− version = "0.26.6";
8+ version = "0.27.8";
9 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
9 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
10
10
11 src = fetchFromGitHub {
11 src = fetchFromGitHub {
12 owner = "libgit2";
12 owner = "libgit2";
13 repo = "libgit2";
13 repo = "libgit2";
14 rev = "v${version}";
14 rev = "v${version}";
15− sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
15+ sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
16 };
16 };
17
17
18 cmakeFlags = [ "-DTHREADSAFE=ON" ];
18 cmakeFlags = [ "-DTHREADSAFE=ON" ];
@@ -22,17 +22,16 @@ stdenv.mkDerivation (rec {
22 buildInputs = [ zlib libssh2 openssl http-parser curl ]
22 buildInputs = [ zlib libssh2 openssl http-parser curl ]
23 ++ stdenv.lib.optional stdenv.isDarwin Security;
23 ++ stdenv.lib.optional stdenv.isDarwin Security;
24
24
25− propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
25+ propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
26
26
27 enableParallelBuilding = true;
27 enableParallelBuilding = true;
28
28
29 doCheck = false; # hangs. or very expensive?
29 doCheck = false; # hangs. or very expensive?
30
30
31− meta = with stdenv.lib; {
31+ meta = {
32 description = "The Git linkable library";
32 description = "The Git linkable library";
33 homepage = https://libgit2.github.com/;
33 homepage = https://libgit2.github.com/;
34− license = licenses.gpl2;
34+ license = stdenv.lib.licenses.gpl2;
35− platforms = with platforms; all;
35+ platforms = with stdenv.lib.platforms; all;
36 };
36 };
37−} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
37+}
38−})
pkgs/development/python-modules/pygit2/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2_0_27, six, cffi }:
1+{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }:
2
2
3buildPythonPackage rec {
3buildPythonPackage rec {
4 pname = "pygit2";
4 pname = "pygit2";
@@ -10,7 +10,7 @@ buildPythonPackage rec {
10 };
10 };
11
11
12 preConfigure = lib.optionalString stdenv.isDarwin ''
12 preConfigure = lib.optionalString stdenv.isDarwin ''
13− export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib"
13+ export DYLD_LIBRARY_PATH="${libgit2}/lib"
14 '';
14 '';
15
15
16 patches = [ (fetchpatch {
16 patches = [ (fetchpatch {
@@ -19,7 +19,7 @@ buildPythonPackage rec {
19 sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
19 sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
20 }) ];
20 }) ];
21
21
22− propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi;
22+ propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
23
23
24 preCheck = ''
24 preCheck = ''
25 # disable tests that require networking
25 # disable tests that require networking
pkgs/top-level/all-packages.nix+1−7
@@ -1083,9 +1083,7 @@ in
1083
1083
1084 blockdiag = with python3Packages; toPythonApplication blockdiag;
1084 blockdiag = with python3Packages; toPythonApplication blockdiag;
1085
1085
1086− blsd = callPackage ../tools/misc/blsd {
1086+ blsd = callPackage ../tools/misc/blsd { };
1087− libgit2 = libgit2_0_27;
1088− };
1089
1087
1090 bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { };
1088 bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { };
1091
1089
@@ -10512,10 +10510,6 @@ in
10512 inherit (darwin.apple_sdk.frameworks) Security;
10510 inherit (darwin.apple_sdk.frameworks) Security;
10513 };
10511 };
10514
10512
10515− libgit2_0_27 = callPackage ../development/libraries/git2/0.27.nix {
10516− inherit (darwin.apple_sdk.frameworks) Security;
10517− };
10518−
10519 libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
10513 libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
10520
10514
10521 glbinding = callPackage ../development/libraries/glbinding { };
10515 glbinding = callPackage ../development/libraries/glbinding { };