2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub
|
2018-08-05 14:23:52 +02:00
|
|
|
, gtk3, wrapGAppsHook, gst_all_1, gobject-introspection
|
2021-05-07 23:18:14 +02:00
|
|
|
, python3Packages, gnome }:
|
2018-08-05 14:23:52 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
buildPythonApplication {
|
2018-08-05 14:23:52 +02:00
|
|
|
pname = "gscrabble";
|
2022-07-31 13:02:12 +02:00
|
|
|
version = "unstable-2020-04-21";
|
2018-08-05 14:23:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RaaH";
|
|
|
|
repo = "gscrabble";
|
2022-07-31 13:02:12 +02:00
|
|
|
rev = "aba37f062a6b183dcc084c453f395af1dc437ec8";
|
|
|
|
sha256 = "sha256-rYpPHgOlPRnlA+Nkvo/J+/8/vl24/Ssk55fTq9oNCz4=";
|
2018-08-05 14:23:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-06-22 13:49:31 +02:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
|
2018-08-05 14:23:52 +02:00
|
|
|
|
|
|
|
buildInputs = with gst_all_1; [
|
|
|
|
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
|
2023-06-22 13:49:31 +02:00
|
|
|
gnome.adwaita-icon-theme gtk3
|
2018-08-05 14:23:52 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ gst-python pygobject3 ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PYTHONPATH : "$out/share/GScrabble/modules"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-07-31 13:02:12 +02:00
|
|
|
# Fails to build, propably incompatible with latest Python
|
|
|
|
# error: Multiple top-level packages discovered in a flat-layout
|
|
|
|
# https://github.com/RaaH/gscrabble/issues/13
|
|
|
|
broken = true;
|
2018-08-05 14:23:52 +02:00
|
|
|
description = "Golden Scrabble crossword puzzle game";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/RaaH/gscrabble/";
|
2018-08-05 14:23:52 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2022-07-31 13:02:12 +02:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2018-08-05 14:23:52 +02:00
|
|
|
};
|
|
|
|
}
|