gnu: rofi-pass: Update to 2.0.2-0.8aa6b92.
With no release in over 5 years, update to the most recent commit to include features like Wayland support. Rewrite the package definition to use the makefile, patch paths, and generally improve the style. * gnu/packages/password-utils.scm (rofi-pass): Update to 2.0.2-0.8aa6b92. [origin]: Use git-fetch rather than just the individual script. [build-system]: Switch to gnu-build-system. [arguments]: Remove modules and builder. Disable tests. Add make-flags. <phases>: Add fix-etc-path and wrap-path phases. Remove configure and build. [propagated-inputs]: Move to ... [inputs]: ... here. Add bash-minimal, pwgen, xclip, and xset. Change-Id: Ia03ef46f3b567bc2eb6d1350db3612043f06d94bmaster
parent
03459ca165
commit
eef9e0ee8f
|
@ -40,6 +40,7 @@
|
||||||
;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
|
;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
||||||
;;; Copyright © 2023 Christian Miller <christian.miller@dadoes.de>
|
;;; Copyright © 2023 Christian Miller <christian.miller@dadoes.de>
|
||||||
|
;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -906,35 +907,64 @@ encryption.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public rofi-pass
|
(define-public rofi-pass
|
||||||
(package
|
;; No release in over 5 years with recent commits adding features like
|
||||||
(name "rofi-pass")
|
;; Wayland support.
|
||||||
(version "2.0.2")
|
(let ((commit "8aa6b9293a8f0af267425326fa966966ca42085e")
|
||||||
(source
|
(revision "0"))
|
||||||
(origin
|
(package
|
||||||
(method url-fetch)
|
(name "rofi-pass")
|
||||||
(uri
|
(version (git-version "2.0.2" revision commit))
|
||||||
(string-append "https://raw.githubusercontent.com/carnager/rofi-pass/"
|
(source
|
||||||
version "/rofi-pass"))
|
(origin
|
||||||
(sha256
|
(method git-fetch)
|
||||||
(base32 "0msldkndqp40nx1s5s7ggcr97ir4nshpmnyzvj5hqw1l7m3gvw6j"))
|
(uri (git-reference
|
||||||
(file-name name)))
|
(url "https://github.com/carnager/rofi-pass")
|
||||||
(build-system trivial-build-system)
|
(commit commit)))
|
||||||
(arguments
|
(sha256
|
||||||
`(#:modules ((guix build utils))
|
(base32
|
||||||
#:builder
|
"0axz4ijp6fay6f2yn1cg6223l89jkg8wnxslbk1g5jpli0njxw43"))
|
||||||
(begin
|
(file-name (git-file-name name version))))
|
||||||
(use-modules (guix build utils))
|
(build-system gnu-build-system)
|
||||||
(let ((source (string-append (assoc-ref %build-inputs "source")))
|
(arguments
|
||||||
(script "rofi-pass")
|
(list #:tests? #f ; no tests
|
||||||
(out (assoc-ref %outputs "out")))
|
#:make-flags #~(list (string-append "PREFIX=" #$output))
|
||||||
(copy-file source script)
|
#:phases
|
||||||
(chmod script #o555)
|
#~(modify-phases %standard-phases
|
||||||
(install-file script (string-append out "/bin"))))))
|
(add-after 'unpack 'fix-etc-path
|
||||||
(propagated-inputs
|
(lambda _
|
||||||
(list password-store rofi xdotool))
|
(substitute* "Makefile"
|
||||||
(home-page "https://github.com/carnager/rofi-pass")
|
(("\\$\\(DESTDIR\\)/etc")
|
||||||
(synopsis "Rofi frontend for password-store")
|
(string-append #$output "/etc")))
|
||||||
(description "Rofi-pass provides a way to manipulate information stored
|
(substitute* "rofi-pass"
|
||||||
|
(("/etc")
|
||||||
|
(string-append #$output "/etc")))))
|
||||||
|
(delete 'configure) ; no configure
|
||||||
|
(delete 'build) ; no build
|
||||||
|
(add-after 'install 'wrap-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((bin (string-append #$output "/bin")))
|
||||||
|
(for-each
|
||||||
|
(lambda (script)
|
||||||
|
(wrap-program (string-append bin "/" script)
|
||||||
|
(list "PATH" 'prefix
|
||||||
|
(map
|
||||||
|
(lambda (binary)
|
||||||
|
(dirname (search-input-file
|
||||||
|
inputs
|
||||||
|
(string-append "bin/" binary))))
|
||||||
|
'("pass" "pwgen" "rofi"
|
||||||
|
"xclip" "xdotool" "xset")))))
|
||||||
|
(list "addpass" "rofi-pass"))))))))
|
||||||
|
(inputs (list bash-minimal ;for wrap-program
|
||||||
|
password-store
|
||||||
|
pwgen
|
||||||
|
rofi
|
||||||
|
xclip
|
||||||
|
xdotool
|
||||||
|
xset))
|
||||||
|
(home-page "https://github.com/carnager/rofi-pass")
|
||||||
|
(synopsis "Rofi frontend for password-store")
|
||||||
|
(description "Rofi-pass provides a way to manipulate information stored
|
||||||
using password-store through rofi interface:
|
using password-store through rofi interface:
|
||||||
@enumerate
|
@enumerate
|
||||||
@item open URLs of entries with hotkey;
|
@item open URLs of entries with hotkey;
|
||||||
|
@ -944,7 +974,7 @@ using password-store through rofi interface:
|
||||||
@item auto-typing of more than one field, using the autotype entry;
|
@item auto-typing of more than one field, using the autotype entry;
|
||||||
@item bookmarks mode (open stored URLs in browser, default: Alt+x).
|
@item bookmarks mode (open stored URLs in browser, default: Alt+x).
|
||||||
@end enumerate")
|
@end enumerate")
|
||||||
(license license:gpl3)))
|
(license license:gpl3))))
|
||||||
|
|
||||||
(define-public tessen
|
(define-public tessen
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue