nixpkgs-suyu/pkgs/games/gshogi/default.nix
Artturin 9999bf7a21 treewide: gobject-introspection from buildInputs to nativeBuildInputs
gobject-introspection should be in nativeBuildInputs for cross to work
properly (so propagations and hook work properly)
2023-06-28 22:33:40 +03:00

40 lines
855 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";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.ciil ];
};
}