summaryrefslogtreecommitdiff
path: root/gnu/packages/mpd.scm
diff options
context:
space:
mode:
authorSkylar "The Cobra" Astaroth <cobra@vern.cc>2025-09-18 12:33:54 -0400
committerEfraim Flashner <efraim@flashner.co.il>2025-11-05 12:15:44 +0200
commit20c34e73252ace4ee23faa59a8fba26f11c02a46 (patch)
tree85fb60e9209f140054ae1e4830836756b5b3213d /gnu/packages/mpd.scm
parent17b590b7e73328f2640019fdb1ea84f0b825a432 (diff)
gnu: Add rmpc.
* gnu/packages/mpd.scm (rmpc): New variable. * gnu/packages/rust-crates.scm (lookup-cargo-inputs): Add rmpc. Change-Id: I3b075888a34a4bde0d6c3e719c10fe653b35bc20 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/mpd.scm')
-rw-r--r--gnu/packages/mpd.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index d79f423260e..2fe41583aea 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -36,6 +36,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
+ #:use-module (guix build-system cargo)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
@@ -684,3 +685,48 @@ mpdevil loads all tags and covers on demand.")
(description "MyMPD is a mobile-friendly web client for the Music Player
Daemon (MPD).")
(license license:gpl3+)))
+
+(define-public rmpc
+ (package
+ (name "rmpc")
+ (version "0.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rmpc" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "00a8z3b4wqf1j6v0ws2fckj452w46vgj1v2n446bv4ngrk7wnf06"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:modules
+ '((guix build cargo-build-system)
+ (guix build utils)
+ (ice-9 match))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-completions
+ (lambda* (#:key outputs #:allow-other-keys)
+ (for-each
+ (match-lambda
+ ((file . path)
+ (mkdir-p (in-vicinity #$output (dirname path)))
+ (copy-file file (string-append #$output "/" path))))
+ '(("target/man/rmpc.1" . "share/man/man1/rmpc.1")
+ ("target/completions/rmpc.bash" .
+ "share/bash-completion/completions/rmpc")
+ ("target/completions/rmpc.fish" .
+ "share/fish/vendor_completions.d/rmpc.fish")
+ ("target/completions/_rmpc" .
+ "share/zsh/site-functions/_rmpc"))))))))
+ (inputs (cargo-inputs 'rmpc))
+ (home-page "https://mierak.github.io/rmpc/")
+ (synopsis "Configurable TUI client for MPD")
+ (description
+ "rmpc is a terminal based Music Player Daemon client heavily inspired by
+@command{ncmpcpp} and @command{ranger}/@command{lf} file managers. It has
+support for synchronized lyrics, and displaying album cover art with various
+terminal image protocols.")
+ (license license:bsd-3)))