1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 pkg-config,
7 gnome,
8 adwaita-icon-theme,
9 gtk3,
10 wrapGAppsHook3,
11 librsvg,
12 gsound,
13 gettext,
14 itstool,
15 libxml2,
16 meson,
17 ninja,
18 vala,
19 python3,
20 desktop-file-utils,
21}:
22
23stdenv.mkDerivation rec {
24 pname = "gnome-taquin";
25 version = "3.38.1";
26
27 src = fetchurl {
28 url = "mirror://gnome/sources/gnome-taquin/${lib.versions.majorMinor version}/gnome-taquin-${version}.tar.xz";
29 hash = "sha256-lts9j61JeSSnOQrRCKPvckMqHWLSRWyuXhk0BXAYgU8=";
30 };
31
32 patches = [
33 # Fix build with recent Vala.
34 (fetchpatch {
35 url = "https://gitlab.gnome.org/GNOME/gnome-taquin/-/commit/99dea5e7863e112f33f16e59898c56a4f1a547b3.patch";
36 hash = "sha256-U7djuMhb1XJaKAPyogQjaunOkbBK24r25YD7BgH05P4=";
37 })
38 (fetchpatch {
39 url = "https://gitlab.gnome.org/GNOME/gnome-taquin/-/commit/66be44dc20d114e449fc33156e3939fd05dfbb16.patch";
40 hash = "sha256-RN41RCLHlJyXTARSH9qjsmpYi1UFeMRssoYxRsbngDQ=";
41 })
42 ];
43
44 nativeBuildInputs = [
45 pkg-config
46 wrapGAppsHook3
47 meson
48 ninja
49 python3
50 gettext
51 itstool
52 libxml2
53 vala
54 desktop-file-utils
55 ];
56
57 buildInputs = [
58 gtk3
59 librsvg
60 gsound
61 adwaita-icon-theme
62 ];
63
64 passthru = {
65 updateScript = gnome.updateScript { packageName = "gnome-taquin"; };
66 };
67
68 meta = with lib; {
69 homepage = "https://gitlab.gnome.org/GNOME/gnome-taquin";
70 description = "Move tiles so that they reach their places";
71 mainProgram = "gnome-taquin";
72 teams = [ teams.gnome ];
73 license = licenses.gpl3Plus;
74 platforms = platforms.unix;
75 };
76}