summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorWang Wen <ysoqli1@outlook.com>2026-08-24 11:58:37 +0800
committer宋文武 <iyzsong@member.fsf.org>2026-08-26 14:29:37 +0800
commit8c59f7640e2e525ad5bfd76c6c1224d5b44cef83 (patch)
treeed721368762b9936ed4b116fb4559123bb8815ef /gnu
parentbfd34bd457c22584c15a3d729c9823eb79e5688b (diff)
gnu: nimf: Update to 1.4.19.
* gnu/packages/language.scm (nimf): Update to 1.4.19. [arguments]<#:configure-flags>: Add GTK_QUERY_IMMODULES3, GTK_QUERY_IMMODULES2, and GTK_UPDATE_ICON_CACHE flags. <#:phases>: Remove 'disable-qt4 and 'patch-flags phases. Update 'patch-paths phase to patch appindicator headers and flags. Merges: https://codeberg.org/guix/guix/pulls/10764 Change-Id: I5234b72dfdf3c969f4cfb11e3a72101f3ec534af Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/language.scm57
1 files changed, 24 insertions, 33 deletions
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 6dbdfe2dd62..028a95cd8d5 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -103,19 +103,16 @@
103(define-public nimf 103(define-public nimf
104 (package 104 (package
105 (name "nimf") 105 (name "nimf")
106 (version "1.2") 106 (version "1.4.19")
107 (source 107 (source
108 (origin 108 (origin
109 (method git-fetch) 109 (method git-fetch)
110 (uri 110 (uri (git-reference
111 (git-reference 111 (url "https://github.com/hamonikr/nimf")
112 (url "https://github.com/hamonikr/nimf.git") 112 (commit (string-append "v" version))))
113 (commit 113 (file-name (git-file-name name version))
114 (string-append "nimf-" version))))
115 (file-name
116 (git-file-name name version))
117 (sha256 114 (sha256
118 (base32 "01qi7flmaqrn2fk03sa42r0caks9d8lsv88s0bgxahhxwk1x76gc")))) 115 (base32 "0p88y1v4wngy9bn5xikcrljjd2wg7s73fg9gw839n3q8061qamk0"))))
119 (build-system glib-or-gtk-build-system) 116 (build-system glib-or-gtk-build-system)
120 (outputs '("out" "gtk" "qt" "doc")) 117 (outputs '("out" "gtk" "qt" "doc"))
121 (arguments 118 (arguments
@@ -130,37 +127,31 @@
130 #~(list "--with-im-config-data" 127 #~(list "--with-im-config-data"
131 "--with-imsettings-data" 128 "--with-imsettings-data"
132 (string-append "--with-html-dir=" #$output:doc 129 (string-append "--with-html-dir=" #$output:doc
133 "/share/gtk-doc/html")) 130 "/share/gtk-doc/html")
131 (string-append "GTK_QUERY_IMMODULES3="
132 (search-input-file
133 %build-inputs "/bin/gtk-query-immodules-3.0"))
134 (string-append "GTK_QUERY_IMMODULES2="
135 (search-input-file
136 %build-inputs "/bin/gtk-query-immodules-2.0"))
137 (string-append "GTK_UPDATE_ICON_CACHE="
138 (search-input-file
139 %build-inputs "/bin/gtk-update-icon-cache")))
134 #:phases 140 #:phases
135 #~(modify-phases %standard-phases 141 #~(modify-phases %standard-phases
136 (add-after 'unpack 'disable-qt4 142 (add-after 'unpack 'patch-paths
137 (lambda _
138 (substitute* '("configure.ac" "modules/clients/Makefile.am")
139 (("\\[QtGui\\]")
140 "[Qt5Gui]")
141 ((" qt4")
142 ""))))
143 (add-after 'disable-qt4 'patch-flags
144 (lambda _
145 (substitute* "configure.ac"
146 (("-Werror")
147 "-Wno-error"))))
148 (add-after 'patch-flags 'patch-paths
149 (lambda* (#:key inputs #:allow-other-keys) 143 (lambda* (#:key inputs #:allow-other-keys)
150 (substitute* "configure.ac" 144 (substitute* "configure.ac"
151 (("/usr/share/anthy/anthy.dic") 145 (("/usr/share/anthy/anthy.dic")
152 (search-input-file inputs "/share/anthy/anthy.dic"))) 146 (search-input-file inputs "/share/anthy/anthy.dic")))
153 (substitute* "configure.ac" 147 (substitute* "configure.ac"
154 ;; Do not provide the PATH argument to AC_PATH_PROG; so that 148 (("ayatana-appindicator3-0.1")
155 ;; the needed binaries are looked from PATH (the default 149 "appindicator3-0.1")
156 ;; behavior). 150 (("-Werror")
157 (("\\[/usr/bin:\\$GTK3_LIBDIR/libgtk-3-0]") 151 "-Wno-error"))
158 "") 152 (substitute* "modules/services/indicator/nimf-indicator.c"
159 (("\\[/usr/bin:\\$GTK2_LIBDIR/libgtk2.0-0]") 153 (("libayatana-appindicator/app-indicator.h")
160 "") 154 "libappindicator/app-indicator.h"))
161 (("\\[/usr/bin:\\$GTK3_LIBDIR/libgtk-3-0:\
162\\$GTK2_LIBDIR/libgtk2.0-0]")
163 ""))
164 (substitute* "modules/clients/gtk/Makefile.am" 155 (substitute* "modules/clients/gtk/Makefile.am"
165 (("\\$\\(GTK3_LIBDIR\\)") 156 (("\\$\\(GTK3_LIBDIR\\)")
166 (string-append #$output:gtk "/lib")) 157 (string-append #$output:gtk "/lib"))