2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-10-23 05:42:21 +01:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-10-23 05:42:21 +01:00
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, gsound
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
2019-03-11 18:40:53 +00:00
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "iagno";
|
2020-10-11 17:39:21 +01:00
|
|
|
version = "3.38.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/iagno/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-11 17:39:21 +01:00
|
|
|
sha256 = "097dw1l92l73xah9l56ka5mi3dvx48ffpiv33ni5i5rqw0ng7fc4";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-03-25 15:32:26 +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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-11 18:40:53 +00:00
|
|
|
nativeBuildInputs = [
|
2020-10-23 05:42:21 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
desktop-file-utils
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
itstool
|
|
|
|
libxml2
|
2019-03-11 18:40:53 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2020-10-23 05:42:21 +01:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.adwaita-icon-theme
|
2020-10-23 05:42:21 +01:00
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
gsound
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-09-05 01:50:08 +01:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-09-05 01:50:08 +01:00
|
|
|
packageName = "iagno";
|
2021-05-07 22:18:14 +01:00
|
|
|
attrPath = "gnome.iagno";
|
2018-09-05 01:50:08 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Iagno";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Computer version of the game Reversi, more popularly called Othello";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2020-10-23 05:42:21 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|