@@ -0,0 +1,72 @@
1+{ stdenv, fetchFromGitHub, pkgconfig
2+, gcc
3+, python3
4+, gsettings_desktop_schemas
5+, desktop_file_utils
6+, glib
7+, gtk3
8+, intltool
9+, libsoup
10+, json_glib
11+, wrapGAppsHook
12+, meson
13+, ninja
14+, vala
15+, sqlite
16+, gst_all_1
17+, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
18+}:
19+let
20+ version = "6.0.2";
21+
22+in stdenv.mkDerivation rec {
23+ name = "gradio-${version}";
24+
25+ src = fetchFromGitHub {
26+ owner = "haecker-felix";
27+ repo = "gradio";
28+ rev = "v${version}";
29+ sha256 = "05hg26yr7splgpkl8wjxcsdks9sm1is3hcnp7f5mjnp2ch0nn57s";
30+ };
31+
32+ nativeBuildInputs = [
33+ pkgconfig
34+
35+ meson
36+ ninja
37+ vala
38+
39+ python3
40+ ];
41+ buildInputs = [
42+ sqlite
43+
44+ glib
45+ intltool
46+ libsoup
47+ json_glib
48+
49+ gtk3
50+ gst_all_1.gstreamer
51+ gst_all_1.gst-plugins-base
52+
53+ wrapGAppsHook
54+ desktop_file_utils
55+ gsettings_desktop_schemas
56+ ] ++ gst_plugins;
57+
58+ enableParallelBuilding = true;
59+ postInstall = ''
60+ ${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
61+ '';
62+
63+ patches = [ ./0001-Remove-post-install-script-that-hardcodes-paths.patch ];
64+
65+ meta = with stdenv.lib; {
66+ homepage = https://github.com/haecker-felix/gradio;
67+ description = "A GTK3 app for finding and listening to internet radio stations";
68+ license = licenses.gpl3;
69+ platforms = platforms.linux;
70+ maintainers = [ maintainers.samdroid-apps ];
71+ };
72+}