2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-10-27 00:29:36 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-10-27 00:29:36 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, gsound
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iagno";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "3.38.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/iagno/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "097dw1l92l73xah9l56ka5mi3dvx48ffpiv33ni5i5rqw0ng7fc4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with recent Vala.
|
|
|
|
# https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/15
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/e8a0aeec350ea80349582142c0e8e3cd3f1bce38.patch";
|
|
|
|
sha256 = "OO1x0Yx56UFzHTBsPAMYAjnJHlnTjdO1Vk7q6XU8wKQ=";
|
|
|
|
})
|
|
|
|
# https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/13
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/iagno/-/commit/508c0f94e5f182e50ff61be6e04f72574dee97cb.patch";
|
|
|
|
sha256 = "U7djuMhb1XJaKAPyogQjaunOkbBK24r25YD7BgH05P4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2020-10-27 00:29:36 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
desktop-file-utils
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
itstool
|
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-10-27 00:29:36 +00:00
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
gsound
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "iagno";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.iagno";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Iagno";
|
|
|
|
description = "Computer version of the game Reversi, more popularly called Othello";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "iagno";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2020-10-27 00:29:36 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|