gnu: keepassxc: Set QT_PLUGIN_PATH.

* gnu/packages/password-utils.scm (keepassxc): Wrap program to set
QT_PLUGIN_PATH for svg icons to show properly.
This commit is contained in:
Julien Lepiller 2020-07-16 23:54:58 +02:00
parent 9a62282755
commit 074814fe57
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -133,7 +133,19 @@ (define-public keepassxc
(build-system cmake-build-system)
(arguments
'(#:configure-flags '("-DWITH_XC_ALL=YES"
"-DWITH_XC_UPDATECHECK=NO")))
"-DWITH_XC_UPDATECHECK=NO")
#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-bin
(lambda* (#:key outputs inputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/keepassxc")
`("QT_PLUGIN_PATH" ":" prefix
,(map (lambda (label)
(string-append (assoc-ref inputs label)
"/lib/qt5/plugins"))
'("qtbase" "qtsvg")))))
#t)))))
(native-inputs
`(("asciidoctor" ,ruby-asciidoctor)
("qttools" ,qttools)))