@@ -0,0 +1,68 @@
1+{ lib
2+, fetchFromGitLab
3+, meson
4+, gobject-introspection
5+, pkg-config
6+, ninja
7+, python3
8+, wrapGAppsHook
9+, gtk3
10+, gdk-pixbuf
11+, webkitgtk
12+, gtksourceview4
13+, libhandy
14+, glib-networking
15+}:
16+
17+python3.pkgs.buildPythonApplication rec {
18+ pname = "giara";
19+ version = "0.3";
20+
21+ format = "other";
22+
23+ src = fetchFromGitLab {
24+ domain = "gitlab.gnome.org";
25+ owner = "World";
26+ repo = pname;
27+ rev = version;
28+ sha256 = "004qmkfrgd37axv0b6hfh6v7nx4pvy987k5yv4bmlmkj9sbqm6f9";
29+ };
30+
31+ nativeBuildInputs = [
32+ meson
33+ gobject-introspection
34+ pkg-config
35+ ninja
36+ wrapGAppsHook
37+ ];
38+
39+ buildInputs = [
40+ gtk3
41+ gdk-pixbuf
42+ webkitgtk
43+ gtksourceview4
44+ libhandy
45+ glib-networking
46+ ];
47+
48+ pythonPath = with python3.pkgs; [
49+ pygobject3
50+ pycairo
51+ dateutil
52+ praw
53+ pillow
54+ mistune
55+ beautifulsoup4
56+ ];
57+
58+ # Fix setup-hooks https://github.com/NixOS/nixpkgs/issues/56943
59+ strictDeps = false;
60+
61+ meta = with lib; {
62+ description = "A Reddit app, built with Python, GTK and Handy; Created with mobile Linux in mind";
63+ maintainers = with maintainers; [ dasj19 ];
64+ homepage = "https://gitlab.gnome.org/World/giara";
65+ license = licenses.gpl3Plus;
66+ platforms = platforms.linux;
67+ };
68+}