me
/
guix
Archived
1
0
Fork 0

gnu: qtpass: Wrap binary.

* gnu/packages/password-utils.scm (qtpass)[arguments]: Import qt-utils
modules. Add phase to wrap qtpass binary.
master
Efraim Flashner 2020-06-10 16:21:18 +03:00
parent e1e9baf22f
commit 73d9caba79
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 10 additions and 1 deletions

View File

@ -594,7 +594,12 @@ key URIs using the standard otpauth:// scheme.")
"0748hjvhjrybi33ci3c8hcr74k9pdrf5jv8npf9hrsrmdyy1kr9x")))) "0748hjvhjrybi33ci3c8hcr74k9pdrf5jv8npf9hrsrmdyy1kr9x"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases `(#:modules ((guix build gnu-build-system)
(guix build qt-utils)
(guix build utils))
#:imported-modules (,@%gnu-build-system-modules
(guix build qt-utils))
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'configure (replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
@ -630,6 +635,10 @@ key URIs using the standard otpauth:// scheme.")
(string-append icons "/qtpass-icon.svg")) (string-append icons "/qtpass-icon.svg"))
(install-file "qtpass.1" man) (install-file "qtpass.1" man)
#t))) #t)))
(add-after 'install 'wrap-qt
(lambda* (#:key outputs #:allow-other-keys)
(wrap-qt-program (assoc-ref outputs "out") "qtpass")
#t))
(add-before 'check 'check-setup (add-before 'check 'check-setup
;; Make Qt render "offscreen", required for tests. ;; Make Qt render "offscreen", required for tests.
(lambda _ (lambda _