2023-03-08 08:51:42 +01:00
|
|
|
(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
|
2023-10-07 01:44:36 +02:00
|
|
|
(let ((commit "1bf3786878eb499b6a0c56e47ba3f3e07cd81182")
|
2023-03-08 08:51:42 +01:00
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "mpd-notify")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(uri (git-reference
|
2023-10-07 01:44:36 +02:00
|
|
|
(url "https://code.ryuslash.org/ryuslash/mpd-notify.git")
|
2023-03-08 08:51:42 +01:00
|
|
|
(commit commit)))
|
|
|
|
(method git-fetch)
|
|
|
|
(sha256
|
2023-10-07 01:44:36 +02:00
|
|
|
(base32 "1i72h3mxsifymnmpmrgfqhgrbq9sjhgn1b9d64f164m1m0g0smq3"))
|
2023-03-08 08:51:42 +01:00
|
|
|
(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+))))
|