Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / desktops / gnome / games / gnome-2048 / default.nix
blobfc04ee0b8f1e7ea73e2db1706ba7a7fd61b0d54e
1 { lib
2 , stdenv
3 , fetchurl
4 , fetchpatch
5 , wrapGAppsHook3
6 , meson
7 , vala
8 , pkg-config
9 , ninja
10 , itstool
11 , clutter-gtk
12 , libgee
13 , libgnome-games-support
14 , gnome
15 , gtk3
18 stdenv.mkDerivation rec {
19   pname = "gnome-twenty-forty-eight";
20   version = "3.38.2";
22   src = fetchurl {
23     url = "mirror://gnome/sources/gnome-2048/${lib.versions.majorMinor version}/gnome-2048-${version}.tar.xz";
24     sha256 = "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2";
25   };
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   ];
36   nativeBuildInputs = [
37     itstool
38     meson
39     ninja
40     pkg-config
41     vala
42     wrapGAppsHook3
43   ];
45   buildInputs = [
46     clutter-gtk
47     libgee
48     libgnome-games-support
49     gtk3
50   ];
52   passthru = {
53     updateScript = gnome.updateScript {
54       packageName = "gnome-2048";
55     };
56   };
58   meta = with lib; {
59     homepage = "https://gitlab.gnome.org/GNOME/gnome-2048";
60     description = "Obtain the 2048 tile";
61     mainProgram = "gnome-2048";
62     maintainers = teams.gnome.members;
63     license = licenses.gpl3Plus;
64     platforms = platforms.linux;
65   };