mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: Add mpdris2
* gnu/packages/mpd.scm (mpdris2): New package. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
3c7ea67465
commit
349666b7d2
1 changed files with 47 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
|
;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
|
||||||
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
|
||||||
|
;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -34,7 +35,9 @@ (define-module (gnu packages mpd)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system meson)
|
#:use-module (guix build-system meson)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages avahi)
|
#:use-module (gnu packages avahi)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages gnome)
|
#:use-module (gnu packages gnome)
|
||||||
|
@ -53,6 +56,7 @@ (define-module (gnu packages mpd)
|
||||||
#:use-module (gnu packages pcre)
|
#:use-module (gnu packages pcre)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages pulseaudio)
|
#:use-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages sphinx)
|
#:use-module (gnu packages sphinx)
|
||||||
#:use-module (gnu packages sqlite)
|
#:use-module (gnu packages sqlite)
|
||||||
|
@ -369,3 +373,46 @@ (define-public ashuffle
|
||||||
feature. ashuffle works like any other MPD client, and can be used alongside
|
feature. ashuffle works like any other MPD client, and can be used alongside
|
||||||
other MPD frontends.")
|
other MPD frontends.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public mpdris2
|
||||||
|
(package
|
||||||
|
(name "mpdris2")
|
||||||
|
(version "0.8")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/eonpatapon/mpDris2")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"048b8acsd1b8kcxzd9fsh5p9g2an9c4rznicfcpyrsjz5syv894h"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
;; Manually wrap the binary, because we’re not using python-build-system.
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(python-path (getenv "PYTHONPATH")))
|
||||||
|
(wrap-program (string-append out "/bin/mpDris2")
|
||||||
|
`("PYTHONPATH" ":" prefix (,python-path)))
|
||||||
|
#t))))))
|
||||||
|
(inputs
|
||||||
|
`(("python-mpd2" ,python-mpd2)
|
||||||
|
("python-dbus" ,python-dbus)
|
||||||
|
("python-pygobject" ,python-pygobject)
|
||||||
|
("python" ,python))) ; Sets PYTHONPATH.
|
||||||
|
;; For bootstrapping.
|
||||||
|
(native-inputs
|
||||||
|
`(("autoconf" ,autoconf)
|
||||||
|
("automake" ,automake)
|
||||||
|
("gettext" ,gnu-gettext)
|
||||||
|
("which" ,which)
|
||||||
|
("intltool" ,intltool)))
|
||||||
|
(synopsis "MPRIS V2.1 support for MPD")
|
||||||
|
(description "Client for the Music Player Daemon providing MPRIS 2
|
||||||
|
support")
|
||||||
|
(home-page "https://github.com/eonpatapon/mpDris2")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
Loading…
Reference in a new issue