From 074814fe575ebf36049a26351cc7853967ceb0ae Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 16 Jul 2020 23:54:58 +0200 Subject: 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. --- gnu/packages/password-utils.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 0dffffd036..ee4d088501 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -133,7 +133,19 @@ human.") (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))) -- cgit v1.2.3