3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, vala, pkgconfig, wrapGAppsHook, gobject-introspection
, gettext, itstool, libxml2, python3, gnome3, glib, gtk3, librsvg }:
stdenv.mkDerivation rec {
pname = "gnome-chess";
2020-12-08 22:32:31 +00:00
version = "3.38.1";
src = fetchurl {
url = "mirror://gnome/sources/gnome-chess/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-12-08 22:32:31 +00:00
sha256 = "1bpmi5p5vvjdq2rlm5x9k4gpci8jbrjvdxr1q62h5znzq0vz0w0l";
};
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
'';
passthru = {
2018-03-14 01:02:59 +00:00
updateScript = gnome3.updateScript {
packageName = "gnome-chess";
attrPath = "gnome3.gnome-chess";
};
};
meta = with stdenv.lib; {
homepage = "https://wiki.gnome.org/Apps/Chess";
description = "Play the classic two-player boardgame of chess";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}