mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: krita: Ensure icons are found at runtime.
Fixes <https://bugs.gnu.org/29905>. * gnu/packages/kde.scm (krita)[arguments]: Set the QT_PLUGIN_PATH in a new 'wrap-executable' phase.
This commit is contained in:
parent
ed8bdde9ce
commit
990e93fce1
1 changed files with 15 additions and 1 deletions
|
@ -260,7 +260,21 @@ plugins, as well as code to create plugins, or complete applications.")
|
|||
(assoc-ref %build-inputs "libtiff"))
|
||||
(string-append "-DCMAKE_CXX_FLAGS=-I"
|
||||
(assoc-ref %build-inputs "ilmbase")
|
||||
"/include/OpenEXR"))))
|
||||
"/include/OpenEXR"))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; Ensure that icons are found at runtime
|
||||
(add-after 'install 'wrap-executable
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
(qt '("qtbase" "qtsvg")))
|
||||
(wrap-program (string-append out "/bin/krita")
|
||||
`("QT_PLUGIN_PATH" ":" prefix
|
||||
,(map (lambda (label)
|
||||
(string-append (assoc-ref inputs label)
|
||||
"/lib/qt5/plugins/"))
|
||||
qt)))
|
||||
#t))))))
|
||||
(native-inputs
|
||||
`(("curl" ,curl)
|
||||
("eigen" ,eigen)
|
||||
|
|
Loading…
Reference in a new issue