~ruther/guix-config

ref: fa400522de86632ffe9b41c03932c676aba53bf9 guix-config/home/modules/ruther/home/passwords.scm -rw-r--r-- 1.1 KiB
fa400522 — Rutherther feat: add cups printing service 7 months ago
                                                                                
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
(define-module (ruther home passwords)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (ruther packages wayland)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages password-utils))

(define-public password-store-wl
  (package/inherit password-store
    (name "password-store-wl")
    (inputs (modify-inputs (package-inputs password-store)
              (append dmenu-wl ydotool)))
    (arguments
     (substitute-keyword-arguments (package-arguments password-store)
       ((#:phases original-phases)
        #~(modify-phases #$original-phases
            (add-after 'patch-passmenu-path 'patch-passmenu-wl-path
              (lambda* (#:key inputs #:allow-other-keys)
                (substitute* "contrib/dmenu/passmenu"
                  (("dmenu=dmenu-wl\n")
                   (string-append "dmenu="
                                  (search-input-file inputs "/bin/dmenu-wl")
                                  "\n"))
                  (("xdotool=\"ydotool")
                   (string-append "xdotool=\""
                                  (search-input-file inputs "/bin/ydotool"))))))))))))
Do not follow this link