Merge pull request #172925 from maxeaubrey/gtk_backports

gtk patch backports
main
Jan Tojnar 2 years ago committed by GitHub
commit 570ff7bb27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      pkgs/development/libraries/gtk/3.x.nix
  2. 10
      pkgs/development/libraries/gtk/4.x.nix

@ -1,7 +1,7 @@
{ lib { lib
, stdenv , stdenv
, substituteAll , substituteAll
, fetchurl , fetchzip
, pkg-config , pkg-config
, gettext , gettext
, docbook-xsl-nons , docbook-xsl-nons
@ -60,7 +60,7 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gtk+3"; pname = "gtk+3";
version = "3.24.33"; version = "3.24.33-2022-03-11";
outputs = [ "out" "dev" ] ++ lib.optional withGtkDoc "devdoc"; outputs = [ "out" "dev" ] ++ lib.optional withGtkDoc "devdoc";
outputBin = "dev"; outputBin = "dev";
@ -70,9 +70,9 @@ stdenv.mkDerivation rec {
gtkCleanImmodulesCache gtkCleanImmodulesCache
]; ];
src = fetchurl { src = fetchzip {
url = "mirror://gnome/sources/gtk+/${lib.versions.majorMinor version}/gtk+-${version}.tar.xz"; url = "https://gitlab.gnome.org/GNOME/gtk/-/archive/9d1d2f0a6643570274121fc1473e46a6edc2e32d/gtk-9d1d2f0a6643570274121fc1473e46a6edc2e32d.tar.gz";
sha256 = "sha256-WIsGUi4l0VeemJtvnYob2/L+E83gGgTpBP80aiJeeAE="; sha256 = "sha256-+K1Kp3Sklrj/Ly0pSktfQwfcrIKpbf05NQbMDhWJZNI=";
}; };
patches = [ patches = [

@ -2,6 +2,7 @@
, stdenv , stdenv
, substituteAll , substituteAll
, fetchurl , fetchurl
, fetchpatch
, pkg-config , pkg-config
, gettext , gettext
, graphene , graphene
@ -77,6 +78,15 @@ stdenv.mkDerivation rec {
sha256 = "pXrNDkSCmBcA/fhllsdBPLYe9H915HR/2oCegjG42Ww="; sha256 = "pXrNDkSCmBcA/fhllsdBPLYe9H915HR/2oCegjG42Ww=";
}; };
patches = [
# Fix GNOME Control Center crash.
# https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4670
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/ae0166973795e750f08b89f9f0ef974d7ac48bc7.patch";
sha256 = "qPOplocE+RcTFIEveJe8YLKiUpe7o6CiA834rZpS0Fs=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
gettext gettext
gobject-introspection gobject-introspection

Loading…
Cancel
Save