From 1f958e168be69fbac04ec15c2057534ffa4a1510 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Tue, 31 Dec 2024 13:24:37 +0000 Subject: [PATCH] gnu: Add tuner. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/music.scm (tuner): New variable. Change-Id: I4ceb4b06069c460785b477cc017dc249f786dfa1 Signed-off-by: Ludovic Courtès --- gnu/packages/music.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 6825f14dcc528c2b22ee56e1bba1bbc9d6cbfb12..77922d9576aedf6d05d363eba944ae5dda7d54a5 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -59,6 +59,7 @@ ;;; Copyright © 2024 Parnikkapore ;;; Copyright © 2024 hapster ;;; Copyright © 2024 Nikita Domnitskii +;;; Copyright © 2024 Ashish SHUKLA ;;; ;;; This file is part of GNU Guix. ;;; @@ -168,6 +169,7 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages netpbm) #:use-module (gnu packages networking) + #:use-module (gnu packages pantheon) #:use-module (gnu packages pcre) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) @@ -2868,6 +2870,58 @@ although the author maintains that the quality and accuracy of each emulation is subjective.") (license license:gpl3+))) +(define-public tuner + (package + (name "tuner") + (version "1.5.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/louis77/tuner") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "0zz91n56vdwhjwqscl21016i4l4lx3m6ja0fnrapmf16bdl0rrai")))) + (build-system meson-build-system) + (native-inputs + (list desktop-file-utils ; update-desktop-database + gettext-minimal + `(,glib "bin") ; glib-compile-schemas + ; for org.gnome.system.proxy schema + gsettings-desktop-schemas + `(,gtk "bin") ; gtk-update-icon-cache + pkg-config + vala)) + (inputs + (list bash-minimal + glib + granite-6 + gtk+ + libgee + gstreamer + gst-plugins-base ; for gstreamer 'playbin' + gst-plugins-good ; for gstreamer 'scaletempo' + gst-plugins-bad + libsoup + json-glib-minimal)) + (arguments + (list + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-tuner + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/com.github.louis77.tuner") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))))) + (home-page "https://github.com/louis77/tuner") + (synopsis "Application to discover and play internet radio stations") + (description "Tuner is a minimalist radio station player to discover and +listen to your favourite internet radio stations. The application consists of a radio +station catalogue sourced from radio-browser.info, and has presets of selections of +stations based on random, top, trending, genre.") + (license license:gpl3+))) + (define-public tuxguitar (package (name "tuxguitar")