aboutsummaryrefslogtreecommitdiffstats
path: root/oni/packages/mpd.scm
blob: a2c1e4947324d567d8022a27cc2b42eb55b40df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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))))