From 1af7691a7913780847ebfae030e075f068c3057a Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 9 May 2026 00:15:30 +0200 Subject: [PATCH] gnome-2048: 3.38.2 -> 50.2 Signed-off-by: Marcin Serwin --- pkgs/by-name/gn/gnome-2048/package.nix | 58 +++++++++++++++----------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/gn/gnome-2048/package.nix b/pkgs/by-name/gn/gnome-2048/package.nix index 95c714747d45..f901180442b3 100644 --- a/pkgs/by-name/gn/gnome-2048/package.nix +++ b/pkgs/by-name/gn/gnome-2048/package.nix @@ -1,38 +1,39 @@ { lib, - stdenv, + rustPlatform, fetchurl, - fetchpatch, - wrapGAppsHook3, + wrapGAppsHook4, meson, vala, pkg-config, ninja, itstool, - clutter-gtk, - libgee, - libgnome-games-support, gnome, - gtk3, + gtk4, + libadwaita, + stdenv, + rustc, + cargo, + desktop-file-utils, + writableTmpDirAsHomeHook, }: stdenv.mkDerivation (finalAttrs: { - pname = "gnome-twenty-forty-eight"; - version = "3.38.2"; + pname = "gnome-2048"; + version = "50.2"; src = fetchurl { - url = "mirror://gnome/sources/gnome-2048/${lib.versions.majorMinor finalAttrs.version}/gnome-2048-${finalAttrs.version}.tar.xz"; - hash = "sha256-4nNn9cCaATZYHTNfV5E6r1pfGA4ymcxcGjDYWD55rmg="; + url = "mirror://gnome/sources/gnome-2048/${lib.versions.major finalAttrs.version}/gnome-2048-${finalAttrs.version}.tar.xz"; + hash = "sha256-bRXfaKYSjPDJnlmJCK+MZntzPcQAPvTSHUtMSkK9Lak="; }; - patches = [ - # Fix build with meson 0.61 - # https://gitlab.gnome.org/GNOME/gnome-2048/-/merge_requests/21 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/gnome-2048/-/commit/194e22699f7166a016cd39ba26dd719aeecfc868.patch"; - hash = "sha256-Qpn/OJJwblRm5Pi453aU2HwbrNjsf+ftmSnns/5qZ9E="; - }) - ]; + cargoDeps = rustPlatform.fetchCargoVendor { + inherit (finalAttrs) pname version src; + hash = "sha256-OcuhISJhm8uvcJjki86FSNiT5AoqUrILZaHcn1oZVtk="; + }; + + strictDeps = true; + __structuredArgs = true; nativeBuildInputs = [ itstool @@ -40,16 +41,25 @@ stdenv.mkDerivation (finalAttrs: { ninja pkg-config vala - wrapGAppsHook3 + wrapGAppsHook4 + rustPlatform.cargoSetupHook + rustc + cargo + desktop-file-utils ]; buildInputs = [ - clutter-gtk - libgee - libgnome-games-support - gtk3 + gtk4 + libadwaita ]; + nativeCheckInputs = [ + writableTmpDirAsHomeHook + rustPlatform.cargoCheckHook + ]; + + doCheck = true; + passthru = { updateScript = gnome.updateScript { packageName = "gnome-2048";