Merge pull request #52068 from jtojnar/libglib2-0.27

libgit2: drop 0.26
This commit is contained in:
Jan Tojnar 2018-12-16 23:22:12 +01:00 committed by GitHub
commit 5dac5e1f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 35 additions and 67 deletions

View File

@ -7,6 +7,7 @@
, flatpak , flatpak
, glibcLocales , glibcLocales
, gnome3 , gnome3
, libgit2-glib
, gobject-introspection , gobject-introspection
, gspell , gspell
, gtk-doc , gtk-doc
@ -61,7 +62,7 @@ in stdenv.mkDerivation {
ctags ctags
flatpak flatpak
gnome3.devhelp gnome3.devhelp
gnome3.libgit2-glib libgit2-glib
gnome3.libpeas gnome3.libpeas
gnome3.vte gnome3.vte
gspell gspell

View File

@ -1,11 +1,11 @@
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }: { stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
let let
version = "0.3.0"; version = "0.3.0";
in in
buildGo19Package { buildGo19Package {
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";

View File

@ -38,7 +38,7 @@ lib.makeScope pkgs.newScope (self: with self; {
inherit (pkgs) atk glib gobject-introspection gspell webkitgtk gtk3 gtkmm3 inherit (pkgs) atk glib gobject-introspection gspell webkitgtk gtk3 gtkmm3
libgtop libgudev libhttpseverywhere librsvg libsecret gdk_pixbuf gtksourceview gtksourceview4 libgtop libgudev libhttpseverywhere librsvg libsecret gdk_pixbuf gtksourceview gtksourceview4
easytag meld orca rhythmbox shotwell gnome-usage easytag meld orca rhythmbox shotwell gnome-usage
clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda; clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib;
libsoup = pkgs.libsoup.override { gnomeSupport = true; }; libsoup = pkgs.libsoup.override { gnomeSupport = true; };
libchamplain = pkgs.libchamplain.override { libsoup = libsoup; }; libchamplain = pkgs.libchamplain.override { libsoup = libsoup; };
@ -371,8 +371,6 @@ lib.makeScope pkgs.newScope (self: with self; {
libgnome-games-support = callPackage ./misc/libgnome-games-support { }; libgnome-games-support = callPackage ./misc/libgnome-games-support { };
libgit2-glib = callPackage ./misc/libgit2-glib { };
libmediaart = callPackage ./misc/libmediaart { }; libmediaart = callPackage ./misc/libmediaart { };
gexiv2 = callPackage ./misc/gexiv2 { }; gexiv2 = callPackage ./misc/gexiv2 { };

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, vala, intltool, pkgconfig, gtk3, glib { stdenv, fetchurl, fetchpatch, vala, intltool, pkgconfig, gtk3, glib
, json-glib, wrapGAppsHook, libpeas, bash, gobject-introspection , json-glib, wrapGAppsHook, libpeas, bash, gobject-introspection
, gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, libsecret , gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, libsecret
, meson, ninja, python3 , meson, ninja, python3
@ -15,6 +15,13 @@ in stdenv.mkDerivation rec {
sha256 = "1fz8q1aiql6k740savdjh0vzbyhcflgf94cfdhvzcrrvm929n2ss"; sha256 = "1fz8q1aiql6k740savdjh0vzbyhcflgf94cfdhvzcrrvm929n2ss";
}; };
patches = [
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/gitg/commit/42bceea265f53fe7fd4a41037b936deed975fc6c.patch;
sha256 = "1xq245rsi1bi66lswk33pdiazfaagxf77836ds5q73900rx4r7fw";
})
];
postPatch = '' postPatch = ''
chmod +x meson_post_install.py chmod +x meson_post_install.py
patchShebangs meson_post_install.py patchShebangs meson_post_install.py

View File

@ -1,36 +0,0 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
, zlib, libssh2, openssl, http-parser, curl
, libiconv, Security
}:
stdenv.mkDerivation rec {
version = "0.27.7";
name = "libgit2-${version}";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
};
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;
};
}

View File

@ -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.7";
# keep the version in sync with pythonPackages.pygit2 and gnome3.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 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
}; };
cmakeFlags = [ "-DTHREADSAFE=ON" ]; cmakeFlags = [ "-DTHREADSAFE=ON" ];
@ -22,7 +22,7 @@ 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;
@ -34,5 +34,4 @@ stdenv.mkDerivation (rec {
license = licenses.gpl2; license = licenses.gpl2;
platforms = with platforms; all; platforms = with platforms; all;
}; };
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) { }
})

View File

@ -2,12 +2,12 @@
, gtk-doc, gobject-introspection, libgit2, glib, python3 }: , gtk-doc, gobject-introspection, libgit2, glib, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libgit2-glib-${version}"; pname = "libgit2-glib";
version = "0.26.4"; version = "0.27.7";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libgit2-glib/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0nhyqas110q7ingw97bvyjdb7v4dzch517dq8sn8c33s8910wqcp"; sha256 = "1hpgs8dx0dk25mc8jsizi2cwwhnmahrn3dyry9p7a1g48mnxyc8i";
}; };
postPatch = '' postPatch = ''
@ -18,7 +18,10 @@ stdenv.mkDerivation rec {
''; '';
passthru = { passthru = {
updateScript = gnome3.updateScript { packageName = "libgit2-glib"; attrPath = "gnome3.libgit2-glib"; }; updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -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

View File

@ -993,9 +993,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 { };
@ -9887,9 +9885,7 @@ in
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
libgit2_0_27 = callPackage ../development/libraries/git2/0.27.nix { libgit2-glib = callPackage ../development/libraries/libgit2-glib { };
inherit (darwin.apple_sdk.frameworks) Security;
};
glbinding = callPackage ../development/libraries/glbinding { }; glbinding = callPackage ../development/libraries/glbinding { };