evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / gn / gnome-2048 / package.nix
blob2a1e8cf1c613f43e535c52eeab02977e3531631a
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   wrapGAppsHook3,
7   meson,
8   vala,
9   pkg-config,
10   ninja,
11   itstool,
12   clutter-gtk,
13   libgee,
14   libgnome-games-support,
15   gnome,
16   gtk3,
19 stdenv.mkDerivation (finalAttrs: {
20   pname = "gnome-twenty-forty-eight";
21   version = "3.38.2";
23   src = fetchurl {
24     url = "mirror://gnome/sources/gnome-2048/${lib.versions.majorMinor finalAttrs.version}/gnome-2048-${finalAttrs.version}.tar.xz";
25     hash = "sha256-4nNn9cCaATZYHTNfV5E6r1pfGA4ymcxcGjDYWD55rmg=";
26   };
28   patches = [
29     # Fix build with meson 0.61
30     # https://gitlab.gnome.org/GNOME/gnome-2048/-/merge_requests/21
31     (fetchpatch {
32       url = "https://gitlab.gnome.org/GNOME/gnome-2048/-/commit/194e22699f7166a016cd39ba26dd719aeecfc868.patch";
33       hash = "sha256-Qpn/OJJwblRm5Pi453aU2HwbrNjsf+ftmSnns/5qZ9E=";
34     })
35   ];
37   nativeBuildInputs = [
38     itstool
39     meson
40     ninja
41     pkg-config
42     vala
43     wrapGAppsHook3
44   ];
46   buildInputs = [
47     clutter-gtk
48     libgee
49     libgnome-games-support
50     gtk3
51   ];
53   passthru = {
54     updateScript = gnome.updateScript {
55       packageName = "gnome-2048";
56     };
57   };
59   meta = with lib; {
60     homepage = "https://gitlab.gnome.org/GNOME/gnome-2048";
61     changelog = "https://gitlab.gnome.org/GNOME/gnome-2048/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
62     description = "Obtain the 2048 tile";
63     mainProgram = "gnome-2048";
64     maintainers = teams.gnome.members;
65     license = licenses.gpl3Plus;
66     platforms = platforms.linux;
67   };