nixpkgs/pkgs/games/gshogi/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

42 lines
883 B
Nix

{ lib
, fetchFromGitHub
, gobject-introspection
, gtk3
, python3
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "gshogi";
version = "0.5.1";
src = fetchFromGitHub {
owner = "johncheetham";
repo = "gshogi";
rev = "v${version}";
hash = "sha256-EPOIYPSFAhilxuZeYfuZ4Cd29ReJs/E4KNF5/lyzbxs=";
};
doCheck = false; # no tests available
buildInputs = [
gtk3
];
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
pycairo
];
meta = with lib; {
homepage = "http://johncheetham.com/projects/gshogi/";
description = "A graphical implementation of the Shogi board game, also known as Japanese Chess";
mainProgram = "gshogi";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.ciil ];
};
}