2021-01-16 18:21:50 -08:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, vala, pkg-config, wrapGAppsHook, gobject-introspection
|
2018-09-03 13:22:54 -07:00
|
|
|
, gettext, itstool, libxml2, python3, gnome3, glib, gtk3, librsvg }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gnome-chess";
|
2020-12-08 14:32:31 -08:00
|
|
|
version = "3.38.1";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 05:21:58 -08:00
|
|
|
url = "mirror://gnome/sources/gnome-chess/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-12-08 14:32:31 -08:00
|
|
|
sha256 = "1bpmi5p5vvjdq2rlm5x9k4gpci8jbrjvdxr1q62h5znzq0vz0w0l";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2021-01-16 18:21:50 -08:00
|
|
|
nativeBuildInputs = [ meson ninja vala pkg-config gettext itstool libxml2 python3 wrapGAppsHook gobject-introspection ];
|
2019-02-13 13:47:50 -08:00
|
|
|
buildInputs = [ glib gtk3 librsvg gnome3.adwaita-icon-theme ];
|
2018-03-13 18:02:59 -07:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 12:07:20 -08:00
|
|
|
passthru = {
|
2018-03-13 18:02:59 -07:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-chess";
|
|
|
|
attrPath = "gnome3.gnome-chess";
|
|
|
|
};
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Chess";
|
2016-09-18 12:35:23 -07:00
|
|
|
description = "Play the classic two-player boardgame of chess";
|
2020-04-01 05:40:51 -07:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 12:35:23 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|