2022-06-10 02:09:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, python3
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2022-06-10 02:09:18 +00:00
|
|
|
}:
|
2018-06-12 10:11:40 +00:00
|
|
|
|
2022-06-10 02:09:18 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-06-12 10:11:40 +00:00
|
|
|
pname = "gshogi";
|
|
|
|
version = "0.5.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johncheetham";
|
|
|
|
repo = "gshogi";
|
|
|
|
rev = "v${version}";
|
2022-06-10 02:09:18 +00:00
|
|
|
hash = "sha256-EPOIYPSFAhilxuZeYfuZ4Cd29ReJs/E4KNF5/lyzbxs=";
|
2018-06-12 10:11:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # no tests available
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
|
2018-06-12 10:11:40 +00:00
|
|
|
|
2022-06-10 02:09:18 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2018-06-12 10:11:40 +00:00
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
];
|
|
|
|
|
2024-05-05 21:04:52 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://johncheetham.com/projects/gshogi/";
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Graphical implementation of the Shogi board game, also known as Japanese Chess";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gshogi";
|
2022-06-10 02:09:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2018-06-12 10:11:40 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.ciil ];
|
|
|
|
};
|
|
|
|
}
|