Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / desktops / gnome / games / iagno / default.nix
blob5d3edfe12170183bace838c1d0c3be9213682bda
1 { lib, stdenv
2 , fetchurl
3 , fetchpatch
4 , pkg-config
5 , gtk3
6 , gnome
7 , adwaita-icon-theme
8 , gdk-pixbuf
9 , librsvg
10 , wrapGAppsHook3
11 , itstool
12 , gsound
13 , libxml2
14 , meson
15 , ninja
16 , python3
17 , vala
18 , desktop-file-utils
21 stdenv.mkDerivation rec {
22   pname = "iagno";
23   version = "3.38.1";
25   src = fetchurl {
26     url = "mirror://gnome/sources/iagno/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
27     sha256 = "097dw1l92l73xah9l56ka5mi3dvx48ffpiv33ni5i5rqw0ng7fc4";
28   };
30   patches = [
31     # Fix build with recent Vala.
32     # https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/15
33     (fetchpatch {
34       url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/e8a0aeec350ea80349582142c0e8e3cd3f1bce38.patch";
35       sha256 = "OO1x0Yx56UFzHTBsPAMYAjnJHlnTjdO1Vk7q6XU8wKQ=";
36     })
37     # https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/13
38     (fetchpatch {
39       url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/508c0f94e5f182e50ff61be6e04f72574dee97cb.patch";
40       sha256 = "U7djuMhb1XJaKAPyogQjaunOkbBK24r25YD7BgH05P4=";
41     })
42   ];
44   nativeBuildInputs = [
45     meson
46     ninja
47     python3
48     vala
49     desktop-file-utils
50     pkg-config
51     wrapGAppsHook3
52     itstool
53     libxml2
54   ];
56   buildInputs = [
57     gtk3
58     adwaita-icon-theme
59     gdk-pixbuf
60     librsvg
61     gsound
62   ];
64   passthru = {
65     updateScript = gnome.updateScript {
66       packageName = "iagno";
67       attrPath = "gnome.iagno";
68     };
69   };
71   meta = with lib; {
72     homepage = "https://gitlab.gnome.org/GNOME/iagno";
73     description = "Computer version of the game Reversi, more popularly called Othello";
74     mainProgram = "iagno";
75     maintainers = teams.gnome.members;
76     license = licenses.gpl3Plus;
77     platforms = platforms.unix;
78   };