mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
gnu: wxwidgets: Fix MIME type loading.
* gnu/packages/wxwidgets.scm (wxwidgets)[inputs]: Add shared-mime-info. [arguments]: Update 'refer-to-inputs phase so wxwidgets looks in the correct directory for MIME type information.
This commit is contained in:
parent
e79fe4f675
commit
93d9737d2b
1 changed files with 11 additions and 5 deletions
|
@ -37,6 +37,7 @@ (define-module (gnu packages wxwidgets)
|
|||
#:use-module (gnu packages databases)
|
||||
#:use-module (gnu packages freedesktop)
|
||||
#:use-module (gnu packages gl)
|
||||
#:use-module (gnu packages gnome)
|
||||
#:use-module (gnu packages gstreamer)
|
||||
#:use-module (gnu packages gtk)
|
||||
#:use-module (gnu packages image)
|
||||
|
@ -75,6 +76,7 @@ (define-public wxwidgets
|
|||
("mesa" ,mesa)
|
||||
("webkitgtk" ,webkitgtk)
|
||||
("sdl" ,sdl)
|
||||
("shared-mime-info" ,shared-mime-info)
|
||||
("xdg-utils" ,xdg-utils)))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
|
@ -97,11 +99,15 @@ (define-public wxwidgets
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'refer-to-inputs
|
||||
(lambda _
|
||||
(substitute* "src/unix/utilsx11.cpp"
|
||||
(("wxExecute\\(xdg_open \\+")
|
||||
(string-append "wxExecute(\"" (which "xdg-open") "\"")))
|
||||
#t)))))
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let* ((mime (string-append (assoc-ref inputs "shared-mime-info")
|
||||
"/share/mime")))
|
||||
(substitute* "src/unix/utilsx11.cpp"
|
||||
(("wxExecute\\(xdg_open \\+")
|
||||
(string-append "wxExecute(\"" (which "xdg-open") "\"")))
|
||||
(substitute* "src/unix/mimetype.cpp"
|
||||
(("/usr(/local)?/share/mime") mime))
|
||||
#t))))))
|
||||
(home-page "https://www.wxwidgets.org/")
|
||||
(synopsis "Widget toolkit for creating graphical user interfaces")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue