2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-04-03 18:54:34 +00:00
|
|
|
, fetchpatch
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-02-10 20:34:41 +00:00
|
|
|
, meson
|
|
|
|
, vala
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, itstool
|
|
|
|
, clutter-gtk
|
|
|
|
, libgee
|
2022-03-05 16:20:37 +00:00
|
|
|
, libgnome-games-support
|
2022-02-10 20:34:41 +00:00
|
|
|
, gnome
|
|
|
|
, gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-twenty-forty-eight";
|
|
|
|
version = "3.38.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-2048/${lib.versions.majorMinor version}/gnome-2048-${version}.tar.xz";
|
|
|
|
sha256 = "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2";
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
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";
|
|
|
|
sha256 = "Qpn/OJJwblRm5Pi453aU2HwbrNjsf+ftmSnns/5qZ9E=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter-gtk
|
|
|
|
libgee
|
2022-03-05 16:20:37 +00:00
|
|
|
libgnome-games-support
|
2022-02-10 20:34:41 +00:00
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = "gnome-2048";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-2048";
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Obtain the 2048 tile";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-2048";
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|