aboutsummaryrefslogtreecommitdiffstats
path: root/oni/packages/shutdown-rofi.scm
blob: d8d970c1f99dba71fe294025c920d9fce03d058c (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
(define-module (oni packages shutdown-rofi)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages wm)
  #:use-module (gnu packages xdisorg)
  #:use-module (guix build-system gnu)
  #:use-module (guix git-download)
  #:use-module (guix packages))

(define-public shutdown-rofi
  (let ((commit "79cc1bdbabe5d4a1521723de1a5b9c32a1df1c7c")
        (revision "0"))
    (package
     (name "shutdown-rofi")
     (version (git-version "0.0.0" revision commit))
     (source
      (origin
       (uri (git-reference
             (url "git://ryuslash.org/util/tom/shutdown-rofi")
             (commit commit)))
       (method git-fetch)
       (sha256
        (base32 "17c5hr3yrafmmgcxi6m0njhp113yfcylv7ifpgds06sxxn8wdzv0"))
       (file-name (git-file-name name version))))
     (propagated-inputs
      (list herbstluftwm rofi))
     (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 "shutdown-rofi" bin)))))))
     (home-page "https://ryuslash.org/")
     (synopsis "A simple script that shows a shutdown menu using rofi.")
     (description "Uses rofi to show a simple shutdown menu.")
     (license license:gpl3+))))