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