Merge pull request #166392 from bobby285271/meson-fixes

authored by Doron Behar and committed by GitHub e05a7fa8 b61c4ace

+88 -17
+12 -1
pkgs/desktops/gnome/apps/gnome-books/default.nix
··· 1 - { lib, stdenv 1 + { stdenv 2 + , lib 2 3 , meson 3 4 , ninja 4 5 , gettext 5 6 , fetchurl 7 + , fetchpatch 6 8 , evince 7 9 , gjs 8 10 , pkg-config ··· 34 36 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 35 37 sha256 = "0c41l8m2di8h39bmk2fnhpwglwp6qhljmwqqbihzp4ay9976zrc5"; 36 38 }; 39 + 40 + patches = [ 41 + # Fix build with meson 0.61 42 + # https://gitlab.gnome.org/GNOME/gnome-books/-/merge_requests/62 43 + (fetchpatch { 44 + url = "https://gitlab.gnome.org/GNOME/gnome-books/-/commit/2663dcdaaaa71f067a4c2d0005eecc0fdf940bf5.patch"; 45 + sha256 = "v2mLzrxSWrkJ0N6seR8jNXX14FsneEPuE9ELLVUe6+E="; 46 + }) 47 + ]; 37 48 38 49 nativeBuildInputs = [ 39 50 meson
+54 -15
pkgs/desktops/gnome/core/gnome-screenshot/default.nix
··· 1 - { lib, stdenv, gettext, libxml2, libhandy, fetchurl, pkg-config, libcanberra-gtk3 2 - , gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils 3 - , gnome, gsettings-desktop-schemas }: 1 + { stdenv 2 + , lib 3 + , gettext 4 + , libxml2 5 + , libhandy 6 + , fetchurl 7 + , fetchpatch 8 + , pkg-config 9 + , libcanberra-gtk3 10 + , gtk3 11 + , glib 12 + , meson 13 + , ninja 14 + , python3 15 + , wrapGAppsHook 16 + , appstream-glib 17 + , desktop-file-utils 18 + , gnome 19 + , gsettings-desktop-schemas 20 + }: 4 21 5 - let 22 + stdenv.mkDerivation rec { 6 23 pname = "gnome-screenshot"; 7 24 version = "41.0"; 8 - in stdenv.mkDerivation rec { 9 - name = "${pname}-${version}"; 10 25 11 26 src = fetchurl { 12 - url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${name}.tar.xz"; 27 + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 13 28 sha256 = "Stt97JJkKPdCY9V5ZnPPFC5HILbnaPVGio0JM/mMlZc="; 14 29 }; 15 30 31 + patches = [ 32 + # Fix build with meson 0.61 33 + # https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/186 34 + (fetchpatch { 35 + url = "https://gitlab.gnome.org/GNOME/gnome-screenshot/-/commit/b60dad3c2536c17bd201f74ad8e40eb74385ed9f.patch"; 36 + sha256 = "Js83h/3xxcw2hsgjzGa5lAYFXVrt6MPhXOTh5dZTx/w="; 37 + }) 38 + ]; 39 + 40 + nativeBuildInputs = [ 41 + meson 42 + ninja 43 + pkg-config 44 + gettext 45 + appstream-glib 46 + libxml2 47 + desktop-file-utils 48 + python3 49 + wrapGAppsHook 50 + ]; 51 + 52 + buildInputs = [ 53 + gtk3 54 + glib 55 + libcanberra-gtk3 56 + libhandy 57 + gnome.adwaita-icon-theme 58 + gsettings-desktop-schemas 59 + ]; 60 + 16 61 doCheck = true; 17 62 18 63 postPatch = '' ··· 20 65 patchShebangs build-aux/postinstall.py 21 66 ''; 22 67 23 - nativeBuildInputs = [ meson ninja pkg-config gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ]; 24 - buildInputs = [ 25 - gtk3 glib libcanberra-gtk3 libhandy gnome.adwaita-icon-theme 26 - gsettings-desktop-schemas 27 - ]; 28 - 29 68 passthru = { 30 69 updateScript = gnome.updateScript { 31 70 packageName = pname; ··· 34 73 }; 35 74 36 75 meta = with lib; { 37 - homepage = "https://en.wikipedia.org/wiki/GNOME_Screenshot"; 76 + homepage = "https://gitlab.gnome.org/GNOME/gnome-screenshot"; 38 77 description = "Utility used in the GNOME desktop environment for taking screenshots"; 39 78 maintainers = teams.gnome.members; 40 - license = licenses.gpl2; 79 + license = licenses.gpl2Plus; 41 80 platforms = platforms.linux; 42 81 }; 43 82 }
+12 -1
pkgs/desktops/gnome/devtools/devhelp/default.nix
··· 1 - { lib, stdenv 1 + { stdenv 2 + , lib 2 3 , fetchurl 4 + , fetchpatch 3 5 , meson 4 6 , ninja 5 7 , pkg-config ··· 28 30 url = "mirror://gnome/sources/devhelp/${lib.versions.major version}/${pname}-${version}.tar.xz"; 29 31 sha256 = "7KqQsPTaqPsgMPbcaQv1M/+Zp3NDf+Dhis/oLZl/YNI="; 30 32 }; 33 + 34 + patches = [ 35 + # Fix build with meson 0.61 36 + # https://gitlab.gnome.org/GNOME/devhelp/-/issues/59 37 + (fetchpatch { 38 + url = "https://gitlab.gnome.org/GNOME/devhelp/-/commit/281bade14c1925cf9e7329fa8e9cf2d82512c66f.patch"; 39 + sha256 = "LmHoeQ0zJwOhuasAUYy8FfpDnEO+UNfEb293uKttYKo="; 40 + }) 41 + ]; 31 42 32 43 nativeBuildInputs = [ 33 44 meson
+10
pkgs/desktops/gnome/games/gnome-2048/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchurl 4 + , fetchpatch 4 5 , wrapGAppsHook 5 6 , meson 6 7 , vala ··· 22 23 url = "mirror://gnome/sources/gnome-2048/${lib.versions.majorMinor version}/gnome-2048-${version}.tar.xz"; 23 24 sha256 = "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"; 24 25 }; 26 + 27 + patches = [ 28 + # Fix build with meson 0.61 29 + # https://gitlab.gnome.org/GNOME/gnome-2048/-/merge_requests/21 30 + (fetchpatch { 31 + url = "https://gitlab.gnome.org/GNOME/gnome-2048/-/commit/194e22699f7166a016cd39ba26dd719aeecfc868.patch"; 32 + sha256 = "Qpn/OJJwblRm5Pi453aU2HwbrNjsf+ftmSnns/5qZ9E="; 33 + }) 34 + ]; 25 35 26 36 nativeBuildInputs = [ 27 37 itstool