gnu: geany: Fix crash when displaying file selection

* gnu/packages/text-editors.scm (geany)[arguments]: Wrap GTK to prevent errors
when opening file selection menu.
This commit is contained in:
Nicolas Goaziou 2020-06-01 23:31:22 +02:00
parent e642f78f2e
commit f3ed529739
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -821,7 +821,12 @@ (define-public geany
`(("gtk+" ,gtk+)
("scintilla" ,scintilla)))
(arguments
`(#:phases
`(#:imported-modules ((guix build glib-or-gtk-build-system)
,@%gnu-build-system-modules)
#:modules (((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
(guix build gnu-build-system)
(guix build utils))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'use-scintilla-shared-library
(lambda* (#:key inputs #:allow-other-keys)
@ -838,7 +843,9 @@ (define-public geany
(substitute* "tests/Makefile.am"
(("AM_LDFLAGS =" all) (string-append all " -lscintilla")))
(for-each delete-file (list "autogen.sh" "configure" "Makefile.in"))
#t)))))
#t))
(add-after 'install 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
(home-page "https://www.geany.org")
(synopsis "Fast and lightweight IDE")
(description "Geany is a small and fast Integrated Development