diff options
author | 2023-03-07 23:51:42 -0800 | |
---|---|---|
committer | 2023-03-07 23:51:42 -0800 | |
commit | 20f5597d394ae7dd1764e184d084257652a7ca10 (patch) | |
tree | 29c5eb06821298000f8b52c872d506461e113444 /oni/packages/mpd-notify.scm | |
parent | 82ae1b59a6f346e43ee07f23f405a9cdf02030a0 (diff) | |
download | new-dotfiles-20f5597d394ae7dd1764e184d084257652a7ca10.tar.gz new-dotfiles-20f5597d394ae7dd1764e184d084257652a7ca10.zip |
Add service for notifications for MPD
Diffstat (limited to 'oni/packages/mpd-notify.scm')
-rw-r--r-- | oni/packages/mpd-notify.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/oni/packages/mpd-notify.scm b/oni/packages/mpd-notify.scm new file mode 100644 index 0000000..cc6e23a --- /dev/null +++ b/oni/packages/mpd-notify.scm @@ -0,0 +1,42 @@ +(define-module (oni packages mpd-notify) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages shells) + #:use-module (gnu packages mpd) + #:use-module (gnu packages gnome) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module (guix packages)) + +(define-public mpd-notify + (let ((commit "66547ca1139d28855917382c868ddf2723d5afd4") + (revision "0")) + (package + (name "mpd-notify") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "git://ryuslash.org/util/tom/mpd-notify") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "0r1ba6p1bsfz2k6zh5c6aivj9b71g7a00bgm8m22x6bdbsbm5gvb")) + (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+)))) |