lol
1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 gtk3,
6 wrapGAppsHook3,
7 gst_all_1,
8 gobject-introspection,
9 gst-python,
10 pygobject3,
11 adwaita-icon-theme,
12}:
13
14buildPythonApplication {
15 pname = "gscrabble";
16 version = "unstable-2020-04-21";
17
18 src = fetchFromGitHub {
19 owner = "RaaH";
20 repo = "gscrabble";
21 rev = "aba37f062a6b183dcc084c453f395af1dc437ec8";
22 sha256 = "sha256-rYpPHgOlPRnlA+Nkvo/J+/8/vl24/Ssk55fTq9oNCz4=";
23 };
24
25 doCheck = false;
26
27 nativeBuildInputs = [
28 wrapGAppsHook3
29 gobject-introspection
30 ];
31
32 buildInputs = with gst_all_1; [
33 gst-plugins-base
34 gst-plugins-good
35 gst-plugins-ugly
36 gst-plugins-bad
37 adwaita-icon-theme
38 gtk3
39 ];
40
41 propagatedBuildInputs = [
42 gst-python
43 pygobject3
44 ];
45
46 preFixup = ''
47 gappsWrapperArgs+=(
48 --prefix PYTHONPATH : "$out/share/GScrabble/modules"
49 )
50 '';
51
52 meta = with lib; {
53 # Fails to build, probably incompatible with latest Python
54 # error: Multiple top-level packages discovered in a flat-layout
55 # https://github.com/RaaH/gscrabble/issues/13
56 broken = true;
57 description = "Golden Scrabble crossword puzzle game";
58 homepage = "https://github.com/RaaH/gscrabble/";
59 license = licenses.gpl2Plus;
60 platforms = platforms.linux;
61 maintainers = with maintainers; [ onny ];
62 };
63}