diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix b/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix new file mode 100644 index 000000000000..7747676f09e3 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/games/gnome-chess/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, meson, ninja, vala, pkgconfig, wrapGAppsHook, gobject-introspection +, gettext, itstool, libxml2, python3, gnome3, glib, gtk3, librsvg }: + +stdenv.mkDerivation rec { + pname = "gnome-chess"; + version = "3.36.1"; + + src = fetchurl { + url = "mirror://gnome/sources/gnome-chess/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "165bk8s3nngyqbikggspj4rff5nxxfkfcmgzjb4grmsrgbqwk5di"; + }; + + nativeBuildInputs = [ meson ninja vala pkgconfig gettext itstool libxml2 python3 wrapGAppsHook gobject-introspection ]; + buildInputs = [ glib gtk3 librsvg gnome3.adwaita-icon-theme ]; + + postPatch = '' + chmod +x meson_post_install.py + patchShebangs meson_post_install.py + ''; + + passthru = { + 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; + }; +} |