diff options
| author | Brickworld <brickworld@riseup.net> | 2026-04-12 16:43:50 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-04-13 08:23:22 +0300 |
| commit | ef105f1316a214564a2ffa573b3834c8499de1e8 (patch) | |
| tree | 42c120a27041f9ea56de1862f4a86d9d79b81aff /gnu/packages/mpd.scm | |
| parent | 0fbe363fb80efb1f0bc64f959b08f8ce590a8180 (diff) | |
gnu: Add mpdris2-rs.
* gnu/packages/mpd.scm (mpdris2-rs): New variable.
* gnu/packages/rust-crates.scm (lookup-cargo-inputs): Add mpdris2-rs.
Change-Id: I999c80a2618aa4b847fed69c065d30f8ed15c145
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/mpd.scm')
| -rw-r--r-- | gnu/packages/mpd.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 57252099cf4..5c4570ae858 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm | |||
| @@ -531,6 +531,47 @@ MPRIS 2 support.") | |||
| 531 | (home-page "https://github.com/eonpatapon/mpDris2") | 531 | (home-page "https://github.com/eonpatapon/mpDris2") |
| 532 | (license license:gpl3+))) | 532 | (license license:gpl3+))) |
| 533 | 533 | ||
| 534 | (define-public mpdris2-rs | ||
| 535 | (package | ||
| 536 | (name "mpdris2-rs") | ||
| 537 | (version "1.1.1") | ||
| 538 | (source | ||
| 539 | (origin | ||
| 540 | (method git-fetch) | ||
| 541 | (uri (git-reference | ||
| 542 | (url "https://github.com/szclsya/mpdris2-rs") | ||
| 543 | (commit (string-append "v" version)))) | ||
| 544 | (file-name (git-file-name name version)) | ||
| 545 | (sha256 | ||
| 546 | (base32 "023m4g1kgr2q2vllaij7nlxd5gp3vklvbhf5drymgqz3pcmslb52")))) | ||
| 547 | (build-system cargo-build-system) | ||
| 548 | (arguments | ||
| 549 | (list | ||
| 550 | #:install-source? #f | ||
| 551 | #:phases | ||
| 552 | #~(modify-phases %standard-phases | ||
| 553 | (add-after 'install 'install-systemd-unit | ||
| 554 | (lambda _ | ||
| 555 | (let ((unit-dir (in-vicinity #$output "lib/systemd/user/"))) | ||
| 556 | (substitute* "misc/mpdris2-rs.service" | ||
| 557 | (("/usr/local/bin/mpdris2-rs") | ||
| 558 | (in-vicinity #$output "bin/mpdris2-rs"))) | ||
| 559 | (install-file "misc/mpdris2-rs.service" unit-dir))))))) | ||
| 560 | (inputs (cargo-inputs 'mpdris2-rs)) | ||
| 561 | (home-page "https://github.com/szclsya/mpdris2-rs") | ||
| 562 | (synopsis "Exposing MPRIS V2.2 D-Bus interface for mpd") | ||
| 563 | (description | ||
| 564 | "A lightweight implementation of MPD to D-Bus bridge, which exposes MPD | ||
| 565 | player and playlist information onto MPRIS2 interface so other programs can use | ||
| 566 | this generic interface to retrieve MPD's playback state. | ||
| 567 | |||
| 568 | Distinctively, mpdris2-rs uses MPD protocol's native | ||
| 569 | @command{readpicture}/@command{albumart} methods to fetch album arts. This | ||
| 570 | means mpdris2-rs won't need any access to your local filesystem (apart from | ||
| 571 | your @env{XDG_RUNTIME_DIR} for temporarily storing fetched albumarts) and can | ||
| 572 | provide album arts even with remote MPD servers and Internet radios.") | ||
| 573 | (license license:gpl3))) | ||
| 574 | |||
| 534 | (define-public cantata | 575 | (define-public cantata |
| 535 | (package | 576 | (package |
| 536 | (name "cantata") | 577 | (name "cantata") |
