btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ia / iagno / package.nix
blob8e5aff5838c6e255927db6a0f6bfbac24804905e
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   pkg-config,
7   gtk3,
8   gnome,
9   adwaita-icon-theme,
10   gdk-pixbuf,
11   librsvg,
12   wrapGAppsHook3,
13   itstool,
14   gsound,
15   libxml2,
16   meson,
17   ninja,
18   python3,
19   vala,
20   desktop-file-utils,
23 stdenv.mkDerivation rec {
24   pname = "iagno";
25   version = "3.38.1";
27   src = fetchurl {
28     url = "mirror://gnome/sources/iagno/${lib.versions.majorMinor version}/iagno-${version}.tar.xz";
29     hash = "sha256-hLnzLOA4l1iiHWPH6xwifbcRa1HTFJqg6uNQkWjg7SQ=";
30   };
32   patches = [
33     # Fix build with recent Vala.
34     # https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/15
35     (fetchpatch {
36       url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/e8a0aeec350ea80349582142c0e8e3cd3f1bce38.patch";
37       hash = "sha256-OO1x0Yx56UFzHTBsPAMYAjnJHlnTjdO1Vk7q6XU8wKQ=";
38     })
39     # https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/13
40     (fetchpatch {
41       url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/508c0f94e5f182e50ff61be6e04f72574dee97cb.patch";
42       hash = "sha256-U7djuMhb1XJaKAPyogQjaunOkbBK24r25YD7BgH05P4=";
43     })
44   ];
46   nativeBuildInputs = [
47     meson
48     ninja
49     python3
50     vala
51     desktop-file-utils
52     pkg-config
53     wrapGAppsHook3
54     itstool
55     libxml2
56   ];
58   buildInputs = [
59     gtk3
60     adwaita-icon-theme
61     gdk-pixbuf
62     librsvg
63     gsound
64   ];
66   passthru = {
67     updateScript = gnome.updateScript { packageName = "iagno"; };
68   };
70   meta = with lib; {
71     homepage = "https://gitlab.gnome.org/GNOME/iagno";
72     description = "Computer version of the game Reversi, more popularly called Othello";
73     mainProgram = "iagno";
74     maintainers = teams.gnome.members;
75     license = licenses.gpl3Plus;
76     platforms = platforms.unix;
77   };