git.iko.soy/typeable/nixpkgs
on master help sign in
libgit2: remove 0.26, default to 0.27
commit10812379fa0e70b054102ff2d6ee0672eab7fb6b authorFranz Pletz <fpletz@fnordicwalking.de> dateMon 17 Jun 2019, 09:47 (7 years ago) parent6daac68
6 files changed+19−62
pkgs/applications/version-management/git-and-tools/gitstatus/romkatv_libgit2.nix+2−2 pkgs/applications/version-management/git-and-tools/grv/default.nix+2−2 pkgs/development/libraries/git2/0.27.nix−36 pkgs/development/libraries/git2/default.nix+11−12 pkgs/development/python-modules/pygit2/default.nix+3−3 pkgs/top-level/all-packages.nix+1−7
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, ...}:
22
3−libgit2_0_27.overrideAttrs (oldAttrs: rec {
3+libgit2.overrideAttrs (oldAttrs: rec {
44 cmakeFlags = oldAttrs.cmakeFlags ++ [
55 "-DUSE_BUNDLED_ZLIB=ON"
66 "-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 }:
22let
33 version = "0.3.1";
44in
55buildGoPackage {
66 name = "grv-${version}";
77
8− buildInputs = [ ncurses readline curl libgit2_0_27 ];
8+ buildInputs = [ ncurses readline curl libgit2 ];
99 nativeBuildInputs = [ pkgconfig ];
1010
1111 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
2−, zlib, python, libssh2, openssl, curl, http-parser
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2+, zlib, libssh2, openssl, http-parser, curl
33, libiconv, Security
44}:
55
6−stdenv.mkDerivation (rec {
7− name = "libgit2-${version}";
8− version = "0.26.6";
6+stdenv.mkDerivation rec {
7+ pname = "libgit2";
8+ version = "0.27.8";
99 # keep the version in sync with pythonPackages.pygit2 and libgit2-glib
1010
1111 src = fetchFromGitHub {
1212 owner = "libgit2";
1313 repo = "libgit2";
1414 rev = "v${version}";
15− sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
15+ sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
1616 };
1717
1818 cmakeFlags = [ "-DTHREADSAFE=ON" ];
@@ -22,17 +22,16 @@ stdenv.mkDerivation (rec {
2222 buildInputs = [ zlib libssh2 openssl http-parser curl ]
2323 ++ stdenv.lib.optional stdenv.isDarwin Security;
2424
25− propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
25+ propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
2626
2727 enableParallelBuilding = true;
2828
2929 doCheck = false; # hangs. or very expensive?
3030
31− meta = with stdenv.lib; {
31+ meta = {
3232 description = "The Git linkable library";
3333 homepage = https://libgit2.github.com/;
34− license = licenses.gpl2;
35− platforms = with platforms; all;
34+ license = stdenv.lib.licenses.gpl2;
35+ platforms = with stdenv.lib.platforms; all;
3636 };
37−} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
38−})
37+}
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 }:
22
33buildPythonPackage rec {
44 pname = "pygit2";
@@ -10,7 +10,7 @@ buildPythonPackage rec {
1010 };
1111
1212 preConfigure = lib.optionalString stdenv.isDarwin ''
13− export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib"
13+ export DYLD_LIBRARY_PATH="${libgit2}/lib"
1414 '';
1515
1616 patches = [ (fetchpatch {
@@ -19,7 +19,7 @@ buildPythonPackage rec {
1919 sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
2020 }) ];
2121
22− propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi;
22+ propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
2323
2424 preCheck = ''
2525 # disable tests that require networking
pkgs/top-level/all-packages.nix+1−7
@@ -1083,9 +1083,7 @@ in
10831083
10841084 blockdiag = with python3Packages; toPythonApplication blockdiag;
10851085
1086− blsd = callPackage ../tools/misc/blsd {
1087− libgit2 = libgit2_0_27;
1088− };
1086+ blsd = callPackage ../tools/misc/blsd { };
10891087
10901088 bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { };
10911089
@@ -10512,10 +10510,6 @@ in
1051210510 inherit (darwin.apple_sdk.frameworks) Security;
1051310511 };
1051410512
10515− libgit2_0_27 = callPackage ../development/libraries/git2/0.27.nix {
10516− inherit (darwin.apple_sdk.frameworks) Security;
10517− };
10518−
1051910513 libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
1052010514
1052110515 glbinding = callPackage ../development/libraries/glbinding { };