git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30813 from samdroid-apps/add-gradio

gradio: init at 6.0.2

commited8e485c5dd4af5cbf99938fd6d9c8ebf8f76049 authorJoachim F <joachifm@users.noreply.github.com> dateSat 28 Oct 2017, 19:51 (9 years ago) parente76d8af5ac0106
4 files changed+98
lib/maintainers.nix+1 pkgs/applications/audio/gradio/0001-Remove-post-install-script-that-hardcodes-paths.patch+23 pkgs/applications/audio/gradio/default.nix+72 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -550,6 +550,7 @@
550550 ryneeverett = "Ryne Everett <ryneeverett@gmail.com>";
551551 rzetterberg = "Richard Zetterberg <richard.zetterberg@gmail.com>";
552552 s1lvester = "Markus Silvester <s1lvester@bockhacker.me>";
553+ samdroid-apps = "Sam Parkinson <sam@sam.today>";
553554 samuelrivas = "Samuel Rivas <samuelrivas@gmail.com>";
554555 sander = "Sander van der Burg <s.vanderburg@tudelft.nl>";
555556 sargon = "Daniel Ehlers <danielehlers@mindeye.net>";
pkgs/applications/audio/gradio/0001-Remove-post-install-script-that-hardcodes-paths.patchnew file+23
@@ -0,0 +1,23 @@
1+From 184c64718ee68b2738647f4a106b260c47f00437 Mon Sep 17 00:00:00 2001
2+From: Sam Parkinson <sam@sam.today>
3+Date: Thu, 26 Oct 2017 14:50:13 +1100
4+Subject: [PATCH] Remove post-install script that hardcodes paths
5+
6+---
7+ meson.build | 3 ++-
8+ 1 file changed, 2 insertions(+), 1 deletion(-)
9+
10+diff --git a/meson.build b/meson.build
11+index 25f3e1a..18b43bd 100644
12+--- a/meson.build
13++++ b/meson.build
14+@@ -21,4 +21,5 @@ subdir('src')
15+ # subdir('tests')
16+ # TODO: unit tests
17+
18+-meson.add_install_script('meson_post_install.sh')
19++# This does not work for nixos; it hard-codes paths
20++# meson.add_install_script('meson_post_install.sh')
21+--
22+2.14.2
23+
pkgs/applications/audio/gradio/default.nixnew file+72
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -14617,6 +14617,8 @@ with pkgs;
1461714617
1461814618 rhythmbox = callPackage ../applications/audio/rhythmbox { };
1461914619
14620+ gradio = callPackage ../applications/audio/gradio { };
14621+
1462014622 puddletag = callPackage ../applications/audio/puddletag { };
1462114623
1462214624 w_scan = callPackage ../applications/video/w_scan { };