gnu: wxmaxima: Wrap with GSETTINGS_SCHEMA_DIR and XDG_DATA_DIRS.
Fixes <http://bugs.gnu.org/22709> and <http://bugs.gnu.org/23260>. * gnu/packages/math.scm (wxmaxima)[arguments]: Wrap with GSETTINGS_SCHEMA_DIR and XDG_DATA_DIRS.
This commit is contained in:
parent
1a6d3cd374
commit
de477809d7
1 changed files with 17 additions and 2 deletions
|
@ -1610,7 +1610,11 @@ point numbers.")
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("wxwidgets" ,wxwidgets)
|
`(("wxwidgets" ,wxwidgets)
|
||||||
("maxima" ,maxima)))
|
("maxima" ,maxima)
|
||||||
|
;; Runtime support.
|
||||||
|
("adwaita-icon-theme" ,adwaita-icon-theme)
|
||||||
|
("gtk+" ,gtk+)
|
||||||
|
("shared-mime-info" ,shared-mime-info)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(add-after
|
(add-after
|
||||||
|
@ -1620,7 +1624,18 @@ point numbers.")
|
||||||
"/bin/wxmaxima")
|
"/bin/wxmaxima")
|
||||||
`("PATH" ":" prefix
|
`("PATH" ":" prefix
|
||||||
(,(string-append (assoc-ref inputs "maxima")
|
(,(string-append (assoc-ref inputs "maxima")
|
||||||
"/bin"))))
|
"/bin")))
|
||||||
|
;; For GtkFileChooserDialog.
|
||||||
|
`("GSETTINGS_SCHEMA_DIR" =
|
||||||
|
(,(string-append (assoc-ref inputs "gtk+")
|
||||||
|
"/share/glib-2.0/schemas")))
|
||||||
|
`("XDG_DATA_DIRS" ":" prefix
|
||||||
|
(;; Needed by gdk-pixbuf to know supported icon formats.
|
||||||
|
,(string-append
|
||||||
|
(assoc-ref inputs "shared-mime-info") "/share")
|
||||||
|
;; The default icon theme of GTK+.
|
||||||
|
,(string-append
|
||||||
|
(assoc-ref inputs "adwaita-icon-theme") "/share"))))
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "https://andrejv.github.io/wxmaxima/")
|
(home-page "https://andrejv.github.io/wxmaxima/")
|
||||||
(synopsis "Graphical user interface for the Maxima computer algebra system")
|
(synopsis "Graphical user interface for the Maxima computer algebra system")
|
||||||
|
|
Reference in a new issue