From eea636e04e76e772380f8f96c41eb77bea24a0cd Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 1 Jul 2024 15:27:57 -0700 Subject: Copy package definitions from my ‘new-dotfiles’ project --- oni/packages/mpd.scm | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 oni/packages/mpd.scm (limited to 'oni/packages/mpd.scm') diff --git a/oni/packages/mpd.scm b/oni/packages/mpd.scm new file mode 100644 index 0000000..a2c1e49 --- /dev/null +++ b/oni/packages/mpd.scm @@ -0,0 +1,106 @@ +(define-module (oni packages mpd) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages shells) + #:use-module (gnu packages bash) + #:use-module (gnu packages mpd) + #:use-module (gnu packages gnome) + #:use-module (guix build-system gnu) + #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages python-web) + #:use-module (gnu packages music) + #:use-module (gnu packages check)) + +(define-public mpd-notify + (let ((commit "1bf3786878eb499b6a0c56e47ba3f3e07cd81182") + (revision "0")) + (package + (name "mpd-notify") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "git://code.ryuslash.org/util/tom/mpd-notify.git") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "1i72h3mxsifymnmpmrgfqhgrbq9sjhgn1b9d64f164m1m0g0smq3")) + (file-name (git-file-name name version)))) + (propagated-inputs + (list mpd-mpc zsh libnotify)) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (install-file "mpd-notify" bin))))))) + (home-page "https://ryuslash.org/") + (synopsis "A simple script that notifies you of MPD player state changes.") + (description "Uses `mpc idleloop' to listen to player state changes and sends notifications.") + (license license:gpl3+)))) + +(define-public mpd-random-albums + (let ((commit "c12a766e1920e726129dfd1161a2ef15471f89e8") + (revision "0")) + (package + (name "mpd-random-albums") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "git://ryuslash.org/util/tom/mpd-random-albums") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "0mgs9377hw3x1nfcah3wwr3zijvzrkqicvgrbcjl3g1p4fmlb8mr")) + (file-name (git-file-name name version)))) + (propagated-inputs + (list mpd bash scsh)) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin")) + (site (string-append (assoc-ref outputs "out") "/share/scsh-0.7"))) + (install-file "mpd-random-albums" bin) + (install-file "mpd.scm" site))))))) + (home-page "https://ryuslash.org/") + (synopsis "A simple script that populates the MPD playlist with all of my albums in random order.") + (description "Creates a new playlist in MPD with all of the albums in my database and shuffles them by album.") + (license license:gpl3+)))) + +(define-public mpdscrobble + (let ((commit "c4314b026183a2b38673db898deb98f24dfb3901") + (revision "0")) + (package + (name "python-mpdscrobble") + (version (git-version "0.3.3" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dbeley/mpdscrobble") + (commit commit))) + (sha256 + (base32 "1kixss0s182hhl52qrr646zswx0c81si6jxz08jc8sal8y1rm4ql")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest)) + (propagated-inputs (list python-httpx python-pylast python-mpd2)) + (home-page "https://github.com/dbeley/mpdscrobble") + (synopsis "A simple Last.fm scrobbler for MPD.") + (description "This package provides a simple Last.fm scrobbler for MPD.") + (license license:expat)))) -- cgit v1.2.3-54-g00ecf