all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "ashish.is--- via Guix-patches" via <guix-patches@gnu.org>
To: 73936@debbugs.gnu.org
Cc: Ashish SHUKLA <ashish.is@lostca.se>
Subject: [bug#73936] [PATCH] gnu: Add tuner.
Date: Mon, 21 Oct 2024 19:54:05 +0200	[thread overview]
Message-ID: <50be96afc2eac44f6c1ec910efe41a4b90000af6.1729533244.git.ashish.is@lostca.se> (raw)

From: Ashish SHUKLA <ashish.is@lostca.se>

* gnu/packages/music.scm (tuner): New variable.

Change-Id: I4ceb4b06069c460785b477cc017dc249f786dfa1
---
Hi,

This patch adds a package for the internet radio station player "tuner"[0].

References:
[0] https://github.com/louis77/tuner

Thanks!

 gnu/packages/music.scm | 57 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 9c1a617ca1..c70870bbb2 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -59,6 +59,7 @@
 ;;; Copyright © 2024 Parnikkapore <poomklao@yahoo.com>
 ;;; Copyright © 2024 hapster <o.rojon@posteo.net>
 ;;; Copyright © 2024 Nikita Domnitskii <nikita@domnitskii.me>
+;;; Copyright © 2024 Ashish SHUKLA <ashish.is@lostca.se>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -168,6 +169,7 @@ (define-module (gnu packages music)
   #: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)
@@ -2924,6 +2926,61 @@ (define-public bristol
 is subjective.")
     (license license:gpl3+)))
 
+(define-public tuner
+  (package
+    (name "tuner")
+    (version "1.5.4")
+    (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 "0svzngqhsdbmw6s07adilicdgs2v8yamzh7p7krj0z0552qsdnf6"))))
+    (build-system meson-build-system)
+    (native-inputs
+     `(("desktop-file-utils" ,desktop-file-utils)       ; update-desktop-database
+       ("gettext-minimal" ,gettext-minimal)
+       ("glib:bin" ,glib "bin")                         ; glib-compile-schemas
+       ; for org.gnome.system.proxy schema
+       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+       ("gtk:bin" ,gtk "bin")                           ; gtk-update-icon-cache
+       ("pkg-config" ,pkg-config)
+       ("vala" ,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 'unpack 'skip-gtk-update-icon-cache
+              (lambda _
+                (substitute* "meson/post_install.py"
+                  (("gtk-update-icon-cache") (which "true"))
+                  (("update-desktop-database") (which "true")))))
+            (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 "A minimalist radio station player to discover and
+listen to your favourite internet radio stations")
+    (license license:gpl3+)))
+
 (define-public tuxguitar
   (package
     (name "tuxguitar")

base-commit: 59b2a60d0041882d732e1766e28f0df5a1ef1ac1
-- 
2.47.0





             reply	other threads:[~2024-10-21 17:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21 17:54 ashish.is--- via Guix-patches via [this message]
2024-12-29 23:00 ` [bug#73936] [PATCH] gnu: Add tuner Ludovic Courtès
2024-12-31 13:24   ` [bug#73936] [PATCH v2] " Ashish SHUKLA via Guix-patches via
2024-12-31 13:40     ` Zheng Junjie
2024-12-31 13:49       ` Ashish SHUKLA via Guix-patches via
2025-01-04 21:02     ` bug#73936: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50be96afc2eac44f6c1ec910efe41a4b90000af6.1729533244.git.ashish.is@lostca.se \
    --to=guix-patches@gnu.org \
    --cc=73936@debbugs.gnu.org \
    --cc=ashish.is@lostca.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.