gnu: seahorse: Update to 3.32.2.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
CommitLineData
995b7261 1;;; GNU Guix --- Functional package management for GNU
109da1c0 2;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
44a06c94 3;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
7108425c 5;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
58d32305 6;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8b877545 7;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
7aab13f1 8;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
63ad9b80 9;;; Copyright © 2015, 2017 Andy Wingo <wingo@igalia.com>
1e7464a9 10;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
7d3bb433 11;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
64a153bd 12;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
293ff8b2 13;;; Copyright © 2015 David Thompson <davet@gnu.org>
0528f70d 14;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
35e2d0cf 15;;; Copyright © 2016, 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
3c697ffd 16;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
03be9874 17;;; Copyright © 2016, 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
277a7d82 18;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
a56be436 19;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
e19f9c24 20;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
71d9b980 21;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
47956fa0 22;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
e5e1df4d 23;;; Copyright © 2016 David Craven <david@craven.ch>
fa75a213 24;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
cce0da5e 25;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
d04687dc 26;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
3c5dbd2b 27;;; Copyright © 2017, 2018 nee <nee-git@hidamari.blue>
d1d739fa 28;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
1d3fcf94 29;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
dcfa0acd 30;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
0438f1d8 31;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
4e3fdeb7 32;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@riseup.net>
2eee7ee3 33;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
a18f8eaf 34;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
e57c2adb 35;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
8caa4589 36;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
ec47c07d 37;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
3e9c80b2 38;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
a7a31827 39;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
633422b0 40;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
213315d4 41;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
aa51d92c 42;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
ad6e168b 43;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
93beace0 44;;; Copyright © 2019 David Wilson <david@daviwil.com>
995b7261
AE
45;;;
46;;; This file is part of GNU Guix.
47;;;
48;;; GNU Guix is free software; you can redistribute it and/or modify it
49;;; under the terms of the GNU General Public License as published by
50;;; the Free Software Foundation; either version 3 of the License, or (at
51;;; your option) any later version.
52;;;
53;;; GNU Guix is distributed in the hope that it will be useful, but
54;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56;;; GNU General Public License for more details.
57;;;
58;;; You should have received a copy of the GNU General Public License
59;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60
61(define-module (gnu packages gnome)
ed19903d 62 #:use-module (gnu packages)
ba5dd105 63 #:use-module (gnu packages admin)
411ba511 64 #:use-module (gnu packages aspell)
75016d07 65 #:use-module (gnu packages autotools)
7b212526 66 #:use-module (gnu packages avahi)
b29909b4 67 #:use-module (gnu packages backup)
6a180f6f 68 #:use-module (gnu packages base)
1e33331c 69 #:use-module (gnu packages bash)
5698b8b8 70 #:use-module (gnu packages bison)
aa51d92c 71 #:use-module (gnu packages boost)
5fc9b6c1 72 #:use-module (gnu packages build-tools)
df217748 73 #:use-module (gnu packages calendar)
b29909b4 74 #:use-module (gnu packages cdrom)
df12f04a 75 #:use-module (gnu packages check)
d61a894b 76 #:use-module (gnu packages cmake)
b29909b4 77 #:use-module (gnu packages compression)
8f523eb9 78 #:use-module (gnu packages crates-io)
23a22af6 79 #:use-module (gnu packages cups)
6e1bb642 80 #:use-module (gnu packages curl)
c3f29bc9 81 #:use-module (gnu packages cyrus-sasl)
6e1bb642 82 #:use-module (gnu packages databases)
255d1bbe 83 #:use-module (gnu packages dbm)
c769cf9f 84 #:use-module (gnu packages djvu)
ba5dd105 85 #:use-module (gnu packages dns)
b4ce6300 86 #:use-module (gnu packages docbook)
b29909b4 87 #:use-module (gnu packages documentation)
329d731b 88 #:use-module (gnu packages enchant)
b29909b4
TGR
89 #:use-module (gnu packages flex)
90 #:use-module (gnu packages fonts)
e762d943 91 #:use-module (gnu packages file-systems)
a56be436 92 #:use-module (gnu packages fontutils)
b29909b4 93 #:use-module (gnu packages freedesktop)
dfc407f3 94 #:use-module (gnu packages game-development)
fed5a689 95 #:use-module (gnu packages gettext)
b29909b4
TGR
96 #:use-module (gnu packages ghostscript)
97 #:use-module (gnu packages gl)
995b7261 98 #:use-module (gnu packages glib)
c1354b90 99 #:use-module (gnu packages gnupg)
23a22af6 100 #:use-module (gnu packages gnuzilla)
b29909b4
TGR
101 #:use-module (gnu packages gperf)
102 #:use-module (gnu packages graphviz)
85f5dc19 103 #:use-module (gnu packages gstreamer)
d9c1a22b 104 #:use-module (gnu packages gtk)
6b888eff 105 #:use-module (gnu packages guile)
b645146f 106 #:use-module (gnu packages ibus)
03be9874 107 #:use-module (gnu packages icu4c)
b29909b4
TGR
108 #:use-module (gnu packages image)
109 #:use-module (gnu packages imagemagick)
110 #:use-module (gnu packages inkscape)
9cc98f8a 111 #:use-module (gnu packages iso-codes)
b29909b4 112 #:use-module (gnu packages kerberos)
85f5dc19 113 #:use-module (gnu packages libcanberra)
b64e217f 114 #:use-module (gnu packages libunistring)
75016d07 115 #:use-module (gnu packages libusb)
b29909b4 116 #:use-module (gnu packages linux)
4e3fc547 117 #:use-module (gnu packages lirc)
7b212526 118 #:use-module (gnu packages lua)
b29909b4 119 #:use-module (gnu packages mail)
03be9874 120 #:use-module (gnu packages mp3)
b29909b4 121 #:use-module (gnu packages multiprecision)
64fce637 122 #:use-module (gnu packages music)
b29909b4
TGR
123 #:use-module (gnu packages ncurses)
124 #:use-module (gnu packages nettle)
ba5dd105 125 #:use-module (gnu packages networking)
5fc9b6c1 126 #:use-module (gnu packages ninja)
aff0cce9 127 #:use-module (gnu packages nss)
b29909b4 128 #:use-module (gnu packages openldap)
b645146f 129 #:use-module (gnu packages password-utils)
de1215e2 130 #:use-module (gnu packages pcre)
b29909b4 131 #:use-module (gnu packages pdf)
27477d2d 132 #:use-module (gnu packages perl)
f70d8383 133 #:use-module (gnu packages photo)
995b7261 134 #:use-module (gnu packages pkg-config)
b29909b4
TGR
135 #:use-module (gnu packages polkit)
136 #:use-module (gnu packages popt)
7d3bb433 137 #:use-module (gnu packages pretty-print)
23a22af6 138 #:use-module (gnu packages pulseaudio)
995b7261 139 #:use-module (gnu packages python)
00014781
RW
140 #:use-module (gnu packages python-crypto)
141 #:use-module (gnu packages python-web)
44d10b1f 142 #:use-module (gnu packages python-xyz)
cce0da5e 143 #:use-module (gnu packages rdesktop)
b29909b4 144 #:use-module (gnu packages readline)
a76d0f03 145 #:use-module (gnu packages ruby)
ec47c07d 146 #:use-module (gnu packages rust)
b29909b4 147 #:use-module (gnu packages samba)
75016d07 148 #:use-module (gnu packages scanner)
240cee8a 149 #:use-module (gnu packages selinux)
c27e02bf 150 #:use-module (gnu packages slang)
b29909b4
TGR
151 #:use-module (gnu packages speech)
152 #:use-module (gnu packages spice)
cd0322a3 153 #:use-module (gnu packages sqlite)
4a1bf090 154 #:use-module (gnu packages ssh)
8f9ac901 155 #:use-module (gnu packages tex)
33dc54b0 156 #:use-module (gnu packages time)
a7fd7b68 157 #:use-module (gnu packages tls)
3c5dbd2b 158 #:use-module (gnu packages version-control)
b29909b4 159 #:use-module (gnu packages video)
59132b80 160 #:use-module (gnu packages virtualization)
f2b96b3a 161 #:use-module (gnu packages vpn)
a18f8eaf 162 #:use-module (gnu packages web)
b29909b4
TGR
163 #:use-module (gnu packages web)
164 #:use-module (gnu packages webkit)
165 #:use-module (gnu packages xdisorg)
166 #:use-module (gnu packages xiph)
167 #:use-module (gnu packages xml)
d633f2f6 168 #:use-module (gnu packages xorg)
b29909b4 169 #:use-module (gnu packages xorg)
a76d0f03 170 #:use-module (gnu artwork)
8f523eb9 171 #:use-module (guix build-system cargo)
b29909b4
TGR
172 #:use-module (guix build-system cmake)
173 #:use-module (guix build-system glib-or-gtk)
174 #:use-module (guix build-system gnu)
175 #:use-module (guix build-system meson)
08be02be 176 #:use-module (guix build-system python)
b29909b4
TGR
177 #:use-module (guix build-system trivial)
178 #:use-module (guix download)
179 #:use-module (guix git-download)
180 #:use-module ((guix licenses) #:prefix license:)
181 #:use-module (guix packages)
182 #:use-module (guix utils)
a76d0f03 183 #:use-module (guix gexp)
8f523eb9
EF
184 #:use-module (guix monads)
185 #:use-module (guix store)
4e3fdeb7 186 #:use-module (ice-9 match)
c024ae36 187 #:use-module (srfi srfi-1))
85f5dc19
AE
188
189(define-public brasero
190 (package
191 (name "brasero")
e2bf423a 192 (version "3.12.2")
85f5dc19
AE
193 (source (origin
194 (method url-fetch)
e8627cd9
DH
195 (uri (string-append "mirror://gnome/sources/" name "/"
196 (version-major+minor version) "/"
197 name "-" version ".tar.xz"))
85f5dc19
AE
198 (sha256
199 (base32
e2bf423a 200 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
1c40e3b7 201 (build-system glib-or-gtk-build-system)
e8627cd9
DH
202 (arguments
203 `(#:configure-flags (list
204 (string-append "--with-girdir="
205 (assoc-ref %outputs "out")
206 "/share/gir-1.0")
207 (string-append "--with-typelibdir="
208 (assoc-ref %outputs "out")
ce426deb
TD
209 "/lib/girepository-1.0"))
210 #:phases
211 (modify-phases %standard-phases
212 (add-before 'configure 'embed-growisofs
213 (lambda* (#:key inputs #:allow-other-keys)
214 (substitute* "plugins/growisofs/burn-growisofs.c"
215 (("\"growisofs") (string-append "\"" (which "growisofs"))))
e2bf423a 216 #t)))))
85f5dc19
AE
217 (propagated-inputs
218 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
9cc98f8a
CR
219 (native-inputs
220 `(("intltool" ,intltool)
426adbe8 221 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
e8627cd9 222 ("gobject-introspection" ,gobject-introspection)
9cc98f8a 223 ("pkg-config" ,pkg-config)))
85f5dc19 224 (inputs
ce426deb
TD
225 `(("dvd+rw-tools" ,dvd+rw-tools)
226 ("glib" ,glib)
85f5dc19
AE
227 ("gnome-doc-utils" ,gnome-doc-utils)
228 ("gstreamer" ,gstreamer)
229 ("gst-plugins-base" ,gst-plugins-base)
230 ("gtk+" ,gtk+)
85f5dc19
AE
231 ("itstool" ,itstool)
232 ("libcanberra" ,libcanberra)
233 ("libice" ,libice)
234 ("libnotify" ,libnotify)
235 ("libsm" ,libsm)
e8627cd9 236 ("libxml2" ,libxml2)
e8627cd9 237 ("totem-pl-parser" ,totem-pl-parser)))
85f5dc19
AE
238 (home-page "https://projects.gnome.org/brasero/")
239 (synopsis "CD/DVD burning tool for Gnome")
240 (description "Brasero is an application to burn CD/DVD for the Gnome
241Desktop. It is designed to be as simple as possible and has some unique
242features to enable users to create their discs easily and quickly.")
1dd26275 243 (license license:gpl2+)))
995b7261 244
d61a894b
CB
245(define-public deja-dup
246 (package
247 (name "deja-dup")
248 (version "34.3")
249 (source (origin
250 (method url-fetch)
251 (uri "https://launchpadlibrarian.net/295170991/deja-dup-34.3.tar.xz")
252 (sha256
253 (base32
254 "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9"))
255 (patches
256 (search-patches "deja-dup-use-ref-keyword-for-iter.patch"))))
257 (build-system glib-or-gtk-build-system)
258 (arguments
259 `(#:modules ((guix build gnu-build-system)
260 ((guix build cmake-build-system) #:prefix cmake:)
261 (guix build glib-or-gtk-build-system)
262 (guix build utils))
263 #:imported-modules (,@%glib-or-gtk-build-system-modules
264 (guix build cmake-build-system))
265 #:test-target "test"
266 #:configure-flags (list (string-append
267 "-DCMAKE_INSTALL_FULL_DATADIR=" %output)
268 (string-append
269 "-DCMAKE_INSTALL_LIBEXECDIR=" %output))
270 #:phases
271 (modify-phases %standard-phases
272 (add-after 'unpack 'patch-lockfile-deletion
273 (lambda rest
274 (substitute* "libdeja/tools/duplicity/DuplicityInstance.vala"
275 (("/bin/rm")
276 (which "rm")))))
277 (replace 'configure
278 (assoc-ref cmake:%standard-phases 'configure))
279 (delete 'check) ;; Fails due to issues with DBus
280 (add-after 'install 'wrap-deja-dup
281 (lambda* (#:key inputs outputs #:allow-other-keys)
282 (let ((python (assoc-ref inputs "python"))
283 (python-path (getenv "PYTHONPATH"))
284 (duplicity (assoc-ref inputs "duplicity"))
285 (out (assoc-ref outputs "out")))
286 (for-each
287 (lambda (program)
288 (wrap-program program
289 `("PATH" ":" prefix (,(string-append python "/bin")
290 ,(string-append duplicity "/bin"))))
291 (wrap-program program
292 `("PYTHONPATH" ":" prefix (,python-path))))
293
294 (find-files (string-append out "/bin")))
295 #t))))))
296 (inputs
297 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
298 ("gobject-introspection" ,gobject-introspection)
299 ("duplicity" ,duplicity)
61506fe5 300 ("python" ,python-2)
d61a894b
CB
301 ("python-pygobject" ,python2-pygobject)
302 ("gtk+" ,gtk+)
303 ("libnotify" ,libnotify)
304 ("libpeas" ,libpeas)
305 ("libsecret" ,libsecret)
306 ("packagekit" ,packagekit)))
307 (native-inputs
308 `(("pkg-config" ,pkg-config)
309 ("vala" ,vala)
310 ("gettext" ,gettext-minimal)
311 ("itstool" ,itstool)
312 ("intltool" ,intltool)
c69959f0 313 ("cmake" ,cmake-minimal)))
d61a894b
CB
314 (home-page "https://launchpad.net/deja-dup")
315 (synopsis "Simple backup tool, for regular encrypted backups")
316 (description
317 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
318uses duplicity as the backend, which supports incremental backups and storage
319either on a local, or remote machine via a number of methods.")
320 (license license:gpl3+)))
321
a56be436
RJ
322(define-public dia
323 ;; This version from GNOME's repository includes fixes for compiling with
324 ;; recent versions of the build tools. The latest activity on the
325 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
326 ;; fixes in 2016.
327 (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
328 (package
329 (name "dia")
330 (version (string-append "0.97.2-" (string-take commit 7)))
331 (source (origin
332 (method git-fetch)
333 (uri (git-reference
334 (url "https://git.gnome.org/browse/dia")
335 (commit commit)))
336 (file-name (string-append name "-" version "-checkout"))
337 (sha256
338 (base32
339 "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
340 (build-system gnu-build-system)
341 (inputs
342 `(("glib" ,glib "bin")
343 ("pango" ,pango)
344 ("gdk-pixbuf" ,gdk-pixbuf)
345 ("gtk+" ,gtk+-2)
346 ("libxml2" ,libxml2)
347 ("freetype" ,freetype)
348 ("libart-lgpl" ,libart-lgpl)))
349 (native-inputs
350 `(("intltool" ,intltool)
351 ("pkg-config" ,pkg-config)
352 ("automake" ,automake)
353 ("autoconf" ,autoconf)
354 ("libtool" ,libtool)
355 ("perl" ,perl)
356 ("python-wrapper" ,python-wrapper)))
357 (arguments
358 `(#:phases
359 (modify-phases %standard-phases
d10092b8 360 (add-after 'unpack 'run-autogen
a56be436
RJ
361 (lambda _
362 (system* "sh" "autogen.sh"))))))
363 (home-page "https://wiki.gnome.org/Apps/Dia")
364 (synopsis "Diagram creation for GNOME")
365 (description "Dia can be used to draw different types of diagrams, and
366includes support for UML static structure diagrams (class diagrams), entity
367relationship modeling, and network diagrams. The program supports various file
368formats like PNG, SVG, PDF and EPS.")
369 (license license:gpl2+))))
370
d0b19e44
RW
371;; This is the unstable release, but it is required for the current stable
372;; release of gvfs (1.38.1).
adc5cb1b
KK
373(define-public libgdata
374 (package
375 (name "libgdata")
d0b19e44 376 (version "0.17.9")
adc5cb1b
KK
377 (source (origin
378 (method url-fetch)
379 (uri (string-append "mirror://gnome/sources/" name "/"
380 (version-major+minor version) "/"
381 name "-" version ".tar.xz"))
382 (sha256
383 (base32
d0b19e44 384 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
adc5cb1b
KK
385 (build-system gnu-build-system)
386 (arguments
387 '(#:phases
388 (modify-phases %standard-phases
448052b7
TGR
389 (add-before 'check 'disable-failing-tests
390 (lambda _
391 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
392 ;; They have been removed in libgdata 0.17.6, so just do the same.
393 (substitute* "gdata/tests/Makefile"
394 (("picasaweb\\$\\(EXEEXT\\) ") ""))
adc5cb1b
KK
395 #t)))))
396 (native-inputs
397 `(("glib:bin" ,glib "bin")
398 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
399 ("intltool" ,intltool)
400 ("pkg-config" ,pkg-config)
401 ("uhttpmock" ,uhttpmock)))
402 (inputs
403 `(("cyrus-sasl" ,cyrus-sasl)
d0b19e44 404 ("glib-networking" ,glib-networking)))
adc5cb1b
KK
405 (propagated-inputs
406 `(("gcr" ,gcr)
d0b19e44 407 ("glib" ,glib)
14c297fd 408 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
d0b19e44 409 ("json-glib" ,json-glib)
adc5cb1b 410 ("liboauth" ,liboauth)
d0b19e44 411 ("libsoup" ,libsoup)
adc5cb1b
KK
412 ("libxml2" ,libxml2)))
413 (home-page "https://wiki.gnome.org/Projects/libgdata")
414 (synopsis "Library for accessing online service APIs")
415 (description
416 "libgdata is a GLib-based library for accessing online service APIs using
417the GData protocol — most notably, Google's services. It provides APIs to
418access the common Google services, and has full asynchronous support.")
419 (license license:lgpl2.1+)))
420
94e10cf4
KK
421(define-public libgxps
422 (package
423 (name "libgxps")
66470a5a 424 (version "0.3.1")
94e10cf4
KK
425 (source (origin
426 (method url-fetch)
7f10628c 427 (uri (string-append "mirror://gnome/sources/" name "/"
94e10cf4
KK
428 (version-major+minor version) "/"
429 name "-" version ".tar.xz"))
430 (sha256
431 (base32
66470a5a 432 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
b6b3e512 433 (build-system meson-build-system)
94e10cf4
KK
434 (native-inputs
435 `(("gobject-introspection" ,gobject-introspection)
436 ("pkg-config" ,pkg-config)))
437 (inputs
c8d62d93 438 `(("gtk+" ,gtk+)
b6b3e512 439 ("libjpeg" ,libjpeg-turbo)
94e10cf4 440 ("lcms" ,lcms)
0a6e9e13 441 ("libtiff" ,libtiff)))
c8d62d93
MB
442 (propagated-inputs
443 ;; In Requires of libgxps.pc.
444 `(("cairo" ,cairo)
445 ("glib" ,glib)
446 ("libarchive" ,libarchive)))
94e10cf4
KK
447 (home-page "https://wiki.gnome.org/Projects/libgxps")
448 (synopsis "GObject-based library for handling and rendering XPS documents")
449 (description
450 "libgxps is a GObject-based library for handling and rendering XPS
451documents. This package also contains binaries that can convert XPS documents
452to other formats.")
453 (license license:lgpl2.1+)))
454
7aab13f1
ML
455(define-public gnome-common
456 (package
457 (name "gnome-common")
af83490d 458 (version "3.18.0")
7aab13f1
ML
459 (source
460 (origin
461 (method url-fetch)
462 (uri (string-append "mirror://gnome/sources/" name "/"
463 (version-major+minor version) "/"
464 name "-" version ".tar.xz"))
465 (sha256
466 (base32
af83490d 467 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
7aab13f1
ML
468 (build-system gnu-build-system)
469 (home-page "https://www.gnome.org/")
470 (synopsis "Bootstrap GNOME modules built from Git")
471 (description "gnome-common contains various files needed to bootstrap
472GNOME modules built from Git. It contains a common \"autogen.sh\" script that
473can be used to configure a source directory checked out from Git and some
474commonly used macros.")
475 (license license:gpl2+)))
476
9cc98f8a
CR
477(define-public gnome-desktop
478 (package
479 (name "gnome-desktop")
e8a26caa 480 (version "3.32.2")
9cc98f8a
CR
481 (source
482 (origin
483 (method url-fetch)
b38e45d8
EB
484 (uri (string-append "mirror://gnome/sources/" name "/"
485 (version-major+minor version) "/"
9cc98f8a
CR
486 name "-" version ".tar.xz"))
487 (sha256
488 (base32
e8a26caa
KK
489 "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9"))))
490 (build-system meson-build-system)
a0fe7c06
CB
491 (arguments
492 '(#:phases
493 (modify-phases %standard-phases
494 (add-before 'configure 'patch-path
495 (lambda* (#:key inputs #:allow-other-keys)
496 (let ((libc (assoc-ref inputs "libc")))
497 (substitute* "libgnome-desktop/gnome-languages.c"
498 (("\"locale\"")
499 (string-append "\"" libc "/bin/locale\"")))
e8a26caa
KK
500 #t)))
501 (add-before 'check 'pre-check
502 (lambda* (#:key inputs #:allow-other-keys)
503 ;; Tests require a running X server and locales.
504 (system "Xvfb :1 &")
505 (setenv "DISPLAY" ":1")
506 (setenv "GUIX_LOCPATH"
507 (string-append (assoc-ref inputs "glibc-locales")
508 "/lib/locale"))
509 #t)))))
9cc98f8a 510 (native-inputs
e8a26caa
KK
511 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
512 ("glibc-locales" ,glibc-locales) ; for tests
513 ("gobject-introspection" ,gobject-introspection)
a8340482 514 ("itstool" ,itstool)
bcb354ad
SB
515 ("intltool" ,intltool)
516 ("pkg-config" ,pkg-config)
e8a26caa
KK
517 ("xmllint" ,libxml2)
518 ("xorg-server" ,xorg-server-for-tests)))
a8340482
SB
519 (propagated-inputs
520 ;; Required by gnome-desktop-3.0.pc.
521 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
e8a26caa 522 ("gtk+" ,gtk+)
9cc98f8a 523 ("iso-codes" ,iso-codes)
9863ce20 524 ("libseccomp" ,libseccomp)
9cc98f8a 525 ("libx11" ,libx11)
e8a26caa
KK
526 ("xkeyboard-config" ,xkeyboard-config)))
527 (inputs
528 `(("gdk-pixbuf" ,gdk-pixbuf)
529 ("glib" ,glib)
9cc98f8a
CR
530 ("libxext" ,libxext)
531 ("libxkbfile" ,libxkbfile)
e8a26caa 532 ("libxrandr" ,libxrandr)))
9cc98f8a
CR
533 (home-page "https://www.gnome.org/")
534 (synopsis
35b9e423 535 "Libgnome-desktop, gnome-about, and desktop-wide documents")
9cc98f8a
CR
536 (description
537 "The libgnome-desktop library provides API shared by several applications
35b9e423
EB
538on the desktop, but that cannot live in the platform for various reasons.
539There is no API or ABI guarantee, although we are doing our best to provide
540stability. Documentation for the API is available with gtk-doc.
9cc98f8a
CR
541
542The gnome-about program helps find which version of GNOME is installed.")
543 ; Some bits under the LGPL.
1dd26275 544 (license license:gpl2+)))
9cc98f8a 545
995b7261
AE
546(define-public gnome-doc-utils
547 (package
548 (name "gnome-doc-utils")
549 (version "0.20.10")
550 (source
551 (origin
552 (method url-fetch)
b38e45d8
EB
553 (uri (string-append "mirror://gnome/sources/" name "/"
554 (version-major+minor version) "/"
995b7261
AE
555 name "-" version ".tar.xz"))
556 (sha256
557 (base32
558 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
559 (build-system gnu-build-system)
c4c4cc05 560 (native-inputs
995b7261 561 `(("intltool" ,intltool)
b4ce6300 562 ("docbook-xml" ,docbook-xml-4.4)
d80b0d4a 563 ("python2-libxml2" ,python2-libxml2)
995b7261
AE
564 ("libxml2" ,libxml2)
565 ("libxslt" ,libxslt)
566 ("pkg-config" ,pkg-config)
567 ("python-2" ,python-2)))
995b7261
AE
568 (home-page "https://wiki.gnome.org/GnomeDocUtils")
569 (synopsis
570 "Documentation utilities for the Gnome project")
571 (description
572 "Gnome-doc-utils is a collection of documentation utilities for the
573Gnome project. It includes xml2po tool which makes it easier to translate
574and keep up to date translations of documentation.")
1dd26275 575 (license license:gpl2+))) ; xslt under lgpl
d9c1a22b 576
6c4f7022
DC
577(define-public gnome-disk-utility
578 (package
579 (name "gnome-disk-utility")
e106d0a6 580 (version "3.32.1")
6c4f7022
DC
581 (source (origin
582 (method url-fetch)
583 (uri (string-append "mirror://gnome/sources/" name "/"
584 (version-major+minor version) "/"
585 name "-" version ".tar.xz"))
586 (sha256
587 (base32
e106d0a6 588 "08vwbji9m1nhjjdiyhhaqi8cncys7i89b4bpy095f8475v8y05bg"))))
4b9a65bf 589 (build-system meson-build-system)
321c73c3
EF
590 (arguments
591 '(#:phases
592 (modify-phases %standard-phases
593 (add-after 'unpack 'skip-gtk-update-icon-cache
594 ;; Don't create 'icon-theme.cache'.
595 (lambda _
596 (substitute* "meson_post_install.py"
597 (("gtk-update-icon-cache") "true"))
598 #t)))))
6c4f7022
DC
599 (native-inputs
600 `(("glib:bin" ,glib "bin")
601 ("intltool" ,intltool)
602 ("pkg-config" ,pkg-config)
603 ("docbook-xml" ,docbook-xml)
604 ("docbook-xsl" ,docbook-xsl)
605 ("libxml2" ,libxml2)
606 ("libxslt" ,libxslt)))
607 (inputs
608 `(("glib" ,glib)
609 ("appstream-glib" ,appstream-glib)
610 ("gnome-settings-daemon" ,gnome-settings-daemon)
611 ("gtk+" ,gtk+)
612 ("libcanberra" ,libcanberra)
613 ("libdvdread" ,libdvdread)
614 ("libnotify" ,libnotify)
615 ("libpwquality" ,libpwquality)
616 ("libsecret" ,libsecret)
617 ("udisks" ,udisks)))
618 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
619 (synopsis "Disk management utility for GNOME")
620 (description "Disk management utility for GNOME.")
621 (license license:gpl2+)))
622
8ff49011
RW
623(define-public gcr
624 (package
625 (name "gcr")
bea6b829 626 (version "3.28.1")
8ff49011 627 (source (origin
0daf0efb
RW
628 (method url-fetch)
629 (uri (string-append "mirror://gnome/sources/" name "/"
630 (version-major+minor version) "/"
631 name "-" version ".tar.xz"))
632 (sha256
633 (base32
bea6b829 634 "12qn7mcmxb45lz1gq3s3b34rimiyrrshkrpvxdw1fc0w26i4l84m"))
03ecf85a
MB
635 (patches
636 (list
637 ;; This patch solves an ordering issue that showed up when
638 ;; running the test suite against newer Glib 2.60. See
639 ;; <https://gitlab.gnome.org/GNOME/gcr/merge_requests/9>.
640 (origin
641 (method url-fetch)
642 (uri (string-append "https://gitlab.gnome.org/GNOME/gcr/commit/"
643 "45d637578d7643ff96c0183ac267497a0b4c6344.diff"))
644 (file-name "gcr-hashtable-ordering.patch")
645 (sha256
646 (base32
647 "1vsqiys8fsm1f1vvds783wwf7zwi5v282rhsai8jrsm6x7h79gbi")))))))
8ff49011
RW
648 (build-system gnu-build-system)
649 (arguments
0daf0efb
RW
650 '(#:phases
651 (modify-phases %standard-phases
652 ;; These fail because /var/lib/dbus/machine-id is not present in the
653 ;; build environment.
654 (add-after 'unpack 'disable-failing-tests
655 (lambda _
656 (substitute* "gcr/test-system-prompt.c"
657 (("g_test_add") "//")
658 (("return.*") "return 0;"))
659 #t))
660 (add-before 'check 'pre-check
661 (lambda _
662 ;; Some tests expect to write to $HOME.
663 (setenv "HOME" "/tmp")
664 #t)))))
8ff49011
RW
665 (inputs
666 `(("dbus" ,dbus)
0daf0efb 667 ("gnupg" ,gnupg) ;called as a child process during tests
8ff49011
RW
668 ("libgcrypt" ,libgcrypt)))
669 (native-inputs
0daf0efb 670 `(("python" ,python-2) ;for tests
8ff49011
RW
671 ("pkg-config" ,pkg-config)
672 ("glib" ,glib "bin")
2af4f5b0
SB
673 ("gobject-introspection" ,gobject-introspection)
674 ("intltool" ,intltool)
0daf0efb 675 ("libxml2" ,libxml2)
bea6b829 676 ("vala" ,vala)
2af4f5b0 677 ("xsltproc" ,libxslt)))
8ff49011
RW
678 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
679 (propagated-inputs
680 `(("p11-kit" ,p11-kit)
681 ("glib" ,glib)
682 ("gtk+" ,gtk+)))
f032d0be 683 (home-page "https://www.gnome.org")
8ff49011
RW
684 (synopsis "Libraries for displaying certificates and accessing key stores")
685 (description
686 "The GCR package contains libraries used for displaying certificates and
687accessing key stores. It also provides the viewer for crypto files on the
688GNOME Desktop.")
689 (license license:lgpl2.1+)))
690
c1354b90
LC
691(define-public libgnome-keyring
692 (package
693 (name "libgnome-keyring")
5e8aec2c 694 (version "3.12.0")
c1354b90
LC
695 (source (origin
696 (method url-fetch)
b38e45d8
EB
697 (uri (string-append "mirror://gnome/sources/" name "/"
698 (version-major+minor version) "/"
699 name "-" version ".tar.xz"))
c1354b90
LC
700 (sha256
701 (base32
5e8aec2c 702 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
c1354b90 703 (build-system gnu-build-system)
c1354b90 704 (inputs
c4c4cc05 705 `(("libgcrypt" ,libgcrypt)
c1354b90 706 ("dbus" ,dbus)))
c4c4cc05
JD
707 (native-inputs
708 `(("pkg-config" ,pkg-config)
426adbe8 709 ("glib" ,glib "bin")
c4c4cc05 710 ("intltool" ,intltool)))
c1354b90
LC
711 (propagated-inputs
712 ;; Referred to in .h files and .pc.
713 `(("glib" ,glib)))
f032d0be 714 (home-page "https://www.gnome.org")
c1354b90
LC
715 (synopsis "Accessing passwords from the GNOME keyring")
716 (description
717 "Client library to access passwords from the GNOME keyring.")
718
719 ;; Though a couple of files are LGPLv2.1+.
1dd26275 720 (license license:lgpl2.0+)))
c1354b90 721
e99a3d6f
RW
722(define-public gnome-keyring
723 (package
724 (name "gnome-keyring")
ab35cc6e 725 (version "3.28.2")
e99a3d6f
RW
726 (source (origin
727 (method url-fetch)
728 (uri (string-append "mirror://gnome/sources/" name "/"
729 (version-major+minor version) "/"
730 name "-" version ".tar.xz"))
731 (sha256
732 (base32
ab35cc6e 733 "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1"))))
e99a3d6f
RW
734 (build-system gnu-build-system)
735 (arguments
736 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
737 ;not exist
738 #:configure-flags
739 (list
740 (string-append "--with-pkcs11-config="
741 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
742 (string-append "--with-pkcs11-modules="
743 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
744 #:phases
745 (modify-phases %standard-phases
ab35cc6e
RW
746 (add-after 'unpack 'fix-/bin/sh-reference
747 (lambda _
748 (substitute* "po/Makefile.in.in"
749 (("/bin/sh") (which "sh")))
750 #t))
5120f24f
RW
751 (add-after 'unpack 'fix-docbook
752 (lambda* (#:key inputs #:allow-other-keys)
753 (substitute* "docs/Makefile.am"
754 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
755 (string-append (assoc-ref inputs "docbook-xsl")
756 "/xml/xsl/docbook-xsl-"
757 ,(package-version docbook-xsl)
758 "/manpages/docbook.xsl")))
759 (setenv "XML_CATALOG_FILES"
760 (string-append (assoc-ref inputs "docbook-xml")
761 "/xml/dtd/docbook/catalog.xml"))
762 ;; Rerun the whole thing to avoid version mismatch ("This is
763 ;; Automake 1.15.1, but the definition used by this
764 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
765 ;; use 'autoreconf' because it insists on running 'libtoolize'.
766 (invoke "autoconf")
767 (invoke "aclocal")
768 (invoke "automake" "-ac"))))))
e99a3d6f
RW
769 (inputs
770 `(("libgcrypt" ,libgcrypt)
1a0b2d82 771 ("linux-pam" ,linux-pam)
ab35cc6e 772 ("openssh" ,openssh)
e99a3d6f
RW
773 ("dbus" ,dbus)
774 ("gcr" ,gcr)))
775 (native-inputs
776 `(("pkg-config" ,pkg-config)
777 ("glib" ,glib "bin")
5120f24f 778 ("glib" ,glib) ; for m4 macros
e99a3d6f
RW
779 ("python" ,python-2) ;for tests
780 ("intltool" ,intltool)
781 ("autoconf" ,autoconf)
782 ("automake" ,automake)
783 ("libxslt" ,libxslt) ;for documentation
784 ("docbook-xml" ,docbook-xml-4.2)
785 ("docbook-xsl" ,docbook-xsl)))
f032d0be 786 (home-page "https://www.gnome.org")
e99a3d6f
RW
787 (synopsis "Daemon to store passwords and encryption keys")
788 (description
789 "gnome-keyring is a program that keeps passwords and other secrets for
790users. It is run as a daemon in the session, similar to ssh-agent, and other
791applications locate it via an environment variable or D-Bus.
792
793The program can manage several keyrings, each with its own master password,
794and there is also a session keyring which is never stored to disk, but
795forgotten when the session ends.")
796 (license license:lgpl2.1+)))
797
c1354b90
LC
798(define-public evince
799 (package
800 (name "evince")
e24e6522 801 (version "3.34.1")
c1354b90
LC
802 (source (origin
803 (method url-fetch)
b38e45d8
EB
804 (uri (string-append "mirror://gnome/sources/" name "/"
805 (version-major+minor version) "/"
806 name "-" version ".tar.xz"))
c1354b90
LC
807 (sha256
808 (base32
e24e6522 809 "1pr6fvbaam1mzxjwyqd53hcxzdjzf73idn10j4j7n54nwg6hgr45"))))
121de2e1 810 (build-system glib-or-gtk-build-system)
c1354b90
LC
811 (arguments
812 `(#:configure-flags '("--disable-nautilus")
554b2dac
SB
813 #:phases
814 (modify-phases %standard-phases
815 (add-before 'install 'skip-gtk-update-icon-cache
816 ;; Don't create 'icon-theme.cache'.
817 (lambda _
818 (substitute* "data/Makefile"
819 (("gtk-update-icon-cache") "true"))
820 #t)))))
c1354b90 821 (inputs
9a096881
KK
822 `(("libarchive" ,libarchive)
823 ("libgxps" ,libgxps)
824 ("libspectre" ,libspectre)
c769cf9f 825 ("djvulibre" ,djvulibre)
c1354b90
LC
826 ("ghostscript" ,ghostscript)
827 ("poppler" ,poppler)
c769cf9f
SB
828 ("libtiff" ,libtiff)
829 ;; TODO:
c769cf9f
SB
830 ;; Build libkpathsea as a shared library for DVI support.
831 ;; ("libkpathsea" ,texlive-bin)
832 ("gnome-desktop" ,gnome-desktop)
c1354b90 833 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2dfc16d1 834 ("gspell" ,gspell)
c1354b90 835 ("libgnome-keyring" ,libgnome-keyring)
c769cf9f 836 ("adwaita-icon-theme" ,adwaita-icon-theme)
c1354b90
LC
837 ("gdk-pixbuf" ,gdk-pixbuf)
838 ("atk" ,atk)
839 ("pango" ,pango)
840 ("gtk+" ,gtk+)
841 ("glib" ,glib)
842 ("libxml2" ,libxml2)
c1354b90
LC
843 ("libsm" ,libsm)
844 ("libice" ,libice)
96e42467 845 ("shared-mime-info" ,shared-mime-info)
3d243e9c
FB
846 ("dconf" ,dconf)
847 ("libcanberra" ,libcanberra)
c769cf9f 848 ("libsecret" ,libsecret)
a271096b 849
c1354b90
LC
850 ;; For tests.
851 ("dogtail" ,python2-dogtail)))
96e42467 852 (native-inputs
bcb354ad
SB
853 `(("itstool" ,itstool)
854 ("intltool" ,intltool)
426adbe8 855 ("glib" ,glib "bin")
bcb354ad
SB
856 ("pkg-config" ,pkg-config)
857 ("xmllint" ,libxml2)))
c1354b90 858 (home-page
f032d0be 859 "https://www.gnome.org/projects/evince/")
c1354b90
LC
860 (synopsis "GNOME's document viewer")
861 (description
862 "Evince is a document viewer for multiple document formats. It
863currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
864of Evince is to replace the multiple document viewers that exist
96e42467 865on the GNOME Desktop with a single simple application.")
1dd26275 866 (license license:gpl2+)))
c1354b90 867
22e32e69
AE
868(define-public gsettings-desktop-schemas
869 (package
870 (name "gsettings-desktop-schemas")
c900dabd 871 (version "3.32.0")
22e32e69
AE
872 (source
873 (origin
874 (method url-fetch)
875 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 876 (version-major+minor version) "/"
22e32e69
AE
877 name "-" version ".tar.xz"))
878 (sha256
879 (base32
c900dabd
KK
880 "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d"))))
881 (build-system meson-build-system)
65209ffa
LC
882 (arguments
883 '(#:phases (modify-phases %standard-phases
884 (add-after 'unpack 'set-adwaita-theme-file-name
885 (lambda* (#:key inputs #:allow-other-keys)
886 ;; Provide the correct file name of the default GNOME
887 ;; background, 'adwaita-timed.xml'.
888 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
889 (substitute* (find-files "schemas"
890 "\\.gschema\\.xml\\.in$")
891 (("@datadir@/backgrounds/gnome")
892 (string-append theme "/share/backgrounds/gnome")))
893 #t))))))
22e32e69 894 (inputs
65209ffa
LC
895 `(("glib" ,glib)
896 ("gnome-backgrounds" ,gnome-backgrounds)))
c4c4cc05
JD
897 (native-inputs
898 `(("intltool" ,intltool)
426adbe8 899 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
7211944a 900 ("gobject-introspection" ,gobject-introspection)
22e32e69
AE
901 ("pkg-config" ,pkg-config)))
902 (home-page "https://launchpad.net/gsettings-desktop-schemas")
903 (synopsis
904 "GNOME settings for various desktop components")
905 (description
906 "Gsettings-desktop-schemas contains a collection of GSettings schemas
907for settings shared by various components of the GNOME desktop.")
1dd26275 908 (license license:lgpl2.1+)))
22e32e69 909
27477d2d
AE
910(define-public icon-naming-utils
911 (package
912 (name "icon-naming-utils")
913 (version "0.8.90")
914 (source
915 (origin
916 (method url-fetch)
5cc3096c 917 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
27477d2d
AE
918 version ".tar.bz2"))
919 (sha256
920 (base32
921 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
922 (build-system gnu-build-system)
923 (inputs
924 `(("perl" ,perl)
925 ("perl-xml-simple" ,perl-xml-simple)))
f4e97277
SB
926 (arguments
927 '(#:phases
dc1d3cde
KK
928 (modify-phases %standard-phases
929 (add-after 'install 'set-load-paths
930 ;; Tell 'icon-name-mapping' where XML::Simple is.
931 (lambda* (#:key outputs #:allow-other-keys)
932 (let* ((out (assoc-ref outputs "out"))
933 (prog (string-append out "/libexec/icon-name-mapping")))
934 (wrap-program
935 prog
936 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
937 #t)))))
27477d2d
AE
938 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
939 (synopsis
940 "Utility to implement the Freedesktop Icon Naming Specification")
941 (description
942 "To help with the transition to the Freedesktop Icon Naming
943Specification, the icon naming utility maps the icon names used by the
944GNOME and KDE desktops to the icon names proposed in the specification.")
1dd26275 945 (license license:lgpl2.1+)))
27477d2d 946
7d3f3651
AE
947(define-public gnome-icon-theme
948 (package
949 (name "gnome-icon-theme")
b32f58dd 950 (version "3.12.0")
7d3f3651
AE
951 (source
952 (origin
953 (method url-fetch)
954 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 955 (version-major+minor version) "/"
7d3f3651
AE
956 name "-" version ".tar.xz"))
957 (sha256
958 (base32
b32f58dd 959 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
7d3f3651 960 (build-system gnu-build-system)
5613c27d
SB
961 (arguments
962 '(#:configure-flags
963 ;; Don't create 'icon-theme.cache'.
964 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
965 (true (string-append coreutils "/bin/true")))
966 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
c4c4cc05 967 (native-inputs
5613c27d 968 `(("icon-naming-utils" ,icon-naming-utils)
73b6cf42
SB
969 ("intltool" ,intltool)
970 ("pkg-config" ,pkg-config)))
5c610d4f
KK
971 (home-page "https://wiki.gnome.org/Personalization")
972 (synopsis "GNOME icon theme")
973 (description "Icons for the GNOME desktop.")
1dd26275 974 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
7d3f3651 975
14eeefa2
SB
976;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
977(define-public adwaita-icon-theme
978 (package (inherit gnome-icon-theme)
979 (name "adwaita-icon-theme")
9be59d7f 980 (version "3.32.0")
14eeefa2
SB
981 (source (origin
982 (method url-fetch)
983 (uri (string-append "mirror://gnome/sources/" name "/"
984 (version-major+minor version) "/"
985 name "-" version ".tar.xz"))
986 (sha256
987 (base32
9be59d7f 988 "11ij35na8nisvxx3qh527iz33h6z2q1a7iinqyp7p65v0zjbd3b9"))))
5613c27d
SB
989 (native-inputs
990 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
14eeefa2 991
ae792dba
RW
992(define-public tango-icon-theme
993 (package
994 (name "tango-icon-theme")
995 (version "0.8.90")
996 (source (origin
997 (method url-fetch)
998 (uri (string-append "http://tango.freedesktop.org/releases/"
999 "tango-icon-theme-" version ".tar.bz2"))
1000 (sha256
1001 (base32
1002 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
1003 (build-system gnu-build-system)
1004 (native-inputs
1005 `(("icon-naming-utils" ,icon-naming-utils)
1006 ("intltool" ,intltool)
1007 ("imagemagick" ,imagemagick)
1008 ("pkg-config" ,pkg-config)))
1009 (home-page "http://tango-project.org/")
1010 (synopsis "Tango icon theme")
1011 (description "This is an icon theme that follows the Tango visual
1012guidelines.")
1013 (license license:public-domain)))
1014
9167f8e6
LC
1015(define-public shared-mime-info
1016 (package
1017 (name "shared-mime-info")
18138ab9 1018 (version "1.10")
9167f8e6
LC
1019 (source (origin
1020 (method url-fetch)
5cc3096c 1021 (uri (string-append "https://freedesktop.org/~hadess/"
b38e45d8 1022 "shared-mime-info-" version ".tar.xz"))
9167f8e6
LC
1023 (sha256
1024 (base32
18138ab9 1025 "1gxyvwym3xgpmp262gfn8jg5sla6k5hy6m6dmy6grgiq90xsh9f6"))))
9167f8e6
LC
1026 (build-system gnu-build-system)
1027 (arguments
1028 ;; The build system appears not to be parallel-safe.
1029 '(#:parallel-build? #f))
1030 (inputs
1031 `(("glib" ,glib)
c4c4cc05 1032 ("libxml2" ,libxml2)))
9167f8e6 1033 (native-inputs
c4c4cc05
JD
1034 `(("intltool" ,intltool)
1035 ("pkg-config" ,pkg-config)))
57e7d748 1036 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
9167f8e6
LC
1037 (synopsis "Database of common MIME types")
1038 (description
1039 "The shared-mime-info package contains the core database of common types
1040and the update-mime-database command used to extend it. It requires glib2 to
1041be installed for building the update command. Additionally, it uses intltool
1042for translations, though this is only a dependency for the maintainers. This
1043database is translated at Transifex.")
1dd26275 1044 (license license:gpl2+)))
9167f8e6 1045
dd1fcddc
CB
1046(define-public system-config-printer
1047 (package
1048 (name "system-config-printer")
1049 (version "1.5.11")
1050 (source (origin
1051 (method url-fetch)
1052 (uri (string-append
1053 "https://github.com/zdohnal/system-config-printer/releases/"
1054 "download/" version
1055 "/system-config-printer-" version ".tar.xz"))
1056 (sha256
1057 (base32
1058 "1lq0q51bhanirpjjvvh4xiafi8hgpk8r32h0dj6dn3f32z8pib9q"))))
1059 (build-system glib-or-gtk-build-system)
1060 (arguments
1061 `(#:imported-modules ((guix build python-build-system)
1062 ,@%glib-or-gtk-build-system-modules)
1063 #:phases
1064 (modify-phases %standard-phases
1065 (add-after 'unpack 'patch-Makefile.am
1066 (lambda _
1067 ;; The Makefile generates some scripts, so set a valid shebang
1068 (substitute* "Makefile.am"
1069 (("/bin/bash") (which "bash")))
1070 (delete-file "configure")
1071 #t))
1072 (add-after 'unpack 'patch-docbook-xml
1073 (lambda* (#:key inputs #:allow-other-keys)
1074 ;; Modify the man XML otherwise xmlto tries to access the network
1075 (substitute* "man/system-config-printer.xml"
1076 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
1077 (string-append (assoc-ref inputs "docbook-xml")
1078 "/xml/dtd/docbook/")))
1079 #t))
1080 (add-after 'install 'wrap-for-python
1081 (@@ (guix build python-build-system) wrap))
1082 (add-after 'install 'wrap
1083 (lambda* (#:key outputs #:allow-other-keys)
1084 (let ((out (assoc-ref outputs "out"))
1085 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1086 (for-each
1087 (lambda (program)
1088 (wrap-program program
1089 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1090 (map (lambda (name)
1091 (string-append out "/bin/" name))
1092 '("system-config-printer"
1093 "system-config-printer-applet"
1094 "install-printerdriver"
1095 "scp-dbus-service"))))
1096 #t)))))
1097 (inputs
1098 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1099 ("gobject-introspection" ,gobject-introspection)
1100 ("python" ,python)
1101 ("cups" ,cups)
1102 ("python-dbus" ,python-dbus)
1103 ("python-pygobject" ,python-pygobject)
1104 ("python-pycups" ,python-pycups)
1105 ("python-requests" ,python-requests)
1106 ("python-pycairo" ,python-pycairo)
1107 ("libnotify" ,libnotify)
1108 ("packagekit" ,packagekit)))
1109 (native-inputs
1110 `(("pkg-config" ,pkg-config)
1111 ("desktop-file-utils" ,desktop-file-utils)
1112 ("glib" ,glib)
1113 ("autoconf" ,autoconf)
1114 ("automake" ,automake)
1115 ("intltool" ,intltool)
1116 ("xmlto" ,xmlto)
1117 ("docbook-xml" ,docbook-xml-4.1.2)
1118 ("docbook-xsl" ,docbook-xsl)
1119 ("libxml2" ,libxml2)))
1120 (home-page "https://github.com/zdohnal/system-config-printer")
1121 (synopsis "CUPS administration tool")
1122 (description
1123 "system-config-printer is a CUPS administration tool. It's written in
1124Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
1125configuring CUPS.")
1126 (license license:gpl2+)))
1127
bef4dd92
AE
1128(define-public hicolor-icon-theme
1129 (package
1130 (name "hicolor-icon-theme")
851cb6dd 1131 (version "0.17")
bef4dd92
AE
1132 (source
1133 (origin
1134 (method url-fetch)
5cc3096c 1135 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
b62a0070 1136 "hicolor-icon-theme-" version ".tar.xz"))
bef4dd92
AE
1137 (sha256
1138 (base32
851cb6dd 1139 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
bef4dd92
AE
1140 (build-system gnu-build-system)
1141 (arguments
1142 `(#:tests? #f)) ; no check target
57e7d748 1143 (home-page "https://icon-theme.freedesktop.org/releases/")
bef4dd92
AE
1144 (synopsis
1145 "Freedesktop icon theme")
1146 (description
1147 "Freedesktop icon theme.")
1dd26275 1148 (license license:gpl2)))
bef4dd92 1149
d9c1a22b
AE
1150(define-public libnotify
1151 (package
1152 (name "libnotify")
195bfa68 1153 (version "0.7.7")
d9c1a22b
AE
1154 (source
1155 (origin
1156 (method url-fetch)
1157 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1158 (version-major+minor version) "/"
d9c1a22b
AE
1159 name "-" version ".tar.xz"))
1160 (sha256
1161 (base32
195bfa68 1162 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
d9c1a22b 1163 (build-system gnu-build-system)
6acf6cec
MB
1164 (arguments
1165 `(#:configure-flags '("--disable-static")))
7ef08efa
UK
1166 (propagated-inputs
1167 `(;; In Requires of libnotify.pc.
1168 ("gdk-pixbuf" ,gdk-pixbuf)
1169 ("glib" ,glib)))
d9c1a22b 1170 (inputs
7ef08efa 1171 `(("gtk+" ,gtk+)
c4c4cc05
JD
1172 ("libpng" ,libpng)))
1173 (native-inputs
426adbe8 1174 `(("pkg-config" ,pkg-config)
277a7d82
JN
1175 ("glib" ,glib "bin")
1176 ("gobject-introspection" ,gobject-introspection)))
d9c1a22b
AE
1177 (home-page "https://developer-next.gnome.org/libnotify/")
1178 (synopsis
1179 "GNOME desktop notification library")
1180 (description
1181 "Libnotify is a library that sends desktop notifications to a
35b9e423 1182notification daemon, as defined in the Desktop Notifications spec. These
d9c1a22b
AE
1183notifications can be used to inform the user about an event or display
1184some form of information without getting in the user's way.")
1dd26275 1185 (license license:lgpl2.1+)))
7a8605ce
CR
1186
1187(define-public libpeas
1188 (package
1189 (name "libpeas")
db122a9b 1190 (version "1.22.0")
7a8605ce
CR
1191 (source
1192 (origin
1193 (method url-fetch)
1194 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1195 (version-major+minor version) "/"
7a8605ce
CR
1196 name "-" version ".tar.xz"))
1197 (sha256
1198 (base32
db122a9b 1199 "0qm908kisyjzjxvygdl18hjqxvvgkq9w0phs2g55pck277sw0bsv"))))
7a8605ce 1200 (build-system gnu-build-system)
7a8605ce 1201 (inputs
2ed6522a
SB
1202 `(("gtk+" ,gtk+)
1203 ("glade" ,glade3)
2ed6522a
SB
1204 ("python" ,python)
1205 ("python-pygobject" ,python-pygobject)))
141aed80
LC
1206 (native-inputs
1207 `(("pkg-config" ,pkg-config)
93622993 1208 ("glib:bin" ,glib "bin")
141aed80
LC
1209 ("gobject-introspection" ,gobject-introspection)
1210 ("intltool" ,intltool)))
55b7bbd8
LC
1211 (propagated-inputs
1212 ;; The .pc file "Requires" gobject-introspection.
1213 `(("gobject-introspection" ,gobject-introspection)))
7a8605ce
CR
1214 (home-page "https://wiki.gnome.org/Libpeas")
1215 (synopsis "GObject plugin system")
1216 (description
d1e4ad1b
TGR
1217 "Libpeas is a gobject-based plugin engine, targeted at giving every
1218application the chance to assume its own extensibility. It also has a set of
1219features including, but not limited to: multiple extension points; on-demand
1220(lazy) programming language support for C, Python and JS; simplicity of the
1221API.")
1dd26275 1222 (license license:lgpl2.0+)))
ed19903d
JD
1223
1224(define-public gtkglext
1225 (package
1226 (name "gtkglext")
1227 (version "1.2.0")
1228 (source (origin
1229 (method url-fetch)
0f971a04 1230 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
ed19903d
JD
1231 version "/gtkglext-" version ".tar.gz"))
1232 (sha256
1233 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
fc1adab1
AK
1234 (patches (search-patches
1235 "gtkglext-disable-disable-deprecated.patch"))))
ed19903d 1236 (build-system gnu-build-system)
14e2f61a
RW
1237 (arguments
1238 `(#:phases
1239 (modify-phases %standard-phases
1240 ;; Fix a collision between a local variable and a definition from
1241 ;; glibc's string.h.
1242 (add-after 'unpack 'fix-collision
1243 (lambda _
1244 (substitute* "gdk/gdkglshapes.c"
1245 ((" index") " triangle_index"))
1246 #t)))))
ed19903d
JD
1247 (inputs `(("gtk+" ,gtk+-2)
1248 ("mesa" ,mesa)
cc8b02f4 1249 ("glu" ,glu)
ed19903d
JD
1250 ("libx11" ,libx11)
1251 ("libxt" ,libxt)))
426adbe8
LC
1252 (native-inputs `(("pkg-config" ,pkg-config)
1253 ("glib" ,glib "bin")))
a83b6a06 1254 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
ed19903d 1255 (home-page "https://projects.gnome.org/gtkglext")
9e771e3b 1256 (synopsis "OpenGL extension to GTK+")
35b9e423 1257 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
ed19903d
JD
1258additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
1259API add-ons to make GTK+ widgets OpenGL-capable.")
1dd26275 1260 (license license:lgpl2.1+)))
3600420e
JD
1261
1262(define-public glade3
1263 (package
1264 (name "glade")
c6571adb 1265 (version "3.22.1")
b38e45d8
EB
1266 (source (origin
1267 (method url-fetch)
1268 (uri (string-append "mirror://gnome/sources/" name "/"
1269 (version-major+minor version) "/"
f5ca44b8 1270 name "-" version ".tar.xz"))
3600420e 1271 (sha256
f714d9fe 1272 (base32
c6571adb 1273 "16p38xavpid51qfy0s26n0n21f9ws1w9k5s65bzh1w7ay8p9my6z"))))
6983ba56 1274 (build-system glib-or-gtk-build-system)
f5ca44b8
RW
1275 (arguments
1276 `(#:tests? #f ; needs X, GL, and software rendering
1277 #:phases
1278 (modify-phases %standard-phases
1279 (add-before 'configure 'fix-docbook
1280 (lambda* (#:key inputs #:allow-other-keys)
1281 (substitute* "man/Makefile.in"
1282 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1283 (string-append (assoc-ref inputs "docbook-xsl")
1284 "/xml/xsl/docbook-xsl-"
1285 ,(package-version docbook-xsl)
1286 "/manpages/docbook.xsl")))
1287 #t)))))
3600420e 1288 (inputs
f5ca44b8 1289 `(("gtk+" ,gtk+)
3600420e
JD
1290 ("libxml2" ,libxml2)))
1291 (native-inputs
1292 `(("intltool" ,intltool)
f5ca44b8
RW
1293 ("itstool" ,itstool)
1294 ("libxslt" ,libxslt) ;for xsltproc
1295 ("docbook-xml" ,docbook-xml-4.2)
1296 ("docbook-xsl" ,docbook-xsl)
1297 ("python" ,python-2)
3600420e
JD
1298 ("pkg-config" ,pkg-config)))
1299 (home-page "https://glade.gnome.org")
1300 (synopsis "GTK+ rapid application development tool")
1301 (description "Glade is a rapid application development (RAD) tool to
1302enable quick & easy development of user interfaces for the GTK+ toolkit and
1303the GNOME desktop environment.")
1dd26275
LC
1304 (license license:lgpl2.0+)))
1305
1306(define-public libcroco
1307 (package
1308 (name "libcroco")
8bdacad2 1309 (version "0.6.13")
1dd26275
LC
1310 (source (origin
1311 (method url-fetch)
b38e45d8
EB
1312 (uri (string-append "mirror://gnome/sources/" name "/"
1313 (version-major+minor version) "/"
1314 name "-" version ".tar.xz"))
1dd26275
LC
1315 (sha256
1316 (base32
8bdacad2 1317 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
1dd26275
LC
1318 (build-system gnu-build-system)
1319 (native-inputs
1320 `(("pkg-config" ,pkg-config)))
1321 (inputs
1322 `(("glib" ,glib)
1323 ("libxml2" ,libxml2)
1324 ("zlib" ,zlib)))
1325 (home-page "https://github.com/GNOME/libcroco")
1326 (synopsis "CSS2 parsing and manipulation library")
1327 (description
1328 "Libcroco is a standalone CSS2 parsing and manipulation library.
1329The parser provides a low level event driven SAC-like API and a CSS object
1330model like API. Libcroco provides a CSS2 selection engine and an experimental
1331XML/CSS rendering engine.")
1332
1333 ;; LGPLv2.1-only.
1334 (license license:lgpl2.1)))
25178594
LC
1335
1336(define-public libgsf
1337 (package
1338 (name "libgsf")
8d1644a1 1339 (version "1.14.46")
25178594
LC
1340 (source (origin
1341 (method url-fetch)
b38e45d8
EB
1342 (uri (string-append "mirror://gnome/sources/" name "/"
1343 (version-major+minor version) "/"
1344 name "-" version ".tar.xz"))
25178594
LC
1345 (sha256
1346 (base32
8d1644a1 1347 "0bddmlzg719sjhlbzqlhb7chwk93qc7g68m2r9r8xz112jdradpa"))))
25178594
LC
1348 (build-system gnu-build-system)
1349 (native-inputs
1350 `(("intltool" ,intltool)
1351 ("pkg-config" ,pkg-config)))
1352 (inputs
1353 `(("python" ,python)
1354 ("zlib" ,zlib)
1355 ("bzip2" ,bzip2)))
1356 (propagated-inputs
1357 `(("gdk-pixbuf" ,gdk-pixbuf)
1358 ("glib" ,glib)
1359 ("libxml2" ,libxml2)))
f032d0be 1360 (home-page "https://www.gnome.org/projects/libgsf")
25178594
LC
1361 (synopsis "GNOME's Structured File Library")
1362 (description
1363 "Libgsf aims to provide an efficient extensible I/O abstraction for
1364dealing with different structured file formats.")
1365
1366 ;; LGPLv2.1-only.
1367 (license license:lgpl2.1)))
63016e7c
LC
1368
1369(define-public librsvg
f67417a1
MB
1370 (package
1371 (name "librsvg")
1372 (version "2.40.20")
1373 (source (origin
1374 (method url-fetch)
1375 (uri (string-append "mirror://gnome/sources/" name "/"
1376 (version-major+minor version) "/"
1377 name "-" version ".tar.xz"))
1378 (sha256
1379 (base32
1380 "0ay9himvw1l1swcf3h1312d2iqzfl65kpbfgiyfykgvq7cydvx6g"))))
1381 (build-system gnu-build-system)
1382 (arguments
1383 `(#:configure-flags
1384 (list "--disable-static"
1385 "--enable-vala") ; needed for e.g. gnome-mines
1386 #:phases
1387 (modify-phases %standard-phases
1388 (add-before 'configure 'pre-configure
1389 (lambda* (#:key inputs #:allow-other-keys)
1390 (substitute* "gdk-pixbuf-loader/Makefile.in"
1391 ;; By default the gdk-pixbuf loader is installed under
1392 ;; gdk-pixbuf's prefix. Work around that.
1393 (("gdk_pixbuf_moduledir = .*$")
1394 (string-append "gdk_pixbuf_moduledir = "
1395 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1396 "loaders\n"))
1397 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1398 (("gdk_pixbuf_cache_file = .*$")
1399 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1400 #t))
1401 (add-before 'check 'remove-failing-tests
1402 (lambda _
1403 (with-directory-excursion "tests/fixtures/reftests"
1404 (for-each delete-file
1405 '(;; This test fails on i686:
1406 "svg1.1/masking-path-04-b.svg"
1407 ;; This test fails on armhf:
1408 "svg1.1/masking-mask-01-b.svg"
1409 ;; This test fails on aarch64:
1410 "bugs/777834-empty-text-children.svg")))
1411 #t)))))
1412 (native-inputs
1413 `(("pkg-config" ,pkg-config)
1414 ("vala" ,vala)
1415 ("glib" ,glib "bin") ; glib-mkenums, etc.
1416 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1417 (inputs
1418 `(("pango" ,pango)
1419 ("libcroco" ,libcroco)
1420 ("bzip2" ,bzip2)
1421 ("libgsf" ,libgsf)
1422 ("libxml2" ,libxml2)))
1423 (propagated-inputs
1424 ;; librsvg-2.0.pc refers to all of that.
1425 `(("cairo" ,cairo)
1426 ("gdk-pixbuf" ,gdk-pixbuf)
1427 ("glib" ,glib)))
1428 (home-page "https://wiki.gnome.org/LibRsvg")
1429 (synopsis "Render SVG files using Cairo")
1430 (description
1431 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
1432library.")
1433 (license license:lgpl2.0+)))
1434
8f523eb9
EF
1435(define* (computed-origin-method gexp-promise hash-algo hash
1436 #:optional (name "source")
1437 #:key (system (%current-system))
1438 (guile (default-guile)))
1439 "Return a derivation that executes the G-expression that results
1440from forcing GEXP-PROMISE."
1441 (mlet %store-monad ((guile (package->derivation guile system)))
1442 (gexp->derivation (or name "computed-origin")
1443 (force gexp-promise)
1444 #:graft? #f ;nothing to graft
1445 #:system system
1446 #:guile-for-build guile)))
1447
1448(define librsvg-next-source
1449 (let* ((version "2.46.3")
1450 (upstream-source (origin
1451 (method url-fetch)
1452 (uri (string-append "mirror://gnome/sources/librsvg/"
1453 (version-major+minor version) "/"
1454 "librsvg-" version ".tar.xz"))
1455 (sha256
1456 (base32
1457 "1s3a96i7f4pynjwxxvhysp4b6r7kyi8nasdxfyi62hc7gm34d3kn")))))
1458 (origin
1459 (method computed-origin-method)
1460 (file-name (string-append "librsvg-" version ".tar.xz"))
1461 (sha256 #f)
1462 (uri
1463 (delay
1464 (with-imported-modules '((guix build utils))
1465 #~(begin
1466 (use-modules (guix build utils))
1467 (set-path-environment-variable
1468 "PATH" '("bin")
1469 (list "/tmp"
1470 #+(canonical-package xz)
1471 #+(canonical-package gzip)
1472 #+(canonical-package tar)))
1473 (invoke "tar" "xvf" #+upstream-source)
1474 (with-directory-excursion (string-append "librsvg-" #$version)
1475 (for-each
1476 (lambda (crate)
1477 (delete-file-recursively (string-append "vendor/" (car crate)))
1478 (invoke "tar" "xvf" (cdr crate) "-C" "vendor"))
1479 '(
1480;; aho-corasick 0.7
1481;; alga 0.9
1482;; approx 0.3
1483;; arrayvec 0.4
1484 ("atty" . #+(package-source rust-atty-0.2))
1485 ("autocfg" . #+(package-source rust-autocfg-0.1))
1486 ("bitflags" . #+(package-source rust-bitflags-1))
1487;; block 0.1
1488;; bstr 0.2
1489;; byteorder 1.3
1490;; cairo-rs 0.7
1491;; cairo-sys-rs 0.9
1492;; cast 0.2
1493 ("cfg-if" . #+(package-source rust-cfg-if-0.1))
1494 ("clap" . #+(package-source rust-clap-2))
1495 ;("cloudabi" . #+(package-source rust-cloudabi-0.0))
1496;; criterion 0.2
1497;; criterion-plot 0.3
1498;; crossbeam-deque 0.7
1499;; crossbeam-epoch 0.7
1500;; crossbeam-queue 0.1
1501;; crossbeam-utils 0.6
1502;; cssparser 0.25
1503;; cssparser-macros 0.3
1504;; csv 1.1
1505;; csv-core 0.1
1506;; data-url 0.1
1507;; downcast-rs 1.0
1508 ("dtoa" . #+(package-source rust-dtoa-0.4))
1509;; dtoa-short 0.3
1510;; either 1.5
1511;; encoding 0.2
1512;; encoding-index-japanese 1.20141219.5
1513;; encoding-index-korean 1.20141219.5
1514;; encoding-index-simpchinese 1.20141219.5
1515;; encoding-index-singlebyte 1.20141219.5
1516;; encoding-index-tradchinese 1.20141219.5
1517;; encoding_index_tests 0.1
1518;; float-cmp 0.5
1519;; fragile 0.3
1520 ;("fuchsia-cprng" . #+(package-source rust-fuchsia-cprng-0.1))
1521;; futf 0.1
1522;; gdk-pixbuf 0.7
1523;; gdk-pixbuf-sys 0.9
1524;; generic-array 0.12
1525;; gio 0.7
1526;; gio-sys 0.9
1527;; glib 0.8
1528;; glib-sys 0.9
1529;; gobject-sys 0.9
1530;; idna 0.2
1531;; itertools 0.8
1532 ("itoa" . #+(package-source rust-itoa-0.4))
1533 ;("language-tags" . #+(package-source rust-language-tags-0.2))
1534 ("lazy_static" . #+(package-source rust-lazy-static-1.3))
1535 ("libc" . #+(package-source rust-libc-0.2))
1536;; libm 0.1
1537;; locale_config 0.3
1538 ("log" . #+(package-source rust-log-0.4))
1539;; mac 0.1
1540;; malloc_buf 0.0
1541;; markup5ever 0.9
1542 ;("matches" . #+(package-source rust-matches-0.1))
1543;; matrixmultiply 0.2
1544;; memchr 2.2
1545;; memoffset 0.5
1546;; nalgebra 0.18
1547;; new_debug_unreachable 1.0
1548 ("nodrop" . #+(package-source rust-nodrop-0.1))
1549;; num-complex 0.2
1550 ("num-integer" . #+(package-source rust-num-integer-0.1))
1551;; num-rational 0.2
1552 ("num-traits" . #+(package-source rust-num-traits-0.2))
1553 ("num_cpus" . #+(package-source rust-num-cpus-1.10))
1554;; objc 0.2
1555;; objc-foundation 0.1
1556;; objc_id 0.1
1557;; pango 0.7
1558;; pango-sys 0.9
1559;; pangocairo 0.8
1560;; pangocairo-sys 0.10
1561 ("percent-encoding" . #+(package-source rust-percent-encoding-2.1))
1562;; phf 0.7.24
1563;; phf_codegen 0.7.24
1564;; phf_generator 0.7.24
1565;; phf_shared 0.7.24
1566 ;("pkg-config" . #+(package-source rust-pkg-config-0.3))
1567;; precomputed-hash 0.1
1568 ("proc-macro2" . #+(package-source rust-proc-macro2-1.0))
1569;; procedural-masquerade 0.1
1570 ("quote" . #+(package-source rust-quote-1.0))
1571 ;("rand" . #+(package-source rust-rand-0.6))
1572 ("rand_chacha" . #+(package-source rust-rand-chacha-0.1))
1573 ("rand_core-0.3.1" . #+(package-source rust-rand-core-0.3))
1574 ("rand_core" . #+(package-source rust-rand-core-0.4))
1575 ("rand_hc" . #+(package-source rust-rand-hc-0.1))
1576 ("rand_isaac" . #+(package-source rust-rand-isaac-0.1))
1577 ("rand_jitter" . #+(package-source rust-rand-jitter-0.1))
1578 ("rand_os" . #+(package-source rust-rand-os-0.1))
1579 ("rand_pcg" . #+(package-source rust-rand-pcg-0.1))
1580 ("rand_xorshift" . #+(package-source rust-rand-xorshift-0.1))
1581;; rand_xoshiro 0.1
1582 ;("rawpointer" . #+(package-source rust-rawpointer-0.1))
1583;; rayon 1.2
1584;; rayon-core 1.6
1585;; rctree 0.3
1586 ("rdrand" . #+(package-source rust-rdrand-0.4))
1587;; regex 1.3
1588;; regex-automata 0.1
1589 ;("regex-syntax" . #+(package-source rust-regex-syntax-0.6))
1590;; rustc_version 0.2
1591 ("ryu" . #+(package-source rust-ryu-1.0))
1592 ("same-file" . #+(package-source rust-same-file-1.0))
1593 ("scopeguard" . #+(package-source rust-scopeguard-1.0))
1594;; semver 0.9
1595 ;("semver-parser" . #+(package-source rust-semver-parser-0.7))
1596 ("serde" . #+(package-source rust-serde-1.0))
1597 ("serde_derive" . #+(package-source rust-serde-derive-1.0))
1598 ("serde_json" . #+(package-source rust-serde-json-1.0))
1599;; siphasher 0.2
1600;; smallvec 0.6
1601;; string_cache 0.7
1602;; string_cache_codegen 0.4
1603;; string_cache_shared 0.3
1604 ("syn" . #+(package-source rust-syn-1.0))
1605;; tendril 0.4
1606 ("textwrap" . #+(package-source rust-textwrap-0.11))
1607 ;("thread_local" . #+(package-source rust-thread-local-0.3))
1608;; tinytemplate 1.0
1609 ;("typenum" . #+(package-source rust-typenum-1.10))
1610;; unicode-bidi 0.3
1611;; unicode-normalization 0.1
1612 ("unicode-width" . #+(package-source rust-unicode-width-0.1))
1613 ("unicode-xid" . #+(package-source rust-unicode-xid-0.2))
1614;; url 2.1
1615;; utf-8 0.7
1616 ("walkdir" . #+(package-source rust-walkdir-2.2))
1617 ("winapi" . #+(package-source rust-winapi-0.3))
1618 ;("winapi-i686-pc-windows-gnu" . #+(package-source rust-winapi-i686-pc-windows-gnu-0.4))
1619 ("winapi-util" . #+(package-source rust-winapi-util-0.1))
1620 ;("winapi-x86_64-pc-windows-gnu" . #+(package-source rust-winapi-x86-64-pc-windows-gnu-0.4))
1621;; xml-rs 0.8
1622 )))
1623 (format #t "Replacing vendored crates in the tarball and repacking ...~%")
1624 (force-output)
1625 (invoke "tar" "cfa" #$output
1626 ;; Avoid non-determinism in the archive. We set the
1627 ;; mtime of files in the archive to early 1980 because
1628 ;; the build process fails if the mtime of source
1629 ;; files is pre-1980, due to the creation of zip
1630 ;; archives.
1631 "--mtime=@315619200" ; 1980-01-02 UTC
1632 "--owner=root:0"
1633 "--group=root:0"
1634 "--sort=name"
1635 (string-append "librsvg-" #$version))
1636 #t)))))))
1637
f67417a1 1638(define-public librsvg-next
63016e7c
LC
1639 (package
1640 (name "librsvg")
cf9dad6c 1641 (version "2.46.3")
8f523eb9 1642 (source librsvg-next-source)
63016e7c
LC
1643 (build-system gnu-build-system)
1644 (arguments
d953418a
RW
1645 `(#:configure-flags
1646 (list "--disable-static"
1647 "--enable-vala") ; needed for e.g. gnome-mines
7e0f4cb1 1648 #:make-flags '("CC=gcc")
8f523eb9 1649 #:imported-modules ,%cargo-utils-modules ;for `generate-all-checksums'
ec47c07d 1650 #:phases
b6239e45 1651 (modify-phases %standard-phases
8f523eb9 1652 (add-after 'configure 'patch-cargo-checksums
ec47c07d 1653 (lambda _
8f523eb9
EF
1654 (use-modules (guix build cargo-utils))
1655 (substitute* "librsvg/Cargo.toml"
1656 (("bitflags .*") "bitflags = \"1\"\n")) ; 1.2 is vendored
b665a246 1657 (generate-all-checksums "vendor")
8f523eb9
EF
1658 (delete-file "Cargo.lock")
1659 (invoke "cargo" "generate-lockfile")))
b6239e45
EF
1660 (add-before 'configure 'pre-configure
1661 (lambda* (#:key inputs #:allow-other-keys)
1662 (substitute* "gdk-pixbuf-loader/Makefile.in"
1663 ;; By default the gdk-pixbuf loader is installed under
1664 ;; gdk-pixbuf's prefix. Work around that.
1665 (("gdk_pixbuf_moduledir = .*$")
1666 (string-append "gdk_pixbuf_moduledir = "
1667 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1668 "loaders\n"))
1669 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1670 (("gdk_pixbuf_cache_file = .*$")
1671 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1672 #t))
ec47c07d 1673 (add-before 'check 'remove-failing-tests
b6239e45 1674 (lambda _
64a153bd
MW
1675 (with-directory-excursion "tests/fixtures/reftests"
1676 (for-each delete-file
ec47c07d
MB
1677 '(;; The images produced by these tests differ slightly
1678 ;; from their reference counterparts due to differences
1679 ;; in the build environment (missing fonts, etc). See
1680 ;; <tests/README.md> for details.
1681 ;; These fail on x86_64.
1682 "svg1.1/coords-viewattr-02-b.svg"
1683 "svg1.1/filters-composite-04-f.svg"
1684 "svg1.1/filters-image-01-b.svg"
1685 "svg1.1/filters-conv-02-f.svg"
1686 "svg1.1/filters-conv-04-f.svg"
1687 ;; This test fails on i686:
64a153bd 1688 "svg1.1/masking-path-04-b.svg"
64a153bd
MW
1689 ;; This test fails on armhf:
1690 "svg1.1/masking-mask-01-b.svg"
64a153bd 1691 ;; This test fails on aarch64:
ec47c07d 1692 "bugs/777834-empty-text-children.svg")))
b6239e45 1693 #t)))))
63016e7c
LC
1694 (native-inputs
1695 `(("pkg-config" ,pkg-config)
64855281
MB
1696 ;; This is the minimum supported Rust version in Librsvg 2.46.
1697 ("rust" ,rust-1.34)
1698 ("cargo" ,rust-1.34 "cargo")
d953418a 1699 ("vala" ,vala)
44add1ce 1700 ("glib" ,glib "bin") ; glib-mkenums, etc.
63016e7c
LC
1701 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1702 (inputs
1703 `(("pango" ,pango)
1704 ("libcroco" ,libcroco)
1705 ("bzip2" ,bzip2)
1706 ("libgsf" ,libgsf)
1707 ("libxml2" ,libxml2)))
1708 (propagated-inputs
1709 ;; librsvg-2.0.pc refers to all of that.
1710 `(("cairo" ,cairo)
1711 ("gdk-pixbuf" ,gdk-pixbuf)
1712 ("glib" ,glib)))
1713 (home-page "https://wiki.gnome.org/LibRsvg")
1714 (synopsis "Render SVG files using Cairo")
1715 (description
35b9e423 1716 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
63016e7c 1717library.")
cf9dad6c 1718 (license license:lgpl2.1+)))
5698b8b8
JD
1719
1720(define-public libidl
1721 (package
1722 (name "libidl")
1723 (version "0.8.14")
1724 (source (origin
1725 (method url-fetch)
1726 (uri (let ((upstream-name "libIDL"))
b38e45d8
EB
1727 (string-append "mirror://gnome/sources/" upstream-name "/"
1728 (version-major+minor version) "/"
1729 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
1730 (sha256
1731 (base32
1732 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
1733 (build-system gnu-build-system)
1734 (inputs `(("glib" ,glib)))
1735 (native-inputs
1736 `(("pkg-config" ,pkg-config)
b3546174 1737 ("flex" ,flex)
5698b8b8
JD
1738 ("bison" ,bison)))
1739 (home-page "http://freecode.com/projects/libidl")
1740 (synopsis "Create trees of CORBA Interface Definition Language files")
35b9e423 1741 (description "Libidl is a library for creating trees of CORBA Interface
5698b8b8
JD
1742Definition Language (idl) files, which is a specification for defining
1743portable interfaces. libidl was initially written for orbit (the orb from the
35b9e423 1744GNOME project, and the primary means of libidl distribution). However, the
2e6ecc5c 1745functionality was designed to be as reusable and portable as possible.")
5698b8b8
JD
1746 (license license:lgpl2.0+)))
1747
1748
1749(define-public orbit2
1750 (package
1751 (name "orbit2")
1752 (version "2.14.19")
1753 (source (origin
1754 (method url-fetch)
2e6ecc5c 1755 (uri (let ((upstream-name "ORBit2"))
a124bbd2 1756 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
1757 (version-major+minor version) "/"
1758 upstream-name "-" version ".tar.bz2")))
5698b8b8 1759 (sha256
a124bbd2
SB
1760 (base32
1761 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
5698b8b8
JD
1762 (build-system gnu-build-system)
1763 (arguments
a124bbd2 1764 `(#:configure-flags
8aad2e32
LC
1765 '(;; We don't need static libraries, plus they don't build reproducibly
1766 ;; (non-deterministic ordering of .o files in the archive.)
1767 "--disable-static"
1768
1769 ;; The programmer kindly gives us a hook to turn off deprecation
1770 ;; warnings ...
1771 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
a124bbd2
SB
1772 ;; ... which they then completly ignore !!
1773 #:phases
dc1d3cde
KK
1774 (modify-phases %standard-phases
1775 (add-before 'configure 'ignore-deprecations
1776 (lambda _
1777 (substitute* "linc2/src/Makefile.in"
1778 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1779 #t)))))
5698b8b8
JD
1780 (inputs `(("glib" ,glib)
1781 ("libidl" ,libidl)))
1782 (native-inputs
1783 `(("pkg-config" ,pkg-config)))
1784 (home-page "https://projects.gnome.org/orbit2/")
1785 (synopsis "CORBA 2.4-compliant Object Request Broker")
35b9e423 1786 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
2e6ecc5c 1787featuring mature C, C++ and Python bindings.")
a124bbd2
SB
1788 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
1789 ;; a version. SOME of the code files have licence notices for GPLv2+.
1790 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
892307ae
LC
1791 (license license:gpl2+)
1792 (properties `((upstream-name . "ORBit2")))))
5698b8b8
JD
1793
1794
1795(define-public libbonobo
1796 (package
1797 (name "libbonobo")
1798 (version "2.32.1")
1799 (source (origin
1800 (method url-fetch)
5becd025 1801 (uri (string-append "mirror://gnome/sources/" name "/"
29a7c98a 1802 (version-major+minor version)
5becd025 1803 "/" name "-" version ".tar.bz2"))
5698b8b8 1804 (sha256
f1fc45a9 1805 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
fc1adab1
AK
1806 (patches (search-patches
1807 "libbonobo-activation-test-race.patch"))))
5698b8b8
JD
1808 (build-system gnu-build-system)
1809 (arguments
1810 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
5becd025
EB
1811 `(#:configure-flags
1812 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1813 ;; ... which they then completly ignore !!
1814 #:phases
dc1d3cde
KK
1815 (modify-phases %standard-phases
1816 (add-before 'configure 'ignore-deprecations
1817 (lambda _
1818 (substitute* "activation-server/Makefile.in"
1819 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
994b5b1d
LC
1820 #t)))
1821
1822 ;; There's apparently a race condition between the server stub
1823 ;; generation and linking of the example under 'samples/echo' that can
1824 ;; lead do undefined references when building in parallel, as reported
1825 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
1826 ;; Thus, disable parallel builds.
1827 #:parallel-build? #f))
5698b8b8
JD
1828 (inputs `(("popt" ,popt)
1829 ("libxml2" ,libxml2)))
1830 ;; The following are Required by the .pc file
44add1ce 1831 (propagated-inputs
5698b8b8
JD
1832 `(("glib" ,glib)
1833 ("orbit2" ,orbit2)))
1834 (native-inputs
1835 `(("intltool" ,intltool)
1836 ("pkg-config" ,pkg-config)
221ed17a 1837 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
1838 ("flex" ,flex)
1839 ("bison" ,bison)))
1840 (home-page "https://developer.gnome.org/libbonobo/")
1841 (synopsis "Framework for creating reusable components for use in GNOME applications")
1842 (description "Bonobo is a framework for creating reusable components for
2e6ecc5c 1843use in GNOME applications, built on top of CORBA.")
5698b8b8
JD
1844 ;; Licence not explicitly stated. Source files contain no licence notices.
1845 ;; Tarball contains text of both GPLv2 and LGPLv2
1846 ;; GPLv2 covers both conditions
1847 (license license:gpl2+)))
1848
1849
1850(define-public gconf
1851 (package
1852 (name "gconf")
1853 (version "3.2.6")
1854 (source (origin
1855 (method url-fetch)
a124bbd2
SB
1856 (uri
1857 (let ((upstream-name "GConf"))
1858 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
1859 (version-major+minor version) "/"
1860 upstream-name "-" version ".tar.xz")))
5698b8b8
JD
1861 (sha256
1862 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
1863 (build-system gnu-build-system)
2e88d113 1864 (inputs `(("dbus-glib" ,dbus-glib)
5698b8b8 1865 ("libxml2" ,libxml2)))
2e6ecc5c
AE
1866 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
1867 ("orbit2" ,orbit2)))
5698b8b8
JD
1868 (native-inputs
1869 `(("intltool" ,intltool)
221ed17a 1870 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
1871 ("pkg-config" ,pkg-config)))
1872 (home-page "https://projects.gnome.org/gconf/")
35b9e423
EB
1873 (synopsis "Store application preferences")
1874 (description "Gconf is a system for storing application preferences. It
1875is intended for user preferences; not arbitrary data storage.")
29d2f451
LC
1876 (license license:lgpl2.0+)
1877 (properties '((upstream-name . "GConf")))))
5698b8b8
JD
1878
1879
1880(define-public gnome-mime-data
1881 (package
1882 (name "gnome-mime-data")
1883 (version "2.18.0")
1884 (source (origin
1885 (method url-fetch)
b38e45d8
EB
1886 (uri (string-append "mirror://gnome/sources/" name "/"
1887 (version-major+minor version) "/"
1888 name "-" version ".tar.bz2"))
5698b8b8
JD
1889 (sha256
1890 (base32
1891 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
1892 (build-system gnu-build-system)
1893 (native-inputs
1894 `(("perl" ,perl)
1895 ("intltool" ,intltool)))
3e6add96
LC
1896 (arguments
1897 '(#:phases (modify-phases %standard-phases
1898 (add-after 'configure 'use-our-intltool
1899 (lambda _
1900 ;; Do not use the bundled intltool commands, which lack
1901 ;; the "dotless @INC" fixes of our 'intltool' package.
1902 (substitute* (find-files "." "^Makefile$")
1903 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
1904 (string-append "INTLTOOL_" tool " = intltool-"
1905 (string-downcase tool) "\n")))
1906 #t)))))
f032d0be 1907 (home-page "https://www.gnome.org")
35b9e423 1908 (synopsis "Base MIME and Application database for GNOME")
5698b8b8
JD
1909 (description "GNOME Mime Data is a module which contains the base MIME
1910and Application database for GNOME. The data stored by this module is
1911designed to be accessed through the MIME functions in GnomeVFS.")
1912 (license license:gpl2+)))
1913
1914
1915(define-public gnome-vfs
1916 (package
1917 (name "gnome-vfs")
1918 (version "2.24.4")
1919 (source (origin
1920 (method url-fetch)
b38e45d8
EB
1921 (uri (string-append "mirror://gnome/sources/" name "/"
1922 (version-major+minor version) "/"
1923 name "-" version ".tar.bz2"))
5698b8b8 1924 (sha256
9e12bc34
MW
1925 (base32
1926 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
5698b8b8
JD
1927 (build-system gnu-build-system)
1928 (arguments
db5127d8 1929 `(#:phases
dc1d3cde
KK
1930 (modify-phases %standard-phases
1931 (add-before 'configure 'ignore-deprecations
1932 (lambda _
1933 (substitute* '("libgnomevfs/Makefile.in"
1934 "daemon/Makefile.in")
1935 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1936 #t))
1937 (add-before 'configure 'patch-test-async-cancel-to-never-fail
1938 (lambda _
1939 (substitute* "test/test-async-cancel.c"
1940 (("EXIT_FAILURE") "77"))
1941 #t)))))
2e6ecc5c 1942 (inputs `(("libxml2" ,libxml2)
5698b8b8 1943 ("dbus-glib" ,dbus-glib)
5698b8b8
JD
1944 ("gconf" ,gconf)
1945 ("gnome-mime-data" ,gnome-mime-data)
1946 ("zlib" ,zlib)))
1947 (native-inputs
221ed17a
EB
1948 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
1949 ("intltool" ,intltool)
5698b8b8
JD
1950 ("pkg-config" ,pkg-config)))
1951 (home-page "https://developer.gnome.org/gnome-vfs/")
35b9e423 1952 (synopsis "Access files and folders in GNOME applications")
9e12bc34
MW
1953 (description
1954 "GnomeVFS is the core library used to access files and folders in GNOME
1955applications. It provides a file system abstraction which allows applications
1956to access local and remote files with a single consistent API.")
5698b8b8
JD
1957 (license license:lgpl2.0+)))
1958
1959
1960
1961(define-public libgnome
1962 (package
1963 (name "libgnome")
1964 (version "2.32.1")
1965 (source (origin
1966 (method url-fetch)
b38e45d8
EB
1967 (uri (string-append "mirror://gnome/sources/" name "/"
1968 (version-major+minor version) "/"
1969 name "-" version ".tar.bz2"))
5698b8b8
JD
1970 (sha256
1971 (base32
17c3eea7
LC
1972 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
1973 (patches (search-patches "libgnome-encoding.patch"))))
5698b8b8
JD
1974 (build-system gnu-build-system)
1975 (arguments
1976 `(#:phases
dc1d3cde
KK
1977 (modify-phases %standard-phases
1978 (add-before 'configure 'enable-deprecated
1979 (lambda _
1980 (substitute* "libgnome/Makefile.in"
1981 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1982 #t)))))
25338e9f 1983 (inputs `(("libxml2" ,libxml2)))
5698b8b8 1984 (native-inputs
221ed17a
EB
1985 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
1986 ("intltool" ,intltool)
5698b8b8
JD
1987 ("pkg-config" ,pkg-config)))
1988 ;; The following are listed as Required in the .pc file
1989 ;; (except for libcanberra -- which seems to be oversight on the part
1990 ;; of the upstream developers -- anything that links against libgnome,
1991 ;; must also link against libcanberra
1992 (propagated-inputs
1993 `(("libcanberra" ,libcanberra)
1994 ("libbonobo" ,libbonobo)
1995 ("gconf" ,gconf)
a640d3d5
LC
1996 ("gnome-vfs" ,gnome-vfs)
1997 ("popt" ,popt))) ;gnome-program.h includes popt.h
5698b8b8
JD
1998 (home-page "https://developer.gnome.org/libgnome/")
1999 (synopsis "Useful routines for building applications")
2000 (description "The libgnome library provides a number of useful routines
2001for building modern applications, including session management, activation of
2002files and URIs, and displaying help.")
2003 (license license:lgpl2.0+)))
2004
2005
2006(define-public libart-lgpl
2007 (package
2008 (name "libart-lgpl")
76c9b6aa 2009 (version "2.3.21")
5698b8b8
JD
2010 (source (origin
2011 (method url-fetch)
2012 (uri (let ((upstream-name "libart_lgpl"))
b38e45d8
EB
2013 (string-append "mirror://gnome/sources/" upstream-name "/"
2014 (version-major+minor version) "/"
2015 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
2016 (sha256
2017 (base32
76c9b6aa 2018 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
5698b8b8
JD
2019 (build-system gnu-build-system)
2020 (native-inputs
2021 `(("pkg-config" ,pkg-config)))
2022 (home-page "https://people.gnome.org/~mathieu/libart")
2023 (synopsis "2D drawing library")
2e6ecc5c 2024 (description "Libart is a 2D drawing library intended as a
5698b8b8
JD
2025high-quality vector-based 2D library with antialiasing and alpha composition.")
2026 (license license:lgpl2.0+)))
2027
2028
2029
2030(define-public libgnomecanvas
2031 (package
2032 (name "libgnomecanvas")
2033 (version "2.30.3")
2034 (source (origin
2035 (method url-fetch)
b38e45d8
EB
2036 (uri (string-append "mirror://gnome/sources/" name "/"
2037 (version-major+minor version) "/"
2038 name "-" version ".tar.gz"))
5698b8b8
JD
2039 (sha256
2040 (base32
2041 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
2042 (build-system gnu-build-system)
2043 ;; Mentioned as Required in the .pc file
2044 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
2045 ("gtk+" ,gtk+-2)))
2046 (native-inputs
2047 `(("intltool" ,intltool)
221ed17a 2048 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2049 ("pkg-config" ,pkg-config)))
2050 (home-page "https://developer.gnome.org/libgnomecanvas/")
2051 (synopsis "Flexible widget for creating interactive structured graphics")
2052 (description "The GnomeCanvas widget provides a flexible widget for
2053creating interactive structured graphics.")
2054 (license license:lgpl2.0+)))
2055
eadc734e
RW
2056(define-public libgnomecanvasmm
2057 (package
2058 (name "libgnomecanvasmm")
2059 (version "2.26.0")
2060 (source (origin
2061 (method url-fetch)
2062 (uri (string-append "mirror://gnome/sources/" name "/"
2063 (version-major+minor version) "/"
2064 name "-" version ".tar.bz2"))
2065 (sha256
2066 (base32
2067 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
2068 (build-system gnu-build-system)
2069 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
2070 (native-inputs
2071 `(("gtkmm-2" ,gtkmm-2)
2072 ("pkg-config" ,pkg-config)))
8e933cb3 2073 (home-page "https://gtkmm.org")
eadc734e
RW
2074 (synopsis "C++ bindings to the GNOME Canvas library")
2075 (description "C++ bindings to the GNOME Canvas library.")
2076 (license license:lgpl2.0+)))
2077
5698b8b8
JD
2078(define-public libgnomeui
2079 (package
2080 (name "libgnomeui")
2081 (version "2.24.5")
2082 (source (origin
2083 (method url-fetch)
b38e45d8
EB
2084 (uri (string-append "mirror://gnome/sources/" name "/"
2085 (version-major+minor version) "/"
2086 name "-" version ".tar.bz2"))
8fa1872a 2087 (patches (search-patches "libgnomeui-utf8.patch"))
5698b8b8
JD
2088 (sha256
2089 (base32
2090 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
2091 (build-system gnu-build-system)
2092 ;; Mentioned as Required in the .pc file
0a38a497
AE
2093 (propagated-inputs `(("libbonoboui" ,libbonoboui)
2094 ("libgnome" ,libgnome)
2095 ("libgnomecanvas" ,libgnomecanvas)
5698b8b8 2096 ("libgnome-keyring" ,libgnome-keyring)))
0a38a497 2097 (inputs `(("libjpeg" ,libjpeg)
5698b8b8
JD
2098 ("popt" ,popt)
2099 ("libbonobo" ,libbonobo)
2100 ("libxml2" ,libxml2)
2101 ("libglade" ,libglade)))
2102 (native-inputs
221ed17a
EB
2103 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2104 ("intltool" ,intltool)
5698b8b8
JD
2105 ("pkg-config" ,pkg-config)))
2106 (home-page "https://developer.gnome.org/libgnomeui/")
2107 (synopsis "Additional widgets for applications")
35b9e423 2108 (description "The libgnomeui library provides additional widgets for
e881752c
AK
2109applications. Many of the widgets from libgnomeui have already been
2110ported to GTK+.")
5698b8b8
JD
2111 (license license:lgpl2.0+)))
2112
2113(define-public libglade
2114 (package
2115 (name "libglade")
2116 (version "2.6.4")
2117 (source (origin
2118 (method url-fetch)
b38e45d8
EB
2119 (uri (string-append "mirror://gnome/sources/" name "/"
2120 (version-major+minor version) "/"
2121 name "-" version ".tar.bz2"))
5698b8b8
JD
2122 (sha256
2123 (base32
2124 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
2125 (build-system gnu-build-system)
2126 (inputs
92dcc23d
AE
2127 `(("python" ,python))) ;; needed for the optional libglade-convert program
2128 (propagated-inputs
5698b8b8 2129 `(("gtk+-2" ,gtk+-2)
92dcc23d 2130 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
5698b8b8
JD
2131 (native-inputs
2132 `(("pkg-config" ,pkg-config)))
2133 (home-page "https://developer.gnome.org/libglade")
35b9e423
EB
2134 (synopsis "Load glade interfaces and access the glade built widgets")
2135 (description "Libglade is a library that provides interfaces for loading
5698b8b8
JD
2136graphical interfaces described in glade files and for accessing the
2137widgets built in the loading process.")
2138 (license license:gpl2+))) ; This is correct. GPL not LGPL
2139
2140(define-public libgnomeprint
eb497b66
LC
2141 ;; This library has been deprecated since 2006; see
2142 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
5698b8b8
JD
2143 (package
2144 (name "libgnomeprint")
d19db454 2145 (version "2.18.8")
5698b8b8
JD
2146 (source (origin
2147 (method url-fetch)
b38e45d8
EB
2148 (uri (string-append "mirror://gnome/sources/" name "/"
2149 (version-major+minor version) "/"
2150 name "-" version ".tar.bz2"))
5698b8b8
JD
2151 (sha256
2152 (base32
d19db454 2153 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
5698b8b8
JD
2154 (build-system gnu-build-system)
2155 (inputs
2156 `(("popt" ,popt)
2157 ("libart-lgpl" ,libart-lgpl)
2158 ("gtk+" ,gtk+-2)
44add1ce 2159 ("libxml2" ,libxml2)))
5698b8b8
JD
2160 (native-inputs
2161 `(("intltool" ,intltool)
221ed17a 2162 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2163 ("pkg-config" ,pkg-config)))
2164 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
35b9e423 2165 (synopsis "Printing framework for GNOME")
eb497b66
LC
2166 (description
2167 "GNOME-print was a printing framework for GNOME. It has been deprecated
2168since ca. 2006, when GTK+ itself incorporated printing support.")
5698b8b8
JD
2169 (license license:lgpl2.0+)))
2170
2171
2172(define-public libgnomeprintui
eb497b66 2173 ;; Deprecated; see libgnomeprint.
5698b8b8
JD
2174 (package
2175 (name "libgnomeprintui")
36053d7f 2176 (version "2.18.6")
5698b8b8
JD
2177 (source (origin
2178 (method url-fetch)
b38e45d8
EB
2179 (uri (string-append "mirror://gnome/sources/" name "/"
2180 (version-major+minor version) "/"
2181 name "-" version ".tar.bz2"))
5698b8b8
JD
2182 (sha256
2183 (base32
36053d7f 2184 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
5698b8b8
JD
2185 (build-system gnu-build-system)
2186 ;; Mentioned as Required in the .pc file
2187 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
2188 (inputs `(("gtk+" ,gtk+-2)
2189 ("glib" ,glib)
2190 ("gnome-icon-theme" ,gnome-icon-theme)
2191 ("libgnomecanvas" ,libgnomecanvas)
2e6ecc5c 2192 ("libxml2" ,libxml2)))
5698b8b8
JD
2193 (native-inputs
2194 `(("intltool" ,intltool)
2195 ("pkg-config" ,pkg-config)))
2196 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
2197 (synopsis "Printing framework for GNOME")
eb497b66 2198 (description (package-description libgnomeprint))
5698b8b8
JD
2199 (license license:lgpl2.0+)))
2200
5698b8b8
JD
2201(define-public libbonoboui
2202 (package
2203 (name "libbonoboui")
2204 (version "2.24.5")
2205 (source (origin
2206 (method url-fetch)
b38e45d8
EB
2207 (uri (string-append "mirror://gnome/sources/" name "/"
2208 (version-major+minor version) "/"
2209 name "-" version ".tar.bz2"))
5698b8b8
JD
2210 (sha256
2211 (base32
2212 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
2213 (build-system gnu-build-system)
2214 (arguments
2215 `(#:phases
dc1d3cde
KK
2216 (modify-phases %standard-phases
2217 (add-before 'check 'start-xserver
2218 (lambda* (#:key inputs #:allow-other-keys)
2219 (let ((xorg-server (assoc-ref inputs "xorg-server"))
2220 (disp ":1"))
2221
2222 (setenv "HOME" (getcwd))
2223 (setenv "DISPLAY" disp)
2224 ;; There must be a running X server and make check doesn't start one.
2225 ;; Therefore we must do it.
2226 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
5698b8b8
JD
2227 ;; Mentioned as Required by the .pc file
2228 (propagated-inputs `(("libxml2" ,libxml2)))
2229 (inputs
2230 `(("popt" ,popt)
2231 ("pangox-compat" ,pangox-compat)
2232 ("libgnome" ,libgnome)
2233 ("libgnomecanvas" ,libgnomecanvas)
2234 ("libglade" ,libglade)))
2235 (native-inputs
221ed17a
EB
2236 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2237 ("intltool" ,intltool)
ff337525 2238 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
5698b8b8
JD
2239 ("pkg-config" ,pkg-config)))
2240 (home-page "https://developer.gnome.org/libbonoboui/")
2241 (synopsis "Some user interface controls using Bonobo")
2242 (description "The Bonobo UI library provides a number of user interface
2243controls using the Bonobo component framework.")
2244 (license license:lgpl2.0+)))
2245
fecbf86e
SB
2246(define-public libwnck
2247 (package
2248 (name "libwnck")
d3b40696 2249 (version "3.32.0")
fecbf86e
SB
2250 (source (origin
2251 (method url-fetch)
2252 (uri (string-append "mirror://gnome/sources/" name "/"
2253 (version-major+minor version) "/"
2254 name "-" version ".tar.xz"))
2255 (sha256
ad9b8987 2256 (base32
d3b40696
KK
2257 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
2258 (build-system meson-build-system)
fecbf86e
SB
2259 (native-inputs
2260 `(("pkg-config" ,pkg-config)
d3b40696
KK
2261 ("glib" ,glib "bin") ; for glib-mkenums
2262 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
fecbf86e
SB
2263 ("intltool" ,intltool)))
2264 (propagated-inputs
427476d5
SB
2265 `(("gtk+" ,gtk+)
2266 ("libxres" ,libxres)
2267 ("startup-notification" ,startup-notification)))
fecbf86e
SB
2268 (home-page "https://developer.gnome.org/libwnck/")
2269 (synopsis "Window Navigator Construction Kit")
2270 (description
2271 "Libwnck is the Window Navigator Construction Kit, a library for use in
2272writing pagers, tasklists, and more generally applications that are dealing
2273with window management. It tries hard to respect the Extended Window Manager
2274Hints specification (EWMH).")
2275 (license license:lgpl2.0+)))
2276
2277;; stable version for gtk2, required by xfwm4.
dbb7a081 2278(define-public libwnck-2
fecbf86e
SB
2279 (package (inherit libwnck)
2280 (name "libwnck")
2281 (version "2.30.7")
2282 (source (origin
2283 (method url-fetch)
2284 (uri (string-append "mirror://gnome/sources/" name "/"
2285 (version-major+minor version) "/"
2286 name "-" version ".tar.xz"))
2287 (sha256
2288 (base32
2289 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
2290 (propagated-inputs
427476d5
SB
2291 `(("gtk+" ,gtk+-2)
2292 ("libxres" ,libxres)
2293 ("startup-notification" ,startup-notification)))))
b804c61e
JD
2294
2295(define-public goffice
2296 (package
2297 (name "goffice")
09abffcc 2298 (version "0.10.46")
b804c61e
JD
2299 (source (origin
2300 (method url-fetch)
16243f0b 2301 (uri (string-append "mirror://gnome/sources/goffice/"
b38e45d8 2302 (version-major+minor version) "/"
16243f0b 2303 "goffice-" version ".tar.xz"))
b804c61e 2304 (sha256
09abffcc 2305 (base32 "1a8kba36zwzr0ilafc0d1nsxxma1qibviiifd0jhbxp180x6v385"))))
b804c61e 2306 (build-system gnu-build-system)
72a06d3e 2307 (outputs '("out"
355420c6 2308 "doc")) ; 4.0 MiB of gtk-doc
72a06d3e
LC
2309 (arguments
2310 '(#:configure-flags (list (string-append "--with-html-dir="
2311 (assoc-ref %outputs "doc")
2312 "/share/gtk-doc/html"))))
b804c61e
JD
2313 (inputs
2314 `(("gtk+" ,gtk+)
2315 ("libgsf" ,libgsf)
2316 ("librsvg" ,librsvg)
2317 ("libxslt" ,libxslt)
2318 ("libxml2" ,libxml2)))
2319 (native-inputs
2320 `(("intltool" ,intltool)
f280cdb1 2321 ("glib" ,glib "bin")
b804c61e
JD
2322 ("pkg-config" ,pkg-config)))
2323 (home-page "https://developer.gnome.org/goffice/")
2324 (synopsis "Document-centric objects and utilities")
2325 (description "A GLib/GTK+ set of document-centric objects and utilities.")
2e6ecc5c 2326 (license
b804c61e
JD
2327 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2328 ;; Note: NOT LGPL
2329 (list license:gpl2 license:gpl3))))
2330
c024ae36
RW
2331(define-public goffice-0.8
2332 (package (inherit goffice)
2333 (version "0.8.17")
2334 (source (origin
2335 (method url-fetch)
2336 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
2337 (version-major+minor version) "/"
2338 (package-name goffice) "-" version ".tar.xz"))
2339 (sha256
2340 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
2341 (arguments
2342 `(#:phases
dc1d3cde
KK
2343 (modify-phases %standard-phases
2344 (add-after 'unpack 'fix-pcre-check
2345 (lambda _
2346 ;; Only glib.h can be included directly. See
2347 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
2348 (substitute* "configure"
2349 (("glib/gregex\\.h") "glib.h")) #t)))
72a06d3e
LC
2350
2351 ,@(package-arguments goffice)))
c024ae36
RW
2352 (propagated-inputs
2353 ;; libgoffice-0.8.pc mentions libgsf-1
2354 `(("libgsf" ,libgsf)))
2355 (inputs
2356 `(("gtk" ,gtk+-2)
2357 ,@(alist-delete "gtk" (package-inputs goffice))))))
2358
b804c61e
JD
2359(define-public gnumeric
2360 (package
2361 (name "gnumeric")
f0517b5d 2362 (version "1.12.46")
b804c61e
JD
2363 (source (origin
2364 (method url-fetch)
b7fd0217 2365 (uri (string-append "mirror://gnome/sources/gnumeric/"
b38e45d8 2366 (version-major+minor version) "/"
b7fd0217 2367 "gnumeric-" version ".tar.xz"))
b804c61e
JD
2368 (sha256
2369 (base32
f0517b5d 2370 "1qdmw2dp7rmq8fmjapgwaks7ajh270wm6kyvlxlzwbgmg8vngp4z"))))
bd1b1e05 2371 (build-system glib-or-gtk-build-system)
b804c61e
JD
2372 (arguments
2373 `(;; The gnumeric developers don't worry much about failing tests.
2374 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
2e6ecc5c 2375 #:tests? #f
b804c61e 2376 #:phases
7bcbd40d
EF
2377 (modify-phases %standard-phases
2378 (add-before
2379 'configure 'pre-conf
2380 (lambda* (#:key outputs #:allow-other-keys)
2381 ;; Make install tries to write into the directory of goffice
2382 ;; I am informed that this only affects the possibility to embed a
2383 ;; spreadsheet inside an Abiword document. So presumably when we
2384 ;; package Abiword we'll have to refer it to this directory.
2385 (substitute* "configure"
2386 (("^GOFFICE_PLUGINS_DIR=.*")
2387 (string-append "GOFFICE_PLUGINS_DIR="
2388 (assoc-ref outputs "out")
2389 "/goffice/plugins"))))))))
b804c61e
JD
2390 (inputs
2391 `(("glib" ,glib)
2392 ("gtk+" ,gtk+)
2393 ("goffice" ,goffice)
2394 ("libgsf" ,libgsf)
7bcbd40d 2395 ("librsvg" ,librsvg)
b804c61e 2396 ("libxml2" ,libxml2)
7bcbd40d 2397 ("libxslt" ,libxslt)
2e4c5457 2398 ("python" ,python-2)
6983ba56 2399 ("python2-pygobject" ,python2-pygobject)
b804c61e
JD
2400 ("zlib" ,zlib)))
2401 (native-inputs
6983ba56 2402 `(("bison" ,bison)
1ed398d1 2403 ("docbook-xml" ,docbook-xml)
6983ba56 2404 ("intltool" ,intltool)
3a2efbc8 2405 ("itstool" ,itstool/fixed) ;see <https://bugs.gnu.org/37468>
b9663471 2406 ("glib:bin" ,glib "bin")
b804c61e
JD
2407 ("pkg-config" ,pkg-config)))
2408 (home-page "http://www.gnumeric.org")
66672a45
LC
2409 (synopsis "Spreadsheet application")
2410 (description
2411 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
2412interoperable with other spreadsheet applications. It has a vast array of
2413features beyond typical spreadsheet functionality, such as support for linear
2414and non-linear solvers, statistical analysis, and telecommunication
2415engineering.")
2416 (license
b804c61e
JD
2417 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2418 (list license:gpl2 license:gpl3))))
6f885c05
FB
2419
2420(define-public gnome-themes-standard
2421 (package
2422 (name "gnome-themes-standard")
0b7b8fb0 2423 (version "3.22.3")
6f885c05
FB
2424 (source
2425 (origin
2426 (method url-fetch)
2e6ecc5c 2427 (uri (string-append "mirror://gnome/sources/" name "/"
6f885c05
FB
2428 (version-major+minor version) "/" name "-"
2429 version ".tar.xz"))
2430 (sha256
2431 (base32
0b7b8fb0 2432 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
6f885c05 2433 (build-system gnu-build-system)
8ac70c7f
SB
2434 (arguments
2435 '(#:configure-flags
2436 ;; Don't create 'icon-theme.cache'.
2437 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2438 (true (string-append coreutils "/bin/true")))
2439 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
6f885c05
FB
2440 (inputs
2441 `(("gtk+" ,gtk+)
2442 ("gtk+-2" ,gtk+-2)
2443 ("librsvg" ,librsvg)
2444 ("libxml2" ,libxml2)
2445 ("glib" ,glib)))
2446 (native-inputs
2447 `(("intltool" ,intltool)
2448 ("glib:bin" ,glib "bin")
2449 ("pkg-config" ,pkg-config)))
6f885c05
FB
2450 (home-page "https://launchpad.net/gnome-themes-standard")
2451 (synopsis "Default GNOME 3 themes")
2452 (description
2453 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
2454 (license license:lgpl2.1+)))
5a659a48 2455
df90c701
RW
2456(define-public seahorse
2457 (package
2458 (name "seahorse")
bcea3c11 2459 (version "3.32.2")
df90c701
RW
2460 (source
2461 (origin
2462 (method url-fetch)
2463 (uri (string-append "mirror://gnome/sources/" name "/"
2464 (version-major+minor version) "/" name "-"
2465 version ".tar.xz"))
2466 (sha256
2467 (base32
bcea3c11 2468 "0d8zdzmlz7fjv9xl20zl4ckidf465mvdjnbpxy3k08y9iw423q4x"))
af561664
MÁAV
2469 (patches (search-patches
2470 "seahorse-gkr-use-0-on-empty-flags.patch"))))
2471 (build-system meson-build-system)
2472 (arguments
bcea3c11
KK
2473 '(#:glib-or-gtk? #t
2474 #:phases
af561664
MÁAV
2475 (modify-phases %standard-phases
2476 (add-after 'unpack 'skip-gtk-update-icon-cache
2477 ;; Don't create 'icon-theme.cache'.
2478 (lambda _
2479 (substitute* "build-aux/meson_post_install.py"
2480 (("gtk-update-icon-cache") "true"))
2481 #t)))))
df90c701
RW
2482 (inputs
2483 `(("gtk+" ,gtk+)
2484 ("gcr" ,gcr)
34b979b9 2485 ("gnupg" ,gnupg)
df90c701 2486 ("gpgme" ,gpgme)
34b979b9 2487 ("openldap" ,openldap)
4a1bf090 2488 ("openssh" ,openssh)
af561664 2489 ("avahi" ,avahi)
bcea3c11 2490 ("libpwquality" ,libpwquality)
34b979b9
EF
2491 ("libsecret" ,libsecret)
2492 ("libsoup" ,libsoup)))
df90c701 2493 (native-inputs
af561664 2494 `(("gettext" ,gettext-minimal)
df90c701
RW
2495 ("glib:bin" ,glib "bin")
2496 ("itstool" ,itstool)
bcb354ad 2497 ("pkg-config" ,pkg-config)
af561664 2498 ("vala" ,vala)
bcb354ad 2499 ("xmllint" ,libxml2)))
bcea3c11 2500 (home-page "https://wiki.gnome.org/Apps/Seahorse")
df90c701
RW
2501 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
2502 (description
2503 "Seahorse is a GNOME application for managing encryption keys and
2504passwords in the GNOME keyring.")
2505 (license license:gpl2+)))
2506
5a659a48
SB
2507(define-public vala
2508 (package
2509 (name "vala")
2d6872f6 2510 (version "0.44.5")
5a659a48
SB
2511 (source (origin
2512 (method url-fetch)
2513 (uri (string-append "mirror://gnome/sources/" name "/"
2514 (version-major+minor version) "/"
2515 name "-" version ".tar.xz"))
2516 (sha256
2517 (base32
2d6872f6 2518 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
5a659a48 2519 (build-system gnu-build-system)
1ea90625
SB
2520 (arguments
2521 '(#:phases
2522 (modify-phases %standard-phases
f4925a4f 2523 (add-before 'check 'pre-check
1ea90625
SB
2524 (lambda _
2525 (setenv "CC" "gcc")
8839b6be
RW
2526 (substitute* "valadoc/tests/testrunner.sh"
2527 (("export PKG_CONFIG_PATH=" m)
2528 (string-append m "$PKG_CONFIG_PATH:")))
f4925a4f
SB
2529 ;; For missing '/etc/machine-id'.
2530 (setenv "DBUS_FATAL_WARNINGS" "0")
8839b6be 2531 #t)))))
5a659a48
SB
2532 (native-inputs
2533 `(("pkg-config" ,pkg-config)
2534 ("flex" ,flex)
2535 ("bison" ,bison)
2536 ("xsltproc" ,libxslt)
2537 ("dbus" ,dbus) ; for dbus tests
2538 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
8839b6be
RW
2539 (inputs
2540 `(("graphviz" ,graphviz)))
5a659a48 2541 (propagated-inputs
8839b6be 2542 `(("glib" ,glib))) ; required by libvala-0.40.pc
f032d0be 2543 (home-page "https://live.gnome.org/Vala/")
5a659a48
SB
2544 (synopsis "Compiler for the GObject type system")
2545 (description
2546 "Vala is a programming language that aims to bring modern programming
2547language features to GNOME developers without imposing any additional runtime
2548requirements and without using a different ABI compared to applications and
2549libraries written in C.")
2550 (license license:lgpl2.1+)))
ea57378f
SB
2551
2552(define-public vte
2553 (package
2554 (name "vte")
68c47474 2555 (version "0.58.3")
ea57378f
SB
2556 (source (origin
2557 (method url-fetch)
ac87ffb8 2558 (uri (string-append "mirror://gnome/sources/vte/"
ea57378f 2559 (version-major+minor version) "/"
ac87ffb8 2560 "vte-" version ".tar.xz"))
ea57378f
SB
2561 (sha256
2562 (base32
68c47474
TGR
2563 "0xa9ipwic4jnhhbzlnqbhssz10xkzv61cpkl1ammc6mdq95bbp12"))))
2564 (build-system meson-build-system)
ea57378f
SB
2565 (native-inputs
2566 `(("pkg-config" ,pkg-config)
2567 ("intltool" ,intltool)
2568 ("vala" ,vala)
2569 ("gobject-introspection" ,gobject-introspection)
68c47474 2570 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
73f0e1ab 2571 ("gperf" ,gperf)
ea57378f
SB
2572 ("xmllint" ,libxml2)))
2573 (propagated-inputs
68c47474
TGR
2574 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
2575 ("gnutls" ,gnutls) ; ditto
2576 ("pcre2" ,pcre2))) ; ditto
f032d0be 2577 (home-page "https://www.gnome.org/")
ea57378f
SB
2578 (synopsis "Virtual Terminal Emulator")
2579 (description
2580 "VTE is a library (libvte) implementing a terminal emulator widget for
2581GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
2582gnome-terminal, but can also be used to embed a console/terminal in games,
2583editors, IDEs, etc.")
2584 (license license:lgpl2.1+)))
2585
c44fb4df
MO
2586(define-public vte-ng
2587 (package
2588 (inherit vte)
2589 (name "vte-ng")
24f4fcbe 2590 (version "0.58.2.a")
afd90f8d 2591 (home-page "https://github.com/thestinger/vte-ng")
6bc00737
MB
2592 (source (origin
2593 (method git-fetch)
2594 (uri (git-reference (url home-page) (commit version)))
2595 (file-name (git-file-name name version))
2596 (sha256
2597 (base32
24f4fcbe
MB
2598 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
2599 (build-system meson-build-system)
c44fb4df
MO
2600 (native-inputs
2601 `(("gtk-doc" ,gtk-doc)
c44fb4df 2602 ,@(package-native-inputs vte)))
c44fb4df 2603 (arguments
24f4fcbe 2604 `(#:configure-flags '("-Ddocs=true")))
c44fb4df
MO
2605 (synopsis "Enhanced VTE terminal widget")
2606 (description
2607 "VTE is a library (libvte) implementing a terminal emulator widget for
2608GTK+, this fork provides additional functions exposed for keyboard text
2609selection and URL hints.")))
2610
2776d72c
EF
2611;; provides vte 2.90, required for some terminal emulators
2612;; tilda bug: https://github.com/lanoxx/tilda/issues/94
2613;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
2614;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
2615;; pantheon-terminal, roxterm are not currently packaged
2616(define-public vte-0.36
2617 (package (inherit vte)
2618 (name "vte")
2619 (version "0.36.5")
2620 (source (origin
2621 (method url-fetch)
2622 (uri (string-append "mirror://gnome/sources/" name "/"
2623 (version-major+minor version) "/"
2624 name "-" version ".tar.xz"))
2625 (sha256
2626 (base32
2627 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
2628 (propagated-inputs
2629 `(("gtk" ,gtk+)
2630 ("ncurses" ,ncurses)))))
2631
ea57378f
SB
2632;; stable version for gtk2, required by xfce4-terminal.
2633(define-public vte/gtk+-2
2634 (package (inherit vte)
2635 (name "vte")
2636 (version "0.28.2")
2637 (source (origin
2638 (method url-fetch)
2639 (uri (string-append "mirror://gnome/sources/" name "/"
2640 (version-major+minor version) "/"
2641 name "-" version ".tar.xz"))
2642 (sha256
2643 (base32
7d48938a
EF
2644 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
2645 (patches (search-patches
2646 "vte-CVE-2012-2738-pt1.patch"
2647 "vte-CVE-2012-2738-pt2.patch"))))
8eebde74 2648 (build-system gnu-build-system)
ea57378f
SB
2649 (arguments
2650 '(#:configure-flags '("--disable-python")))
2651 (native-inputs
2652 `(("pkg-config" ,pkg-config)
2653 ("intltool" ,intltool)
2654 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
2655 (propagated-inputs
2656 `(("gtk+" ,gtk+-2) ; required by libvte.pc
2657 ("ncurses" ,ncurses))))) ; required by libvte.la
b47e1b20 2658
cce0da5e
TD
2659(define-public vinagre
2660 (package
2661 (name "vinagre")
2662 (version "3.22.0")
2663 (source (origin
2664 (method url-fetch)
2665 (uri (string-append "mirror://gnome/sources/" name "/"
2666 (version-major+minor version) "/"
2667 name "-" version ".tar.xz"))
684f97f8
EF
2668 (patches (search-patches "vinagre-newer-freerdp.patch"
2669 "vinagre-newer-rdp-parameters.patch"))
cce0da5e
TD
2670 (sha256
2671 (base32
2672 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
2673 (build-system glib-or-gtk-build-system)
684f97f8 2674 (arguments
7f486d25
MC
2675 ;; Disable -Werror and such, to avoid build failures on compilation
2676 ;; warnings.
2677 '(#:configure-flags '("--enable-compile-warnings=minimum")
2678 #:phases
684f97f8 2679 (modify-phases %standard-phases
1839768c
EF
2680 (add-before 'install 'skip-gtk-update-icon-cache
2681 (lambda _
2682 ;; Don't create 'icon-theme.cache'
2683 (substitute* (find-files "." "^Makefile$")
2684 (("gtk-update-icon-cache") (which "true")))
2685 #t))
684f97f8
EF
2686 (add-after 'unpack 'patch-configure
2687 (lambda _
2688 (substitute* "configure"
2689 (("freerdp") "freerdp2"))
2690 #t)))))
cce0da5e
TD
2691 (native-inputs
2692 `(("pkg-config" ,pkg-config)
2693 ("intltool" ,intltool)
2694 ("itstool" ,itstool)
1839768c 2695 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
cce0da5e
TD
2696 (inputs
2697 `(("libxml2" ,libxml2)
2698 ("gtk-vnc" ,gtk-vnc)
2699 ("gnome-keyring" ,gnome-keyring)
2700 ("libsecret" ,libsecret)
2701 ("freerdp" ,freerdp)
2702 ("spice" ,spice)
2703 ("spice-gtk" ,spice-gtk)
2704 ("telepathy-glib" ,telepathy-glib)
2705 ("vte" ,vte)))
cce0da5e
TD
2706 (home-page "https://wiki.gnome.org/Apps/Vinagre")
2707 (synopsis "Remote desktop viewer for GNOME")
2708 (description "Vinagre is a remote display client supporting the VNC, SPICE
2709and RDP protocols.")
2710 (license license:gpl3+)))
2711
b47e1b20
FB
2712(define-public dconf
2713 (package
2714 (name "dconf")
1e33331c 2715 (version "0.32.0")
b47e1b20
FB
2716 (source (origin
2717 (method url-fetch)
2718 (uri (string-append
2e6ecc5c 2719 "mirror://gnome/sources/" name "/"
b47e1b20
FB
2720 (version-major+minor version) "/"
2721 name "-" version ".tar.xz"))
2722 (sha256
f05c809f 2723 (base32
1e33331c 2724 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
35fa923d 2725 (build-system meson-build-system)
bc036f4c
MB
2726 (propagated-inputs
2727 ;; In Requires of dconf.pc.
2728 `(("glib" ,glib)))
b47e1b20
FB
2729 (inputs
2730 `(("gtk+" ,gtk+)
bc036f4c 2731 ("dbus" ,dbus)))
b47e1b20 2732 (native-inputs
1e33331c
MB
2733 `(("bash-completion" ,bash-completion)
2734 ("libxslt" ,libxslt) ;for xsltproc
bc036f4c 2735 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
b47e1b20
FB
2736 ("docbook-xml" ,docbook-xml-4.2)
2737 ("docbook-xsl" ,docbook-xsl)
35fa923d 2738 ("glib:bin" ,glib "bin")
03676d6f 2739 ("gtk-doc" ,gtk-doc)
35fa923d
MB
2740 ("pkg-config" ,pkg-config)
2741 ("vala" ,vala)))
b47e1b20
FB
2742 (arguments
2743 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
2744 ; or /etc/machine-id.
35fa923d
MB
2745 #:glib-or-gtk? #t
2746 #:configure-flags '("-Denable-gtk-doc=true")))
b47e1b20
FB
2747 (home-page "https://developer.gnome.org/dconf")
2748 (synopsis "Low-level GNOME configuration system")
2749 (description "Dconf is a low-level configuration system. Its main purpose
2750is to provide a backend to GSettings on platforms that don't already have
2751configuration storage systems.")
e20e6b40 2752 (license license:lgpl2.1+)))
109da1c0
AE
2753
2754(define-public json-glib
2755 (package
2756 (name "json-glib")
4115e8ea 2757 (version "1.4.4")
109da1c0
AE
2758 (source (origin
2759 (method url-fetch)
2760 (uri (string-append "mirror://gnome/sources/" name "/"
2761 (version-major+minor version) "/"
2762 name "-" version ".tar.xz"))
2763 (sha256
2764 (base32
4115e8ea 2765 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
98afa184 2766 (build-system meson-build-system)
109da1c0 2767 (native-inputs
98afa184
MB
2768 `(("gettext" ,gettext-minimal)
2769 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
109da1c0
AE
2770 ("gobject-introspection" ,gobject-introspection)
2771 ("pkg-config" ,pkg-config)))
2772 (propagated-inputs
88c6b580 2773 `(("glib" ,glib))) ;according to json-glib-1.0.pc
109da1c0
AE
2774 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
2775 (synopsis "Compiler for the GObject type system")
7c125ce0
AK
2776 (description
2777 "JSON-GLib is a C library based on GLib providing serialization and
2778deserialization support for the JavaScript Object Notation (JSON) format
2779described by RFC 4627. It provides parser and generator GObject classes and
2780various wrappers for the complex data types employed by JSON, such as arrays
2781and objects.")
109da1c0 2782 (license license:lgpl2.1+)))
6f96a359
SB
2783
2784(define-public libxklavier
2785 (package
2786 (name "libxklavier")
5f39050b 2787 (version "5.4")
6f96a359 2788 (source (origin
5f39050b 2789 ;; Note: There's no tarball at ftp.gnome.org for this version.
2790 (method git-fetch)
2791 (uri (git-reference
2792 (url "https://anongit.freedesktop.org/git/libxklavier")
2793 (commit (string-append "libxklavier-" version))))
6f96a359
SB
2794 (sha256
2795 (base32
5f39050b 2796 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
2797 (file-name (git-file-name name version))))
6f96a359
SB
2798 (build-system gnu-build-system)
2799 (arguments
5f39050b 2800 '(#:phases
2801 (modify-phases %standard-phases
2802 (add-after 'unpack 'no-configure
2803 (lambda* _
2804 (setenv "NOCONFIGURE" "1")
2805 #t)))
2806 #:configure-flags
6f96a359
SB
2807 (list (string-append "--with-xkb-base="
2808 (assoc-ref %build-inputs "xkeyboard-config")
5f39050b 2809 "/share/X11/xkb")
2810 "--disable-xmodmap-support")))
6f96a359
SB
2811 (native-inputs
2812 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
2813 ("gobject-introspection" ,gobject-introspection)
5f39050b 2814 ("pkg-config" ,pkg-config)
2815 ("gtk-doc" ,gtk-doc)
2816 ("intltool" ,intltool)
2817 ("which" ,which)
2818 ("autoconf" ,autoconf)
2819 ("automake" ,automake)
2820 ("libtool" ,libtool)))
6f96a359
SB
2821 (propagated-inputs
2822 ;; Required by libxklavier.pc.
2823 `(("glib" ,glib)
2824 ("libxml2" ,libxml2)))
2825 (inputs
2826 `(("iso-codes" ,iso-codes)
2827 ("libxi" ,libxi)
2828 ("libxkbfile" ,libxkbfile)
2829 ("xkbcomp" ,xkbcomp)
2830 ("xkeyboard-config" ,xkeyboard-config)))
57e7d748 2831 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
6f96a359
SB
2832 (synopsis "High-level API for X Keyboard Extension")
2833 (description
2834 "LibXklavier is a library providing high-level API for X Keyboard
e881752c
AK
2835Extension known as XKB. This library is intended to support XFree86 and other
2836commercial X servers. It is useful for creating XKB-related software (layout
6f96a359
SB
2837indicators etc).")
2838 (license license:lgpl2.0+)))
619936a4
LC
2839
2840(define-public python2-rsvg
2841 ;; XXX: This is actually a subset of gnome-python-desktop.
2842 (package
2843 (name "python2-rsvg")
2844 (version "2.32.0")
2845 (source
2846 (origin
2847 (method url-fetch)
2848 (uri (string-append
2849 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
2850 version ".tar.bz2"))
2851 (sha256
2852 (base32
2853 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
2854 (build-system gnu-build-system)
2855 (native-inputs
2856 `(("pkg-config" ,pkg-config)))
2857 (inputs
2858 `(("python" ,python-2)
2859 ("python2-pygtk" ,python2-pygtk)
2860 ("librsvg" ,librsvg)))
f032d0be 2861 (home-page "https://www.gnome.org")
619936a4
LC
2862 (synopsis "Python bindings to librsvg")
2863 (description
3ad75446 2864 "This package provides Python bindings to librsvg, the SVG rendering
619936a4
LC
2865library.")
2866
2867 ;; This is the license of the rsvg bindings. The license of each module
2868 ;; of gnome-python-desktop is given in 'COPYING'.
2869 (license license:lgpl2.1+)))
a31a6d22 2870
f2ca414a
SB
2871(define-public glib-networking
2872 (package
2873 (name "glib-networking")
0d75c64d 2874 (version "2.60.3")
f2ca414a
SB
2875 (source (origin
2876 (method url-fetch)
2877 (uri (string-append "mirror://gnome/sources/glib-networking/"
2878 (version-major+minor version) "/"
fb8fe1e8 2879 "glib-networking-" version ".tar.xz"))
f2ca414a
SB
2880 (sha256
2881 (base32
0d75c64d 2882 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
65211552 2883 (build-system meson-build-system)
f2ca414a 2884 (arguments
0d75c64d 2885 `(#:configure-flags '("-Dlibproxy_support=false")))
f2ca414a
SB
2886 (native-inputs
2887 `(("pkg-config" ,pkg-config)
2888 ("intltool" ,intltool)))
2889 (inputs
2890 `(("glib" ,glib)
2891 ("gnutls" ,gnutls)
4b8f1313 2892 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
f032d0be 2893 (home-page "https://www.gnome.org")
f2ca414a
SB
2894 (synopsis "Network-related GIO modules")
2895 (description
2896 "This package contains various network related extensions for the GIO
2897library.")
2898 (license license:lgpl2.0+)))
2899
ca649680 2900(define-public rest
4510b2da 2901 (package
ca649680 2902 (name "rest")
a4194d16 2903 (version "0.8.1")
4510b2da
SB
2904 (source (origin
2905 (method url-fetch)
2906 (uri (string-append "mirror://gnome/sources/rest/"
ca649680
SB
2907 (version-major+minor version) "/"
2908 name "-" version ".tar.xz"))
4510b2da
SB
2909 (sha256
2910 (base32
a4194d16 2911 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4510b2da
SB
2912 (build-system gnu-build-system)
2913 (arguments
2914 '(#:tests? #f ; tests require internet connection
2915 #:configure-flags
2916 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
2917 (native-inputs
2918 `(("glib-mkenums" ,glib "bin")
2919 ("gobject-introspection" ,gobject-introspection)
2920 ("pkg-config" ,pkg-config)))
2921 (propagated-inputs
2922 ;; rest-0.7.pc refers to all these.
2923 `(("glib" ,glib)
2924 ("libsoup" ,libsoup)
2925 ("libxml2" ,libxml2)))
24d6cc1d 2926 (home-page "https://www.gtk.org/")
4510b2da
SB
2927 (synopsis "RESTful web api query library")
2928 (description
2929 "This library was designed to make it easier to access web services that
2930claim to be \"RESTful\". It includes convenience wrappers for libsoup and
2931libxml to ease remote use of the RESTful API.")
2932 (license license:lgpl2.1+)))
2933
6e1bb642
SB
2934(define-public libsoup
2935 (package
2936 (name "libsoup")
f8026a79 2937 (version "2.68.2")
6e1bb642
SB
2938 (source (origin
2939 (method url-fetch)
2940 (uri (string-append "mirror://gnome/sources/libsoup/"
2941 (version-major+minor version) "/"
c1b79b36 2942 "libsoup-" version ".tar.xz"))
6e1bb642
SB
2943 (sha256
2944 (base32
f8026a79 2945 "0crr9qprmacr626fx83cx81ggk85zsgxr4mn577kpzj6m40k1bai"))))
eccaa8bf 2946 (build-system meson-build-system)
6e1bb642
SB
2947 (outputs '("out" "doc"))
2948 (arguments
2deb146f 2949 `(#:modules ((guix build utils)
eccaa8bf 2950 (guix build meson-build-system)
2deb146f
LC
2951 (ice-9 popen))
2952
f8026a79 2953 #:configure-flags '("-Dgtk_doc=true")
6e1bb642
SB
2954 #:phases
2955 (modify-phases %standard-phases
eccaa8bf 2956 (add-after 'unpack 'adjust-tests
26c228f9 2957 (lambda _
eccaa8bf
MB
2958 ;; This test fails due to missing /etc/nsswitch.conf
2959 ;; in the build environment.
26c228f9
LC
2960 (substitute* "tests/socket-test.c"
2961 ((".*/sockets/unconnected.*") ""))
2deb146f 2962
f8026a79
MB
2963 ;; These fail because "subdomain.localhost" does not resolve in
2964 ;; the build environment.
2965 (substitute* "tests/hsts-test.c"
2966 ((".*/hsts/basic.*") "")
2967 ((".*/hsts/subdomains.*") "")
2968 ((".*/hsts/superdomain.*") "")
2969 ((".*/hsts/utf8-address.*") ""))
2970 (substitute* "tests/hsts-db-test.c"
2971 ((".*/hsts-db/subdomains.*") ""))
2972
2deb146f
LC
2973 ;; Generate a self-signed certificate that has "localhost" as its
2974 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
2975 ;; 3.5.12, tests such as "ssl-tests" fail:
2976 ;;
2977 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
2978 ;;
2979 ;; 'certtool' is interactive so we have to pipe it the answers.
2980 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
2981 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
2982 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
2983 (for-each (lambda (line)
2984 (display line pipe)
2985 (newline pipe))
2986 '("" ;Common name
2987 "" ;UID
2988 "Guix" ;Organizational unit name
2989 "GNU" ;Organization name
2990 "" ;Locality name
2991 "" ;State or province
2992 "" ;Country
2993 "" ;subject's domain component (DC)
2994 "" ;E-mail
2995 "" ;serial number
2996 "-1" ;expiration time
2997 "N" ;belong to authority?
2998 "N" ;web client certificate?
2999 "N" ;IPsec IKE?
3000 "Y" ;web server certificate?
3001 "localhost" ;dnsName of subject
3002 "" ;dnsName of subject (end)
3003 "" ;URI of subject
3004 "127.0.0.1" ;IP address of subject
3005 "" ;signing?
06f5bc4e
MB
3006 "" ;encryption (RSA)?
3007 "" ;data encryption?
2deb146f
LC
3008 "" ;sign OCSP requests?
3009 "" ;sign code?
3010 "" ;time stamping?
3011 "" ;email protection?
3012 "" ;URI of the CRL distribution point
3013 "y" ;above info OK?
3014 ))
3015 (close-pipe pipe))
26c228f9 3016 #t))
eccaa8bf
MB
3017 (add-after 'install 'move-doc
3018 (lambda* (#:key outputs #:allow-other-keys)
3019 (let ((out (assoc-ref outputs "out"))
3020 (doc (assoc-ref outputs "doc")))
3021 (mkdir-p (string-append doc "/share"))
3022 (copy-recursively (string-append out "/share/gtk-doc")
3023 (string-append doc "/share/gtk-doc"))
3024 (delete-file-recursively (string-append out "/share/gtk-doc"))
3025 #t))))))
6e1bb642 3026 (native-inputs
26c228f9 3027 `(("glib:bin" ,glib "bin") ; for glib-mkenums
6e1bb642 3028 ("gobject-introspection" ,gobject-introspection)
eccaa8bf 3029 ("gtk-doc" ,gtk-doc)
6e1bb642
SB
3030 ("intltool" ,intltool)
3031 ("pkg-config" ,pkg-config)
3032 ("python" ,python-wrapper)
fd730590 3033 ("vala" ,vala)
6e1bb642
SB
3034 ;; These are needed for the tests.
3035 ;; FIXME: Add PHP once available.
3036 ("curl" ,curl)
2deb146f 3037 ("gnutls" ,gnutls) ;for 'certtool'
6e1bb642
SB
3038 ("httpd" ,httpd)))
3039 (propagated-inputs
3040 ;; libsoup-2.4.pc refers to all these.
f8026a79
MB
3041 `(("brotli" ,google-brotli)
3042 ("glib" ,glib)
249846bf 3043 ("libpsl" ,libpsl)
eccaa8bf 3044 ("libxml2" ,libxml2)
f8026a79
MB
3045 ("sqlite" ,sqlite)
3046 ("zlib" ,zlib)))
eccaa8bf
MB
3047 (inputs
3048 `(("glib-networking" ,glib-networking)
3049 ("mit-krb5" ,mit-krb5)))
6e1bb642
SB
3050 (home-page "https://live.gnome.org/LibSoup/")
3051 (synopsis "GLib-based HTTP Library")
3052 (description
3053 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
3054and the GLib main loop, to integrate well with GNOME applications.")
3055 (license license:lgpl2.0+)))
3056
bba229a3
SB
3057(define-public libsecret
3058 (package
3059 (name "libsecret")
b243d2f7 3060 (version "0.19.1")
bba229a3
SB
3061 (source (origin
3062 (method url-fetch)
3063 (uri (string-append
896dcbc7
EF
3064 "mirror://gnome/sources/libsecret/"
3065 (version-major+minor version) "/"
0ada4e29 3066 "libsecret-" version ".tar.xz"))
bba229a3
SB
3067 (sha256
3068 (base32
b243d2f7 3069 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
bba229a3
SB
3070 (build-system gnu-build-system)
3071 (outputs '("out" "doc"))
3072 (arguments
3073 `(#:tests? #f ; FIXME: Testing hangs.
bba229a3
SB
3074 #:configure-flags
3075 (list (string-append "--with-html-dir="
3076 (assoc-ref %outputs "doc")
3077 "/share/gtk-doc/html"))))
3078 (native-inputs
c06ef010
MB
3079 `(("gettext" ,gettext-minimal)
3080 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
bba229a3 3081 ("gobject-introspection" ,gobject-introspection)
bba229a3
SB
3082 ("pkg-config" ,pkg-config)
3083 ("vala" ,vala)
3084 ("xsltproc" ,libxslt)))
3085 ;; These are needed for the tests.
3086 ;; FIXME: Add gjs once available.
3087 ;("dbus" ,dbus)
3088 ;("python2" ,python-2)
3089 ;("python2-dbus" ,python2-dbus)
3090 ;("python2-pygobject" ,python2-pygobject)
3091 ;("python2-pygobject-2" ,python2-pygobject-2)))
3092 (propagated-inputs
3093 `(("glib" ,glib))) ; required by libsecret-1.pc
3094 (inputs
3095 `(("docbook-xsl" ,docbook-xsl)
3096 ("libgcrypt" ,libgcrypt)
3097 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
3098 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
3099 (synopsis "GObject bindings for \"Secret Service\" API")
3100 (description
3101 "Libsecret is a GObject based library for storing and retrieving passwords
3102and other secrets. It communicates with the \"Secret Service\" using DBus.")
3103 (license license:lgpl2.1+)))
3104
b6821ee0 3105(define-public five-or-more
3106 (package
3107 (name "five-or-more")
d9795e93 3108 (version "3.32.0")
b6821ee0 3109 (source
3110 (origin
3111 (method url-fetch)
3112 (uri (string-append "mirror://gnome/sources/" name "/"
3113 (version-major+minor version) "/"
3114 name "-" version ".tar.xz"))
3115 (sha256
3116 (base32
d9795e93
KK
3117 "0v52i22ygv6y4zqs8nyb1qmacmj9whhqrw7qss6vn7by4nsikhrn"))))
3118 (build-system meson-build-system)
3119 (arguments
3120 '(#:glib-or-gtk? #t
3121 #:phases
3122 (modify-phases %standard-phases
3123 (add-after 'unpack 'skip-gtk-update-icon-cache
3124 (lambda _
3125 (substitute* "meson_post_install.py"
3126 (("gtk-update-icon-cache") (which "true")))
3127 #t)))))
b6821ee0 3128 (native-inputs
3129 `(("pkg-config" ,pkg-config)
d9795e93 3130 ("appstream-glib" ,appstream-glib)
b6821ee0 3131 ("desktop-file-utils" ,desktop-file-utils)
d9795e93 3132 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b6821ee0 3133 ("intltool" ,intltool)
3134 ("itstool" ,itstool)
d9795e93 3135 ("vala" ,vala)
b6821ee0 3136 ("xmllint" ,libxml2)))
3137 (inputs
3138 `(("gtk+" ,gtk+)
d9795e93 3139 ("libgnome-games-support" ,libgnome-games-support)
b6821ee0 3140 ("librsvg" ,librsvg)))
3141 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
3142 (synopsis "Logic puzzle game")
3143 (description "Five or More is a game where you try to align
3144 five or more objects of the same color and shape causing them to disappear.
3145 On every turn more objects will appear, until the board is full.
3146 Try to last as long as possible.")
3147 (license license:gpl2+)))
3148
a31a6d22
SB
3149(define-public gnome-mines
3150 (package
3151 (name "gnome-mines")
2d817e41 3152 (version "3.32.2")
a31a6d22
SB
3153 (source
3154 (origin
3155 (method url-fetch)
3156 (uri (string-append "mirror://gnome/sources/" name "/"
3157 (version-major+minor version) "/"
3158 name "-" version ".tar.xz"))
3159 (sha256
3160 (base32
2d817e41 3161 "1nv966wkp2rqxzcdb76bwlbzpjqadcaqzrnkxpzwnvjjr167yx8g"))))
8c0fab36 3162 (build-system meson-build-system)
a31a6d22 3163 (arguments
2d817e41
KK
3164 '(#:glib-or-gtk? #t
3165 #:phases
a31a6d22 3166 (modify-phases %standard-phases
2d817e41
KK
3167 (add-after 'unpack 'skip-gtk-update-icon-cache
3168 (lambda _
3169 (substitute* "build-aux/meson_post_install.py"
3170 (("gtk-update-icon-cache") (which "true")))
3171 #t)))))
a31a6d22 3172 (native-inputs
8c0fab36
RW
3173 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
3174 ("pkg-config" ,pkg-config)
a31a6d22
SB
3175 ("desktop-file-utils" ,desktop-file-utils)
3176 ("intltool" ,intltool)
bcb354ad 3177 ("itstool" ,itstool)
8c0fab36
RW
3178 ("vala" ,vala)
3179 ("yelp" ,yelp)
3180 ("appstream-glib" ,appstream-glib)))
a31a6d22
SB
3181 (inputs
3182 `(("gtk+" ,gtk+)
73992962 3183 ("libgnome-games-support" ,libgnome-games-support)
a31a6d22
SB
3184 ("librsvg" ,librsvg)))
3185 (home-page "https://wiki.gnome.org/Apps/Mines")
3186 (synopsis "Minesweeper game")
3187 (description
3188 "Mines (previously gnomine) is a puzzle game where you locate mines
3189floating in an ocean using only your brain and a little bit of luck.")
3190 (license license:gpl2+)))
88f70665 3191
dfc407f3
KY
3192(define-public gnome-sudoku
3193 (package
3194 (name "gnome-sudoku")
7dc728c4 3195 (version "3.32.0")
dfc407f3
KY
3196 (source
3197 (origin
3198 (method url-fetch)
3199 (uri (string-append "mirror://gnome/sources/" name "/"
3200 (version-major+minor version) "/"
3201 name "-" version ".tar.xz"))
3202 (sha256
3203 (base32
7dc728c4
KK
3204 "1wwdjflw1lbx3cv6gvqcgp5jnjkrq37ld6mjbjj03g3vr90qaf0l"))))
3205 (build-system meson-build-system)
3206 (arguments
3207 '(#:glib-or-gtk? #t
3208 #:phases
3209 (modify-phases %standard-phases
3210 (add-after 'unpack 'skip-gtk-update-icon-cache
3211 (lambda _
3212 (substitute* "build-aux/post_install.py"
3213 (("gtk-update-icon-cache") (which "true")))
3214 #t)))))
dfc407f3
KY
3215 (native-inputs
3216 `(("pkg-config" ,pkg-config)
3217 ("desktop-file-utils" ,desktop-file-utils)
7dc728c4 3218 ("glib:bin" ,glib "bin") ; for glib-compile-resources
dfc407f3
KY
3219 ("intltool" ,intltool)
3220 ("itstool" ,itstool)
7dc728c4 3221 ("vala" ,vala)
dfc407f3
KY
3222 ("xmllint" ,libxml2)))
3223 (inputs
3224 `(("gtk+" ,gtk+)
3225 ("json-glib" ,json-glib)
3226 ("libgee" ,libgee)
3227 ("librsvg" ,librsvg)
3228 ("qqwing" ,qqwing)))
3229 (home-page "https://wiki.gnome.org/Apps/Sudoku")
3230 (synopsis "Japanese logic game")
3231 (description
3232 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
3233GNOME Sudoku is meant to have an interface as simple and unobstrusive as
3234possible while still providing features that make playing difficult Sudoku
3235more fun.")
3236 (license license:gpl2+)))
3237
88f70665
AW
3238(define-public gnome-terminal
3239 (package
3240 (name "gnome-terminal")
7dee3942 3241 (version "3.32.2")
88f70665
AW
3242 (source
3243 (origin
3244 (method url-fetch)
3245 (uri (string-append "mirror://gnome/sources/" name "/"
3246 (version-major+minor version) "/"
3247 name "-" version ".tar.xz"))
3248 (sha256
3249 (base32
7dee3942 3250 "0shhpnagasyp1kxgjczfrivcxbgrrl3y8lzvp1z101m67h4jp6km"))))
88f70665
AW
3251 (build-system glib-or-gtk-build-system)
3252 (arguments
3253 '(#:configure-flags
3254 (list "--disable-migration" "--disable-search-provider"
3255 "--without-nautilus-extension")
3256 #:phases
3257 (modify-phases %standard-phases
3a4de6b2 3258 (add-before 'configure 'patch-/bin/true
88f70665
AW
3259 (lambda _
3260 (substitute* "configure"
3261 (("/bin/true") (which "true"))))))))
3262 (native-inputs
3263 `(("pkg-config" ,pkg-config)
3264 ("desktop-file-utils" ,desktop-file-utils)
3265 ("intltool" ,intltool)
bcb354ad
SB
3266 ("itstool" ,itstool)
3267 ("xmllint" ,libxml2)))
68702167
MW
3268 (propagated-inputs
3269 `(("dconf" ,dconf)))
88f70665
AW
3270 (inputs
3271 `(("gtk+" ,gtk+)
3272 ("vte" ,vte)
3273 ("gnutls" ,gnutls)
88f70665
AW
3274 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3275 ("util-linux" ,util-linux)
3276 ("vala" ,vala)))
3277 (home-page "https://wiki.gnome.org/Apps/Terminal")
3278 (synopsis "Terminal emulator")
3279 (description
3280 "GNOME Terminal is a terminal emulator application for accessing a
3281UNIX shell environment which can be used to run programs available on
3282your system.
3283
3284It supports several profiles, multiple tabs and implements several
3285keyboard shortcuts.")
3286 (license license:gpl3+)))
75016d07
AW
3287
3288(define-public colord
3289 (package
3290 (name "colord")
f98be942 3291 (version "1.4.4")
75016d07
AW
3292 (source
3293 (origin
3294 (method url-fetch)
5cc3096c 3295 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
d21778aa 3296 "colord-" version ".tar.xz"))
75016d07 3297 (sha256
f98be942 3298 (base32 "19f0938fr7nvvm3jr263dlknaq7md40zrac2npfyz25zc00yh3ws"))))
a68544a8 3299 (build-system meson-build-system)
75016d07 3300 (arguments
a68544a8
RW
3301 '(;; FIXME: One test fails:
3302 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
3303 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
3304 ;; application/x-zerosize
75016d07 3305 #:tests? #f
a68544a8
RW
3306 #:glib-or-gtk? #t
3307 #:configure-flags (list "-Dlocalstatedir=/var"
75016d07 3308 ;; No dep on systemd.
a68544a8 3309 "-Dsystemd=false"
75016d07
AW
3310 ;; Wants to install to global completion dir;
3311 ;; punt.
a68544a8 3312 "-Dbash_completion=false"
a68544a8
RW
3313 "-Ddaemon_user=colord"
3314 "-Dsane=true"
dac26e22 3315 "-Dvapi=true"
6f20e2dc 3316 ;; Requires spotread.
a68544a8 3317 "-Dargyllcms_sensor=false"
6f20e2dc 3318 ;; TODO: Requires docbook2x.
a68544a8 3319 "-Dman=false")
75016d07
AW
3320 #:phases
3321 (modify-phases %standard-phases
a68544a8
RW
3322 (add-before 'configure 'patch-build-system
3323 (lambda* (#:key outputs #:allow-other-keys)
3324 (substitute* "rules/meson.build"
3325 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
3326 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
2a1f3e3f
LC
3327 #t))
3328 (add-before 'configure 'set-sqlite3-file-name
3329 (lambda* (#:key inputs #:allow-other-keys)
3330 ;; "colormgr dump" works by invoking the "sqlite3" command.
3331 ;; Record its absolute file name.
3332 (let ((sqlite (assoc-ref inputs "sqlite")))
3333 (substitute* "client/cd-util.c"
3334 (("\"sqlite3\"")
3335 (string-append "\"" sqlite "/bin/sqlite3\"")))
3336 #t))))))
75016d07 3337 (native-inputs
6f20e2dc 3338 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
75016d07 3339 ("gobject-introspection" ,gobject-introspection)
a68544a8 3340 ("gtk-doc" ,gtk-doc)
6f20e2dc 3341 ("intltool" ,intltool)
75016d07 3342 ("libtool" ,libtool)
dac26e22
TGR
3343 ("pkg-config" ,pkg-config)
3344 ("vala" ,vala)))
65cb2d61
SB
3345 (propagated-inputs
3346 ;; colord.pc refers to all these.
3347 `(("glib" ,glib)
6f20e2dc
TGR
3348 ("lcms" ,lcms)
3349 ("udev" ,eudev)))
75016d07 3350 (inputs
65cb2d61 3351 `(("dbus-glib" ,dbus-glib)
a68544a8 3352 ("gusb" ,gusb)
80c7dd1a 3353 ("libgudev" ,libgudev)
75016d07 3354 ("libusb" ,libusb)
75016d07 3355 ("polkit" ,polkit)
a68544a8 3356 ("python" ,python-wrapper)
6f20e2dc 3357 ("sqlite" ,sqlite)
4c928743 3358 ("sane-backends" ,sane-backends)))
57e7d748 3359 (home-page "https://www.freedesktop.org/software/colord/")
75016d07
AW
3360 (synopsis "Color management service")
3361 (description "Colord is a system service that makes it easy to manage,
3362install and generate color profiles to accurately color manage input and
3363output devices.")
3364 (license license:gpl2+)))
7b2abd00
AW
3365
3366(define-public geoclue
3367 (package
3368 (name "geoclue")
b433c7b3 3369 (version "2.4.8")
7b2abd00
AW
3370 (source
3371 (origin
3372 (method url-fetch)
5cc3096c 3373 (uri (string-append "https://www.freedesktop.org/software/" name
7b2abd00
AW
3374 "/releases/" (version-major+minor version) "/"
3375 name "-" version ".tar.xz"))
3376 (sha256
3377 (base32
b433c7b3 3378 "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"))
fc1adab1 3379 (patches (search-patches "geoclue-config.patch"))))
7b2abd00
AW
3380 (build-system glib-or-gtk-build-system)
3381 (arguments
3382 '(;; The tests want to run the system bus.
3383 #:tests? #f
3384 #:configure-flags (list ;; Disable bits requiring ModemManager.
3385 "--disable-3g-source"
3386 "--disable-cdma-source"
3387 "--disable-modem-gps-source"
3388 "--with-dbus-service-user=geoclue")
3389 #:phases
3390 (modify-phases %standard-phases
3a4de6b2 3391 (add-before 'configure 'patch-/bin/true
7b2abd00
AW
3392 (lambda _
3393 (substitute* "configure"
e3eb53e7
MW
3394 (("/bin/true") (which "true")))
3395 #t)))))
7b2abd00
AW
3396 (native-inputs
3397 `(("pkg-config" ,pkg-config)
758798a9 3398 ("gobject-introspection" ,gobject-introspection)
7b2abd00
AW
3399 ("intltool" ,intltool)))
3400 (inputs
54e911bc
SB
3401 `(("avahi" ,avahi)
3402 ("glib" ,glib)
7b2abd00
AW
3403 ("json-glib" ,json-glib)
3404 ("libsoup" ,libsoup)))
99adfd7d 3405 (home-page "https://www.freedesktop.org/wiki/Software/GeoClue/")
7b2abd00
AW
3406 (synopsis "Geolocation service")
3407 (description "Geoclue is a D-Bus service that provides location
3408information. The primary goal of the Geoclue project is to make creating
3409location-aware applications as simple as possible, while the secondary goal is
3410to ensure that no application can access location information without explicit
e881752c 3411permission from user.")
7b2abd00 3412 (license license:gpl2+)))
2bfe7437
AW
3413
3414(define-public geocode-glib
3415 (package
3416 (name "geocode-glib")
65de725f 3417 (version "3.26.1")
2bfe7437
AW
3418 (source (origin
3419 (method url-fetch)
3420 (uri (string-append "mirror://gnome/sources/geocode-glib/"
3421 (version-major+minor version) "/"
d485cdc0 3422 "geocode-glib-" version ".tar.xz"))
2bfe7437
AW
3423 (sha256
3424 (base32
65de725f 3425 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
a7dd0c02 3426 (build-system meson-build-system)
2bfe7437 3427 (arguments
a7dd0c02
RW
3428 `(#:phases
3429 (modify-phases %standard-phases
3430 ;; The tests require a bunch of locales.
3431 (add-before 'check 'set-locales
3432 (lambda* (#:key inputs #:allow-other-keys)
3433 (setenv "GUIX_LOCPATH"
3434 (string-append (assoc-ref inputs "glibc-locales")
3435 "/lib/locale"))
3436 #t)))))
2bfe7437
AW
3437 (native-inputs
3438 `(("glib:bin" ,glib "bin") ; for glib-mkenums
a7dd0c02
RW
3439 ("glibc-locales" ,glibc-locales) ; for tests
3440 ("gettext" ,gettext-minimal)
2bfe7437 3441 ("gobject-introspection" ,gobject-introspection)
a7dd0c02 3442 ("gtk-doc" ,gtk-doc)
2bfe7437
AW
3443 ("pkg-config" ,pkg-config)
3444 ("json-glib" ,json-glib)))
3445 (propagated-inputs
3446 ;; geocode-glib-1.0.pc refers to GIO.
3447 `(("glib" ,glib)))
3448 (inputs
3449 `(("libsoup" ,libsoup)))
3450 (home-page "https://github.com/GNOME/geocode-glib/")
3451 (synopsis "Geocoding and reverse-geocoding library")
3452 (description
3453 "geocode-glib is a convenience library for geocoding (finding longitude,
3454and latitude from an address) and reverse geocoding (finding an address from
3455coordinates) using the Nominatim service. geocode-glib caches requests for
3456faster results and to avoid unnecessary server load.")
3457 (license license:lgpl2.0+)))
a1d5bb0e
AW
3458
3459(define-public upower
3460 (package
3461 (name "upower")
4088d809 3462 (version "0.99.10")
a1d5bb0e
AW
3463 (source (origin
3464 (method url-fetch)
9ec54965 3465 (uri (string-append "https://gitlab.freedesktop.org/upower/upower/"
4088d809 3466 "uploads/c438511024b9bc5a904f8775cfc8e4c4/"
9ec54965 3467 "upower-" version ".tar.xz"))
a1d5bb0e
AW
3468 (sha256
3469 (base32
4088d809 3470 "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4"))
fc1adab1 3471 (patches (search-patches "upower-builddir.patch"))))
a1d5bb0e
AW
3472 (build-system glib-or-gtk-build-system)
3473 (arguments
3474 '( ;; The tests want to contact the system bus, which can't be done in the
3475 ;; build environment. The integration test can run, but the last of
3476 ;; the up-self-tests doesn't. Disable tests for now.
3477 #:tests? #f
3478 #:configure-flags (list "--localstatedir=/var"
3479 (string-append "--with-udevrulesdir="
3480 (assoc-ref %outputs "out")
9ec54965 3481 "/lib/udev/rules.d"))))
a1d5bb0e 3482 (native-inputs
ebeabe2d
SB
3483 `(("gobject-introspection" ,gobject-introspection)
3484 ("pkg-config" ,pkg-config)
a1d5bb0e 3485 ("intltool" ,intltool)
55409295
LC
3486 ("python" ,python)
3487
3488 ;; For man pages.
3489 ("libxslt" ,libxslt) ;for 'xsltproc'
3490 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
3491 ("docbook-xsl" ,docbook-xsl)))
a1d5bb0e 3492 (inputs
ea226291
SB
3493 `(("dbus-glib" ,dbus-glib)
3494 ("libgudev" ,libgudev)
a1d5bb0e 3495 ("libusb" ,libusb)))
d7a503fc
MB
3496 (propagated-inputs
3497 ;; In Requires of upower-glib.pc.
3498 `(("glib" ,glib)))
57e7d748 3499 (home-page "https://upower.freedesktop.org/")
a1d5bb0e
AW
3500 (synopsis "System daemon for managing power devices")
3501 (description
3502 "UPower is an abstraction for enumerating power devices,
3503listening to device events and querying history and statistics. Any
3504application or service on the system can access the org.freedesktop.UPower
3505service via the system message bus.")
3506 (license license:gpl2+)))
6a180f6f
AW
3507
3508(define-public libgweather
3509 (package
3510 (name "libgweather")
794ce8ea 3511 (version "3.28.3")
6a180f6f
AW
3512 (source (origin
3513 (method url-fetch)
3514 (uri (string-append "mirror://gnome/sources/" name "/"
3515 (version-major+minor version) "/"
3516 name "-" version ".tar.xz"))
3517 (sha256
3518 (base32
794ce8ea 3519 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
cf6cbc34 3520 (build-system meson-build-system)
6a180f6f 3521 (arguments
cf6cbc34
RW
3522 `(#:tests? #f ; one of two tests requires network access
3523 #:configure-flags
3524 `(,(string-append "-Dzoneinfo_dir="
b6072e6b 3525 (assoc-ref %build-inputs "tzdata")
cf6cbc34 3526 "/share/zoneinfo"))))
6a180f6f
AW
3527 (native-inputs
3528 `(("glib:bin" ,glib "bin") ; for glib-mkenums
b6072e6b 3529 ("gobject-introspection" ,gobject-introspection)
6a180f6f 3530 ("pkg-config" ,pkg-config)
1d3fcf94 3531 ("vala" ,vala)
6a180f6f
AW
3532 ("intltool" ,intltool)))
3533 (propagated-inputs
3534 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
3535 ;; libsoup.
3536 `(("gtk+" ,gtk+)
3537 ("gdk-pixbuf" ,gdk-pixbuf)
3538 ("libxml2" ,libxml2)
cf6cbc34 3539 ("libsoup" ,libsoup)
6a180f6f 3540 ("geocode-glib" ,geocode-glib)))
cf6cbc34
RW
3541 (inputs
3542 `(("tzdata" ,tzdata)))
6a180f6f
AW
3543 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
3544 (synopsis "Location, time zone, and weather library for GNOME")
3545 (description
3546 "libgweather is a library to access weather information from online
3547services for numerous locations.")
3548 (license license:gpl2+)))
23a22af6
AW
3549
3550(define-public gnome-settings-daemon
3551 (package
3552 (name "gnome-settings-daemon")
4be0719f 3553 (version "3.32.1")
23a22af6
AW
3554 (source
3555 (origin
3556 (method url-fetch)
3557 (uri (string-append "mirror://gnome/sources/" name "/"
3558 (version-major+minor version) "/"
3559 name "-" version ".tar.xz"))
3560 (sha256
3561 (base32
4be0719f 3562 "02d0s0g2mmqfib44r3sf0499r08p61s8l2ndsjssbam1bi7x2dks"))))
e644f9fa 3563 (build-system meson-build-system)
23a22af6 3564 (arguments
e644f9fa
RW
3565 `(#:glib-or-gtk? #t
3566 #:configure-flags
3567 (list (string-append "-Dudev_dir="
3568 (assoc-ref %outputs "out")
4d0e085b
RW
3569 "/lib/udev/rules.d/")
3570 ;; Otherwise, the RUNPATH will lack the final path component.
3571 (string-append "-Dc_link_args=-Wl,-rpath="
3572 (assoc-ref %outputs "out")
3573 "/lib/gnome-settings-daemon-3.0"))
e644f9fa 3574 ;; Color management test can't reach the colord system service.
23a22af6
AW
3575 #:tests? #f))
3576 (native-inputs
e644f9fa
RW
3577 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3578 ("pkg-config" ,pkg-config)
23a22af6
AW
3579 ("intltool" ,intltool)
3580 ("xsltproc" ,libxslt)
3581 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
3582 ("docbook-xml" ,docbook-xml-4.2)
3583 ("docbook-xsl" ,docbook-xsl)))
3584 (inputs
e644f9fa
RW
3585 `(("alsa-lib" ,alsa-lib)
3586 ("colord" ,colord)
ea226291 3587 ("libgudev" ,libgudev)
23a22af6
AW
3588 ("upower" ,upower)
3589 ("polkit" ,polkit)
3590 ("pulseaudio" ,pulseaudio)
3591 ("libcanberra" ,libcanberra)
3592 ("libx11" ,libx11)
3593 ("libxtst" ,libxtst)
3594 ("lcms" ,lcms)
3595 ("libnotify" ,libnotify)
3596 ("geoclue" ,geoclue)
3597 ("geocode-glib" ,geocode-glib)
3598 ("libgweather" ,libgweather)
3599 ("gnome-desktop" ,gnome-desktop)
3600 ("nss" ,nss)
3601 ("cups" ,cups)
ec2b1921
AW
3602 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3603 ("libwacom" ,libwacom)
3604 ("librsvg" ,librsvg)
eee7878f 3605 ("xf86-input-wacom" ,xf86-input-wacom)
e644f9fa 3606 ("wayland" ,wayland)
eee7878f 3607 ("network-manager" ,network-manager)))
f032d0be 3608 (home-page "https://www.gnome.org")
23a22af6
AW
3609 (synopsis "GNOME settings daemon")
3610 (description
3611 "This package contains the daemon responsible for setting the various
3612parameters of a GNOME session and the applications that run under it. It
3613handles settings such keyboard layout, shortcuts, and accessibility, clipboard
3614settings, themes, mouse settings, and startup of other daemons.")
3615 (license license:gpl2+)))
1e7464a9
DH
3616
3617(define-public totem-pl-parser
3618 (package
3619 (name "totem-pl-parser")
77425f04 3620 (version "3.26.3")
1e7464a9
DH
3621 (source (origin
3622 (method url-fetch)
e980cbe9
MW
3623 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
3624 (version-major+minor version) "/"
1e7464a9
DH
3625 "totem-pl-parser-" version ".tar.xz"))
3626 (sha256
3627 (base32
77425f04 3628 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
1e9b19dd 3629 (build-system meson-build-system)
1e7464a9
DH
3630 (arguments
3631 ;; FIXME: Tests require gvfs.
3632 `(#:tests? #f))
3633 (native-inputs
3634 `(("intltool" ,intltool)
3635 ("glib" ,glib "bin")
4d6d8281 3636 ("gobject-introspection" ,gobject-introspection)
1e7464a9 3637 ("pkg-config" ,pkg-config)))
22a6ad6a 3638 (propagated-inputs
1e7464a9
DH
3639 `(("glib" ,glib)
3640 ("gmime" ,gmime)
1e9b19dd
RW
3641 ("libarchive" ,libarchive)
3642 ("libgcrypt" ,libgcrypt)
22a6ad6a
MW
3643 ("libxml2" ,libxml2)))
3644 (inputs
0a6e9e13 3645 `(("libsoup" ,libsoup)))
1e7464a9
DH
3646 (home-page "https://projects.gnome.org/totem")
3647 (synopsis "Library to parse and save media playlists for GNOME")
3648 (description "Totem-pl-parser is a GObjects-based library to parse and save
3649playlists in a variety of formats.")
3650 (license license:lgpl2.0+)))
3651
6b888eff
SB
3652(define-public aisleriot
3653 (package
3654 (name "aisleriot")
36ed9b46 3655 (version "3.22.9")
6b888eff
SB
3656 (source (origin
3657 (method url-fetch)
e43f622a 3658 (uri (string-append "mirror://gnome/sources/aisleriot/"
6b888eff 3659 (version-major+minor version) "/"
e43f622a 3660 "aisleriot-" version ".tar.xz"))
6b888eff
SB
3661 (sha256
3662 (base32
36ed9b46 3663 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
6b888eff
SB
3664 (build-system glib-or-gtk-build-system)
3665 (arguments
3666 '(#:configure-flags
3667 '("--with-platform=gtk-only"
3668 "--with-card-theme-formats=svg")))
3669 (native-inputs
3670 `(("desktop-file-utils" ,desktop-file-utils)
3671 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
3672 ("intltool" ,intltool)
3673 ("itstool" ,itstool)
3674 ("pkg-config" ,pkg-config)
3675 ("xmllint" ,libxml2)))
3676 (inputs
3677 `(("gtk+" ,gtk+)
226e57d6 3678 ("guile" ,guile-2.2)
6b888eff
SB
3679 ("libcanberra" ,libcanberra)
3680 ("librsvg" ,librsvg)))
3681 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
3682 (synopsis "Solitaire card games")
3683 (description
3684 "Aisleriot (also known as Solitaire or sol) is a collection of card games
3685which are easy to play with the aid of a mouse.")
3686 (license license:gpl3+)))
4a79e256 3687
f828d05b
KK
3688(define-public amtk
3689 (package
3690 (name "amtk")
09c4e43f 3691 (version "5.0.1")
f828d05b
KK
3692 (source (origin
3693 (method url-fetch)
bf92ba6b 3694 (uri (string-append "mirror://gnome/sources/amtk/"
f828d05b 3695 (version-major+minor version) "/"
bf92ba6b 3696 "amtk-" version ".tar.xz"))
f828d05b
KK
3697 (sha256
3698 (base32
09c4e43f 3699 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
f828d05b
KK
3700 (build-system gnu-build-system)
3701 (arguments
3702 '(#:configure-flags '("--enable-gtk-doc")))
3703 (native-inputs
3704 `(("gobject-introspection" ,gobject-introspection)
09c4e43f 3705 ("glib:bin" ,glib "bin") ; for glib-mkenums
f828d05b
KK
3706 ("gtk-doc" ,gtk-doc)
3707 ("pkg-config" ,pkg-config)))
3708 (inputs
3709 `(("glib" ,glib)
3710 ("gtk+" ,gtk+)))
3711 (home-page "https://wiki.gnome.org/Projects/Amtk")
3712 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
3713 (description
3714 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
3715It is a basic GtkUIManager replacement based on GAction. It is suitable for
3716both a traditional UI or a modern UI with a GtkHeaderBar.")
3717 (license license:lgpl2.1+)))
3718
4a79e256
SB
3719(define-public devhelp
3720 (package
3721 (name "devhelp")
20db7a3d 3722 (version "3.32.0")
4a79e256
SB
3723 (source (origin
3724 (method url-fetch)
3725 (uri (string-append "mirror://gnome/sources/" name "/"
3726 (version-major+minor version) "/"
3727 name "-" version ".tar.xz"))
3728 (sha256
3729 (base32
20db7a3d 3730 "06sa83zggk29wcg75fl3gqh0rmi7cd3gsbk09a2z23r7vpy7xanq"))))
11d28bd9 3731 (build-system meson-build-system)
35407f94 3732 (arguments
20db7a3d
KK
3733 '(#:glib-or-gtk? #t
3734 #:phases
35407f94
EF
3735 (modify-phases %standard-phases
3736 (add-after 'unpack 'skip-gtk-update-icon-cache
3737 ;; Don't create 'icon-theme.cache'.
3738 (lambda _
3739 (substitute* "meson_post_install.py"
3740 (("gtk-update-icon-cache") "true"))
3741 #t)))))
4a79e256
SB
3742 (native-inputs
3743 `(("intltool" ,intltool)
5dd12afc 3744 ("itstool" ,itstool)
11d28bd9
KK
3745 ("gobject-introspection" ,gobject-introspection)
3746 ("glib:bin" ,glib "bin") ; for glib-mkmenus
4a79e256
SB
3747 ("pkg-config" ,pkg-config)))
3748 (inputs
11d28bd9
KK
3749 `(("amtk" ,amtk)
3750 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4a79e256
SB
3751 ("webkitgtk" ,webkitgtk)))
3752 (home-page "https://wiki.gnome.org/Apps/Devhelp")
3753 (synopsis "API documentation browser for GNOME")
3754 (description
3755 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
3756natively with GTK-Doc (the API reference system developed for GTK+ and used
3757throughout GNOME for API documentation).")
3758 (license license:gpl2+)))
ba421ab7
MW
3759
3760(define-public cogl
3761 (package
3762 (name "cogl")
54c69ae1 3763 (version "1.22.4")
ba421ab7
MW
3764 (source
3765 (origin
3766 (method url-fetch)
5754f0cf 3767 (uri (string-append "mirror://gnome/sources/cogl/"
ba421ab7 3768 (version-major+minor version) "/"
5754f0cf 3769 "cogl-" version ".tar.xz"))
ba421ab7 3770 (sha256
54c69ae1 3771 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
a88d5a0c
MW
3772 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
3773 ;; cogl, corresponding changes may be appropriate in mutter as well.
ba421ab7
MW
3774 (build-system gnu-build-system)
3775 (native-inputs
3776 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3777 ("gobject-introspection" ,gobject-introspection)
3778 ;;("xorg-server" ,xorg-server) ; for the test suite
3779 ("pkg-config" ,pkg-config)))
3780 (propagated-inputs
3781 `(("glib" ,glib)
3782 ("gdk-pixbuf" ,gdk-pixbuf)
3783 ("libx11" ,libx11)
3784 ("libxext" ,libxext)
3785 ("libxfixes" ,libxfixes)
3786 ("libxdamage" ,libxdamage)
3787 ("libxcomposite" ,libxcomposite)
3788 ("libxrandr" ,libxrandr)))
3789 (inputs
3790 `(("mesa" ,mesa)
3791 ("cairo" ,cairo)
3792 ("pango" ,pango)
3793 ("gstreamer" ,gstreamer)
31860852
KK
3794 ("gst-plugins-base" ,gst-plugins-base)
3795 ("wayland" ,wayland)))
ba421ab7
MW
3796 (arguments
3797 `(#:configure-flags (list "--enable-cogl-gst"
31860852
KK
3798 "--enable-wayland-egl-platform"
3799 "--enable-wayland-egl-server"
3800
ba421ab7
MW
3801 ;; Arrange to pass an absolute file name to
3802 ;; dlopen for libGL.so.
3803 (string-append "--with-gl-libname="
3804 (assoc-ref %build-inputs "mesa")
3805 "/lib/libGL.so"))
3806 ;; XXX FIXME: All tests fail, with many warnings printed like this:
3807 ;; _FontTransOpen: Unable to Parse address
3808 ;; ${prefix}/share/fonts/X11/misc/
3809 #:tests? #f
3810 #; #:phases
3811 #;
3812 (modify-phases %standard-phases
3813 (add-before 'check 'start-xorg-server
3814 (lambda* (#:key inputs #:allow-other-keys)
3815 ;; The test suite requires a running X server.
3816 (system (format #f "~a/bin/Xvfb :1 &"
3817 (assoc-ref inputs "xorg-server")))
3818 (setenv "DISPLAY" ":1")
3819 #t)))))
3820 (home-page "http://www.cogl3d.org")
3821 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
3822 (description
3823 "Cogl is a small library for using 3D graphics hardware to draw pretty
3824pictures. The API departs from the flat state machine style of OpenGL and is
3825designed to make it easy to write orthogonal components that can render
3826without stepping on each others toes.")
3827 (license (list license:expat ; most of the code
3828 license:bsd-3 ; cogl/cogl-point-in-poly.c
3829 license:sgifreeb2.0 ; cogl-path/tesselator/
3830 license:asl2.0)))) ; examples/android/
fb182b8a
MW
3831
3832(define-public clutter
3833 (package
3834 (name "clutter")
6a88e4ee 3835 (version "1.26.2")
fb182b8a
MW
3836 (source
3837 (origin
3838 (method url-fetch)
3839 (uri (string-append "mirror://gnome/sources/" name "/"
3840 (version-major+minor version) "/"
3841 name "-" version ".tar.xz"))
3842 (sha256
3843 (base32
6a88e4ee 3844 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
a88d5a0c
MW
3845 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
3846 ;; to clutter, corresponding changes may be appropriate in mutter as well.
fb182b8a 3847 (build-system gnu-build-system)
600233bd
LC
3848 (outputs '("out"
3849 "doc")) ;9 MiB of gtk-doc HTML pages
fb182b8a
MW
3850 (native-inputs
3851 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
3852 ("gobject-introspection" ,gobject-introspection)
3853 ("pkg-config" ,pkg-config)
3854 ("xsltproc" ,libxslt)))
3855 (propagated-inputs
3856 `(("cogl" ,cogl)
3857 ("cairo" ,cairo)
3858 ("atk" ,atk)
3859 ("gtk+" ,gtk+)
3860 ("json-glib" ,json-glib)
3861 ("glib" ,glib)
3862 ("libxcomposite" ,libxcomposite)
3863 ("libxdamage" ,libxdamage)
3864 ("libxext" ,libxext)
3865 ("xinput" ,xinput)))
3866 (inputs
3867 `(("libxkbcommon" ,libxkbcommon)
3868 ("udev" ,eudev)))
3869 (arguments
600233bd
LC
3870 `(#:configure-flags (list "--enable-x11-backend=yes"
3871
3872 ;; This produces share/doc/{clutter,cally}.
3873 (string-append "--with-html-dir="
3874 (assoc-ref %outputs "doc")
3875 "/share/doc"))
fb182b8a
MW
3876 ;; XXX FIXME: Get test suite working. It would probably fail in the
3877 ;; same way the cogl tests fail, since clutter is based on cogl.
3878 #:tests? #f))
3879 (home-page "http://www.clutter-project.org")
476af713 3880 (synopsis "OpenGL-based interactive canvas library")
fb182b8a 3881 (description
476af713 3882 "Clutter is an OpenGL-based interactive canvas library, designed for
fb182b8a
MW
3883creating fast, mainly 2D single window applications such as media box UIs,
3884presentations, kiosk style applications and so on.")
3885 (license license:lgpl2.0+)))
bf7f17ba
MW
3886
3887(define-public clutter-gtk
3888 (package
3889 (name "clutter-gtk")
5d1a3219 3890 (version "1.8.4")
bf7f17ba
MW
3891 (source
3892 (origin
3893 (method url-fetch)
3894 (uri (string-append "mirror://gnome/sources/" name "/"
3895 (version-major+minor version) "/"
3896 name "-" version ".tar.xz"))
3897 (sha256
3898 (base32
5d1a3219 3899 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
bf7f17ba
MW
3900 (build-system gnu-build-system)
3901 (native-inputs
3902 `(("pkg-config" ,pkg-config)
3903 ("gobject-introspection" ,gobject-introspection)))
9a3a8b8e
SB
3904 (propagated-inputs
3905 ;; clutter-gtk.pc refers to all these.
bf7f17ba
MW
3906 `(("clutter" ,clutter)
3907 ("gtk+" ,gtk+)))
3908 (home-page "http://www.clutter-project.org")
476af713 3909 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
bf7f17ba 3910 (description
476af713 3911 "Clutter is an OpenGL-based interactive canvas library, designed for
bf7f17ba
MW
3912creating fast, mainly 2D single window applications such as media box UIs,
3913presentations, kiosk style applications and so on.")
3914 (license license:lgpl2.0+)))
86d6a893
MW
3915
3916(define-public clutter-gst
3917 (package
3918 (name "clutter-gst")
ba07ac19 3919 (version "3.0.27")
86d6a893
MW
3920 (source
3921 (origin
3922 (method url-fetch)
f010f89b 3923 (uri (string-append "mirror://gnome/sources/clutter-gst/"
86d6a893 3924 (version-major+minor version) "/"
f010f89b 3925 "clutter-gst-" version ".tar.xz"))
86d6a893 3926 (sha256
ba07ac19 3927 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
86d6a893
MW
3928 (build-system gnu-build-system)
3929 (native-inputs
ba07ac19 3930 `(("glib:bin" ,glib "bin") ; for glib-mkenums
86d6a893
MW
3931 ("pkg-config" ,pkg-config)
3932 ("gobject-introspection" ,gobject-introspection)))
3933 (inputs
3934 `(("clutter" ,clutter)
3935 ("gstreamer" ,gstreamer)
3936 ("gst-plugins-base" ,gst-plugins-base)))
3937 (home-page "http://www.clutter-project.org")
3938 (synopsis "Integration library for using GStreamer with Clutter")
3939 (description
3940 "Clutter-Gst is an integration library for using GStreamer with Clutter.
3941It provides a GStreamer sink to upload frames to GL and an actor that
476af713
TGR
3942implements the ClutterGstPlayer interface using playbin. Clutter is an
3943OpenGL-based interactive canvas library.")
86d6a893 3944 (license license:lgpl2.0+)))
607a04ae 3945
30dc88d9
LC
3946(define-public libchamplain
3947 (package
3948 (name "libchamplain")
5564b2c5 3949 (version "0.12.16")
30dc88d9
LC
3950 (source (origin
3951 (method url-fetch)
3952 (uri (string-append
3953 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
3954 version ".tar.xz"))
3955 (sha256
3956 (base32
5564b2c5 3957 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
30dc88d9 3958 (build-system gnu-build-system)
f7c6833f
LF
3959 (arguments '(#:configure-flags '("--enable-vala")))
3960 (native-inputs
3961 `(("gobject-introspection" ,gobject-introspection)
3962 ("pkg-config" ,pkg-config)
3963 ("vala" ,vala)))
30dc88d9
LC
3964 (propagated-inputs
3965 `(("libsoup" ,libsoup)
3966 ("sqlite" ,sqlite)
3967 ("clutter" ,clutter)
3968 ("clutter-gtk" ,clutter-gtk)
3969 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
3970 ("cairo" ,cairo)
3971 ("gtk+3" ,gtk+)
3972 ("glib" ,glib)))
f032d0be 3973 (home-page "https://projects.gnome.org/libchamplain/")
30dc88d9
LC
3974 (synopsis "C library providing a ClutterActor to display maps")
3975 (description
3976 "libchamplain is a C library providing a ClutterActor to display maps.
3977It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
3978and Perl bindings are also available. It supports numerous free map sources
3979such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
3980 (license license:lgpl2.1+)))
3981
607a04ae
MW
3982(define-public gom
3983 (package
3984 (name "gom")
0510440b 3985 (version "0.3.2")
607a04ae
MW
3986 (source
3987 (origin
3988 (method url-fetch)
6c8a0b6f 3989 (uri (string-append "mirror://gnome/sources/gom/"
607a04ae 3990 (version-major+minor version) "/"
6c8a0b6f 3991 "gom-" version ".tar.xz"))
607a04ae
MW
3992 (sha256
3993 (base32
0510440b 3994 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
607a04ae
MW
3995 (build-system gnu-build-system)
3996 (native-inputs
3997 `(("intltool" ,intltool)
3998 ("pkg-config" ,pkg-config)
3999 ("gobject-introspection" ,gobject-introspection)))
4000 (inputs
4001 `(("glib" ,glib)
4002 ("gdk-pixbuf" ,gdk-pixbuf)
4003 ("sqlite" ,sqlite)))
4004 ;; XXX TODO: Figure out how to run the test suite.
4005 (arguments `(#:tests? #f))
4006 (home-page "https://wiki.gnome.org/Projects/Gom")
4007 (synopsis "Object mapper from GObjects to SQLite")
4008 (description
4009 "Gom provides an object mapper from GObjects to SQLite. It helps you
4010write applications that need to store structured data as well as make complex
4011queries upon that data.")
4012 (license license:lgpl2.1+)))
b7a3cf11 4013
865aacc9 4014(define-public libgnome-games-support
f09520db 4015 (package
865aacc9 4016 (name "libgnome-games-support")
4c6d15cf 4017 (version "1.4.4")
f09520db
SB
4018 (source (origin
4019 (method url-fetch)
2d8dca9d 4020 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
f09520db 4021 (version-major+minor version) "/"
2d8dca9d 4022 "libgnome-games-support-" version ".tar.xz"))
f09520db
SB
4023 (sha256
4024 (base32
4c6d15cf 4025 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
f09520db
SB
4026 (build-system gnu-build-system)
4027 (arguments
4028 '(#:phases
4029 (modify-phases %standard-phases
4030 (add-before 'check 'pre-check
4031 (lambda _
865aacc9 4032 ;; Tests require a writable HOME.
f09520db
SB
4033 (setenv "HOME" (getcwd))
4034 #t)))))
4035 (native-inputs
4036 `(("intltool" ,intltool)
4037 ("pkg-config" ,pkg-config)
4038 ("vala" ,vala)))
4039 (propagated-inputs
865aacc9 4040 ;; Required by libgnome-games-support-1.0.pc
f09520db
SB
4041 `(("gtk+" ,gtk+)
4042 ("libgee" ,libgee)))
4043 (home-page "https://www.gnome.org/")
4044 (synopsis "Useful functionality shared among GNOME games")
4045 (description
865aacc9 4046 "libgnome-games-support is a small library intended for internal use by
f09520db
SB
4047GNOME Games, but it may be used by others.")
4048 (license license:lgpl3+)))
4049
b7a3cf11
SB
4050(define-public gnome-klotski
4051 (package
4052 (name "gnome-klotski")
c1e419c4 4053 (version "3.32.0")
b7a3cf11
SB
4054 (source (origin
4055 (method url-fetch)
4056 (uri (string-append "mirror://gnome/sources/" name "/"
4057 (version-major+minor version) "/"
4058 name "-" version ".tar.xz"))
4059 (sha256
4060 (base32
c1e419c4
KK
4061 "1p4s15gxj6gasix22z9vlx2yrx196fvcxr6v6qrl569idfgjbi72"))))
4062 (build-system meson-build-system)
4063 (arguments
4064 '(#:glib-or-gtk? #t
4065 #:phases
4066 (modify-phases %standard-phases
4067 (add-after 'unpack 'skip-gtk-update-icon-cache
4068 ;; Don't create 'icon-theme.cache'.
4069 (lambda _
4070 (substitute* "build-aux/meson_post_install.py"
4071 (("gtk-update-icon-cache") (which "true")))
4072 #t)))))
b7a3cf11
SB
4073 (native-inputs
4074 `(("desktop-file-utils" ,desktop-file-utils)
c1e419c4 4075 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b7a3cf11
SB
4076 ("intltool" ,intltool)
4077 ("itstool" ,itstool)
bcb354ad 4078 ("pkg-config" ,pkg-config)
c1e419c4 4079 ("vala" ,vala)
bcb354ad 4080 ("xmllint" ,libxml2)))
b7a3cf11
SB
4081 (inputs
4082 `(("gtk+" ,gtk+)
f4eae76f 4083 ("libgnome-games-support" ,libgnome-games-support)
b7a3cf11
SB
4084 ("librsvg" ,librsvg)))
4085 (home-page "https://wiki.gnome.org/Apps/Klotski")
4086 (synopsis "Sliding block puzzles")
4087 (description
4088 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
4089the patterned block to the area bordered by green markers. To do so, you will
4090need to slide other blocks out of the way. Complete each puzzle in as few moves
4091as possible!")
4092 (license license:gpl2+)))
8d4791bf
MW
4093
4094(define-public grilo
4095 (package
4096 (name "grilo")
d48d4c98 4097 (version "0.3.9")
8d4791bf
MW
4098 (source
4099 (origin
4100 (method url-fetch)
4101 (uri (string-append "mirror://gnome/sources/" name "/"
4102 (version-major+minor version) "/"
4103 name "-" version ".tar.xz"))
4104 (sha256
4105 (base32
d48d4c98
KK
4106 "1wnabc69730jsv8dljj5ik8g7p581nw60mw1mkgamkzjcb6821bk"))))
4107 (build-system meson-build-system)
8d4791bf
MW
4108 (native-inputs
4109 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4110 ("intltool" ,intltool)
4111 ("pkg-config" ,pkg-config)
d48d4c98
KK
4112 ("gobject-introspection" ,gobject-introspection)
4113 ("gtk-doc" ,gtk-doc)
4114 ("vala" ,vala)))
8d4791bf 4115 (inputs
6d7273a0
KK
4116 `(("cyrus-sasl" ,cyrus-sasl)
4117 ("glib" ,glib)
8d4791bf
MW
4118 ("gtk+" ,gtk+)
4119 ("libxml2" ,libxml2)
6d7273a0 4120 ("liboauth" ,liboauth)
8d4791bf
MW
4121 ("libsoup" ,libsoup)
4122 ("totem-pl-parser" ,totem-pl-parser)))
8d4791bf
MW
4123 (native-search-paths
4124 (list (search-path-specification
4125 (variable "GRL_PLUGIN_PATH")
4126 (files (list (string-append "lib/grilo-"
4127 (version-major+minor version)))))))
d48d4c98 4128 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
8d4791bf
MW
4129 (synopsis "Framework for discovering and browsing media")
4130 (description
4131 "Grilo is a framework focused on making media discovery and browsing easy
4132for application developers.")
4133 (license license:lgpl2.1+)))
7b212526
MW
4134
4135(define-public grilo-plugins
4136 (package
4137 (name "grilo-plugins")
22753632 4138 (version "0.3.3")
7b212526
MW
4139 (source
4140 (origin
4141 (method url-fetch)
4142 (uri (string-append "mirror://gnome/sources/" name "/"
4143 (version-major+minor version) "/"
4144 name "-" version ".tar.xz"))
4145 (sha256
4146 (base32
22753632 4147 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
7b212526
MW
4148 (build-system gnu-build-system)
4149 (native-inputs
4150 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4151 ("intltool" ,intltool)
4152 ("itstool" ,itstool)
4153 ("pkg-config" ,pkg-config)))
4154 (inputs
4155 `(("grilo" ,grilo)
4156 ("glib" ,glib)
4157 ("libxml2" ,libxml2)
4158 ("sqlite" ,sqlite)
4159 ("gom" ,gom)
4160 ;; XXX TODO: Add oauth
4161 ;; XXX TODO: Add goa
4162 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
4163 ;; XXX TODO: Add lua (needs help finding it)
4164 ("json-glib" ,json-glib)
4165 ("avahi" ,avahi)
4166 ("gmime" ,gmime)
4167 ("libsoup" ,libsoup)
4168 ("libarchive" ,libarchive)
4169 ("totem-pl-parser" ,totem-pl-parser)))
4170 (arguments
4171 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
4172 %output
4173 "/lib/grilo-"
4174 ,(version-major+minor version)))
4175 ;; XXX FIXME: Try to get the test suite working. It appears to require
4176 ;; a working system dbus. Inside the build container, all tests fail
4177 ;; with: "assertion failed: (source)". Outside of the build container,
4178 ;; most tests succeed.
4179 #:tests? #f))
f032d0be 4180 (home-page "https://live.gnome.org/Grilo")
7b212526
MW
4181 (synopsis "Plugins for the Grilo media discovery library")
4182 (description
4183 "Grilo is a framework focused on making media discovery and browsing easy
4184for application developers.")
4185 (license license:lgpl2.1+)))
4e3fc547
MW
4186
4187(define-public totem
4188 (package
4189 (name "totem")
995ef5ea 4190 (version "3.32.1")
4e3fc547
MW
4191 (source
4192 (origin
4193 (method url-fetch)
4194 (uri (string-append "mirror://gnome/sources/" name "/"
4195 (version-major+minor version) "/"
4196 name "-" version ".tar.xz"))
4197 (sha256
4198 (base32
995ef5ea 4199 "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v"))))
7ad81b8b 4200 (build-system meson-build-system)
4e3fc547
MW
4201 (native-inputs
4202 `(("pkg-config" ,pkg-config)
4203 ("desktop-file-utils" ,desktop-file-utils)
4204 ("gobject-introspection" ,gobject-introspection)
7ad81b8b 4205 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
4e3fc547 4206 ("intltool" ,intltool)
bcb354ad 4207 ("itstool" ,itstool)
995ef5ea
KK
4208 ("xmllint" ,libxml2)
4209 ("python-pylint" ,python-pylint)
4210 ("xorg-server" ,xorg-server-for-tests)))
4e3fc547
MW
4211 (propagated-inputs
4212 `(("dconf" ,dconf)))
4213 (inputs
4214 `(("gtk+" ,gtk+)
4215 ("gdk-pixbuf" ,gdk-pixbuf)
4216 ("atk" ,atk)
4217 ("cairo" ,cairo)
4218 ("dbus-glib" ,dbus-glib)
4219 ("clutter" ,clutter)
4220 ("clutter-gtk" ,clutter-gtk)
4221 ("clutter-gst" ,clutter-gst)
6a6db57f 4222 ("xorgproto" ,xorgproto)
4e3fc547
MW
4223 ("libxxf86vm" ,libxxf86vm)
4224 ("libxtst" ,libxtst)
4225 ("libxrandr" ,libxrandr)
4226 ("libxml2" ,libxml2)
4227 ("libsoup" ,libsoup)
4228 ("libpeas" ,libpeas)
4229 ("librsvg" ,librsvg)
4230 ("lirc" ,lirc)
4231 ("gnome-desktop" ,gnome-desktop)
4232 ("gstreamer" ,gstreamer)
4233 ("gst-plugins-base" ,gst-plugins-base)
4234 ("gst-plugins-good" ,gst-plugins-good)
4235 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4236 ("adwaita-icon-theme" ,adwaita-icon-theme)
d7b63ba9 4237 ("python" ,python)
995ef5ea 4238 ("python-pygobject" ,python-pygobject)
4e3fc547
MW
4239 ("totem-pl-parser" ,totem-pl-parser)
4240 ("grilo" ,grilo)
4241 ("grilo-plugins" ,grilo-plugins)
4e3fc547
MW
4242 ("vala" ,vala)))
4243 (arguments
7ad81b8b
LC
4244 `(#:glib-or-gtk? #t
4245
4246 ;; Disable automatic GStreamer plugin installation via PackageKit and
ec5c24f9 4247 ;; all that.
7ad81b8b 4248 #:configure-flags '("-D" "enable-easy-codec-installation=no"
a388c951
LC
4249
4250 ;; Do not build .a files for the plugins, it's
4251 ;; completely useless. This saves 2 MiB.
7ad81b8b 4252 "--default-library" "shared")
ec5c24f9 4253 #:phases
4e3fc547 4254 (modify-phases %standard-phases
d51b19ad
EF
4255 (add-after 'unpack 'skip-gtk-update-icon-cache
4256 ;; Don't create 'icon-theme.cache'.
4257 (lambda _
4258 (substitute* "meson_post_install.py"
4259 (("gtk-update-icon-cache") "true"))
4260 #t))
6368eb39
DM
4261 (add-before
4262 'install 'disable-cache-generation
4263 (lambda _
4264 (setenv "DESTDIR" "/")
4265 #t))
995ef5ea
KK
4266 (add-before
4267 'check 'pre-check
4268 (lambda _
4269 ;; Tests require a running X server.
4270 (system "Xvfb :1 &")
4271 (setenv "DISPLAY" ":1")
4272 #t))
4e3fc547
MW
4273 (add-after
4274 'install 'wrap-totem
4275 (lambda* (#:key inputs outputs #:allow-other-keys)
4276 (let ((out (assoc-ref outputs "out"))
4277 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4278 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
4279 (wrap-program (string-append out "/bin/totem")
4280 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
39c853bd
AW
4281 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
4282 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
4283 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4e3fc547
MW
4284 #t)))))
4285 (home-page "https://wiki.gnome.org/Apps/Videos")
4286 (synopsis "Simple media player for GNOME based on GStreamer")
4287 (description "Totem is a simple yet featureful media player for GNOME
4288which can read a large number of file formats.")
4289 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
4290 ;; to be used and distributed together with GStreamer and Totem. See
4291 ;; file://COPYING in the source distribution for details.
4292 (license license:gpl2+)))
f0afb0c8
DH
4293
4294(define-public rhythmbox
4295 (package
4296 (name "rhythmbox")
8190e1ed 4297 (version "3.4.3")
f0afb0c8
DH
4298 (source (origin
4299 (method url-fetch)
4300 (uri (string-append "mirror://gnome/sources/" name "/"
4301 (version-major+minor version) "/"
4302 name "-" version ".tar.xz"))
4303 (sha256
4304 (base32
8190e1ed 4305 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
f0afb0c8
DH
4306 (build-system glib-or-gtk-build-system)
4307 (arguments
4308 `(#:configure-flags
4309 (list "--enable-lirc"
4310 "--enable-python"
4311 "--enable-vala"
4312 "--with-brasero"
4313 "--with-gudev"
4314 "--with-libsecret")
4315 #:phases
4316 (modify-phases %standard-phases
4317 (add-after
4318 'install 'wrap-rhythmbox
4319 (lambda* (#:key inputs outputs #:allow-other-keys)
4320 (let ((out (assoc-ref outputs "out"))
4321 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4322 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
349cef58
TGR
4323 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4324 (python-path (getenv "PYTHONPATH")))
f0afb0c8
DH
4325 (wrap-program (string-append out "/bin/rhythmbox")
4326 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4327 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
349cef58
TGR
4328 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4329 `("PYTHONPATH" ":" prefix (,python-path))))
f0afb0c8
DH
4330 #t)))))
4331 (propagated-inputs
4332 `(("dconf" ,dconf)))
4333 (native-inputs
bcb354ad
SB
4334 `(("itstool" ,itstool)
4335 ("intltool" ,intltool)
f0afb0c8
DH
4336 ("glib" ,glib "bin")
4337 ("gobject-introspection" ,gobject-introspection)
4338 ("desktop-file-utils" ,desktop-file-utils)
bcb354ad
SB
4339 ("pkg-config" ,pkg-config)
4340 ("xmllint" ,libxml2)))
f0afb0c8
DH
4341 (inputs
4342 `(("json-glib" ,json-glib)
4343 ("tdb" ,tdb)
4344 ("gnome-desktop" ,gnome-desktop)
4345 ("python" ,python)
4346 ("python-pygobject" ,python2-pygobject)
4347 ("vala" ,vala)
4348 ("gmime" ,gmime)
f0afb0c8
DH
4349 ("adwaita-icon-theme" ,adwaita-icon-theme)
4350 ("grilo" ,grilo)
4351 ("grilo-plugins" ,grilo-plugins)
4352 ("gstreamer" ,gstreamer)
4353 ("gst-plugins-base" ,gst-plugins-base)
4354 ("gst-plugins-good" ,gst-plugins-good)
f0afb0c8 4355 ("totem-pl-parser" ,totem-pl-parser)
ea226291 4356 ("libgudev" ,libgudev)
f0afb0c8
DH
4357 ;;("libmtp" ,libmtp) FIXME: Not detected
4358 ("libsecret" ,libsecret)
4359 ("libsoup" ,libsoup)
4360 ("libnotify" ,libnotify)
4361 ("libpeas" ,libpeas)
4362 ("lirc" ,lirc)
4363 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4364 ;;("clutter" ,clutter)
4365 ;;("clutter-gtk" ,clutter-gtk)
4366 ;;("clutter-gst" ,clutter-gst)
4367 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4368 ("atk" ,atk)
4369 ("pango" ,pango)
4370 ("gtk+" ,gtk+)
4371 ;; TODO:
4372 ;; * libgpod
4373 ;; * mx
f0afb0c8
DH
4374 ("brasero" ,brasero)))
4375 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4376 (synopsis "Music player for GNOME")
4377 (description "Rhythmbox is a music playing application for GNOME. It
4378supports playlists, song ratings, and any codecs installed through gstreamer.")
4379 (license license:gpl2+)))
f70d8383
DH
4380
4381(define-public eog
4382 (package
4383 (name "eog")
b0f24a82 4384 (version "3.32.2")
f70d8383
DH
4385 (source (origin
4386 (method url-fetch)
4387 (uri (string-append "mirror://gnome/sources/" name "/"
4388 (version-major+minor version) "/"
4389 name "-" version ".tar.xz"))
4390 (sha256
4391 (base32
b0f24a82 4392 "1bcxpqgzlk2cy4wfb3b5h66mhpj2fhrk1rrb5qqcv5xrr62ik5xy"))))
61fb581f 4393 (build-system meson-build-system)
f70d8383 4394 (arguments
34c44a34
RW
4395 `(#:configure-flags
4396 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4397 (list (string-append "-Dc_link_args=-Wl,-rpath="
4398 (assoc-ref %outputs "out") "/lib/eog"))
4399 #:phases
f70d8383 4400 (modify-phases %standard-phases
7a034665
EF
4401 (add-after 'unpack 'skip-gtk-update-icon-cache
4402 ;; Don't create 'icon-theme.cache'.
4403 (lambda _
4404 (substitute* "meson_post_install.py"
4405 (("gtk-update-icon-cache") "true"))
4406 #t))
61fb581f
RW
4407 (add-after 'install 'wrap-eog
4408 (lambda* (#:key outputs #:allow-other-keys)
4409 (let ((out (assoc-ref outputs "out"))
4410 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4411 (wrap-program (string-append out "/bin/eog")
4412 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4413 #t)))))
f70d8383
DH
4414 (propagated-inputs
4415 `(("dconf" ,dconf)))
4416 (native-inputs
4417 `(("intltool" ,intltool)
b3546174 4418 ("itstool" ,itstool)
f70d8383
DH
4419 ("glib" ,glib "bin")
4420 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
4421 ("pkg-config" ,pkg-config)
4422 ("xmllint" ,libxml2)))
f70d8383
DH
4423 (inputs
4424 `(("gnome-desktop" ,gnome-desktop)
4425 ("shared-mime-info" ,shared-mime-info)
4426 ("adwaita-icon-theme" ,adwaita-icon-theme)
4427 ("exempi" ,exempi)
4428 ("lcms" ,lcms)
4429 ("libexif" ,libexif)
4430 ("libpeas" ,libpeas)
4431 ("libjpeg" ,libjpeg)
4432 ("librsvg" ,librsvg)
4433 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4434 ("gtk+" ,gtk+)))
4435 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4436 (synopsis "GNOME image viewer")
4437 (description "Eye of GNOME is the GNOME image viewer. It
4438supports image conversion, rotation, and slideshows.")
4439 (license license:gpl2+)))
41af5e7b 4440
0c3f8cb8
LC
4441(define-public eog-plugins
4442 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4443 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4444 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4445 ;; 'XDG_DATA_DIRS' appropriately set.
4446 (package
4447 (name "eog-plugins")
54b74cc6 4448 (version "3.26.4")
0c3f8cb8
LC
4449 (source (origin
4450 (method url-fetch)
f3b88ed2 4451 (uri (string-append "mirror://gnome/sources/eog-plugins/"
0c3f8cb8 4452 (version-major+minor version) "/"
f3b88ed2 4453 "eog-plugins-" version ".tar.xz"))
0c3f8cb8
LC
4454 (sha256
4455 (base32
54b74cc6 4456 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
0c3f8cb8
LC
4457 (build-system gnu-build-system)
4458 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4459 (synopsis "Extensions for the Eye of GNOME image viewer")
4460 (native-inputs
4461 `(("pkg-config" ,pkg-config)
4462 ("gettext" ,gnu-gettext)))
4463 (inputs
4464 `(("eog" ,eog)
4465 ("glib" ,glib)
4466 ("gtk+" ,gtk+)
4467 ("libpeas" ,libpeas)
4468 ("libexif" ,libexif)
4469 ("libchamplain" ,libchamplain)))
4470 (description
4471 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4472notably:
4473
4474@itemize
4475@item @dfn{EXIF Display}, which displays camera (EXIF) information;
4476@item @dfn{Map}, which displays a map of where the picture was taken on the
4477side panel;
4478@item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4479@end itemize\n")
4480
4481 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4482 ;; long suspicious byte stream that goes to a
4483 ;; ".gresource.eog_postasa_plugin" ELF section.
4484 (license license:gpl2+)))
4485
41af5e7b
SB
4486(define-public libgudev
4487 (package
4488 (name "libgudev")
b78f5118 4489 (version "232")
41af5e7b
SB
4490 (source (origin
4491 (method url-fetch)
4492 (uri (string-append "mirror://gnome/sources/" name "/"
4493 version "/" name "-" version ".tar.xz"))
4494 (sha256
4495 (base32
b78f5118 4496 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
41af5e7b 4497 (build-system gnu-build-system)
b78f5118
RW
4498 (arguments
4499 '(#:configure-flags
4500 ;; umockdev depends on libgudev.
4501 (list "--disable-umockdev")))
41af5e7b
SB
4502 (native-inputs
4503 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4504 ("gobject-introspection" ,gobject-introspection)
4505 ("pkg-config" ,pkg-config)))
4506 (propagated-inputs
4507 `(("glib" ,glib))) ; required by gudev-1.0.pc
4508 (inputs
4509 `(("udev" ,eudev)))
4510 (home-page "https://wiki.gnome.org/Projects/libgudev")
4511 (synopsis "GObject bindings for libudev")
4512 (description
4513 "This library provides GObject bindings for libudev. It was originally
4514part of udev-extras, then udev, then systemd. It's now a project on its own.")
4515 (license license:lgpl2.1+)))
3dc8828f
SB
4516
4517(define-public gvfs
4518 (package
4519 (name "gvfs")
12fe4846 4520 (version "1.40.1")
3dc8828f
SB
4521 (source (origin
4522 (method url-fetch)
1d68eb32 4523 (uri (string-append "mirror://gnome/sources/gvfs/"
3dc8828f 4524 (version-major+minor version) "/"
1d68eb32 4525 "gvfs-" version ".tar.xz"))
3dc8828f
SB
4526 (sha256
4527 (base32
12fe4846 4528 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
e762d943 4529 (build-system meson-build-system)
3dc8828f 4530 (arguments
e762d943
RW
4531 '(#:glib-or-gtk? #t
4532 #:configure-flags
4533 (list "-Dsystemduserunitdir=no"
4534 "-Dtmpfilesdir=no"
4535 ;; Otherwise, the RUNPATH will lack the final path component.
4536 (string-append "-Dc_link_args=-Wl,-rpath="
4537 (assoc-ref %outputs "out") "/lib/gvfs"))))
3dc8828f
SB
4538 (native-inputs
4539 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
0ab9f949
RW
4540 ("gettext" ,gettext-minimal)
4541 ("gtk-doc" ,gtk-doc)
3dc8828f
SB
4542 ("pkg-config" ,pkg-config)
4543 ("xsltproc" ,libxslt)))
4544 (inputs
4545 `(("avahi" ,avahi)
4546 ("docbook-xml" ,docbook-xml-4.2)
4547 ("docbook-xsl" ,docbook-xsl)
4548 ("dbus" ,dbus)
e762d943 4549 ("elogind" ,elogind)
3dc8828f 4550 ("fuse" ,fuse)
24a78aa6 4551 ("gcr" ,gcr)
3dc8828f 4552 ("glib" ,glib)
e762d943 4553 ("gnome-online-accounts" ,gnome-online-accounts)
3dc8828f
SB
4554 ("libarchive" ,libarchive)
4555 ("libbluray" ,libbluray)
8852ca24 4556 ("libcap" ,libcap)
3dc8828f
SB
4557 ("libcdio-paranoia" ,libcdio-paranoia)
4558 ("libgcrypt" ,libgcrypt)
e762d943 4559 ("libgdata" ,libgdata)
3dc8828f
SB
4560 ("libgphoto2" ,libgphoto2)
4561 ("libgudev" ,libgudev)
0ab9f949 4562 ("libimobiledevice" ,libimobiledevice)
3dc8828f 4563 ("libmtp" ,libmtp)
e762d943 4564 ("libnfs" ,libnfs)
3dc8828f
SB
4565 ("libsecret" ,libsecret)
4566 ("libsmbclient" ,samba)
4567 ("libsoup" ,libsoup)
4568 ("libxml2" ,libxml2)
e762d943 4569 ("openssh" ,openssh)
8852ca24 4570 ("polkit" ,polkit)
3dc8828f
SB
4571 ("udisks" ,udisks)))
4572 (home-page "https://wiki.gnome.org/gvfs/")
8f65585b 4573 (synopsis "Userspace virtual file system for GIO")
3dc8828f 4574 (description
8f65585b 4575 "GVFS is a userspace virtual file system designed to work with the I/O
3dc8828f
SB
4576abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4577to all applications using the GIO API. It also supports exposing the GVFS
4578mounts to non-GIO applications using FUSE.
4579
4580GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4581DAV, and others.")
4582 (license license:lgpl2.0+)))
7c88b6bd
AW
4583
4584(define-public gusb
4585 (package
4586 (name "gusb")
536b3274 4587 (version "0.3.0")
7c88b6bd 4588 (source (origin
bbfb36f9
EF
4589 (method git-fetch)
4590 (uri (git-reference
4591 (url "https://github.com/hughsie/libgusb.git")
4592 (commit version)))
4593 (file-name (git-file-name name version))
7c88b6bd
AW
4594 (sha256
4595 (base32
bbfb36f9 4596 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
536b3274 4597 (build-system meson-build-system)
7c88b6bd 4598 (native-inputs
536b3274 4599 `(("gobject-introspection" ,gobject-introspection)
7c88b6bd
AW
4600 ("pkg-config" ,pkg-config)
4601 ("vala" ,vala)
7c88b6bd
AW
4602 ("gtk-doc" ,gtk-doc)))
4603 (propagated-inputs
4604 ;; Both of these are required by gusb.pc.
4605 `(("glib" ,glib)
4606 ("libusb" ,libusb)))
4607 (arguments
536b3274 4608 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
8f1640ed 4609 (home-page "https://github.com/hughsie/libgusb")
a124bbd2 4610 (synopsis "GLib binding for libusb1")
7c88b6bd
AW
4611 (description
4612 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4613asynchronous control, bulk and interrupt transfers with proper cancellation
4614and integration into a mainloop. This makes it easy to integrate low level
4615USB transfers with your high-level application or system daemon.")
4616 (license license:lgpl2.1+)))
0abe1d86
AW
4617
4618(define-public simple-scan
4619 (package
4620 (name "simple-scan")
4afb7dd9 4621 (version "3.34.2")
d9f6d587
TGR
4622 (source
4623 (origin
4624 (method url-fetch)
4625 (uri (string-append "mirror://gnome/sources/simple-scan/"
4626 (version-major+minor version) "/"
4627 "simple-scan-" version ".tar.xz"))
4628 (sha256
4afb7dd9 4629 (base32 "1fk3g4f9slckqfwm576jrjq1d1qihw0dlgzdf00ns7qbhzb0kxsp"))))
d9f6d587
TGR
4630 (build-system meson-build-system)
4631 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
4632 (arguments
4633 '(#:glib-or-gtk? #t))
0abe1d86
AW
4634 (inputs
4635 `(("gtk" ,gtk+)
4636 ("zlib" ,zlib)
4637 ("cairo" ,cairo)
c501f592 4638 ("colord" ,colord)
0abe1d86
AW
4639 ("gdk-pixbuf" ,gdk-pixbuf)
4640 ("gusb" ,gusb)
4c928743 4641 ("libsane" ,sane-backends)))
0abe1d86 4642 (native-inputs
b94a6ca0 4643 `(("gettext" ,gettext-minimal)
0abe1d86 4644 ("itstool" ,itstool)
c501f592 4645 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
0abe1d86 4646 ("pkg-config" ,pkg-config)
bcb354ad
SB
4647 ("vala" ,vala)
4648 ("xmllint" ,libxml2)))
dff0eedb 4649 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
0abe1d86 4650 (synopsis "Document and image scanner")
d9f6d587
TGR
4651 (description
4652 "Document Scanner is an easy-to-use application that lets you connect your
4653scanner and quickly capture images and documents in an appropriate format. It
4654supports any scanner for which a suitable SANE driver is available, which is
4655almost all of them.")
0abe1d86 4656 (license license:gpl3+)))
7549f984 4657
ab466d79
RW
4658(define-public eolie
4659 (package
4660 (name "eolie")
fa8ef3ed 4661 (version "0.9.63")
ab466d79
RW
4662 (source (origin
4663 (method url-fetch)
00014781 4664 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
fa8ef3ed 4665 "uploads/d42b466752729a0d3fa828a721e25043/"
00014781 4666 "eolie-" version ".tar.xz"))
ab466d79
RW
4667 (sha256
4668 (base32
fa8ef3ed 4669 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
00014781 4670 (build-system meson-build-system)
ab466d79 4671 (arguments
00014781
RW
4672 `(#:glib-or-gtk? #t
4673 #:phases
ab466d79 4674 (modify-phases %standard-phases
f0c68100
EF
4675 (add-after 'unpack 'skip-gtk-update-icon-cache
4676 ;; Don't create 'icon-theme.cache'.
4677 (lambda _
4678 (substitute* "meson_post_install.py"
4679 (("gtk-update-icon-cache") "true"))
4680 #t))
ab466d79
RW
4681 (add-after 'wrap 'wrap-more
4682 (lambda* (#:key inputs outputs #:allow-other-keys)
4683 (let* ((out (assoc-ref outputs "out"))
4684 ;; These libraries must be on LD_LIBRARY_PATH.
4685 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
4686 "atk" "gtk+" "gsettings-desktop-schemas"
4687 "gobject-introspection"))
4688 (path (string-join
4689 (map (lambda (lib)
4690 (string-append (assoc-ref inputs lib) "/lib"))
4691 libs)
4692 ":")))
4693 (wrap-program (string-append out "/bin/eolie")
4694 `("LD_LIBRARY_PATH" ":" prefix (,path))
4695 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
4696 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
4697 #t)))))
4698 (native-inputs
f85ca6ed 4699 `(("intltool" ,intltool)
ab466d79 4700 ("itstool" ,itstool)
d95f1041 4701 ("pkg-config" ,pkg-config)
d95f1041 4702 ("python" ,python)
f0c68100 4703 ("glib:bin" ,glib "bin")))
ab466d79
RW
4704 (inputs
4705 `(("gobject-introspection" ,gobject-introspection)
4706 ("glib-networking" ,glib-networking)
4707 ("cairo" ,cairo)
4708 ("gtk+" ,gtk+)
4709 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
4710 ("python" ,python-wrapper)
d72f76df 4711 ("python-dateutil" ,python-dateutil)
00014781 4712 ("python-pyfxa" ,python-pyfxa)
ab466d79
RW
4713 ("python-pygobject" ,python-pygobject)
4714 ("python-pycairo" ,python-pycairo)
00014781 4715 ("python-pycrypto" ,python-pycrypto)
ab466d79
RW
4716 ("libsecret" ,libsecret)
4717 ("gtkspell3" ,gtkspell3)
4718 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
f85ca6ed 4719 ("webkitgtk" ,webkitgtk)))
166b2c97 4720 (home-page "https://wiki.gnome.org/Apps/Eolie")
ab466d79
RW
4721 (synopsis "Web browser for GNOME")
4722 (description
4723 "Eolie is a new web browser for GNOME. It features Firefox sync support,
4724a secret password store, an adblocker, and a modern UI.")
4725 (license license:gpl3+)))
4726
7549f984
SB
4727(define-public epiphany
4728 (package
4729 (name "epiphany")
644b60d4 4730 (version "3.32.3")
7549f984
SB
4731 (source (origin
4732 (method url-fetch)
dd3266ec 4733 (uri (string-append "mirror://gnome/sources/epiphany/"
7549f984 4734 (version-major+minor version) "/"
dd3266ec 4735 "epiphany-" version ".tar.xz"))
7549f984
SB
4736 (sha256
4737 (base32
644b60d4 4738 "0gx386k1p78ppjhvdanv99hfiwana0ccn9d499qrp0rvlicnijrw"))))
fc5c5b92
R
4739
4740 (build-system meson-build-system)
7549f984
SB
4741 (arguments
4742 ;; FIXME: tests run under Xvfb, but fail with:
4743 ;; /src/bookmarks/ephy-bookmarks/create:
4744 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
4745 ;; subsystem
4746 ;; FAIL
6f48d9db 4747 '(#:tests? #f
e19f9c24 4748 #:glib-or-gtk? #t
bb7ff88f
EF
4749 #:phases
4750 (modify-phases %standard-phases
4751 (add-after 'unpack 'skip-gtk-update-icon-cache
4752 ;; Don't create 'icon-theme.cache'.
4753 (lambda _
4754 (substitute* "post_install.py"
4755 (("gtk-update-icon-cache") "true"))
4756 #t)))
e19f9c24
LF
4757 #:configure-flags
4758 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
4759 (list (string-append "-Dc_link_args=-Wl,-rpath="
4760 (assoc-ref %outputs "out") "/lib/epiphany"))))
80a747c4
SB
4761 (propagated-inputs
4762 `(("dconf" ,dconf)))
7549f984 4763 (native-inputs
fc5c5b92
R
4764 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4765 ("glib:bin" ,glib "bin") ; for glib-mkenums
fc5c5b92 4766 ("intltool" ,intltool)
7549f984 4767 ("itstool" ,itstool)
bcb354ad
SB
4768 ("pkg-config" ,pkg-config)
4769 ("xmllint" ,libxml2)))
7549f984
SB
4770 (inputs
4771 `(("avahi" ,avahi)
4772 ("gcr" ,gcr)
fc5c5b92 4773 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
7549f984
SB
4774 ("glib-networking" ,glib-networking)
4775 ("gnome-desktop" ,gnome-desktop)
4776 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
eb6f315b 4777 ("json-glib" ,json-glib)
7549f984 4778 ("iso-codes" ,iso-codes)
8748e29c 4779 ("libdazzle" ,libdazzle)
7549f984
SB
4780 ("libnotify" ,libnotify)
4781 ("libsecret" ,libsecret)
7549f984 4782 ("libxslt" ,libxslt)
fc5c5b92 4783 ("nettle" ,nettle) ; for hogweed
7549f984 4784 ("sqlite" ,sqlite)
f85ca6ed 4785 ("webkitgtk" ,webkitgtk)))
7549f984
SB
4786 (home-page "https://wiki.gnome.org/Apps/Web")
4787 (synopsis "GNOME web browser")
4788 (description
4789 "Epiphany is a GNOME web browser targeted at non-technical users. Its
4790principles are simplicity and standards compliance.")
4791 (license license:gpl2+)))
a3856b2c
SB
4792
4793(define-public d-feet
4794 (package
4795 (name "d-feet")
458e9221 4796 (version "0.3.14")
a3856b2c
SB
4797 (source (origin
4798 (method url-fetch)
4799 (uri (string-append "mirror://gnome/sources/" name "/"
4800 (version-major+minor version) "/"
4801 name "-" version ".tar.xz"))
4802 (sha256
4803 (base32
458e9221 4804 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
a3856b2c
SB
4805 (build-system glib-or-gtk-build-system)
4806 (arguments
4807 '(#:out-of-source? #f ; tests need to run in the source directory.
4808 #:phases
4809 (modify-phases %standard-phases
4810 (add-before
4811 'check 'pre-check
86aff791 4812 (lambda _
a3856b2c
SB
4813 ;; The test suite requires a running X server.
4814 (system "Xvfb :1 &")
4815 (setenv "DISPLAY" ":1")
4816 ;; Don't fail on missing '/etc/machine-id'.
4817 (setenv "DBUS_FATAL_WARNINGS" "0")
4818 ;; tests.py and window.py don't meet E402:
4819 ;; E402 module level import not at top of file
4820 (substitute* "src/tests/Makefile"
86aff791
MW
4821 (("--ignore=E123") "--ignore=E123,E402"))
4822 #t))
a3856b2c
SB
4823 (add-after
4824 'install 'wrap-program
4825 (lambda* (#:key outputs #:allow-other-keys)
4826 (let ((prog (string-append (assoc-ref outputs "out")
4827 "/bin/d-feet")))
4828 (wrap-program prog
4829 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
86aff791
MW
4830 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4831 #t))))))
a3856b2c
SB
4832 (native-inputs
4833 `(("intltool" ,intltool)
4834 ("itstool" ,itstool)
4835 ("pkg-config" ,pkg-config)
4836 ("python-pep8" ,python-pep8)
4837 ("xmllint" ,libxml2)
ff337525 4838 ("xorg-server" ,xorg-server-for-tests)))
a3856b2c
SB
4839 (inputs
4840 `(("gobject-introspection" ,gobject-introspection)
4841 ("gtk+" ,gtk+)
4842 ("python" ,python-wrapper)
458e9221 4843 ("hicolor-icon-theme" ,hicolor-icon-theme)
a3856b2c
SB
4844 ("python-pygobject" ,python-pygobject)))
4845 (home-page "https://wiki.gnome.org/Apps/DFeet")
4846 (synopsis "D-Bus debugger")
4847 (description
4848 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
4849of running programs and invoke methods on those interfaces.")
4850 (license license:gpl2+)))
c3b97bd9
SB
4851
4852(define-public yelp-xsl
4853 (package
4854 (name "yelp-xsl")
b3640e79 4855 (version "3.32.1")
c3b97bd9
SB
4856 (source (origin
4857 (method url-fetch)
4858 (uri (string-append "mirror://gnome/sources/" name "/"
4859 (version-major+minor version) "/"
4860 name "-" version ".tar.xz"))
4861 (sha256
4862 (base32
b3640e79 4863 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
c3b97bd9
SB
4864 (build-system gnu-build-system)
4865 (native-inputs
4866 `(("intltool" ,intltool)
4867 ("itstool" ,itstool)
4868 ("xmllint" ,libxml2)))
4869 (home-page "https://wiki.gnome.org/Apps/Yelp")
4870 (synopsis "XSL stylesheets for Yelp")
4871 (description
4872 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
4873to format Docbook and Mallard documents.")
4874 (license license:gpl2+)))
de3d612a
SB
4875
4876(define-public yelp
4877 (package
4878 (name "yelp")
9d029b7f 4879 (version "3.30.0")
de3d612a
SB
4880 (source (origin
4881 (method url-fetch)
4882 (uri (string-append "mirror://gnome/sources/" name "/"
4883 (version-major+minor version) "/"
4884 name "-" version ".tar.xz"))
4885 (sha256
4886 (base32
9d029b7f 4887 "060a902j15k76fyhk8xfl38ipvrrcc0qd7nm2mcck4ifb45b0zv4"))))
de3d612a
SB
4888 (build-system glib-or-gtk-build-system)
4889 (native-inputs
4890 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4891 ("intltool" ,intltool)
4892 ("itstool" ,itstool)
4893 ("pkg-config" ,pkg-config)))
4894 (propagated-inputs
4895 `(("dconf" ,dconf)))
4896 (inputs
ad1b7d8b
SB
4897 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4898 ("libxslt" ,libxslt)
de3d612a 4899 ("sqlite" ,sqlite)
4c28ca1d
SB
4900 ("webkitgtk" ,webkitgtk)
4901 ("yelp-xsl" ,yelp-xsl)))
de3d612a
SB
4902 (home-page "https://wiki.gnome.org/Apps/Yelp")
4903 (synopsis "GNOME help browser")
4904 (description
4905 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
4906man, info, and HTML documents. It can locate documents according to the
4907freedesktop.org help system specification.")
4908 (license license:gpl2+)))
122d0d10
SB
4909
4910(define-public yelp-tools
4911 (package
4912 (name "yelp-tools")
2089bca5 4913 (version "3.28.0")
122d0d10
SB
4914 (source (origin
4915 (method url-fetch)
4916 (uri (string-append "mirror://gnome/sources/" name "/"
4917 (version-major+minor version) "/"
4918 name "-" version ".tar.xz"))
4919 (sha256
4920 (base32
2089bca5 4921 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
122d0d10
SB
4922 (build-system gnu-build-system)
4923 (native-inputs
4924 `(("pkg-config" ,pkg-config)))
4925 (propagated-inputs
4926 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
4927 `(("itstool" ,itstool)
4928 ("xmllint" ,libxml2)
4929 ("xsltproc" ,libxslt)))
4930 (inputs
4931 `(("yelp-xsl" ,yelp-xsl)))
4932 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
4933 (synopsis "Yelp documentation tools")
4934 (description
4935 "Yelp-tools is a collection of scripts and build utilities to help create,
4936manage, and publish documentation for Yelp and the web. Most of the heavy
4937lifting is done by packages like yelp-xsl and itstool. This package just
4938wraps things up in a developer-friendly way.")
4939 (license license:gpl2+)))
af8f9f23 4940
4ed041d9
MB
4941(define-public yelp-tools/fixed
4942 ;; This variant fixes a python-libxml2 crash when processing UTF-8
4943 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
4944 ;; the next rebuild cycle.
4945 (hidden-package
4946 (package/inherit
4947 yelp-tools
4948 (propagated-inputs
4949 `(("itstool" ,itstool/fixed)
4950 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
4951
af8f9f23
RW
4952(define-public libgee
4953 (package
4954 (name "libgee")
4c2c5ae6 4955 (version "0.20.2")
af8f9f23
RW
4956 (source (origin
4957 (method url-fetch)
84a1b007 4958 (uri (string-append "mirror://gnome/sources/libgee/"
af8f9f23 4959 (version-major+minor version) "/"
84a1b007 4960 "libgee-" version ".tar.xz"))
af8f9f23
RW
4961 (sha256
4962 (base32
4c2c5ae6 4963 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
af8f9f23
RW
4964 (build-system gnu-build-system)
4965 (arguments
4966 `(#:phases
4967 (modify-phases %standard-phases
4968 (add-after 'unpack 'fix-introspection-install-dir
4969 (lambda* (#:key outputs #:allow-other-keys)
4970 (let ((out (assoc-ref outputs "out")))
4971 (substitute* "gee/Makefile.in"
4972 (("@INTROSPECTION_GIRDIR@")
4973 (string-append out "/share/gir-1.0/"))
4974 (("@INTROSPECTION_TYPELIBDIR@")
4975 (string-append out "/lib/girepository-1.0/")))))))))
4976 (native-inputs
4977 `(("glib" ,glib "bin")
4978 ("pkg-config" ,pkg-config)))
4979 (inputs
4980 `(("glib" ,glib)
4981 ("gobject-introspection" ,gobject-introspection)))
4982 (home-page "https://wiki.gnome.org/Projects/Libgee")
4983 (synopsis "GObject collection library")
4984 (description
4985 "Libgee is a utility library providing GObject-based interfaces and
4986classes for commonly used data structures.")
4987 (license license:lgpl2.1+)))
b0f9c4b8
RW
4988
4989(define-public gexiv2
4990 (package
4991 (name "gexiv2")
b1a8b408 4992 (version "0.12.0")
b0f9c4b8
RW
4993 (source (origin
4994 (method url-fetch)
4995 (uri (string-append "mirror://gnome/sources/" name "/"
4996 (version-major+minor version) "/"
4997 name "-" version ".tar.xz"))
4998 (sha256
4999 (base32
b1a8b408 5000 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
51c482e4 5001 (build-system meson-build-system)
b0f9c4b8 5002 (native-inputs
b1a8b408
KK
5003 `(("gcr" ,gcr)
5004 ("glib" ,glib "bin")
5005 ("pkg-config" ,pkg-config)
5006 ("vala" ,vala)))
b0f9c4b8
RW
5007 (propagated-inputs
5008 ;; Listed in "Requires" section of gexiv2.pc
5009 `(("exiv2" ,exiv2)))
5010 (inputs
5011 `(("glib" ,glib)
5012 ("gobject-introspection" ,gobject-introspection)))
5013 (home-page "https://wiki.gnome.org/Projects/gexiv2")
5014 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
5015 (description
5016 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
5017allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
5018metadata in photo and video files of various formats.")
5019 (license license:gpl2+)))
fed5a689
RW
5020
5021(define-public shotwell
5022 (package
5023 (name "shotwell")
a1c6fb52 5024 (version "0.30.7")
fed5a689
RW
5025 (source (origin
5026 (method url-fetch)
5497d682 5027 (uri (string-append "mirror://gnome/sources/shotwell/"
fed5a689 5028 (version-major+minor version) "/"
5497d682 5029 "shotwell-" version ".tar.xz"))
fed5a689
RW
5030 (sha256
5031 (base32
a1c6fb52 5032 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
3b79afa6
KK
5033 (build-system meson-build-system)
5034 (arguments
5035 '(#:glib-or-gtk? #t))
735b8db6
TGR
5036 (propagated-inputs
5037 `(("dconf" ,dconf)))
fed5a689 5038 (native-inputs
3b79afa6 5039 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b94a6ca0 5040 ("gettext" ,gettext-minimal)
77e9c993 5041 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
735b8db6 5042 ("itstool" ,itstool)
3b79afa6 5043 ("pkg-config" ,pkg-config)
735b8db6 5044 ("vala" ,vala)))
fed5a689 5045 (inputs
735b8db6
TGR
5046 `(("glib:bin" ,glib "bin")
5047 ("gstreamer" ,gstreamer)
fed5a689 5048 ("gst-plugins-base" ,gst-plugins-base)
dfb0323d 5049 ("libgdata" ,libgdata)
fed5a689
RW
5050 ("libgee" ,libgee)
5051 ("gexiv2" ,gexiv2)
5052 ("libraw" ,libraw)
5053 ("json-glib" ,json-glib)
7108425c 5054 ("webkitgtk" ,webkitgtk)
fed5a689
RW
5055 ("sqlite" ,sqlite)
5056 ("libsoup" ,libsoup)
5057 ("libxml2" ,libxml2)
fed5a689 5058 ("libgudev" ,libgudev)
522fc32e
LF
5059 ("libgphoto2" ,libgphoto2)
5060 ("gcr" ,gcr)))
fed5a689
RW
5061 (home-page "https://wiki.gnome.org/Apps/Shotwell")
5062 (synopsis "Photo manager for GNOME 3")
5063 (description
5064 "Shotwell is a digital photo manager designed for the GNOME desktop
5065environment. It allows you to import photos from disk or camera, organize
5066them by keywords and events, view them in full-window or fullscreen mode, and
5067share them with others via social networking and more.")
5068 (license license:lgpl2.1+)))
293ff8b2
DT
5069
5070(define-public file-roller
5071 (package
5072 (name "file-roller")
4c96e5d1 5073 (version "3.32.1")
293ff8b2
DT
5074 (source (origin
5075 (method url-fetch)
5076 (uri (string-append "mirror://gnome/sources/" name "/"
5077 (version-major+minor version) "/"
5078 name "-" version ".tar.xz"))
5079 (sha256
5080 (base32
4c96e5d1 5081 "0irm72cf8222h93skivn0nn0ckahiiiimy4rb9r3ccjvhi3hiaqw"))))
0a500745 5082 (build-system meson-build-system)
293ff8b2 5083 (native-inputs
0a500745
RW
5084 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5085 ("intltool" ,intltool)
4c96e5d1 5086 ("itstool" ,itstool)
0a500745
RW
5087 ("pkg-config" ,pkg-config)
5088 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5089 ("glib:bin" ,glib "bin")))
293ff8b2
DT
5090 ;; TODO: Add libnautilus.
5091 (inputs
5092 `(("gtk+" ,gtk+)
5093 ("gdk-pixbuf" ,gdk-pixbuf)
5094 ("json-glib" ,json-glib)
5095 ("libarchive" ,libarchive)
5096 ("libnotify" ,libnotify)
4c96e5d1 5097 ("nettle" ,nettle)
293ff8b2
DT
5098 ("libxml2" ,libxml2)))
5099 (synopsis "Graphical archive manager for GNOME")
5100 (description "File Roller is an archive manager for the GNOME desktop
5101environment that allows users to view, unpack, and create compressed archives
5102such as gzip tarballs.")
5103 (home-page "http://fileroller.sourceforge.net/")
5104 (license license:gpl2+)))
7ce49365
SB
5105
5106(define-public gnome-session
5107 (package
5108 (name "gnome-session")
da886d6f 5109 (version "3.30.1")
7ce49365
SB
5110 (source (origin
5111 (method url-fetch)
5112 (uri (string-append "mirror://gnome/sources/" name "/"
5113 (version-major+minor version) "/"
5114 name "-" version ".tar.xz"))
5115 (sha256
5116 (base32
da886d6f 5117 "0fbpq103md4g9gi67rxnwvha21629nxx7qazddy6q6494sbqbzpa"))))
2914af3c 5118 (arguments
df278071
RW
5119 '(#:glib-or-gtk? #t
5120 #:phases
2914af3c
AW
5121 (modify-phases %standard-phases
5122 (add-before 'configure 'pre-configure
5123 (lambda* (#:key outputs #:allow-other-keys)
5124 ;; Use elogind instead of systemd.
df278071
RW
5125 (substitute* "meson.build"
5126 (("libsystemd-login") "libelogind")
5127 (("and libsystemd_daemon_dep.found.*") ","))
2914af3c
AW
5128 (substitute* "gnome-session/gsm-systemd.c"
5129 (("#include <systemd/sd-login.h>")
5130 "#include <elogind/sd-login.h>"))
df278071 5131 ;; Remove uses of the systemd daemon.
803ab416
SB
5132 (substitute* "gnome-session/gsm-autostart-app.c"
5133 (("#ifdef HAVE_SYSTEMD") "#if 0"))
a0d7baaf
LC
5134 #t))
5135 (add-after 'install 'wrap-gnome-session
5136 (lambda* (#:key inputs outputs #:allow-other-keys)
5137 ;; Make sure 'gnome-session' finds the 'gsettings' program.
5138 (let ((glib (assoc-ref inputs "glib:bin"))
5139 (out (assoc-ref outputs "out")))
5140 (wrap-program (string-append out "/bin/gnome-session")
5141 `("PATH" ":" prefix (,(string-append glib "/bin"))))
5142 #t))))
6cbc8d57 5143
2914af3c 5144 #:configure-flags
df278071
RW
5145 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
5146 "-Dman=false" ; FIXME: disabled because of docbook validation error
5147 "-Dsystemd_journal=false")))
5148 (build-system meson-build-system)
7ce49365
SB
5149 (native-inputs
5150 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5151 ("pkg-config" ,pkg-config)
5152 ("intltool" ,intltool)
df278071
RW
5153 ("xsltproc" ,libxslt)
5154 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5155 ("docbook-xsl" ,docbook-xsl)
5156 ("docbook-xml" ,docbook-xml)
5157 ("xmlto" ,xmlto)))
7ce49365 5158 (inputs
2914af3c
AW
5159 `(("elogind" ,elogind)
5160 ("gnome-desktop" ,gnome-desktop)
ba3cb5ab 5161 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7ce49365
SB
5162 ("gtk+" ,gtk+)
5163 ("json-glib" ,json-glib)
5164 ("libsm" ,libsm)
5165 ("libxcomposite" ,libxcomposite)
5166 ("libxtst" ,libxtst)
5167 ("mesa" ,mesa)
5168 ("upower" ,upower)
5169 ("xtrans" ,xtrans)))
5170 (synopsis "Session manager for GNOME")
5171 (description
5172 "This package contains the GNOME session manager, as well as a
5173configuration program to choose applications starting on login.")
5174 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
5175 (license license:gpl2+)))
f47ba77e
SB
5176
5177(define-public gjs
5178 (package
5179 (name "gjs")
d054fbf5 5180 (version "1.56.2")
f47ba77e
SB
5181 (source (origin
5182 (method url-fetch)
5183 (uri (string-append "mirror://gnome/sources/" name "/"
5184 (version-major+minor version) "/"
5185 name "-" version ".tar.xz"))
5186 (sha256
5187 (base32
d054fbf5 5188 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
f47ba77e
SB
5189 (build-system gnu-build-system)
5190 (arguments
5191 '(#:phases
5192 (modify-phases %standard-phases
5193 (add-before
5194 'check 'pre-check
5195 (lambda _
fc119619
MW
5196 ;; The test suite requires a running X server.
5197 (system "Xvfb :1 &")
5198 (setenv "DISPLAY" ":1")
5199
f47ba77e
SB
5200 ;; For the missing /etc/machine-id.
5201 (setenv "DBUS_FATAL_WARNINGS" "0")
ba666b07 5202
144f94d0
KK
5203 ;; Our mozjs-38 package does not compile the required Intl API
5204 ;; support for these failing tests.
5205 (substitute* "installed-tests/js/testLocale.js"
5206 ((".*toBeDefined.*") "")
5207 ((".*expect\\(datestr\\).*") ""))
d054fbf5
KK
5208 (substitute* "installed-tests/scripts/testCommandLine.sh"
5209 (("Valentín") "")
5210 (("☭") ""))
f47ba77e
SB
5211 #t)))))
5212 (native-inputs
8a831c6f 5213 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
f47ba77e
SB
5214 ("pkg-config" ,pkg-config)
5215 ("xmllint" ,libxml2)
5216 ;; For testing
5217 ("dbus-launch" ,dbus)
5218 ("uuidgen" ,util-linux)
ebebee94 5219 ("xvfb" ,xorg-server-for-tests)))
f47ba77e
SB
5220 (propagated-inputs
5221 ;; These are all in the Requires.private field of gjs-1.0.pc.
144f94d0
KK
5222 `(("cairo" ,cairo)
5223 ("gobject-introspection" ,gobject-introspection)
d054fbf5 5224 ("mozjs" ,mozjs-60)))
f47ba77e
SB
5225 (inputs
5226 `(("gtk+" ,gtk+)
5227 ("readline" ,readline)))
5228 (synopsis "Javascript bindings for GNOME")
f032d0be 5229 (home-page "https://live.gnome.org/Gjs")
f47ba77e
SB
5230 (description
5231 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
5232javascript engine and the GObject introspection framework.")
5233 (license license:gpl2+)))
329d731b
DH
5234
5235(define-public gedit
5236 (package
5237 (name "gedit")
480c9226 5238 (version "3.32.2")
329d731b
DH
5239 (source (origin
5240 (method url-fetch)
5241 (uri (string-append "mirror://gnome/sources/" name "/"
5242 (version-major+minor version) "/"
5243 name "-" version ".tar.xz"))
5244 (sha256
5245 (base32
480c9226
KK
5246 "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl"))))
5247 (build-system meson-build-system)
329d731b 5248 (arguments
480c9226
KK
5249 `(#:glib-or-gtk? #t
5250 #:configure-flags
5251 ;; Otherwise, the RUNPATH will lack the final path component.
5252 (list (string-append "-Dc_link_args=-Wl,-rpath="
5253 (assoc-ref %outputs "out") "/lib/gedit"))
5254 #:phases
329d731b 5255 (modify-phases %standard-phases
480c9226
KK
5256 (add-after 'unpack 'skip-gtk-update-icon-cache
5257 ;; Don't create 'icon-theme.cache'.
5258 (lambda _
5259 (substitute* "build-aux/meson/post_install.py"
5260 (("gtk-update-icon-cache") (which "true")))
5261 #t))
5262 (add-after 'unpack 'patch-libgd-fetch
5263 (lambda* (#:key inputs #:allow-other-keys)
5264 (let ((libgd (assoc-ref inputs "libgd")))
5265 ;; Calling git is unnecessary because libgd is fetched as a
5266 ;; native input to this package.
5267 (substitute* "meson.build"
5268 ((".*git.*") ""))
5269 (copy-recursively libgd "subprojects/libgd")
5270 #t)))
5271 (add-after 'install 'wrap-gedit
5272 (lambda* (#:key inputs outputs #:allow-other-keys)
5273 (let ((out (assoc-ref outputs "out"))
5274 (gtksourceview (assoc-ref inputs "gtksourceview"))
5275 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5276 (python-path (getenv "PYTHONPATH")))
5277 (wrap-program (string-append out "/bin/gedit")
5278 ;; For plugins.
5279 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
5280 `("PYTHONPATH" ":" prefix (,python-path))
5281 ;; For language-specs.
5282 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
5283 "/share")))))
5284 #t)))))
329d731b
DH
5285 (propagated-inputs
5286 `(("dconf" ,dconf)))
5287 (native-inputs
480c9226
KK
5288 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5289 ("intltool" ,intltool)
b3546174 5290 ("itstool" ,itstool)
480c9226 5291 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
329d731b 5292 ("gobject-introspection" ,gobject-introspection)
480c9226
KK
5293 ("libgd"
5294 ,(origin
5295 (method git-fetch)
5296 (uri (git-reference
5297 (url "https://gitlab.gnome.org/GNOME/libgd")
5298 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
5299 (file-name (git-file-name "libgd" version))
5300 (sha256
5301 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
329d731b
DH
5302 ("pkg-config" ,pkg-config)))
5303 (inputs
5304 `(("glib" ,glib)
0d2df50c 5305 ("gspell" ,gspell)
329d731b 5306 ("gtk+" ,gtk+)
480c9226 5307 ("gtksourceview" ,gtksourceview)
329d731b
DH
5308 ("libpeas" ,libpeas)
5309 ("libxml2" ,libxml2)
329d731b
DH
5310 ("iso-codes" ,iso-codes)
5311 ("python-pygobject" ,python-pygobject)
5312 ("python" ,python)
5313 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5314 ("libx11" ,libx11)
5315 ("vala" ,vala)
5316 ("adwaita-icon-theme" ,adwaita-icon-theme)
5317 ("libsoup" ,libsoup)
5318 ("gnome-desktop" ,gnome-desktop)))
5319 (home-page "https://wiki.gnome.org/Apps/Gedit")
5320 (synopsis "GNOME text editor")
5321 (description "While aiming at simplicity and ease of use, gedit is a
5322powerful general purpose text editor.")
5323 (license license:gpl2+)))
b7179363
SB
5324
5325(define-public zenity
5326 (package
5327 (name "zenity")
4f581bd0 5328 (version "3.32.0")
b7179363
SB
5329 (source (origin
5330 (method url-fetch)
5958df04 5331 (uri (string-append "mirror://gnome/sources/zenity/"
b7179363 5332 (version-major+minor version) "/"
5958df04 5333 "zenity-" version ".tar.xz"))
b7179363
SB
5334 (sha256
5335 (base32
4f581bd0 5336 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
b7179363
SB
5337 (build-system gnu-build-system)
5338 (native-inputs
b94a6ca0 5339 `(("gettext" ,gettext-minimal)
b7179363
SB
5340 ("itstool" ,itstool)
5341 ("pkg-config" ,pkg-config)))
5342 (inputs
5343 `(("libnotify" ,libnotify)
5344 ("webkitgtk" ,webkitgtk)))
5345 (synopsis "Display graphical dialog boxes from shell scripts")
f032d0be 5346 (home-page "https://www.gnome.org")
b7179363
SB
5347 (description
5348 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5349to display dialog boxes from the commandline and shell scripts.")
5350 (license license:lgpl2.0+)))
60c3627c
SB
5351
5352(define-public mutter
5353 (package
5354 (name "mutter")
edf43f68 5355 (version "3.32.2")
60c3627c 5356 (source (origin
86c44e72
KK
5357 (method url-fetch)
5358 (uri (string-append "mirror://gnome/sources/" name "/"
5359 (version-major+minor version) "/"
5360 name "-" version ".tar.xz"))
60c3627c
SB
5361 (sha256
5362 (base32
edf43f68 5363 "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva"))))
86c44e72
KK
5364 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5365 ;; versions of cogl and clutter. As a result, many of the inputs,
5366 ;; propagated-inputs, and configure flags used in cogl and clutter are
5367 ;; needed here as well.
edf43f68 5368 (build-system meson-build-system)
60c3627c 5369 (arguments
edf43f68
KK
5370 '(;; XXX: All mutter tests fail with the following error:
5371 ;; Settings schema 'org.gnome.mutter' is not installed
5372 #:tests? #f
5373 #:glib-or-gtk? #t
5374 #:configure-flags
5375 ;; Otherwise, the RUNPATH will lack the final path component.
5376 (list (string-append "-Dc_link_args=-Wl,-rpath="
5377 (assoc-ref %outputs "out") "/lib:"
5378 (assoc-ref %outputs "out") "/lib/mutter-4")
a88d5a0c
MW
5379
5380 ;; The following flags are needed for the bundled clutter
edf43f68 5381 (string-append "-Dxwayland_path="
d633f2f6
RH
5382 (assoc-ref %build-inputs "xorg-server-xwayland")
5383 "/bin/Xwayland")
5384
a88d5a0c 5385 ;; the remaining flags are needed for the bundled cogl
edf43f68 5386 (string-append "-Dopengl_libname="
a88d5a0c 5387 (assoc-ref %build-inputs "mesa")
f23052a6
DC
5388 "/lib/libGL.so"))
5389 #:phases
5390 (modify-phases %standard-phases
edf43f68
KK
5391 (add-after 'unpack 'disable-werror
5392 (lambda _
5393 ;; XXX: build fails with [-Werror]:
5394 ;; backends/meta-cursor-renderer.c:112:5: error:
5395 ;; implicit declaration of function ?roundf?
5396 (substitute* "meson.build"
5397 (("'-Werror=.*',") ""))
5398 #t))
86c44e72
KK
5399 ;; Replace references to systemd libraries to elogind references.
5400 (add-before 'configure 'use-elogind
5401 (lambda _
edf43f68 5402 (substitute* (list "meson.build"
86c44e72
KK
5403 "src/backends/native/meta-launcher.c"
5404 "src/core/main.c")
5405 (("systemd") "elogind"))
5406 #t)))))
60c3627c
SB
5407 (native-inputs
5408 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5409 ("gobject-introspection" ,gobject-introspection)
5410 ("intltool" ,intltool)
f23052a6 5411 ("pkg-config" ,pkg-config)
edf43f68 5412 ("xorg-server" ,xorg-server-for-tests)
f23052a6
DC
5413 ;; For git build
5414 ("autoconf" ,autoconf)
5415 ("automake" ,automake)
5416 ("libtool" ,libtool)))
60c3627c 5417 (propagated-inputs
a88d5a0c
MW
5418 `(;; libmutter.pc refers to these:
5419 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5420 ("gtk+" ,gtk+)
5421 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5422 ("atk" ,atk)
5423 ("cairo" ,cairo)
5424 ("gdk-pixbuf" ,gdk-pixbuf)
5425 ("glib" ,glib)
a88d5a0c
MW
5426 ("json-glib" ,json-glib)
5427 ("libinput" ,libinput)
5428 ("libx11" ,libx11)
5429 ("libxcomposite" ,libxcomposite)
5430 ("libxdamage" ,libxdamage)
5431 ("libxext" ,libxext)
5432 ("libxfixes" ,libxfixes)
5433 ("libxkbcommon" ,libxkbcommon)
5434 ("libxrandr" ,libxrandr)
5435 ("mesa" ,mesa)
5436 ("pango" ,pango)
5437 ("udev" ,eudev)
a88d5a0c 5438 ("xinput" ,xinput)))
60c3627c 5439 (inputs
86c44e72
KK
5440 `(("elogind" ,elogind)
5441 ("gnome-desktop" ,gnome-desktop)
edf43f68 5442 ("gnome-settings-daemon" ,gnome-settings-daemon)
60c3627c 5443 ("libcanberra-gtk" ,libcanberra)
a88d5a0c 5444 ("libgudev" ,libgudev)
60c3627c
SB
5445 ("libice" ,libice)
5446 ("libsm" ,libsm)
edf43f68 5447 ("libwacom" ,libwacom)
60c3627c 5448 ("libxkbfile" ,libxkbfile)
a88d5a0c 5449 ("libxrandr" ,libxrandr)
86c44e72 5450 ("libxtst" ,libxtst)
edf43f68 5451 ("pipewire" ,pipewire)
60c3627c
SB
5452 ("startup-notification" ,startup-notification)
5453 ("upower-glib" ,upower)
5454 ("xkeyboard-config" ,xkeyboard-config)
d633f2f6 5455 ("xorg-server-xwayland" ,xorg-server-xwayland)
60c3627c
SB
5456 ("zenity" ,zenity)))
5457 (synopsis "Window and compositing manager")
f032d0be 5458 (home-page "https://www.gnome.org")
60c3627c
SB
5459 (description
5460 "Mutter is a window and compositing manager that displays and manages your
5461desktop via OpenGL. Mutter combines a sophisticated display engine using the
5462Clutter toolkit with solid window-management logic inherited from the Metacity
5463window manager.")
86c44e72 5464 (license license:gpl2+)))
685cee87
SB
5465
5466(define-public gnome-online-accounts
5467 (package
5468 (name "gnome-online-accounts")
ebb2873d 5469 (version "3.32.0")
685cee87
SB
5470 (source (origin
5471 (method url-fetch)
5472 (uri (string-append "mirror://gnome/sources/" name "/"
5473 (version-major+minor version) "/"
5474 name "-" version ".tar.xz"))
5475 (sha256
5476 (base32
ebb2873d 5477 "1anlx0rb2hafg9929pgfms25mdz23sd0vdva06h6zlf8f5byc68w"))))
14c297fd 5478 (outputs '("out" "lib"))
685cee87 5479 (build-system glib-or-gtk-build-system)
14c297fd
TS
5480 (arguments
5481 `(#:configure-flags
5482 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5483 #:phases
5484 (modify-phases %standard-phases
5485 (add-before 'configure 'patch-libgoa-output
5486 (lambda* (#:key outputs #:allow-other-keys)
5487 (let ((lib (assoc-ref outputs "lib")))
5488 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5489 (("@prefix@") lib)
5490 (("@exec_prefix@") lib)
5491 (("@libdir@") (string-append lib "/lib"))
5492 (("@includedir@") (string-append lib "/include"))
5493 (("@datadir@") (string-append lib "/share")))
7555d539
MB
5494 ;; Make sure gobject-introspection knows about the output
5495 ;; too (see <https://bugs.gnu.org/36535>).
5496 (setenv "outputs" "out lib")
14c297fd 5497 #t))))))
685cee87
SB
5498 (native-inputs
5499 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5500 ("gobject-introspection" ,gobject-introspection)
5501 ("intltool" ,intltool)
5502 ("pkg-config" ,pkg-config)
ebb2873d 5503 ("vala" ,vala)
685cee87
SB
5504 ("xsltproc" ,libxslt)))
5505 (propagated-inputs
5506 `(("glib" ,glib) ; required by goa-1.0.pc
5507 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5508 (inputs
5509 `(("docbook-xsl" ,docbook-xsl)
5510 ("json-glib" ,json-glib)
5511 ("libsecret" ,libsecret)
5512 ("rest" ,rest)
685cee87
SB
5513 ("webkitgtk" ,webkitgtk)))
5514 (synopsis "Single sign-on framework for GNOME")
5515 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5516 (description
5517 "GNOME Online Accounts provides interfaces so that applications and
5518libraries in GNOME can access the user's online accounts. It has providers for
5519Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5520Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5521 (license license:lgpl2.0+)))
df217748
SB
5522
5523(define-public evolution-data-server
5524 (package
5525 (name "evolution-data-server")
2196a8d4 5526 (version "3.32.4")
df217748
SB
5527 (source (origin
5528 (method url-fetch)
5529 (uri (string-append "mirror://gnome/sources/" name "/"
5530 (version-major+minor version) "/"
5531 name "-" version ".tar.xz"))
e1f174ae 5532 (patches (search-patches "evolution-data-server-locales.patch"))
df217748
SB
5533 (sha256
5534 (base32
2196a8d4 5535 "0zsc9xwy6ixk3x0dx69ax5isrdw8qxjdxg2i5fr95s40nss7rxl3"))))
743aebd7 5536 (build-system cmake-build-system)
df217748 5537 (arguments
b468eedc
RW
5538 '(#:configure-flags
5539 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5540 (runpaths (map (lambda (s)
5541 (string-append lib "/evolution-data-server/" s))
ac033c7b
MB
5542 '("addressbook-backends" "calendar-backends"
5543 "camel-providers" "credential-modules"
5544 "registry-modules"))))
5545 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5546 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5547 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5548 "-DENABLE_VALA_BINDINGS=ON"
ac033c7b
MB
5549 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5550 (string-append lib "/evolution-data-server;")
5551 (string-join runpaths ";"))
5552 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
df217748
SB
5553 #:phases
5554 (modify-phases %standard-phases
b468eedc
RW
5555 (add-after 'unpack 'disable-failing-tests
5556 (lambda _
5557 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5558 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5559 (delete-file-recursively "tests/book-migration")
5560 (substitute* "tests/CMakeLists.txt"
5561 (("add_subdirectory\\(book-migration\\)") ""))
2196a8d4
KK
5562 ;; tests/libebook/client/test-book-client-view-operations:8077):
5563 ;; e-data-server-WARNING **:
5564 ;; (src/libedataserver/e-source-registry.c:264):thread_closure_free:
5565 ;; runtime check failed:
5566 ;; (!g_main_context_pending (closure->main_context))
5567 (substitute* "tests/libebook/client/CMakeLists.txt"
5568 (("test-book-client-view-operations") ""))
b468eedc 5569 #t))
743aebd7 5570 (add-after 'unpack 'patch-paths
df217748 5571 (lambda _
b468eedc
RW
5572 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5573 "tests/libedata-book/data-test-utils.c"
5574 "tests/libedata-book/test-book-cache-utils.c"
5575 "tests/libedata-cal/test-cal-cache-utils.c")
df217748 5576 (("/bin/rm") (which "rm")))
ac033c7b
MB
5577 #t))
5578 (add-before 'configure 'dont-override-rpath
5579 (lambda _
5580 (substitute* "CMakeLists.txt"
5581 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5582 ;; Remove it so the configure flag is respected.
5583 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
b63c06f1 5584 #t)))))
df217748
SB
5585 (native-inputs
5586 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5587 ("gobject-introspection" ,gobject-introspection)
5588 ("gperf" ,gperf)
5589 ("intltool" ,intltool)
5590 ("pkg-config" ,pkg-config)
a73c1cf8 5591 ("vala" ,vala)
743aebd7 5592 ("python" ,python-wrapper)))
df217748
SB
5593 (propagated-inputs
5594 ;; These are all in the Requires field of .pc files.
5595 `(("gtk+" ,gtk+)
5596 ("libical" ,libical)
5597 ("libsecret" ,libsecret)
5598 ("libsoup" ,libsoup)
5599 ("nss" ,nss)
5600 ("sqlite" ,sqlite)))
5601 (inputs
5602 `(("bdb" ,bdb)
5603 ("gcr" ,gcr)
14c297fd 5604 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
891199c6 5605 ("json-glib" ,json-glib)
b468eedc 5606 ("libcanberra" ,libcanberra)
743aebd7
MB
5607 ("libgweather" ,libgweather)
5608 ("mit-krb5" ,mit-krb5)
891199c6
MW
5609 ("openldap" ,openldap)
5610 ("webkitgtk" ,webkitgtk)))
df217748
SB
5611 (synopsis "Store address books and calendars")
5612 (home-page "https://wiki.gnome.org/Apps/Evolution")
5613 (description
5614 "This package provides a unified backend for programs that work with
5615contacts, tasks, and calendar information. It was originally developed for
5616Evolution (hence the name), but is now used by other packages as well.")
5617 (license license:lgpl2.0)))
bd7dfafa
SB
5618
5619(define-public caribou
5620 (package
5621 (name "caribou")
fe964bb5 5622 (version "0.4.21")
bd7dfafa
SB
5623 (source (origin
5624 (method url-fetch)
5625 (uri (string-append "mirror://gnome/sources/" name "/"
5626 (version-major+minor version) "/"
5627 name "-" version ".tar.xz"))
5628 (sha256
5629 (base32
fe964bb5 5630 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
bd7dfafa
SB
5631 (build-system glib-or-gtk-build-system)
5632 (arguments
5633 '(#:phases
5634 (modify-phases %standard-phases
5635 (add-before
5636 'build 'pre-build
5637 (lambda* (#:key outputs #:allow-other-keys)
5638 (let ((out (assoc-ref outputs "out")))
5639 ;; Use absolute shared library path in Caribou-1.0.typelib.
5640 (substitute* "libcaribou/Makefile"
5641 (("--shared-library=libcaribou.so")
5642 (string-append "--shared-library="
5643 out "/lib/libcaribou.so")))
5644 #t)))
5645 (add-after 'install 'wrap-programs
5646 (lambda* (#:key outputs #:allow-other-keys)
5647 (let* ((out (assoc-ref outputs "out"))
5648 (python-path (getenv "PYTHONPATH"))
5649 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5650 (for-each
5651 (lambda (prog)
5652 (wrap-program prog
5653 `("PYTHONPATH" ":" prefix (,python-path))
5654 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5655 (list (string-append out "/bin/caribou-preferences")
5656 (string-append out "/libexec/antler-keyboard"))))
5657 #t)))))
5658 (native-inputs
5659 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5660 ("gobject-introspection" ,gobject-introspection)
5661 ("intltool" ,intltool)
5662 ("pkg-config" ,pkg-config)
5663 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5664 ("vala" ,vala)
5665 ("xsltproc" ,libxslt)))
5666 (propagated-inputs
5667 ;; caribou-1.0.pc refers to all these.
5668 `(("libgee" ,libgee)
5669 ("libxklavier" ,libxklavier)
5670 ("libxtst" ,libxtst)
5671 ("gtk+" ,gtk+)))
5672 (inputs
5673 `(("clutter" ,clutter)
5674 ("dconf" ,dconf)
5675 ("gtk+-2" ,gtk+-2)
5676 ("python-pygobject" ,python2-pygobject)))
5677 (synopsis "Text entry and UI navigation application")
5678 (home-page "https://wiki.gnome.org/Projects/Caribou")
5679 (description
5680 "Caribou is an input assistive technology intended for switch and pointer
5681users.")
5682 (license license:lgpl2.1)))
ba5dd105 5683
ba5dd105
SB
5684(define-public network-manager
5685 (package
5686 (name "network-manager")
21ed1154 5687 (version "1.18.2")
ba5dd105
SB
5688 (source (origin
5689 (method url-fetch)
5690 (uri (string-append "mirror://gnome/sources/NetworkManager/"
5691 (version-major+minor version) "/"
5692 "NetworkManager-" version ".tar.xz"))
7d1861e2 5693 (patches (search-patches "nm-plugin-path.patch"))
ba5dd105
SB
5694 (sha256
5695 (base32
21ed1154 5696 "1hx5dx5dgdqh3p8fq7q1pxy2bx2iymc74lj60ycrf7ydfjlprnad"))
02710a9b 5697 (modules '((guix build utils)))
fd070f35 5698 (snippet
02710a9b
RW
5699 '(begin
5700 (substitute* "src/devices/wwan/nm-modem-manager.c"
5701 (("systemd") "elogind"))
5702 #t))))
ba5dd105
SB
5703 (build-system gnu-build-system)
5704 (outputs '("out"
5705 "doc")) ; 8 MiB of gtk-doc HTML
5706 (arguments
5707 '(#:configure-flags
5708 (let ((out (assoc-ref %outputs "out"))
5709 (doc (assoc-ref %outputs "doc"))
5710 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
5711 "/sbin/dhclient")))
02710a9b
RW
5712 (list "--with-libnm-glib" ; needed by network-manager-applet
5713 "--with-systemd-journal=no"
5714 "--with-session-tracking=elogind"
5715 "--with-suspend-resume=elogind"
fd070f35
CM
5716 "--with-consolekit=no"
5717 "--with-crypto=gnutls"
ba5dd105
SB
5718 "--disable-config-plugin-ibft"
5719 "--sysconfdir=/etc"
5720 "--localstatedir=/var"
5721 (string-append "--with-udev-dir="
5722 out "/lib/udev")
5723 (string-append "--with-dbus-sys-dir="
5724 out "/etc/dbus-1/system.d")
5725 (string-append "--with-html-dir="
5726 doc "/share/gtk-doc/html")
5727 (string-append "--with-dhclient=" dhclient)))
5728 #:phases
5729 (modify-phases %standard-phases
02710a9b
RW
5730 ;; This bare "ls" invocation breaks some tests.
5731 (add-after 'unpack 'patch-ls-invocation
5732 (lambda _
5733 (substitute* "build-aux/ltmain.sh"
5734 (("`ls -")
5735 (string-append "`" (which "ls") " -")))
5736 #t))
b4f59d87
AW
5737 (add-before 'configure 'pre-configure
5738 (lambda _
5739 ;; These tests try to test aspects of network-manager's
5740 ;; functionality within restricted containers, but they don't
5741 ;; cope with being already in the Guix build jail as that jail
5742 ;; lacks some features that they would like to proxy over (like
5743 ;; a /sys mount).
d04687dc
HG
5744 (substitute* '("Makefile.in")
5745 (("src/platform/tests/test-address-linux") " ")
5746 (("src/platform/tests/test-cleanup-linux") " ")
5747 (("src/platform/tests/test-link-linux") " ")
5748 (("src/platform/tests/test-route-linux") " ")
02710a9b 5749 (("src/devices/tests/test-acd") "")
d04687dc
HG
5750 (("src/devices/tests/test-arping") " ")
5751 (("src/devices/tests/test-lldp") " ")
5752 (("src/tests/test-route-manager-linux") " "))
b4f59d87 5753 #t))
45f80fce
RW
5754 (add-after 'unpack 'delete-failing-tests
5755 (lambda _
02710a9b 5756 ;; FIXME: These three tests fail for unknown reasons.
45f80fce
RW
5757 ;; ERROR:libnm-core/tests/test-general.c:5842:
5758 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
5759 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
5760 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
5761 ;; ERROR:libnm-core/tests/test-setting.c:907:
5762 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
45f80fce
RW
5763 (substitute* "Makefile.in"
5764 (("libnm-core/tests/test-general") " ")
5765 (("libnm-core/tests/test-keyfile") " ")
02710a9b 5766 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
45f80fce 5767 #t))
ba5dd105
SB
5768 (add-before 'check 'pre-check
5769 (lambda _
5770 ;; For the missing /etc/machine-id.
5771 (setenv "DBUS_FATAL_WARNINGS" "0")
5772 #t))
5773 (replace 'install
5774 (lambda _
45f80fce
RW
5775 (invoke "make"
5776 "sysconfdir=/tmp"
5777 "rundir=/tmp"
5778 "statedir=/tmp"
5779 "nmstatedir=/tmp/nm"
5780 "install")
5781 #t)))))
b93502d6
DC
5782 (propagated-inputs
5783 `(("glib" ,glib)))
ba5dd105
SB
5784 (native-inputs
5785 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
5786 ("gobject-introspection" ,gobject-introspection)
d04687dc 5787 ("docbook-xsl" ,docbook-xsl)
ba5dd105 5788 ("intltool" ,intltool)
d04687dc
HG
5789 ("libxslt" ,libxslt)
5790 ("libxml2" ,libxml2)
ba5dd105
SB
5791 ("pkg-config" ,pkg-config)
5792 ;; For testing.
5793 ("python" ,python-wrapper)
5794 ("python-dbus" ,python-dbus)
5795 ("python-pygobject" ,python-pygobject)))
5796 (inputs
02710a9b
RW
5797 `(("coreutils" ,coreutils) ; for ls
5798 ("curl" ,curl)
856ca567
KK
5799 ("cyrus-sasl" ,cyrus-sasl)
5800 ("dbus-glib" ,dbus-glib)
ba5dd105 5801 ("dnsmasq" ,dnsmasq)
856ca567 5802 ("eudev" ,eudev)
ba5dd105
SB
5803 ("gnutls" ,gnutls)
5804 ("iptables" ,iptables)
5805 ("isc-dhcp" ,isc-dhcp)
d04687dc 5806 ("jansson" ,jansson)
ba5dd105
SB
5807 ("libgcrypt" ,libgcrypt)
5808 ("libgudev" ,libgudev)
5809 ("libndp" ,libndp)
5810 ("libnl" ,libnl)
5811 ("libsoup" ,libsoup)
142bdcbc 5812 ("modem-manager" ,modem-manager)
c27e02bf 5813 ("newt" ,newt) ;for the 'nmtui' console interface
ba5dd105
SB
5814 ("polkit" ,polkit)
5815 ("ppp" ,ppp)
5816 ("readline" ,readline)
fd070f35
CM
5817 ("util-linux" ,util-linux)
5818 ("elogind" ,elogind)))
ba5dd105 5819 (synopsis "Network connection manager")
f032d0be 5820 (home-page "https://www.gnome.org/projects/NetworkManager/")
ba5dd105
SB
5821 (description
5822 "NetworkManager is a system network service that manages your network
5823devices and connections, attempting to keep active network connectivity when
5824available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
5825devices, and provides VPN integration with a variety of different VPN
5826services.")
29d2f451
LC
5827 (license license:gpl2+)
5828 (properties '((upstream-name . "NetworkManager")))))
4d62a9d3 5829
f2b96b3a
LC
5830(define-public network-manager-openvpn
5831 (package
5832 (name "network-manager-openvpn")
be1c4b07 5833 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
7d87eede 5834 (version "1.8.10")
f2b96b3a
LC
5835 (source (origin
5836 (method url-fetch)
5837 (uri (string-append
5838 "mirror://gnome/sources/NetworkManager-openvpn/"
5839 (version-major+minor version)
5840 "/NetworkManager-openvpn-" version ".tar.xz"))
5841 (sha256
5842 (base32
7d87eede 5843 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
f2b96b3a
LC
5844 (build-system gnu-build-system)
5845 (arguments
633422b0
JL
5846 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5847 #:phases
5848 (modify-phases %standard-phases
5849 (add-after 'configure 'patch-path
5850 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5851 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
5852 "/sbin/openvpn"))
5853 (modprobe (string-append (assoc-ref inputs "kmod")
5854 "/bin/modprobe"))
5855 (pretty-ovpn (string-append "\"" ovpn "\"")))
5856 (for-each
5857 (lambda (file)
5858 (substitute* file
5859 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
5860 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
5861 (("\"/sbin/openvpn\"") pretty-ovpn)
5862 (("/sbin/modprobe") modprobe)))
5863 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
5864 #t)))))
f2b96b3a
LC
5865 (native-inputs
5866 `(("pkg-config" ,pkg-config)
5867 ("intltool" ,intltool)))
5868 (inputs
5869 `(("gtk+" ,gtk+)
633422b0 5870 ("kmod" ,kmod)
f2b96b3a
LC
5871 ("openvpn" ,openvpn)
5872 ("network-manager" ,network-manager)
5873 ("network-manager-applet" ,network-manager-applet) ;for libnma
5874 ("libsecret" ,libsecret)))
5875 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5876 (synopsis "OpenVPN plug-in for NetworkManager")
5877 (description
5878 "This extension of NetworkManager allows it to take care of connections
5879to virtual private networks (VPNs) via OpenVPN.")
5880 (license license:gpl2+)
5881 (properties `((upstream-name . "NetworkManager-openvpn")))))
5882
d376129f
JL
5883(define-public network-manager-vpnc
5884 (package
5885 (name "network-manager-vpnc")
5886 (version "1.2.6")
5887 (source (origin
5888 (method url-fetch)
5889 (uri (string-append
5890 "mirror://gnome/sources/NetworkManager-vpnc/"
5891 (version-major+minor version)
5892 "/NetworkManager-vpnc-" version ".tar.xz"))
5893 (sha256
5894 (base32
5895 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
5896 (build-system gnu-build-system)
5897 (arguments
5898 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5899 #:phases
5900 (modify-phases %standard-phases
5901 (add-after 'configure 'patch-path
5902 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5903 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
5904 "/sbin/vpnc"))
5905 (modprobe (string-append (assoc-ref inputs "kmod")
5906 "/bin/modprobe"))
5907 (pretty-ovpn (string-append "\"" vpnc "\"")))
5908 (substitute* "src/nm-vpnc-service.c"
5909 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
5910 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
5911 (("\"/sbin/vpnc\"") pretty-ovpn)
5912 (("/sbin/modprobe") modprobe)))
5913 #t)))))
5914 (native-inputs
5915 `(("pkg-config" ,pkg-config)
5916 ("intltool" ,intltool)))
5917 (inputs
5918 `(("gtk+" ,gtk+)
5919 ("kmod" ,kmod)
5920 ("vpnc" ,vpnc)
5921 ("network-manager" ,network-manager)
5922 ("network-manager-applet" ,network-manager-applet) ;for libnma
5923 ("libsecret" ,libsecret)))
5924 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5925 (synopsis "VPNC plug-in for NetworkManager")
5926 (description
5927 "Support for configuring virtual private networks based on VPNC.
5928Compatible with Cisco VPN concentrators configured to use IPsec.")
5929 (license license:gpl2+)
5930 (properties `((upstream-name . "NetworkManager-vpnc")))))
5931
8378c87a
EF
5932(define-public network-manager-openconnect
5933 (package
5934 (name "network-manager-openconnect")
5935 (version "1.2.6")
5936 (source (origin
5937 (method url-fetch)
5938 (uri (string-append
5939 "mirror://gnome/sources/NetworkManager-openconnect/"
5940 (version-major+minor version)
5941 "/NetworkManager-openconnect-" version ".tar.xz"))
5942 (sha256
5943 (base32
5944 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
5945 (build-system gnu-build-system)
5946 (arguments
5947 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5948 #:phases
5949 (modify-phases %standard-phases
5950 (add-after 'configure 'patch-path
5951 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5952 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
5953 "/sbin/openconnect"))
5954 (modprobe (string-append (assoc-ref inputs "kmod")
5955 "/bin/modprobe"))
5956 (pretty-ovpn (string-append "\"" openconnect "\"")))
5957 (substitute* "src/nm-openconnect-service.c"
5958 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
5959 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
5960 (("/sbin/modprobe") modprobe)))
5961 #t)))))
5962 (native-inputs
5963 `(("intltool" ,intltool)
5964 ("network-manager-applet" ,network-manager-applet) ;for libnma
5965 ("pkg-config" ,pkg-config)))
5966 (inputs
5967 `(("gcr" ,gcr)
5968 ("gtk+" ,gtk+)
5969 ("kmod" ,kmod)
5970 ("libsecret" ,libsecret)
5971 ("libxml2" ,libxml2)
5972 ("network-manager" ,network-manager)
5973 ("openconnect" ,openconnect)))
5974 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5975 (synopsis "OpenConnect plug-in for NetworkManager")
5976 (description
5977 "This extension of NetworkManager allows it to take care of connections
5978to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
5979Cisco's AnyConnect SSL VPN.")
5980 (license license:gpl2+)
e52b9534
LC
5981 (properties `((upstream-name . "NetworkManager-openconnect")
5982
5983 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
5984 ;; file refers to account "nm-openconnect". Specify it here
5985 ;; so that 'network-manager-service-type' creates it.
5986 (user-accounts . ("nm-openconnect"))))))
8378c87a 5987
e5e1df4d
DC
5988(define-public mobile-broadband-provider-info
5989 (package
5990 (name "mobile-broadband-provider-info")
310c89e3 5991 (version "20190116")
e5e1df4d
DC
5992 (source (origin
5993 (method url-fetch)
5994 (uri (string-append
5995 "mirror://gnome/sources/"
5996 "mobile-broadband-provider-info/" version "/"
5997 "mobile-broadband-provider-info-" version ".tar.xz"))
5998 (sha256
5999 (base32
310c89e3 6000 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
e5e1df4d
DC
6001 (build-system gnu-build-system)
6002 (arguments
310c89e3 6003 `(#:tests? #f)) ; no tests
e5e1df4d
DC
6004 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
6005 (synopsis "Database of broadband connection configuration")
6006 (description "Database of broadband connection configuration.")
6007 (license license:public-domain)))
6008
4d62a9d3
SB
6009(define-public network-manager-applet
6010 (package
6011 (name "network-manager-applet")
8fc3a337 6012 (version "1.8.24")
4d62a9d3
SB
6013 (source (origin
6014 (method url-fetch)
3df63444 6015 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
4d62a9d3 6016 (version-major+minor version) "/"
3df63444 6017 "network-manager-applet-" version ".tar.xz"))
4d62a9d3
SB
6018 (sha256
6019 (base32
8fc3a337 6020 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
cd7f718e
RW
6021 (build-system meson-build-system)
6022 (arguments
be1c4b07
TGR
6023 '(#:configure-flags
6024 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
6025 (list "-Dlibnm_gtk=true")
6026 #:glib-or-gtk? #t))
4d62a9d3
SB
6027 (native-inputs
6028 `(("intltool" ,intltool)
cd7f718e 6029 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
4d62a9d3 6030 ("gobject-introspection" ,gobject-introspection)
cd7f718e 6031 ("gtk-doc" ,gtk-doc)
4d62a9d3
SB
6032 ("pkg-config" ,pkg-config)))
6033 (propagated-inputs
6034 ;; libnm-gtk.pc refers to all these.
6035 `(("dbus-glib" ,dbus-glib)
6036 ("gtk+" ,gtk+)
6037 ("network-manager" ,network-manager)))
6038 (inputs
cd7f718e
RW
6039 `(("gcr" ,gcr)
6040 ("iso-codes" ,iso-codes)
4d62a9d3
SB
6041 ("libgudev" ,libgudev)
6042 ("libnotify" ,libnotify)
2116bfb3 6043 ("libsecret" ,libsecret)
240cee8a
KK
6044 ("libselinux" ,libselinux)
6045 ("jansson" ,jansson) ; for team support
3e9c80b2
FP
6046 ("modem-manager" ,modem-manager)
6047 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
4d62a9d3 6048 (synopsis "Applet for managing network connections")
f032d0be 6049 (home-page "https://www.gnome.org/projects/NetworkManager/")
4d62a9d3
SB
6050 (description
6051 "This package contains a systray applet for NetworkManager. It displays
6052the available networks and allows users to easily switch between them.")
6053 (license license:gpl2+)))
56196594
RW
6054
6055(define-public libxml++
6056 (package
6057 (name "libxml++")
8344a85e 6058 (version "3.0.1")
56196594
RW
6059 (source (origin
6060 (method url-fetch)
6061 (uri (string-append "mirror://gnome/sources/" name "/"
6062 (version-major+minor version) "/"
6063 name "-" version ".tar.xz"))
6064 (sha256
6065 (base32
8344a85e 6066 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
56196594
RW
6067 (build-system gnu-build-system)
6068 ;; libxml++-3.0.pc refers to all these.
6069 (propagated-inputs
6070 `(("libxml2" ,libxml2)
6071 ("glibmm" ,glibmm)))
6072 (native-inputs
6073 `(("perl" ,perl)
6074 ("pkg-config" ,pkg-config)))
6075 (home-page "http://libxmlplusplus.sourceforge.net/")
6076 (synopsis "C++ wrapper for XML parser library libxml2")
6077 (description
6078 "This package provides a C++ wrapper for the XML parser library
6079libxml2.")
6080 (license license:lgpl2.1+)))
df12f04a 6081
b61d9627
AW
6082(define-public libxml++-2
6083 (package
6084 (inherit libxml++)
6085 (name "libxml++")
6086 (version "2.40.1")
6087 (source (origin
6088 (method url-fetch)
6089 (uri (string-append "mirror://gnome/sources/" name "/"
6090 (version-major+minor version) "/"
6091 name "-" version ".tar.xz"))
6092 (sha256
6093 (base32
6094 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
6095
df12f04a
SB
6096(define-public gdm
6097 (package
6098 (name "gdm")
bcca95dc 6099 (version "3.32.0")
df12f04a
SB
6100 (source (origin
6101 (method url-fetch)
6102 (uri (string-append "mirror://gnome/sources/" name "/"
6103 (version-major+minor version) "/"
6104 name "-" version ".tar.xz"))
6105 (sha256
6106 (base32
bcca95dc 6107 "12ypdz9i24hwbl1d1wnnxb8zlvfa4f49n9ac5cl9d6h8qp4b0gb4"))))
957dbc0a 6108 (build-system glib-or-gtk-build-system)
df12f04a
SB
6109 (arguments
6110 '(#:configure-flags
af37e6bb 6111 `("--without-plymouth"
957dbc0a 6112 "--disable-systemd-journal"
51bc8357
TS
6113
6114 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
6115 ;; instead of having to replace it (i.e., stopping the mingetty
6116 ;; service for TTY 1 before starting GDM).
6117 "--with-initial-vt=7"
6118
89c86562
TS
6119 ;; Use '/etc/environment' for locale settings instead of the
6120 ;; systemd-specific '/etc/locale.conf'.
6121 "--with-lang-file=/etc/environment"
6122
b74ef0ba
RW
6123 ,(string-append "--with-udevdir="
6124 (assoc-ref %outputs "out") "/lib/udev")
6125
af37e6bb
AW
6126 "--localstatedir=/var"
6127 ,(string-append "--with-default-path="
6128 (string-join '("/run/setuid-programs"
6129 "/run/current-system/profile/bin"
6130 "/run/current-system/profile/sbin")
957dbc0a
AW
6131 ":"))
6132 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
6133 ;; XDG_DATA_DIRS so that it finds its schemas.
6134 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
df12f04a
SB
6135 #:phases
6136 (modify-phases %standard-phases
6137 (add-before
6138 'configure 'pre-configure
e8c6e771 6139 (lambda* (#:key inputs outputs #:allow-other-keys)
df12f04a
SB
6140 ;; We don't have <systemd/sd-daemon.h>.
6141 (substitute* '("common/gdm-log.c"
6142 "daemon/gdm-server.c"
6143 "daemon/gdm-session-worker.c"
6144 "daemon/gdm-session-worker-job.c")
6145 (("#include <systemd/sd-daemon\\.h>") ""))
6146 ;; Use elogind for sd-login.
6147 (substitute* '("common/gdm-common.c"
6148 "daemon/gdm-manager.c"
6149 "libgdm/gdm-user-switching.c")
6150 (("#include <systemd/sd-login\\.h>")
6151 "#include <elogind/sd-login.h>"))
957dbc0a
AW
6152 ;; Check for elogind.
6153 (substitute* '("configure")
6154 (("libsystemd")
6155 "libelogind"))
af37e6bb
AW
6156 ;; Look for system-installed sessions in
6157 ;; /run/current-system/profile/share.
6158 (substitute* '("libgdm/gdm-sessions.c"
6159 "daemon/gdm-session.c"
6160 "daemon/gdm-display.c"
6161 "daemon/gdm-launch-environment.c")
6162 (("DATADIR \"/x")
6163 "\"/run/current-system/profile/share/x")
6164 (("DATADIR \"/wayland")
6165 "\"/run/current-system/profile/share/wayland")
6166 (("DATADIR \"/gnome")
6167 "\"/run/current-system/profile/share/gnome"))
c9ff92b5 6168 (let ((propagate '("GDM_CUSTOM_CONF"
1f564c15 6169 "GDM_DBUS_DAEMON"
c9ff92b5 6170 "GDM_X_SERVER"
41fa9f18 6171 "GDM_X_SESSION"
c9ff92b5
TS
6172 ;; XXX: Remove this once GNOME Shell is
6173 ;; a dependency of GDM.
6174 "XDG_DATA_DIRS")))
6175 (substitute* "daemon/gdm-session.c"
6176 (("set_up_session_environment \\(self\\);")
6177 (apply string-append
6178 "set_up_session_environment (self);\n"
6179 (map (lambda (name)
6180 (string-append
6181 "gdm_session_set_environment_variable "
6182 "(self, \"" name "\","
6183 "g_getenv (\"" name "\"));\n"))
6184 propagate)))))
a430a350
TS
6185 ;; Find the configuration file using an environment variable.
6186 (substitute* '("common/gdm-settings.c")
e0e6756f 6187 (("GDM_CUSTOM_CONF")
e57c2adb
TS
6188 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
6189 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
6190 " : GDM_CUSTOM_CONF)")))
e0e6756f
AW
6191 ;; Use service-supplied path to X.
6192 (substitute* '("daemon/gdm-server.c")
6193 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
6194 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
6195 (substitute* '("daemon/gdm-x-session.c")
1f564c15
TS
6196 (("\"dbus-daemon\"")
6197 "g_getenv (\"GDM_DBUS_DAEMON\")")
e0e6756f 6198 (("X_SERVER")
41fa9f18
TS
6199 "g_getenv (\"GDM_X_SERVER\")")
6200 (("GDMCONFDIR \"/Xsession\"")
6201 "g_getenv (\"GDM_X_SESSION\")"))
def6d6b6
TS
6202 ;; Use an absolute path for GNOME Session.
6203 (substitute* "daemon/gdm-launch-environment.c"
6204 (("\"gnome-session\"")
6205 (string-append "\"" (assoc-ref inputs "gnome-session")
6206 "/bin/gnome-session\"")))
e8c6e771
TS
6207 ;; Do not automatically select the placeholder session.
6208 (substitute* "daemon/gdm-session.c"
6209 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
6210 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
6211 "(g_strcmp0(search_dirs[i], \""
6212 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
6213 "\") == 0 && "
6214 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
6215 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
bcca95dc 6216 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
69544798 6217 #t))
8caa4589
TS
6218 ;; GDM requires that there be at least one desktop entry
6219 ;; file. This phase installs a hidden one that simply
6220 ;; fails. This enables users to use GDM with a
6221 ;; '~/.xsession' script with no other desktop entry files.
6222 ;; See <https://bugs.gnu.org/35068>.
6223 (add-after 'install 'install-placeholder-desktop-entry
6224 (lambda* (#:key inputs outputs #:allow-other-keys)
6225 (let* ((out (assoc-ref outputs "out"))
6226 (sessions (string-append out "/share/gdm/BuiltInSessions"))
6227 (fail (string-append sessions "/fail.desktop")))
6228 (mkdir-p sessions)
6229 (with-output-to-file fail
6230 (lambda ()
6231 (for-each
6232 display
6233 '("[Desktop Entry]\n"
6234 "Encoding=UTF-8\n"
6235 "Type=Application\n"
6236 "Name=Fail\n"
6237 "Comment=This session fails immediately.\n"
6238 "NoDisplay=true\n"
6239 "Exec=false\n"))))
6240 #t)))
69544798
TS
6241 ;; GDM needs GNOME Session to run these applications. We link
6242 ;; their autostart files in `share/gdm/greeter/autostart'
6243 ;; because GDM explicitly tells GNOME Session to look there.
6244 ;;
6245 ;; XXX: GNOME Shell should be linked here too, but currently
6246 ;; GNOME Shell depends on GDM.
6247 (add-after 'install 'link-autostart-files
6248 (lambda* (#:key inputs outputs #:allow-other-keys)
6249 (let* ((out (assoc-ref outputs "out"))
6250 (autostart (string-append out "/share/gdm/"
6251 "greeter/autostart"))
6252 (settings (assoc-ref inputs "gnome-settings-daemon")))
6253 (mkdir-p autostart)
6254 (with-directory-excursion autostart
6255 (for-each (lambda (desktop)
6256 (symlink desktop (basename desktop)))
6257 (find-files (string-append settings "/etc/xdg"))))
6258 #t))))))
df12f04a
SB
6259 (native-inputs
6260 `(("dconf" ,dconf)
6261 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6262 ("gobject-introspection" ,gobject-introspection)
6263 ("intltool" ,intltool)
6264 ("itstool" ,itstool)
6265 ("pkg-config" ,pkg-config)
6266 ("xmllint" ,libxml2)))
6267 (inputs
6268 `(("accountsservice" ,accountsservice)
6269 ("check" ,check) ; for testing
6270 ("elogind" ,elogind)
def6d6b6 6271 ("gnome-session" ,gnome-session)
69544798 6272 ("gnome-settings-daemon" ,gnome-settings-daemon)
df12f04a
SB
6273 ("gtk+" ,gtk+)
6274 ("iso-codes" ,iso-codes)
6275 ("libcanberra" ,libcanberra)
6276 ("linux-pam" ,linux-pam)))
6277 (synopsis "Display manager for GNOME")
f032d0be 6278 (home-page "https://wiki.gnome.org/Projects/GDM/")
df12f04a
SB
6279 (description
6280 "GNOME Display Manager is a system service that is responsible for
6281providing graphical log-ins and managing local and remote displays.")
6282 (license license:gpl2+)))
8e1dd04f
SB
6283
6284(define-public libgtop
6285 (package
6286 (name "libgtop")
015fc036 6287 (version "2.40.0")
8e1dd04f
SB
6288 (source (origin
6289 (method url-fetch)
59487fc2 6290 (uri (string-append "mirror://gnome/sources/libgtop/"
8e1dd04f 6291 (version-major+minor version) "/"
59487fc2 6292 "libgtop-" version ".tar.xz"))
8e1dd04f
SB
6293 (sha256
6294 (base32
015fc036 6295 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8e1dd04f
SB
6296 (build-system gnu-build-system)
6297 (native-inputs
6298 `(("gobject-introspection" ,gobject-introspection)
6299 ("intltool" ,intltool)
6300 ("perl" ,perl)
6301 ("pkg-config" ,pkg-config)))
6302 (propagated-inputs
6303 `(("glib" ,glib))) ; required by libgtop-2.0.pc
6304 (synopsis "Portable system access library")
6305 (home-page "https://www.gnome.org/")
6306 (description
6307 "LibGTop is a library to get system specific data such as CPU and memory
6308usage and information about running processes.")
6309 (license license:gpl2+)))
b96c4260
SB
6310
6311(define-public gnome-bluetooth
6312 (package
6313 (name "gnome-bluetooth")
723afae6 6314 (version "3.32.1")
b96c4260
SB
6315 (source (origin
6316 (method url-fetch)
6317 (uri (string-append "mirror://gnome/sources/" name "/"
6318 (version-major+minor version) "/"
6319 name "-" version ".tar.xz"))
6320 (sha256
6321 (base32
723afae6 6322 "1am1gf0nzwg6x1s8ly13j0xnjzgrfj06j0dp52x4zy9s67ywlhb4"))))
fd3b1171 6323 (build-system meson-build-system)
b96c4260
SB
6324 (native-inputs
6325 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
fd3b1171 6326 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
b96c4260
SB
6327 ("gobject-introspection" ,gobject-introspection)
6328 ("intltool" ,intltool)
6329 ("pkg-config" ,pkg-config)
6330 ("xmllint" ,libxml2)))
6331 (propagated-inputs
6332 ;; gnome-bluetooth-1.0.pc refers to all these.
723afae6
KK
6333 `(("glib" ,glib)
6334 ("gtk+" ,gtk+)))
b96c4260 6335 (inputs
723afae6
KK
6336 `(("eudev" ,eudev)
6337 ("libcanberra" ,libcanberra)
b96c4260
SB
6338 ("libnotify" ,libnotify)))
6339 (synopsis "GNOME Bluetooth subsystem")
6340 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
6341 (description
6342 "This package contains tools for managing and manipulating Bluetooth
6343devices using the GNOME desktop.")
6344 (license license:lgpl2.1+)))
b645146f
SB
6345
6346(define-public gnome-control-center
6347 (package
6348 (name "gnome-control-center")
a6938bac 6349 (version "3.32.2")
b645146f
SB
6350 (source (origin
6351 (method url-fetch)
6352 (uri (string-append "mirror://gnome/sources/" name "/"
6353 (version-major+minor version) "/"
6354 name "-" version ".tar.xz"))
6355 (sha256
6356 (base32
a6938bac 6357 "03np0mhfl9kkdw4cb711pda0cli9zgh2bq2gqn2zwbdi3qnhk9gs"))))
59dac026 6358 (build-system meson-build-system)
b645146f 6359 (arguments
59dac026
RW
6360 '(#:glib-or-gtk? #t
6361 #:configure-flags
64c70430
KK
6362 (list "-Dcheese=false"
6363 (string-append "-Dgnome_session_libexecdir="
6364 (assoc-ref %build-inputs "gnome-session")
6365 "/libexec"))
59dac026 6366 #:phases
b645146f
SB
6367 (modify-phases %standard-phases
6368 (add-before 'configure 'patch-paths
6369 (lambda* (#:key inputs #:allow-other-keys)
6370 (let ((libc (assoc-ref inputs "libc"))
1df38cfc 6371 (tzdata (assoc-ref inputs "tzdata"))
341225ac 6372 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
64c70430
KK
6373 (nm-applet (assoc-ref inputs "network-manager-applet"))
6374 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
b645146f
SB
6375 (substitute* "panels/datetime/tz.h"
6376 (("/usr/share/zoneinfo/zone.tab")
6377 (string-append tzdata "/share/zoneinfo/zone.tab")))
982c0b36 6378 (substitute* "tests/datetime/test-endianess.c"
b645146f
SB
6379 (("/usr/share/locale")
6380 (string-append libc "/share/locale")))
1df38cfc
LC
6381 (substitute* "panels/region/cc-region-panel.c"
6382 (("\"gkbd-keyboard-display")
6383 (string-append "\"" libgnomekbd
6384 "/bin/gkbd-keyboard-display")))
341225ac
LC
6385 (substitute* '("panels/network/net-device-wifi.c"
6386 "panels/network/net-device.c"
6387 "panels/network/connection-editor/net-connection-editor.c")
6388 (("\"nm-connection-editor")
6389 (string-append "\"" nm-applet
6390 "/bin/nm-connection-editor")))
1acd107c
FP
6391 (substitute* '("panels/user-accounts/run-passwd.c")
6392 (("/usr/bin/passwd")
6393 "/run/setuid-programs/passwd"))
64c70430
KK
6394 (substitute* "panels/info/cc-info-overview-panel.c"
6395 (("DATADIR \"/gnome/gnome-version.xml\"")
6396 (string-append "\"" gnome-desktop
6397 "/share/gnome/gnome-version.xml\"")))
b645146f
SB
6398 #t))))))
6399 (native-inputs
6400 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
59dac026 6401 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
b645146f
SB
6402 ("intltool" ,intltool)
6403 ("pkg-config" ,pkg-config)
a6938bac
KK
6404 ("xsltproc" ,libxslt)
6405 ;; For tests
6406 ("hicolor-icon-theme" ,hicolor-icon-theme)
6407 ("python-dbusmock" ,python-dbusmock)
6408 ("xorg-server" ,xorg-server-for-tests)))
b645146f
SB
6409 (inputs
6410 `(("accountsservice" ,accountsservice)
6411 ("clutter-gtk" ,clutter-gtk)
6412 ("colord-gtk" ,colord-gtk)
6413 ("cups" ,cups)
6414 ("dconf" ,dconf)
6415 ("docbook-xsl" ,docbook-xsl)
3446ffb5 6416 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
b645146f
SB
6417 ("gnome-bluetooth" ,gnome-bluetooth)
6418 ("gnome-desktop" ,gnome-desktop)
6419 ("gnome-online-accounts" ,gnome-online-accounts)
14c297fd 6420 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
64c70430 6421 ("gnome-session" ,gnome-session)
b645146f
SB
6422 ("gnome-settings-daemon" ,gnome-settings-daemon)
6423 ("grilo" ,grilo)
a6938bac 6424 ("gsound" ,gsound)
b645146f
SB
6425 ("ibus" ,ibus)
6426 ("libcanberra" ,libcanberra)
1df38cfc 6427 ("libgnomekbd" ,libgnomekbd)
b645146f
SB
6428 ("libgudev" ,libgudev)
6429 ("libgtop" ,libgtop)
6430 ("libpwquality" ,libpwquality)
982c0b36 6431 ("libsecret" ,libsecret)
b645146f
SB
6432 ("libsoup" ,libsoup)
6433 ("libxml2" ,libxml2)
6434 ("libwacom" ,libwacom)
6435 ("mesa" ,mesa)
6436 ("mit-krb5" ,mit-krb5)
6437 ("modem-manager" ,modem-manager)
6438 ("network-manager-applet" ,network-manager-applet)
6439 ("polkit" ,polkit)
6440 ("pulseaudio" ,pulseaudio)
6441 ("smbclient" ,samba)
6442 ("tzdata" ,tzdata)
982c0b36 6443 ("udisks" ,udisks)
b645146f
SB
6444 ("upower" ,upower)))
6445 (synopsis "Utilities to configure the GNOME desktop")
6446 (home-page "https://www.gnome.org/")
6447 (description
6448 "This package contains configuration applets for the GNOME desktop,
6449allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6450properties, sound setup, desktop theme and background, user interface
6451properties, screen resolution, and other GNOME parameters.")
6452 (license license:gpl2+)))
a4df5756
SB
6453
6454(define-public gnome-shell
6455 (package
6456 (name "gnome-shell")
d5e615ca 6457 (version "3.32.2")
a4df5756
SB
6458 (source (origin
6459 (method url-fetch)
6460 (uri (string-append "mirror://gnome/sources/" name "/"
6461 (version-major+minor version) "/"
6462 name "-" version ".tar.xz"))
6463 (sha256
6464 (base32
d5e615ca 6465 "0anlkdnqsp5fqvmg95rqjpp1ifcx5xzsvwcrdsvb1cqzbh6inmp5"))
a76d0f03
LC
6466 (patches (search-patches "gnome-shell-theme.patch"))
6467 (modules '((guix build utils)))
6468 (snippet
6469 #~(begin
a76d0f03
LC
6470 ;; Copy images for use on the GDM log-in screen.
6471 (copy-file #$(file-append %artwork-repository
6472 "/slim/0.x/background.png")
6473 "data/theme/guix-background.png")
45fef894
LC
6474 (copy-file #$(file-append %artwork-repository
6475 "/logo/Guix-horizontal-white.svg")
6476 "data/theme/guix-logo.svg")
a76d0f03 6477 #t))))
2b0c755d 6478 (build-system meson-build-system)
a4df5756 6479 (arguments
08185081
MB
6480 `(#:glib-or-gtk? #t
6481 #:disallowed-references ((,glib "bin")
11e1df56
LC
6482 ,inkscape ,libxslt
6483 ,ruby-sass)
2b0c755d
RW
6484 #:configure-flags
6485 (list "-Dsystemd=false"
6486 ;; Otherwise, the RUNPATH will lack the final path component.
6487 (string-append "-Dc_link_args=-Wl,-rpath="
6488 (assoc-ref %outputs "out")
6489 "/lib/gnome-shell"))
11e1df56 6490
08185081 6491 #:modules ((guix build meson-build-system)
11e1df56
LC
6492 (guix build utils)
6493 (srfi srfi-1))
6494
2b0c755d 6495 #:phases
a4df5756 6496 (modify-phases %standard-phases
2b0c755d 6497 (add-after 'unpack 'fix-keysdir
a4df5756
SB
6498 (lambda* (#:key outputs #:allow-other-keys)
6499 (let* ((out (assoc-ref outputs "out"))
6500 (keysdir (string-append
6501 out "/share/gnome-control-center/keybindings")))
2b0c755d
RW
6502 (substitute* "meson.build"
6503 (("keysdir =.*")
6504 (string-append "keysdir = '" keysdir "'\n")))
6505 #t)))
ebfe259f
MB
6506 (add-before 'configure 'convert-logo-to-png
6507 (lambda* (#:key inputs #:allow-other-keys)
6508 ;; Convert the logo from SVG to PNG.
6509 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6510 "data/theme/guix-logo.svg")))
ba00235a 6511 (add-before 'configure 'record-absolute-file-names
2472cdec
LC
6512 (lambda* (#:key inputs #:allow-other-keys)
6513 (substitute* "js/misc/ibusManager.js"
6514 (("'ibus-daemon'")
6515 (string-append "'" (assoc-ref inputs "ibus")
6516 "/bin/ibus-daemon'")))
d6fda4d3
LC
6517 (substitute* "js/ui/status/keyboard.js"
6518 (("'gkbd-keyboard-display'")
6519 (string-append "'" (assoc-ref inputs "libgnomekbd")
6520 "/bin/gkbd-keyboard-display'")))
2472cdec 6521 #t))
2b0c755d
RW
6522 (add-before 'check 'pre-check
6523 (lambda* (#:key inputs #:allow-other-keys)
6524 ;; Tests require a running X server.
6525 (system "Xvfb :1 &")
6526 (setenv "DISPLAY" ":1")
6527 #t))
6528 (add-after 'install 'wrap-programs
6529 (lambda* (#:key inputs outputs #:allow-other-keys)
6530 (let ((out (assoc-ref outputs "out"))
6531 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6532 (python-path (getenv "PYTHONPATH")))
6533 (wrap-program (string-append out "/bin/gnome-shell")
6534 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6535 ;; FIXME: gnome-shell loads these libraries with unqualified
6536 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6537 ;; alternative might be to patch gnome-shell.
6538 `("LD_LIBRARY_PATH" ":" prefix
6539 ,(map (lambda (pkg)
6540 (string-append (assoc-ref inputs pkg) "/lib"))
cd8dce8a
RW
6541 '("gdk-pixbuf"
6542 "gnome-bluetooth" "librsvg" "libgweather"))))
2b0c755d
RW
6543 (for-each
6544 (lambda (prog)
6545 (wrap-program (string-append out "/bin/" prog)
6546 `("PYTHONPATH" ":" prefix (,python-path))
6547 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6548 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
08185081 6549 #t)))
11e1df56
LC
6550 (replace 'glib-or-gtk-wrap
6551 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6552 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6553 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6554 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6555 ;; phase. Fix that since we don't need these.
6556 (wrap #:inputs (fold alist-delete inputs
6557 '("inkscape" "intltool" "glib:bin"))
6558 #:outputs outputs)))))))
a4df5756
SB
6559 (native-inputs
6560 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2b0c755d 6561 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
a4df5756 6562 ("gobject-introspection" ,gobject-introspection)
ebfe259f 6563 ("inkscape" ,inkscape)
a4df5756
SB
6564 ("intltool" ,intltool)
6565 ("pkg-config" ,pkg-config)
6566 ("python" ,python)
2b0c755d
RW
6567 ("ruby-sass" ,ruby-sass)
6568 ("sassc" ,sassc)
a76d0f03 6569 ("xsltproc" ,libxslt)
2b0c755d 6570 ;; For tests
0b4504f6 6571 ("xorg-server" ,xorg-server-for-tests)))
a4df5756
SB
6572 (inputs
6573 `(("accountsservice" ,accountsservice)
6574 ("caribou" ,caribou)
6575 ("docbook-xsl" ,docbook-xsl)
6576 ("evolution-data-server" ,evolution-data-server)
6577 ("gcr" ,gcr)
6578 ("gdm" ,gdm)
c5db31d4 6579 ("gdk-pixbuf" ,gdk-pixbuf+svg)
a4df5756
SB
6580 ("gjs" ,gjs)
6581 ("gnome-bluetooth" ,gnome-bluetooth)
a4df5756
SB
6582 ("gnome-desktop" ,gnome-desktop)
6583 ("gnome-settings-daemon" ,gnome-settings-daemon)
6584 ("gst-plugins-base" ,gst-plugins-base)
6585 ("ibus" ,ibus)
6586 ("libcanberra" ,libcanberra)
6587 ("libcroco" ,libcroco)
d6fda4d3 6588 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
a4df5756
SB
6589 ("libgweather" ,libgweather)
6590 ("libsoup" ,libsoup)
6591 ("mesa-headers" ,mesa-headers)
6592 ("mutter" ,mutter)
6593 ("network-manager-applet" ,network-manager-applet)
6594 ("polkit" ,polkit)
6595 ("pulseaudio" ,pulseaudio)
6596 ("python-pygobject" ,python-pygobject)
6597 ("startup-notification" ,startup-notification)
6598 ("telepathy-logger" ,telepathy-logger)
6599 ("upower" ,upower)
30e760f0
MB
6600 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6601 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6602 ("librsvg" ,librsvg)
2b0c755d 6603 ("geoclue" ,geoclue)))
a4df5756
SB
6604 (synopsis "Desktop shell for GNOME")
6605 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6606 (description
6607 "GNOME Shell provides core user interface functions for the GNOME desktop,
6608like switching to windows and launching applications.")
6609 (license license:gpl2+)))
c3f29bc9
RS
6610
6611(define-public gtk-vnc
6612 (package
6613 (name "gtk-vnc")
965ff023 6614 (version "0.9.0")
c3f29bc9
RS
6615 (source
6616 (origin
6617 (method url-fetch)
6618 (uri (string-append "mirror://gnome/sources/" name "/"
6619 (version-major+minor version) "/"
6620 name "-" version ".tar.xz"))
6621 (sha256
6622 (base32
965ff023 6623 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
c3f29bc9
RS
6624 (build-system gnu-build-system)
6625 (arguments
6626 '(#:configure-flags '("--with-gtk=3.0")))
6627 (propagated-inputs
6628 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6629 (inputs
6630 `(("cyrus-sasl" ,cyrus-sasl)
6631 ("gnutls" ,gnutls)
6632 ("libgcrypt" ,libgcrypt)
6633 ("pulseaudio" ,pulseaudio)))
6634 (native-inputs
6635 `(("glib:bin" ,glib "bin")
6636 ("gobject-introspection" ,gobject-introspection)
6637 ("intltool" ,intltool)
6638 ("pkg-config" ,pkg-config)
2f17e939 6639 ("python-wrapper" ,python-wrapper)
c3f29bc9
RS
6640 ("vala" ,vala)))
6641 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6642 (synopsis "VNC viewer widget for GTK+")
6643 (description
6644 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6645applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6646GTK-VNC implements client side RFB protocol and authentication extensions such
6647as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6648 (license license:lgpl2.1+)))
8b877545 6649
dc69fe18
MW
6650(define-public gnome-autoar
6651 (package
6652 (name "gnome-autoar")
c7da8510 6653 (version "0.2.3")
dc69fe18
MW
6654 (source (origin
6655 (method url-fetch)
6656 (uri (string-append "mirror://gnome/sources/" name "/"
6657 (version-major+minor version) "/"
6658 name "-" version ".tar.xz"))
6659 (sha256
6660 (base32
c7da8510 6661 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
dc69fe18
MW
6662 (build-system glib-or-gtk-build-system)
6663 (native-inputs
6664 `(("gnome-common" ,gnome-common)
6665 ("gobject-introspection" ,gobject-introspection)
6666 ("pkg-config" ,pkg-config)))
6667 (propagated-inputs
6668 `(("libarchive" ,libarchive))) ; XXX document why
6669 (inputs
0a6e9e13 6670 `(("gtk+" ,gtk+)))
dc69fe18
MW
6671 (synopsis "Archives integration support for GNOME")
6672 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6673 (description
6674 "GNOME Autoar is a library which makes creating and extracting archives
6675easy, safe, and automatic.")
6676 (license license:lgpl2.1+)))
6677
b64e217f
MW
6678(define-public tracker
6679 (package
6680 (name "tracker")
5ada561c 6681 (version "2.2.2")
b64e217f
MW
6682 (source (origin
6683 (method url-fetch)
b5b0fd23 6684 (uri (string-append "mirror://gnome/sources/tracker/"
b64e217f 6685 (version-major+minor version) "/"
b5b0fd23 6686 "tracker-" version ".tar.xz"))
b64e217f
MW
6687 (sha256
6688 (base32
5ada561c
KK
6689 "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6"))))
6690 (build-system meson-build-system)
c8bdf589 6691 (arguments
5ada561c
KK
6692 `(#:glib-or-gtk? #t
6693 #:configure-flags
6694 ;; Otherwise, the RUNPATH will lack the final path component.
6695 (list (string-append "-Dc_link_args=-Wl,-rpath="
6696 (assoc-ref %outputs "out") "/lib:"
6697 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
6698 #:phases
c8bdf589
RW
6699 (modify-phases %standard-phases
6700 (add-after 'unpack 'disable-broken-tests
6701 (lambda _
c8bdf589
RW
6702 ;; These fail because the SPARQL backend could not be loaded.
6703 ;; That's because /etc/machine-id is missing, but
6704 ;; DBUS_FATAL_WARNINGS does not help here.
5ada561c
KK
6705 (substitute* "tests/libtracker-sparql/meson.build"
6706 (("'sparql',") ""))
6707 (substitute* "tests/tracker-steroids/meson.build"
6708 (("test\\(.*") ""))
c8bdf589
RW
6709 #t))
6710 ;; Two tests fail if LANG is not set.
6711 (add-before 'check 'pre-check
6712 (lambda _
6713 (setenv "LANG" "en_US.UTF-8")
6714 ;; For the missing /etc/machine-id.
6715 (setenv "DBUS_FATAL_WARNINGS" "0")
6716 #t)))))
b64e217f 6717 (native-inputs
5ada561c
KK
6718 `(("glib:bin" ,glib "bin")
6719 ("gnome-common" ,gnome-common)
b64e217f 6720 ("gobject-introspection" ,gobject-introspection)
5ada561c 6721 ("python-pygobject" ,python-pygobject)
b64e217f
MW
6722 ("intltool" ,intltool)
6723 ("pkg-config" ,pkg-config)
6724 ("vala" ,vala)))
6725 (inputs
6726 `(("gtk+" ,gtk+)
6727 ("dbus" ,dbus)
44ed6284 6728 ("sqlite" ,sqlite)
c8bdf589 6729 ("python" ,python)
b64e217f 6730 ("poppler" ,poppler)
b64e217f
MW
6731 ("libpng" ,libpng)
6732 ("libtiff" ,libtiff)
b64e217f 6733 ("zlib" ,zlib)
b64e217f 6734 ("libxml2" ,libxml2)
b64e217f 6735 ("libunistring" ,libunistring)
0ef48cd9 6736 ("json-glib" ,json-glib)
b64e217f 6737 ("openjpeg" ,openjpeg-1)
b64e217f 6738 ("libseccomp" ,libseccomp)
0ef48cd9 6739 ("libsoup" ,libsoup)
5ada561c
KK
6740 ("libuuid" ,util-linux)
6741 ("network-manager" ,network-manager)))
b64e217f
MW
6742 (synopsis "Metadata database, indexer and search tool")
6743 (home-page "https://wiki.gnome.org/Projects/Tracker")
6744 (description
6745 "Tracker is an advanced framework for first class objects with associated
6746metadata and tags. It provides a one stop solution for all metadata, tags,
6747shared object databases, search tools and indexing.")
6748 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6749 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6750 (license (list license:gpl2+
6751 license:lgpl2.1+
6752 license:lgpl2.0+))))
6753
03be9874
KK
6754(define-public tracker-miners
6755 (package
6756 (name "tracker-miners")
6757 (version "2.2.2")
6758 (source (origin
6759 (method url-fetch)
6760 (uri (string-append "mirror://gnome/sources/tracker-miners/"
6761 (version-major+minor version)
6762 "/tracker-miners-" version ".tar.xz"))
6763 (sha256
6764 (base32
6765 "0kk5xaajamb8jlm6cfdbc2m3axzr6bnph84m7697xmb0pkg8hdiw"))))
6766 (build-system meson-build-system)
6767 (arguments
6768 `(#:glib-or-gtk? #t
6769 #:configure-flags
6770 (list "-Dminer_rss=false" ; libgrss is required.
6771 ;; Ensure the RUNPATH contains all installed library locations.
6772 (string-append "-Dc_link_args=-Wl,-rpath="
6773 (assoc-ref %outputs "out")
6774 "/lib/tracker-miners-2.0")
6775 ;; TODO: Enable functional tests. Currently, the following error
6776 ;; appears:
6777 ;; Exception: The functional tests require DConf to be the default
6778 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
6779 "-Dfunctional_tests=false")))
6780 (native-inputs
6781 `(("dbus" ,dbus)
6782 ("intltool" ,intltool)
6783 ("glib:bin" ,glib "bin")
6784 ("gobject-introspection" ,gobject-introspection)
6785 ("pkg-config" ,pkg-config)
6786 ("python-pygobject" ,python-pygobject)))
6787 (inputs
6788 `(("exempi" ,exempi)
6789 ("ffmpeg" ,ffmpeg)
6790 ("flac" ,flac)
6791 ("giflib" ,giflib)
6792 ("glib" ,glib)
6793 ("gstreamer" ,gstreamer)
6794 ("icu4c" ,icu4c)
6795 ("libcue" ,libcue)
6796 ("libexif" ,libexif)
6797 ("libgsf" ,libgsf)
6798 ("libgxps" ,libgxps)
6799 ("libiptcdata" ,libiptcdata)
6800 ("libjpeg" ,libjpeg)
6801 ("libosinfo" ,libosinfo)
6802 ("libpng" ,libpng)
6803 ("libseccomp" ,libseccomp)
6804 ("libtiff" ,libtiff)
6805 ("libvorbis" ,libvorbis)
6806 ("libxml2" ,libxml2)
6807 ("poppler" ,poppler)
6808 ("taglib" ,taglib)
6809 ("totem-pl-parser" ,totem-pl-parser)
6810 ("tracker" ,tracker)
6811 ("upower" ,upower)
6812 ("zlib" ,zlib)))
6813 (synopsis "Metadata database, indexer and search tool")
6814 (home-page "https://wiki.gnome.org/Projects/Tracker")
6815 (description
6816 "Tracker is an advanced framework for first class objects with associated
6817metadata and tags. It provides a one stop solution for all metadata, tags,
6818shared object databases, search tools and indexing.")
6819 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6820 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6821 (license (list license:gpl2+
6822 license:lgpl2.1+
6823 license:lgpl2.0+))))
6824
8b877545
RS
6825(define-public nautilus
6826 (package
6827 (name "nautilus")
3cafb9d4 6828 (version "3.32.1")
8b877545
RS
6829 (source (origin
6830 (method url-fetch)
6831 (uri (string-append "mirror://gnome/sources/" name "/"
6832 (version-major+minor version) "/"
6833 name "-" version ".tar.xz"))
6834 (sha256
6835 (base32
3cafb9d4 6836 "0vmrvimv4183l3ij4kv0ir2c9rfzk7gh3xc2pa4wkqq9kn7h6m7s"))))
35e2d0cf 6837 (build-system meson-build-system)
8b877545 6838 (arguments
35e2d0cf 6839 '(#:glib-or-gtk? #t
8b877545
RS
6840 ;; XXX: FAIL: check-nautilus
6841 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6842 #:tests? #f))
6843 (native-inputs
35e2d0cf
R
6844 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6845 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6846 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8b877545
RS
6847 ("gobject-introspection" ,gobject-introspection)
6848 ("intltool" ,intltool)
6849 ("pkg-config" ,pkg-config)))
8b877545 6850 (inputs
8b877545 6851 `(("dconf" ,dconf)
caf6c363 6852 ("gexiv2" ,gexiv2)
dd05e731 6853 ("gvfs" ,gvfs)
8b877545
RS
6854 ("exempi" ,exempi)
6855 ("gnome-desktop" ,gnome-desktop)
09d88905 6856 ("gnome-autoar" ,gnome-autoar)
3cafb9d4 6857 ("gst-plugins-base" ,gst-plugins-base)
ec66ebd4 6858 ("libseccomp" ,libseccomp)
35e2d0cf 6859 ("libselinux" ,libselinux)
09d88905 6860 ("tracker" ,tracker)
3cafb9d4 6861 ("tracker-miners" ,tracker-miners)
ce6027bf
SB
6862 ;; XXX: gtk+ is required by libnautilus-extension.pc
6863 ;;
6864 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6865 ;; package. See:
6866 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6867 ("gtk+" ,gtk+)
8b877545
RS
6868 ("libexif" ,libexif)
6869 ("libxml2" ,libxml2)))
6870 (synopsis "File manager for GNOME")
6871 (home-page "https://wiki.gnome.org/Apps/Nautilus")
6872 (description
6873 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
6874design and behaviour, giving the user a simple way to navigate and manage its
6875files.")
6876 (license license:gpl2+)))
3c697ffd
JR
6877
6878(define-public baobab
6879 (package
6880 (name "baobab")
e0c5f20c 6881 (version "3.32.0")
3c697ffd
JR
6882 (source (origin
6883 (method url-fetch)
6884 (uri (string-append
6885 "mirror://gnome/sources/" name "/"
6886 (version-major+minor version) "/"
6887 name "-" version ".tar.xz"))
6888 (sha256
6889 (base32
e0c5f20c 6890 "0b33s9bhpiffv5wl76cq2bbnqhvx3qs2vxyxmil5gcs583llqh9r"))))
d233d373
RJ
6891 (build-system meson-build-system)
6892 (arguments
6893 '(#:glib-or-gtk? #t))
3c697ffd
JR
6894 (native-inputs
6895 `(("intltool" ,intltool)
6896 ("pkg-config" ,pkg-config)
d233d373
RJ
6897 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6898 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3c697ffd
JR
6899 ("itstool" ,itstool)
6900 ("xmllint" ,libxml2)
6901 ("glib" ,glib "bin")
6902 ("vala" ,vala)))
6903 (inputs
6904 `(("gtk+" ,gtk+)))
6905 (synopsis "Disk usage analyzer for GNOME")
6906 (description
6907 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
6908usage in the GNOME desktop environment. It can easily scan device volumes or
6909a specific user-requested directory branch (local or remote). Once the scan
6910is complete it provides a graphical representation of each selected folder.")
6911 (home-page "https://wiki.gnome.org/Apps/Baobab")
6912 (license license:gpl2+)))
dc050251 6913
fdba447c
RS
6914(define-public gnome-backgrounds
6915 (package
6916 (name "gnome-backgrounds")
e04e8a8c 6917 (version "3.32.0")
fdba447c
RS
6918 (source
6919 (origin
6920 (method url-fetch)
6921 (uri (string-append "mirror://gnome/sources/" name "/"
6922 (version-major+minor version) "/"
6923 name "-" version ".tar.xz"))
6924 (sha256
6925 (base32
e04e8a8c 6926 "1s5krdmd3md44p1fgr2lqm5ifxb8s1vzx6hm11sb4cgzr4dw6lrz"))))
9ca381f0 6927 (build-system meson-build-system)
fdba447c
RS
6928 (native-inputs
6929 `(("intltool" ,intltool)))
e04e8a8c 6930 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
fdba447c
RS
6931 (synopsis "Background images for the GNOME desktop")
6932 (description
6933 "GNOME backgrounds package contains a collection of graphics files which
6934can be used as backgrounds in the GNOME Desktop environment. Additionally,
6935the package creates the proper framework and directory structure so that you
6936can add your own files to the collection.")
6937 (license (list license:gpl2+
6938 license:cc-by2.0
6939 license:cc-by-sa2.0
6940 license:cc-by-sa3.0))))
6941
b784b1a9
RS
6942(define-public gnome-screenshot
6943 (package
6944 (name "gnome-screenshot")
6acf4033 6945 (version "3.32.0")
b784b1a9
RS
6946 (source
6947 (origin
6948 (method url-fetch)
6949 (uri (string-append "mirror://gnome/sources/" name "/"
6950 (version-major+minor version) "/"
6951 name "-" version ".tar.xz"))
6952 (sha256
6953 (base32
6acf4033 6954 "09ha7dizjm5ymqpjyrqd10ijfb3xlqc1mwg9ajkrbfry11q9yq4b"))))
8356aefa 6955 (build-system meson-build-system)
b784b1a9
RS
6956 (native-inputs
6957 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8356aefa
RW
6958 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6959 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b784b1a9 6960 ("intltool" ,intltool)
8356aefa 6961 ("appstream-glib" ,appstream-glib)
b784b1a9
RS
6962 ("pkg-config" ,pkg-config)))
6963 (inputs
6964 `(("gtk+" ,gtk+)
6965 ("libcanberra" ,libcanberra)
6966 ("libx11" ,libx11)
6967 ("libxext" ,libxext)))
676e7cb4 6968 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
b784b1a9
RS
6969 (synopsis "Take pictures of your screen")
6970 (description
6971 "GNOME Screenshot is a utility used for taking screenshots of the entire
6972screen, a window or a user defined area of the screen, with optional
6973beautifying border effects.")
6974 (license license:gpl2+)))
6975
66d59111
RS
6976(define-public dconf-editor
6977 (package
6978 (name "dconf-editor")
66261451 6979 (version "3.32.0")
66d59111
RS
6980 (source
6981 (origin
6982 (method url-fetch)
6983 (uri (string-append "mirror://gnome/sources/" name "/"
6984 (version-major+minor version) "/"
6985 name "-" version ".tar.xz"))
6986 (sha256
6987 (base32
66261451 6988 "1fmsmlh16njjm948grz20mzrsvb4wjj7pl1fvkrkxqi7mhr177gi"))))
294ff39d 6989 (build-system meson-build-system)
86f2124b
LC
6990 (arguments
6991 '(#:phases (modify-phases %standard-phases
6992 (add-before 'configure 'set-glib-minimum-version
6993 (lambda _
6994 ;; Change the minimum required GLib version so that
6995 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
6996 ;; do that, it complains that "55" is not an even
6997 ;; number. See <https://bugs.gnu.org/37503>.
6998 (substitute* "editor/meson.build"
6999 (("2\\.55\\.1") "2.60.0"))
7000 #t)))))
66d59111
RS
7001 (native-inputs
7002 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
294ff39d 7003 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
66d59111 7004 ("intltool" ,intltool)
294ff39d
RW
7005 ("pkg-config" ,pkg-config)
7006 ("vala" ,vala)))
66d59111
RS
7007 (inputs
7008 `(("dconf" ,dconf)
7009 ("gtk+" ,gtk+)
7010 ("libxml2" ,libxml2)))
7011 (home-page "https://git.gnome.org/browse/dconf-editor")
7012 (synopsis "Graphical editor for GNOME's dconf configuration system")
7013 (description
7014 "Dconf-editor is a graphical tool for browsing and editing the dconf
7015configuration system for GNOME. It allows users to configure desktop
7016software that do not provide their own configuration interface.")
7017 (license license:lgpl2.1+)))
7018
96d36f38
AW
7019(define-public gnome-default-applications
7020 (package
7021 (name "gnome-default-applications")
7022 (version "0")
7023 (build-system trivial-build-system)
7024 (source #f)
7025 (propagated-inputs
8ad4f0aa
LC
7026 `(("nautilus" ,nautilus)
7027 ("evince" ,evince)))
96d36f38
AW
7028 (arguments
7029 `(#:modules ((guix build utils))
7030 #:builder
7031 (begin
7032 (use-modules (guix build utils))
7033 (let* ((out (assoc-ref %outputs "out"))
7034 (apps (string-append out "/share/applications")))
7035 (mkdir-p apps)
7036 (call-with-output-file (string-append apps "/defaults.list")
7037 (lambda (port)
7038 (format port "[Default Applications]\n")
8ad4f0aa
LC
7039 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
7040 (format port "application/pdf=evince.desktop\n")
7041 (format port "application/postscript=evince.desktop\n")))
96d36f38
AW
7042 #t))))
7043 (synopsis "Default MIME type associations for the GNOME desktop")
7044 (description
7045 "Given many installed packages which might handle a given MIME type, a
7046user running the GNOME desktop probably has some preferences: for example,
7047that folders be opened by default by the Nautilus file manager, not the Baobab
7048disk usage analyzer. This package establishes that set of default MIME type
7049associations for GNOME.")
7050 (license license:gpl3+)
7051 (home-page #f)))
7052
dc050251
SB
7053(define-public gnome
7054 (package
7055 (name "gnome")
7056 (version (package-version gnome-shell))
7057 (source #f)
7058 (build-system trivial-build-system)
e3cfef22 7059 (arguments '(#:builder (begin (mkdir %output) #t)))
dc050251
SB
7060 (propagated-inputs
7061 ;; TODO: Add more packages according to:
7062 ;; <https://packages.debian.org/jessie/gnome-core>.
7063 `(("adwaita-icon-theme" ,adwaita-icon-theme)
05f651c4 7064 ("baobab" ,baobab)
0bd3597b 7065 ("font-cantarell" ,font-cantarell)
a9dbefdc 7066 ("font-dejavu" ,font-dejavu)
dc050251
SB
7067 ("at-spi2-core" ,at-spi2-core)
7068 ("dbus" ,dbus)
7069 ("dconf" ,dconf)
72360453 7070 ("desktop-file-utils" ,desktop-file-utils)
dc050251
SB
7071 ("eog" ,eog)
7072 ("epiphany" ,epiphany)
7073 ("evince" ,evince)
71d9b980 7074 ("file-roller" ,file-roller)
dc050251
SB
7075 ("gedit" ,gedit)
7076 ("glib-networking" ,glib-networking)
05f651c4 7077 ("gnome-backgrounds" ,gnome-backgrounds)
63ad9b80
AW
7078 ("gnome-bluetooth" ,gnome-bluetooth)
7079 ("gnome-calculator" ,gnome-calculator)
dc050251 7080 ("gnome-control-center" ,gnome-control-center)
63ad9b80 7081 ("gnome-disk-utility" ,gnome-disk-utility)
96d36f38 7082 ("gnome-default-applications" ,gnome-default-applications)
dc050251 7083 ("gnome-keyring" ,gnome-keyring)
63ad9b80 7084 ("gnome-online-accounts" ,gnome-online-accounts)
56987d78 7085 ("gnome-screenshot" ,gnome-screenshot)
dc050251
SB
7086 ("gnome-session" ,gnome-session)
7087 ("gnome-settings-daemon" ,gnome-settings-daemon)
7088 ("gnome-shell" ,gnome-shell)
63ad9b80 7089 ("gnome-system-monitor" ,gnome-system-monitor)
dc050251
SB
7090 ("gnome-terminal" ,gnome-terminal)
7091 ("gnome-themes-standard" ,gnome-themes-standard)
2999dcd5
AW
7092 ("gst-plugins-base" ,gst-plugins-base)
7093 ("gst-plugins-good" ,gst-plugins-good)
63ad9b80 7094 ("gucharmap" ,gucharmap)
05f651c4 7095 ("gvfs" ,gvfs)
dc050251
SB
7096 ("hicolor-icon-theme" ,hicolor-icon-theme)
7097 ("nautilus" ,nautilus)
69308043 7098 ("pinentry-gnome3" ,pinentry-gnome3)
dc050251
SB
7099 ("pulseaudio" ,pulseaudio)
7100 ("shared-mime-info" ,shared-mime-info)
f6f4370f 7101 ("system-config-printer" ,system-config-printer)
dc050251 7102 ("totem" ,totem)
c20cd0d2 7103 ("xdg-user-dirs" ,xdg-user-dirs)
dc050251
SB
7104 ("yelp" ,yelp)
7105 ("zenity" ,zenity)))
fe4e698d 7106 (synopsis "The GNU desktop environment")
dc050251
SB
7107 (home-page "https://www.gnome.org/")
7108 (description
fe4e698d
LC
7109 "GNOME is the graphical desktop for GNU. It includes a wide variety of
7110applications for browsing the web, editing text and images, creating
7111documents and diagrams, playing media, scanning, and much more.")
dc050251 7112 (license license:gpl2+)))
4a526711
DT
7113
7114(define-public byzanz
7115 ;; The last stable release of Byzanz was in 2011, but there have been many
7116 ;; useful commits made to the Byzanz repository since then that it would be
7117 ;; silly to use such an old release.
7118 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
7119 (package
7120 (name "byzanz")
7121 (version (string-append "0.2-1." (string-take commit 7)))
7122 (source (origin
7123 (method git-fetch)
7124 (uri (git-reference
5f13bf09 7125 (url "https://git.gnome.org/browse/byzanz")
4a526711 7126 (commit commit)))
5a6527e4 7127 (file-name (string-append name "-" version "-checkout"))
4a526711
DT
7128 (sha256
7129 (base32
7130 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
7131 (build-system glib-or-gtk-build-system)
7132 (arguments
7133 '(#:phases
7134 (modify-phases %standard-phases
189be331 7135 (replace 'bootstrap
4a526711
DT
7136 (lambda _
7137 ;; The build system cleverly detects that we're not building from
7138 ;; a release tarball and turns on -Werror for GCC.
7139 ;; Unsurprisingly, there is a warning during compilation that
7140 ;; causes the build to fail unnecessarily, so we remove the flag.
7141 (substitute* '("configure.ac")
7142 (("-Werror") ""))
7143 ;; The autogen.sh script in gnome-common will run ./configure
7144 ;; by default, which is problematic because source shebangs
7145 ;; have not yet been patched.
7146 (setenv "NOCONFIGURE" "t")
7147 (zero? (system* "sh" "autogen.sh")))))))
7148 (native-inputs
7149 `(("autoconf" ,autoconf)
7150 ("automake" ,automake)
7151 ("gnome-common" ,gnome-common)
7152 ("intltool" ,intltool)
7153 ("libtool" ,libtool)
7154 ("pkg-config" ,pkg-config)
7155 ("which" ,which)))
7156 (inputs
7157 `(("glib" ,glib)
7158 ("gstreamer" ,gstreamer)
7159 ("gst-plugins-base" ,gst-plugins-base)
7160 ("gtk+" ,gtk+)))
7161 (synopsis "Desktop recording program")
7162 (description "Byzanz is a simple desktop recording program with a
7163command-line interface. It can record part or all of an X display for a
7164specified duration and save it as a GIF encoded animated image file.")
7165 (home-page "https://git.gnome.org/browse/byzanz")
7166 (license license:gpl2+))))
3a9a4c51 7167
0ec171ec
MS
7168(define-public gsound
7169 (package
7170 (name "gsound")
7171 (version "1.0.2")
7172 (source (origin
7173 (method url-fetch)
7174 (uri (string-append "mirror://gnome/sources/" name "/"
7175 (version-major+minor version) "/"
7176 name "-" version ".tar.xz"))
7177 (sha256
7178 (base32
7179 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
7180 (build-system glib-or-gtk-build-system)
7181 (native-inputs
7182 `(("pkg-config" ,pkg-config)
7183 ("gobject-introspection" ,gobject-introspection)
7184 ("vala" ,vala)))
7185 (inputs
7186 `(("glib" ,glib)
7187 ("libcanberra" ,libcanberra)))
7188 (home-page "https://wiki.gnome.org/Projects/GSound")
7189 (synopsis "GObject wrapper for libcanberra")
7190 (description
7191 "GSound is a small library for playing system sounds. It's designed to be
7192used via GObject Introspection, and is a thin wrapper around the libcanberra C
7193library.")
7194 (license license:lgpl2.1+)))
7195
3a9a4c51
RS
7196(define-public libzapojit
7197 (package
7198 (name "libzapojit")
7199 (version "0.0.3")
7200 (source (origin
7201 (method url-fetch)
7202 (uri (string-append "mirror://gnome/sources/" name "/"
7203 (version-major+minor version) "/"
7204 name "-" version ".tar.xz"))
7205 (sha256
7206 (base32
7207 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
7208 (build-system gnu-build-system)
7209 (native-inputs
7210 `(("gobject-introspection" ,gobject-introspection)
7211 ("intltool" ,intltool)
7212 ("pkg-config" ,pkg-config)))
7213 (inputs
14c297fd 7214 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
3a9a4c51
RS
7215 ("json-glib" ,json-glib)
7216 ("rest" ,rest)))
7217 (home-page "https://wiki.gnome.org/Projects/Zapojit")
7218 (synopsis "Library for accessing SkyDrive and Hotmail")
7219 (description
7220 "Libzapojit is a GLib-based library for accessing online service APIs of
7221Microsoft SkyDrive and Hotmail, using their REST protocols.")
7222 (license license:lgpl2.1+)))
9365ee1c 7223
60e2a9ae
MS
7224(define-public gnome-clocks
7225 (package
7226 (name "gnome-clocks")
c76d0dbc 7227 (version "3.32.0")
60e2a9ae
MS
7228 (source (origin
7229 (method url-fetch)
7230 (uri (string-append "mirror://gnome/sources/" name "/"
7231 (version-major+minor version) "/"
7232 name "-" version ".tar.xz"))
7233 (sha256
7234 (base32
c76d0dbc 7235 "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc"))))
60e2a9ae
MS
7236 (build-system meson-build-system)
7237 (arguments
7238 '(#:glib-or-gtk? #t))
7239 (native-inputs
7240 `(("vala" ,vala)
7241 ("pkg-config" ,pkg-config)
7242 ("glib" ,glib "bin") ; for glib-compile-resources
7243 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7244 ("desktop-file-utils" ,desktop-file-utils)
7245 ("gettext" ,gettext-minimal)
7246 ("itstool" ,itstool)))
7247 (inputs
7248 `(("glib" ,glib)
7249 ("gtk+" ,gtk+)
7250 ("gsound" ,gsound)
7251 ("geoclue" ,geoclue)
7252 ("geocode-glib" ,geocode-glib)
7253 ("libgweather" ,libgweather)
7254 ("gnome-desktop" ,gnome-desktop)))
7255 (home-page "https://wiki.gnome.org/Apps/Clocks")
7256 (synopsis "GNOME's clock application")
7257 (description
7258 "GNOME Clocks is a simple clocks application designed to fit the GNOME
7259desktop. It supports world clock, stop watch, alarms, and count down timer.")
7260 (license license:gpl3+)))
7261
3c474897
KY
7262(define-public gnome-calendar
7263 (package
7264 (name "gnome-calendar")
339b59bf 7265 (version "3.32.2")
3c474897
KY
7266 (source (origin
7267 (method url-fetch)
7268 (uri (string-append "mirror://gnome/sources/" name "/"
7269 (version-major+minor version) "/"
7270 name "-" version ".tar.xz"))
7271 (sha256
7272 (base32
339b59bf 7273 "07p73cvzj8idr80npja5yiv9pjfyi6qqfhaz5jwcgqspqbnhnl7k"))))
a49d3e37
MS
7274 (build-system meson-build-system)
7275 (arguments
7276 '(#:glib-or-gtk? #t
7277 ;; gnome-calendar has to be installed before the tests can be run
7278 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
7279 #:tests? #f))
3c474897 7280 (native-inputs
a49d3e37
MS
7281 `(("gettext" ,gettext-minimal)
7282 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
7283 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
3c474897
KY
7284 ("pkg-config" ,pkg-config)))
7285 (inputs
a49d3e37 7286 `(("evolution-data-server" ,evolution-data-server)
14c297fd 7287 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
a286b5eb
RW
7288 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7289 ("libdazzle" ,libdazzle)
b63c06f1 7290 ("libedataserverui" ,evolution-data-server)
a286b5eb
RW
7291 ("libgweather" ,libgweather)
7292 ("geoclue" ,geoclue)))
3c474897
KY
7293 (home-page "https://wiki.gnome.org/Apps/Calendar")
7294 (synopsis "GNOME's calendar application")
7295 (description
7296 "GNOME Calendar is a simple calendar application designed to fit the GNOME
a49d3e37 7297desktop. It supports multiple calendars, month, week and year view.")
3c474897
KY
7298 (license license:gpl3+)))
7299
57b14665
MS
7300(define-public gnome-todo
7301 (package
7302 (name "gnome-todo")
9f3c6c88 7303 (version "3.28.1")
57b14665
MS
7304 (source (origin
7305 (method url-fetch)
7306 (uri (string-append "mirror://gnome/sources/" name "/"
7307 (version-major+minor version) "/"
7308 name "-" version ".tar.xz"))
7309 (sha256
7310 (base32
9f3c6c88 7311 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
57b14665
MS
7312 (build-system meson-build-system)
7313 (arguments
7314 '(#:glib-or-gtk? #t
7315 #:phases (modify-phases %standard-phases
7316 (add-after
7317 'install 'wrap-gnome-todo
7318 (lambda* (#:key inputs outputs #:allow-other-keys)
7319 (let ((out (assoc-ref outputs "out"))
7320 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7321 (python-path (getenv "PYTHONPATH")))
7322 (wrap-program (string-append out "/bin/gnome-todo")
7323 ;; XXX: gi plugins are broken.
7324 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
7325 ;; For plugins.
7326 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7327 `("PYTHONPATH" ":" prefix (,python-path))))
7328 #t)))))
7329 (native-inputs
7330 `(("gettext" ,gettext-minimal)
7331 ("gobject-introspection" ,gobject-introspection)
7332 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7333 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7334 ("pkg-config" ,pkg-config)))
7335 (inputs
7336 `(("rest" ,rest) ; For Todoist plugin
7337 ("json-glib" ,json-glib) ; For Todoist plugin
b63c06f1 7338 ("libedataserverui" ,evolution-data-server)
57b14665
MS
7339 ("libical" ,libical)
7340 ("libpeas" ,libpeas)
7341 ("python-pygobject" ,python-pygobject)
7342 ("evolution-data-server" ,evolution-data-server)
14c297fd 7343 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
57b14665
MS
7344 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
7345 (home-page "https://wiki.gnome.org/Apps/Todo")
7346 (synopsis "GNOME's ToDo Application")
7347 (description
7348 "GNOME To Do is a simplistic personal task manager designed to perfectly
7349fit the GNOME desktop.")
7350 (license license:gpl3+)))
7351
ab179eaf
SB
7352(define-public gnome-dictionary
7353 (package
7354 (name "gnome-dictionary")
cf81ddef 7355 (version "3.26.1")
ab179eaf
SB
7356 (source (origin
7357 (method url-fetch)
7358 (uri (string-append "mirror://gnome/sources/" name "/"
7359 (version-major+minor version) "/"
7360 name "-" version ".tar.xz"))
7361 (sha256
7362 (base32
cf81ddef
LC
7363 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
7364 (build-system meson-build-system)
2776b5d5
MB
7365 (arguments '(#:glib-or-gtk? #t
7366 #:phases (modify-phases %standard-phases
7367 (add-after 'unpack 'patch-install-script
7368 (lambda _
7369 ;; This script attempts to compile glib schemas
7370 ;; and create an empty MIME database. We do
7371 ;; that elsewhere, so prevent it from running.
7372 (substitute* "build-aux/post-install.sh"
7373 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
7374 #t)))))
ab179eaf
SB
7375 (native-inputs
7376 `(("glib:bin" ,glib "bin")
7377 ("gobject-introspection" ,gobject-introspection)
7378 ("intltool" ,intltool)
7379 ("itstool" ,itstool)
7380 ("pkg-config" ,pkg-config)
7381 ("xmllint" ,libxml2)))
7382 (inputs
7383 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7384 ("gtk+" ,gtk+)))
7385 (home-page "https://wiki.gnome.org/Apps/Dictionary")
7386 (synopsis "Look up words in dictionary sources")
7387 (description
7388 "GNOME Dictionary can look for the definition or translation of a word in
7389existing databases over the internet.")
7390 (license license:gpl3+)))
7391
d13f3a03 7392(define-public gnome-tweaks
9365ee1c 7393 (package
d13f3a03 7394 (name "gnome-tweaks")
652af676 7395 (version "3.32.0")
9365ee1c
JN
7396 (source (origin
7397 (method url-fetch)
d13f3a03 7398 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9365ee1c 7399 (version-major+minor version) "/"
d13f3a03
RW
7400 "gnome-tweaks-" version ".tar.xz"))
7401 (patches
7402 (list (search-patch "gnome-tweaks-search-paths.patch")))
9365ee1c
JN
7403 (sha256
7404 (base32
652af676 7405 "037r35cw34ifcs676fq9n2v4mh1nkqx0qk474bznf18mr6r62h55"))))
d13f3a03 7406 (build-system meson-build-system)
9365ee1c 7407 (arguments
d13f3a03
RW
7408 `(#:glib-or-gtk? #t
7409 #:configure-flags '("-Dlocalstatedir=/tmp"
7410 "-Dsysconfdir=/tmp")
9365ee1c 7411 #:imported-modules ((guix build python-build-system)
d13f3a03
RW
7412 ,@%meson-build-system-modules)
7413 #:phases
7414 (modify-phases %standard-phases
7415 (add-after 'install 'wrap
7416 (@@ (guix build python-build-system) wrap))
7417 (add-after 'wrap 'wrap-gi-typelib
7418 (lambda* (#:key inputs outputs #:allow-other-keys)
7419 (let ((out (assoc-ref outputs "out"))
7420 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7421 (wrap-program (string-append out "/bin/gnome-tweaks")
7422 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7423 #t)))))
9365ee1c 7424 (native-inputs
c7fc414e
RH
7425 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7426 ("intltool" ,intltool)
9365ee1c
JN
7427 ("pkg-config" ,pkg-config)))
7428 (inputs
c7fc414e
RH
7429 `(("gnome-desktop" ,gnome-desktop)
7430 ("gtk+" ,gtk+)
9365ee1c
JN
7431 ("gobject-introspection" ,gobject-introspection)
7432 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
c7fc414e
RH
7433 ("libnotify" ,libnotify)
7434 ("libsoup" ,libsoup)
7435 ("nautilus" ,nautilus)
7436 ("python" ,python)
7437 ("python-pygobject" ,python-pygobject)))
9365ee1c 7438 (synopsis "Customize advanced GNOME 3 options")
d13f3a03 7439 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9365ee1c 7440 (description
d13f3a03 7441 "GNOME Tweaks allows adjusting advanced configuration settings in
9365ee1c
JN
7442GNOME 3. This includes things like the fonts used in user interface elements,
7443alternative user interface themes, changes in window management behavior,
7444GNOME Shell appearance and extension, etc.")
7445 (license license:gpl3+)))
813f814a 7446
d13f3a03
RW
7447;; This package has been renamed by upstream.
7448(define-public gnome-tweak-tool
7449 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7450
32ac717c
DT
7451(define-public gnome-shell-extensions
7452 (package
7453 (name "gnome-shell-extensions")
ae4c05e0 7454 (version "3.32.1")
32ac717c
DT
7455 (source (origin
7456 (method url-fetch)
7457 (uri (string-append "mirror://gnome/sources/" name "/"
7458 (version-major+minor version) "/"
7459 name "-" version ".tar.xz"))
7460 (sha256
7461 (base32
ae4c05e0 7462 "07libf6z24n42hpdsq163w0j8xyrav0lxqrwxrvq5kbz8zxv5ch2"))))
100f625b 7463 (build-system meson-build-system)
32ac717c 7464 (arguments
100f625b 7465 '(#:configure-flags '("-Dextension_set=all")))
32ac717c
DT
7466 (native-inputs
7467 `(("intltool" ,intltool)
7468 ("pkg-config" ,pkg-config)))
7469 (propagated-inputs
7470 `(("glib" ,glib)
7471 ("glib" ,glib "bin")))
7472 (synopsis "Extensions for GNOME Shell")
7473 (description "GNOME Shell extensions modify and extend GNOME Shell
7474functionality and behavior.")
7475 (home-page "https://extensions.gnome.org/")
7476 (license license:gpl3+)))
7477
813f814a
DT
7478(define-public arc-theme
7479 (package
7480 (name "arc-theme")
37781323 7481 (version "20190917")
813f814a 7482 (source (origin
a18f8eaf
BH
7483 (method git-fetch)
7484 (uri (git-reference
7485 (url "https://github.com/NicoHood/arc-theme.git")
7486 (commit version)))
7487 (file-name (git-file-name name version))
813f814a
DT
7488 (sha256
7489 (base32
37781323 7490 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
813f814a 7491 (build-system gnu-build-system)
d88884fa
EF
7492 (arguments
7493 '(#:phases
7494 (modify-phases %standard-phases
7495 ;; autogen.sh calls configure at the end of the script.
7496 (replace 'bootstrap
7497 (lambda _ (invoke "autoreconf" "-vfi"))))))
813f814a
DT
7498 (native-inputs
7499 `(("autoconf" ,autoconf)
7500 ("automake" ,automake)
a18f8eaf
BH
7501 ("glib" ,glib "bin") ; for glib-compile-resources
7502 ("gnome-shell" ,gnome-shell)
7503 ("gtk+" ,gtk+)
7504 ("inkscape" ,inkscape)
7505 ("optipng" ,optipng)
7506 ("pkg-config" ,pkg-config)
7507 ("sassc" ,sassc)))
813f814a
DT
7508 (synopsis "A flat GTK+ theme with transparent elements")
7509 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
75102, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7511like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7512 (home-page "https://github.com/horst3180/arc-theme")
7513 ;; No "or later" language found.
a18f8eaf 7514 (license license:gpl3+)))
9987c57c 7515
d935e6a1 7516(define-public faba-icon-theme
9987c57c 7517 (package
d935e6a1 7518 (name "faba-icon-theme")
2eee7ee3 7519 (version "4.3")
d935e6a1
BT
7520 (source
7521 (origin
757e4027
TGR
7522 (method git-fetch)
7523 (uri (git-reference
7524 (url "https://github.com/snwh/faba-icon-theme.git")
7525 (commit (string-append "v" version))))
7526 (file-name (git-file-name name version))
d935e6a1 7527 (sha256
757e4027 7528 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
f6a9b345 7529 (build-system meson-build-system)
9987c57c 7530 (arguments
82da291a 7531 `(#:phases
9987c57c 7532 (modify-phases %standard-phases
82da291a 7533 (add-before 'configure 'disable-post-install
9987c57c 7534 (lambda _
82da291a
JL
7535 (substitute* "meson.build"
7536 (("meson.add_install_script.*") "")))))))
9987c57c
DT
7537 (native-inputs
7538 `(("autoconf" ,autoconf)
7539 ("automake" ,automake)))
d935e6a1
BT
7540 (synopsis "Faba icon theme")
7541 (description
7542 "Faba is a minimal icon set used as a basis for other themes such as
7543Moka")
7544 (home-page "https://snwh.org/moka")
7545 (license (list license:lgpl3+
7546 license:cc-by-sa4.0))))
7547
9987c57c
DT
7548(define-public moka-icon-theme
7549 (package
8b0e4177 7550 (inherit faba-icon-theme)
9987c57c 7551 (name "moka-icon-theme")
105a3625 7552 (version "5.4.0")
8c3f2170
TGR
7553 (source
7554 (origin
7555 (method git-fetch)
7556 (uri (git-reference
7557 (url "https://github.com/snwh/moka-icon-theme.git")
7558 (commit (string-append "v" version))))
7559 (file-name (git-file-name name version))
7560 (sha256
7561 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
550281fb
BT
7562 (propagated-inputs
7563 ;; Moka is based on Faba by using it as a fallback icon set instead of
7564 ;; bundling it, so we need to add it as a propagated input.
7565 `(("faba-icon-theme" ,faba-icon-theme)))
9987c57c
DT
7566 (synopsis "Moka icon theme")
7567 (description "Moka is a stylized desktop icon set, designed to be clear,
7568simple and consistent.")
fedde43b
BT
7569 (license (list license:gpl3+
7570 license:cc-by-sa4.0))))
6fd8f8d6
DT
7571
7572(define-public arc-icon-theme
7573 (package
7574 (name "arc-icon-theme")
c4180240 7575 (version "20161122")
bbf66cbf
TGR
7576 (source
7577 (origin
7578 (method git-fetch)
7579 (uri (git-reference
7580 (url "https://github.com/horst3180/arc-icon-theme.git")
7581 (commit version)))
7582 (file-name (git-file-name name version))
7583 (sha256
7584 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
6fd8f8d6 7585 (build-system gnu-build-system)
9e1ede95
JL
7586 (arguments
7587 `(#:phases
7588 (modify-phases %standard-phases
7589 (add-after 'unpack 'disable-configure-during-bootstrap
7590 (lambda _
7591 (substitute* "autogen.sh"
7592 (("^\"\\$srcdir/configure\".*") ""))
7593 #t)))))
6fd8f8d6
DT
7594 (native-inputs
7595 `(("autoconf" ,autoconf)
7596 ("automake" ,automake)))
7597 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7598 (propagated-inputs
7599 `(("moka-icon-theme" ,moka-icon-theme)))
7600 (synopsis "Arc icon theme")
7601 (description "The Arc icon theme provides a set of icons matching the
7602style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7603the Moka icon theme.")
7604 (home-page "https://github.com/horst3180/arc-icon-theme")
7605 (license license:gpl3+)))
6064a4e8
LF
7606
7607(define-public folks
7608 (package
7609 (name "folks")
d23495fa 7610 (version "0.11.4")
6064a4e8
LF
7611 (source (origin
7612 (method url-fetch)
7613 (uri (string-append
e5f4796e 7614 "mirror://gnome/sources/folks/"
6064a4e8 7615 (version-major+minor version) "/"
e5f4796e 7616 "folks-" version ".tar.xz"))
6064a4e8
LF
7617 (sha256
7618 (base32
d23495fa 7619 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
6064a4e8
LF
7620 (build-system glib-or-gtk-build-system)
7621 (inputs
7622 `(("bdb" ,bdb)
7623 ("dbus-glib" ,dbus-glib)
7624 ("evolution-data-server" ,evolution-data-server)
7625 ("glib" ,glib)
7626 ("libgee" ,libgee)
7627 ("telepathy-glib" ,telepathy-glib)))
7628 (native-inputs
7629 `(("gobject-introspection" ,gobject-introspection)
7630 ("intltool" ,intltool)
7631 ("pkg-config" ,pkg-config)
7632 ("vala" ,vala)))
7633 (synopsis "Library to aggregate data about people")
7634 (description "Libfolks is a library that aggregates information about people
7635from multiple sources (e.g., Telepathy connection managers for IM contacts,
7636Evolution Data Server for local contacts, libsocialweb for web service contacts,
7637etc.) to create metacontacts. It's written in Vala, which generates C code when
7638compiled.")
7639 (home-page "https://wiki.gnome.org/Projects/Folks")
7640 (license license:lgpl2.1+)))
01ea778f
LF
7641
7642(define-public gfbgraph
7643 (package
7644 (name "gfbgraph")
7645 (version "0.2.3")
7646 (source (origin
7647 (method url-fetch)
7648 (uri (string-append
237d4cf7 7649 "mirror://gnome/sources/gfbgraph/"
01ea778f 7650 (version-major+minor version) "/"
237d4cf7 7651 "gfbgraph-" version ".tar.xz"))
01ea778f
LF
7652 (sha256
7653 (base32
7654 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7655 (build-system glib-or-gtk-build-system)
7656 (arguments
7657 `(#:tests? #f ; Tests appear to require the network.
7658 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7659 #:configure-flags '("--disable-gtk-doc"
7660 "--disable-static"
7661 "--enable-introspection")))
7662 (native-inputs
7663 `(("pkg-config" ,pkg-config)
7664 ("gobject-introspection" ,gobject-introspection)))
7665 (inputs
7666 `(("json-glib" ,json-glib)
14c297fd 7667 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
01ea778f
LF
7668 ("rest" ,rest)))
7669 (synopsis "GLib/GObject wrapper for the Facebook API")
7670 (description "This library allows you to use the Facebook API from
7671GLib/GObject code.")
7672 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7673 (license license:lgpl2.1+)))
3920868c 7674
7675(define-public libgnomekbd
7676 (package
7677 (name "libgnomekbd")
70f2b0f9 7678 (version "3.26.1")
3920868c 7679 (source (origin
7680 (method url-fetch)
d47fa82d 7681 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
3920868c 7682 (version-major+minor version) "/"
d47fa82d 7683 "libgnomekbd-" version ".tar.xz"))
3920868c 7684 (sha256
7685 (base32
70f2b0f9 7686 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
3920868c 7687 (build-system gnu-build-system)
7688 (native-inputs
7689 `(("pkg-config" ,pkg-config)
7690 ("glib" ,glib "bin")
7691 ("intltool" ,intltool)))
7692 (propagated-inputs
7693 ;; Referred to in .h files and .pc.
7694 `(("glib" ,glib)
7695 ("gtk+" ,gtk+)
7696 ("libxklavier" ,libxklavier)))
7697 (home-page "https://www.gnome.org")
7698 (synopsis "GNOME keyboard configuration library")
7699 (description
7700 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7701environment, which can notably display keyboard layouts.")
7702 (license license:lgpl2.0+)))
85327d0d 7703
7704;;; This package is no longer maintained:
7705;;; https://wiki.gnome.org/Attic/LibUnique
7706;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7707;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7708(define-public libunique
7709 (package
7710 (name "libunique")
7711 (version "3.0.2")
7712 (source (origin
7713 (method url-fetch)
7714 (uri (string-append "mirror://gnome/sources/" name "/"
7715 (version-major+minor version) "/"
7716 name "-" version ".tar.xz"))
7717 (sha256
7718 (base32
7719 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7720 (build-system glib-or-gtk-build-system)
7721 (arguments
7722 `(#:configure-flags '("--disable-static"
7723 "--disable-dbus" ; use gdbus
7724 "--enable-introspection")))
7725 (native-inputs
7726 `(("pkg-config" ,pkg-config)
7727 ("gobject-introspection" ,gobject-introspection)
7728 ("glib:bin" ,glib "bin")
7729 ("gtk-doc" ,gtk-doc)))
7730 (propagated-inputs
7731 ;; Referred to in .h files and .pc.
7732 `(("gtk+" ,gtk+)))
7733 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7734 (synopsis "Library for writing single instance applications")
7735 (description
7736 "Libunique is a library for writing single instance applications. If you
7737launch a single instance application twice, the second instance will either just
7738quit or will send a message to the running instance. Libunique makes it easy to
7739write this kind of application, by providing a base class, taking care of all
7740the IPC machinery needed to send messages to a running instance, and also
7741handling the startup notification side.")
7742 (license license:lgpl2.1+)))
54021cd8
RS
7743
7744(define-public gnome-calculator
7745 (package
7746 (name "gnome-calculator")
07ace641 7747 (version "3.32.2")
54021cd8
RS
7748 (source
7749 (origin
7750 (method url-fetch)
7751 (uri (string-append "mirror://gnome/sources/" name "/"
7752 (version-major+minor version) "/"
7753 name "-" version ".tar.xz"))
7754 (sha256
7755 (base32
07ace641 7756 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
2d475910
RW
7757 (build-system meson-build-system)
7758 (arguments '(#:glib-or-gtk? #t))
54021cd8
RS
7759 (native-inputs
7760 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
2d475910 7761 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
54021cd8
RS
7762 ("intltool" ,intltool)
7763 ("itstool" ,itstool)
2d475910 7764 ("vala" ,vala)
54021cd8
RS
7765 ("pkg-config" ,pkg-config)))
7766 (inputs
112e9083 7767 `(("glib" ,glib)
07ace641 7768 ("gtksourceview" ,gtksourceview)
54021cd8 7769 ("libsoup" ,libsoup)
112e9083 7770 ("libxml2" ,libxml2)
2c2da7ec 7771 ("mpc" ,mpc)
54021cd8
RS
7772 ("mpfr" ,mpfr)))
7773 (home-page "https://wiki.gnome.org/Apps/Calculator")
7774 (synopsis "Desktop calculator")
7775 (description
7776 "Calculator is an application that solves mathematical equations and
7777is suitable as a default application in a Desktop environment.")
7778 (license license:gpl3)))
0bd69759
RS
7779
7780(define-public xpad
7781 (package
7782 (name "xpad")
c85626bb 7783 (version "5.1.0")
0bd69759
RS
7784 (source
7785 (origin
7786 (method url-fetch)
08fda9c6
R
7787 (uri (string-append "https://launchpad.net/xpad/trunk/"
7788 version "/+download/"
0bd69759
RS
7789 name "-" version ".tar.bz2"))
7790 (sha256
7791 (base32
c85626bb 7792 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
0bd69759
RS
7793 (build-system gnu-build-system)
7794 (native-inputs
08fda9c6
R
7795 `(("autoconf" ,autoconf)
7796 ("automake" ,automake)
7797 ("gtk+:bin" ,gtk+ "bin")
7798 ("intltool" ,intltool)
0bd69759
RS
7799 ("pkg-config" ,pkg-config)))
7800 (inputs
c72647fb 7801 `(("gtksourceview" ,gtksourceview-3)
0bd69759
RS
7802 ("libsm" ,libsm)))
7803 (home-page "https://wiki.gnome.org/Apps/Xpad")
7804 (synopsis "Virtual sticky note")
7805 (description
7806 "Xpad is a sticky note that strives to be simple, fault tolerant,
7807and customizable. Xpad consists of independent pad windows, each is
7808basically a text box in which notes can be written.")
7809 (license license:gpl3+)))
3ad7dce1
RS
7810
7811(define-public gucharmap
c60063ea
RW
7812 (let ((unicode-files
7813 '(("Blocks.txt"
1f8b5515 7814 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
c60063ea 7815 ("DerivedAge.txt"
1f8b5515 7816 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
c60063ea 7817 ("NamesList.txt"
1f8b5515 7818 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
c60063ea 7819 ("Scripts.txt"
1f8b5515 7820 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
c60063ea 7821 ("UnicodeData.txt"
1f8b5515 7822 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
c60063ea 7823 ("Unihan.zip"
1f8b5515 7824 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
c60063ea
RW
7825 (package
7826 (name "gucharmap")
1f8b5515 7827 (version "12.0.1")
c60063ea
RW
7828 (source
7829 (origin
7830 (method url-fetch)
7831 (uri (string-append "mirror://gnome/sources/" name "/"
7832 (version-major+minor version) "/"
7833 name "-" version ".tar.xz"))
7834 (sha256
7835 (base32
1f8b5515 7836 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
c60063ea
RW
7837 (build-system glib-or-gtk-build-system)
7838 (arguments
7839 `(#:modules ((ice-9 match)
7840 (guix build glib-or-gtk-build-system)
7841 (guix build utils))
7842 #:configure-flags
7843 (list "--with-unicode-data=../unicode-data")
7844 #:phases
7845 (modify-phases %standard-phases
7846 (add-after 'unpack 'prepare-unicode-data
7847 (lambda* (#:key inputs #:allow-other-keys)
7848 (mkdir-p "../unicode-data")
7849 (with-directory-excursion "../unicode-data"
7850 (for-each (match-lambda
7851 ((file _)
7852 (install-file (assoc-ref inputs file) ".")))
7853 ',unicode-files))
7854 #t)))))
7855 (native-inputs
7856 `(("desktop-file-utils" ,desktop-file-utils)
7857 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7858 ("gobject-introspection" ,gobject-introspection)
7859 ("intltool" ,intltool)
7860 ("itstool" ,itstool)
7861 ("pkg-config" ,pkg-config)
7862 ,@(map (match-lambda
7863 ((file hash)
7864 `(,file
7865 ,(origin
7866 (method url-fetch)
7867 (uri (string-append
1f8b5515 7868 "http://www.unicode.org/Public/12.0.0/ucd/"
c60063ea
RW
7869 file))
7870 (sha256 (base32 hash))))))
7871 unicode-files)
7872 ("unzip" ,unzip)))
7873 (inputs
7874 `(("gtk+" ,gtk+)
7875 ("xmllint" ,libxml2)))
7876 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
7877 (synopsis "Unicode character picker and font browser")
7878 (description
7879 "This program allows you to browse through all the available Unicode
3ad7dce1
RS
7880characters and categories for the installed fonts, and to examine their
7881detailed properties. It is an easy way to find the character you might
7882only know by its Unicode name or code point.")
c60063ea 7883 (license license:gpl3+))))
04ce840a
RS
7884
7885(define-public bluefish
7886 (package
7887 (name "bluefish")
ea8afaf3 7888 (version "2.2.10")
04ce840a
RS
7889 (source
7890 (origin
7891 (method url-fetch)
7892 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
7893 name "-" version ".tar.gz"))
7894 (sha256
7895 (base32
ea8afaf3 7896 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
04ce840a
RS
7897 (build-system gnu-build-system)
7898 (native-inputs
7899 `(("desktop-file-utils" ,desktop-file-utils)
7900 ("intltool" ,intltool)
7901 ("pkg-config" ,pkg-config)))
7902 (inputs
7903 `(("enchant" ,enchant)
7904 ("gtk+" ,gtk+)
7905 ("python" ,python-2)
7906 ("xmllint" ,libxml2)
7907 ("gucharmap" ,gucharmap)))
7908 (home-page "http://bluefish.openoffice.nl")
7909 (synopsis "Web development studio")
7910 (description
7911 "Bluefish is an editor targeted towards programmers and web developers,
7912with many options to write web sites, scripts and other code.
7913Bluefish supports many programming and markup languages.")
7914 (license license:gpl3+)))
1f6a73ee
RS
7915
7916(define-public gnome-system-monitor
7917 (package
7918 (name "gnome-system-monitor")
083cffaf 7919 (version "3.32.1")
1f6a73ee
RS
7920 (source
7921 (origin
7922 (method url-fetch)
7923 (uri (string-append "mirror://gnome/sources/" name "/"
7924 (version-major+minor version) "/"
7925 name "-" version ".tar.xz"))
7926 (sha256
7927 (base32
083cffaf 7928 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
85fb3df3
RW
7929 (build-system meson-build-system)
7930 (arguments
7931 '(#:glib-or-gtk? #t
7932 #:configure-flags '("-Dsystemd=false")))
1f6a73ee
RS
7933 (native-inputs
7934 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
85fb3df3 7935 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
1f6a73ee
RS
7936 ("intltool" ,intltool)
7937 ("itstool" ,itstool)
7938 ("libgtop" ,libgtop)
4985d9aa 7939 ("polkit" ,polkit)
1f6a73ee
RS
7940 ("pkg-config" ,pkg-config)))
7941 (inputs
7942 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
7943 ("gtk+" ,gtk+)
7944 ("gtkmm" ,gtkmm)
7945 ("librsvg" ,librsvg)
4985d9aa
RW
7946 ("libxml2" ,libxml2)
7947 ("libwnck" ,libwnck)))
1f6a73ee
RS
7948 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
7949 (synopsis "Process viewer and system resource monitor for GNOME")
7950 (description
7951 "GNOME System Monitor is a GNOME process viewer and system monitor with
7952an attractive, easy-to-use interface. It has features, such as a tree view
7953for process dependencies, icons for processes, the ability to hide processes,
7954graphical time histories of CPU/memory/swap usage and the ability to
7955kill/reinice processes.")
7956 (license license:gpl2+)))
3e00ac47
SB
7957
7958(define-public python-pyatspi
7959 (package
7960 (name "python-pyatspi")
05b29d84 7961 (version "2.32.1")
3e00ac47
SB
7962 (source (origin
7963 (method url-fetch)
7964 (uri (string-append
7965 "mirror://gnome/sources/pyatspi/"
7966 (version-major+minor version)
7967 "/pyatspi-" version ".tar.xz"))
7968 (sha256
7969 (base32
05b29d84 7970 "1283cbwd2kacgdij96xk26721f6amyzdhy2py11kdj5cprdlm5c4"))))
3e00ac47 7971 (build-system gnu-build-system)
b95af3f6
JL
7972 (arguments
7973 `(#:phases
7974 (modify-phases %standard-phases
7975 (add-before 'build 'fix-atk-load
7976 (lambda _
7977 (substitute* "pyatspi/__init__.py"
7978 (("from gi.repository import Atspi")
7979 "gi.require_version('Gtk', '3.0')
7980from gi.repository import Gtk
7981from gi.repository import Atspi"))
7982 #t)))))
3e00ac47
SB
7983 (native-inputs
7984 `(("pkg-config" ,pkg-config)))
7985 (inputs
7986 `(("python" ,python)
7987 ("python-pygobject" ,python-pygobject)))
7988 (synopsis "Python client bindings for D-Bus AT-SPI")
7989 (home-page "https://wiki.linuxfoundation.org/accessibility\
7990/atk/at-spi/at-spi_on_d-bus")
7991 (description
7992 "This package includes a python client library for the AT-SPI D-Bus
7993accessibility infrastructure.")
7994 (license license:lgpl2.0)
7995 (properties '((upstream-name . "pyatspi")))))
53201c0d
SB
7996
7997(define-public orca
7998 (package
7999 (name "orca")
089e8585 8000 (version "3.32.0")
53201c0d
SB
8001 (source (origin
8002 (method url-fetch)
8003 (uri (string-append
8004 "mirror://gnome/sources/" name "/"
8005 (version-major+minor version) "/"
8006 name "-" version ".tar.xz"))
8007 (sha256
8008 (base32
089e8585 8009 "05jqzlg0f1x53hyl0l9282ynmw37159g6dsbrid12b7sjs12cc1i"))))
53201c0d
SB
8010 (build-system glib-or-gtk-build-system)
8011 (arguments
8012 '(#:phases
8013 (modify-phases %standard-phases
8014 (add-before 'configure 'qualify-xkbcomp
8015 (lambda* (#:key inputs #:allow-other-keys)
8016 (let ((xkbcomp (string-append
8017 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
8018 (substitute* "src/orca/orca.py"
8019 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
8020 #t))
8021 (add-after 'install 'wrap-orca
8022 (lambda* (#:key outputs #:allow-other-keys)
8023 (let* ((out (assoc-ref outputs "out"))
8024 (prog (string-append out "/bin/orca")))
8025 (wrap-program prog
8026 `("GI_TYPELIB_PATH" ":" prefix
8027 (,(getenv "GI_TYPELIB_PATH")))
8028 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
8029 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
8030 `("PYTHONPATH" ":" prefix
8031 (,(getenv "PYTHONPATH")))))
8032 #t)))))
8033 (native-inputs
8034 `(("intltool" ,intltool)
8035 ("itstool" ,itstool)
8036 ("pkg-config" ,pkg-config)
8037 ("xmllint" ,libxml2)))
8038 (inputs
8039 `(("at-spi2-atk" ,at-spi2-atk)
8040 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8041 ("gstreamer" ,gstreamer)
8042 ("gst-plugins-base" ,gst-plugins-base)
8043 ("gst-plugins-good" ,gst-plugins-good)
8044 ("gtk+" ,gtk+)
8045 ("python" ,python)
8046 ("python-pygobject" ,python-pygobject)
8047 ("python-pyatspi" ,python-pyatspi)
8048 ("python-speechd" ,speech-dispatcher)
8049 ("xkbcomp" ,xkbcomp)))
8050 (synopsis
8051 "Screen reader for individuals who are blind or visually impaired")
8052 (home-page "https://wiki.gnome.org/Projects/Orca")
8053 (description
8054 "Orca is a screen reader that provides access to the graphical desktop
8055via speech and refreshable braille. Orca works with applications and toolkits
8056that support the Assistive Technology Service Provider Interface (AT-SPI).")
8057 (license license:lgpl2.1+)))
411ba511
LC
8058
8059(define-public gspell
8060 (package
8061 (name "gspell")
7a6bbe9b 8062 (version "1.8.2")
411ba511
LC
8063 (source (origin
8064 (method url-fetch)
8065 (uri (string-append "mirror://gnome/sources/" name "/"
8066 (version-major+minor version) "/"
8067 name "-" version ".tar.xz"))
8068 (sha256
8069 (base32
7a6bbe9b 8070 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
411ba511
LC
8071 (patches (search-patches "gspell-dash-test.patch"))))
8072 (build-system glib-or-gtk-build-system)
8073 (arguments
8074 '(#:phases
8075 (modify-phases %standard-phases
8076 (add-before 'check 'pre-check
8077 (lambda* (#:key inputs #:allow-other-keys)
8078 ;; Tests require a running X server.
8079 (system "Xvfb :1 &")
8080 (setenv "DISPLAY" ":1")
8081
8082 ;; For the missing /etc/machine-id.
8083 (setenv "DBUS_FATAL_WARNINGS" "0")
8084
8085 ;; Allow Enchant and its Aspell backend to find the en_US
8086 ;; dictionary.
8087 (setenv "ASPELL_DICT_DIR"
8088 (string-append (assoc-ref inputs "aspell-dict-en")
8089 "/lib/aspell"))
8090 #t)))))
8091 (inputs
eccd35be 8092 `(("gtk+" ,gtk+)
a801ae4c
TGR
8093 ("glib" ,glib)
8094 ("iso-codes" ,iso-codes)))
411ba511
LC
8095 (native-inputs
8096 `(("glib" ,glib "bin")
8097 ("pkg-config" ,pkg-config)
8098 ("xmllint" ,libxml2)
8099
8100 ;; For tests.
a801ae4c 8101 ("aspell-dict-en" ,aspell-dict-en)
ff337525 8102 ("xorg-server" ,xorg-server-for-tests)))
eccd35be 8103 (propagated-inputs
9b1bb757 8104 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
411ba511
LC
8105 (home-page "https://wiki.gnome.org/Projects/gspell")
8106 (synopsis "GNOME's alternative spell checker")
8107 (description
8108 "gspell provides a flexible API to add spell-checking to a GTK+
8109application. It provides a GObject API, spell-checking to text entries and
8110text views, and buttons to choose the language.")
8111 (license license:gpl2+)))
d1d739fa
CM
8112
8113(define-public gnome-planner
8114 (package
8115 (name "gnome-planner")
8116 (version "0.14.6")
8117 (source (origin
8118 (method url-fetch)
8119 (uri (string-append "mirror://gnome/sources/planner/"
8120 (version-major+minor version) "/planner-"
8121 version ".tar.xz"))
8122 (sha256
8123 (base32
8124 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
8125 (build-system glib-or-gtk-build-system)
8126 (arguments
8127 ;; Disable the Python bindings because the Planner program functions
8128 ;; without them, and (as of 2017-06-13) we have not packaged all of
8129 ;; packages that are necessary for building the Python bindings.
20b7b75c
EF
8130 `(#:configure-flags
8131 (list "--disable-python"
8132 ,@(if (string=? "aarch64-linux" (%current-system))
8133 '("--build=aarch64-unknown-linux-gnu")
8134 '()))))
d1d739fa
CM
8135 (inputs
8136 `(("libgnomecanvas" ,libgnomecanvas)
8137 ("libgnomeui" ,libgnomeui)
8138 ("libglade" ,libglade)
8139 ("gnome-vfs" ,gnome-vfs)
8140 ("gconf" ,gconf)
8141 ("libxml2" ,libxml2)
8142 ("libxslt" ,libxslt)
8143 ("gtk+" ,gtk+)
8144 ("glib" ,glib)))
8145 (native-inputs
8146 `(("intltool" ,intltool)
8147 ("scrollkeeper" ,scrollkeeper)
8148 ("pkg-config" ,pkg-config)))
8149 (home-page "https://wiki.gnome.org/Apps/Planner")
8150 (synopsis "Project management software for the GNOME desktop")
8151 (description
8152 "GNOME Planner is a project management tool based on the Work Breakdown
8153Structure (WBS). Its goal is to enable you to easily plan projects. Based on
8154the resources, tasks, and constraints that you define, Planner generates
8155various views into a project. For example, Planner can show a Gantt chart of
8156the project. It can show a detailed summary of tasks including their
8157duration, cost, and current progress. It can also show a report of resource
8158utilization that highlights under-utilized and over-utilized resources. These
8159views can be printed as PDF or PostScript files, or exported to HTML.")
4b926cb6 8160 (license license:gpl2+)))
64fce637
RS
8161
8162(define-public lollypop
8163 (package
8164 (name "lollypop")
ca32627a 8165 (version "1.2.7")
64fce637
RS
8166 (source
8167 (origin
8168 (method url-fetch)
b98eace8 8169 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
ca32627a 8170 "08f973788c7ca46d9285eec2ac818edb/"
3275d43d 8171 "lollypop-" version ".tar.xz"))
64fce637 8172 (sha256
ca32627a 8173 (base32 "0hvq6m4i62i0m63bg4gzpfb9rv1fk6vq5jl2g3ppcgm4srmfm77j"))))
aa498fc0 8174 (build-system meson-build-system)
64fce637
RS
8175 (arguments
8176 `(#:imported-modules ((guix build python-build-system)
aa498fc0
TD
8177 ,@%meson-build-system-modules)
8178 #:glib-or-gtk? #t
5fc9b6c1
EF
8179 #:tests? #f ; no test suite
8180 #:phases
8181 (modify-phases %standard-phases
5fc9b6c1
EF
8182 (add-after 'install 'wrap-program
8183 (lambda* (#:key outputs #:allow-other-keys)
8184 (let ((out (assoc-ref outputs "out"))
8185 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8186 (wrap-program (string-append out "/bin/lollypop")
8187 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8188 #t))
8ac8b3b3
TGR
8189 (add-after 'install 'wrap-python
8190 (@@ (guix build python-build-system) wrap))
8191 (add-after 'install 'wrap-glib-or-gtk
8192 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
64fce637
RS
8193 (native-inputs
8194 `(("intltool" ,intltool)
8195 ("itstool" ,itstool)
aa498fc0
TD
8196 ("glib:bin" ,glib "bin") ; For glib-compile-resources
8197 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
64fce637
RS
8198 ("pkg-config" ,pkg-config)))
8199 (inputs
8200 `(("gobject-introspection" ,gobject-introspection)
8ac8b3b3 8201 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5fc9b6c1 8202 ("gst-plugins-base" ,gst-plugins-base)
64fce637
RS
8203 ("libnotify" ,libnotify)
8204 ("libsecret" ,libsecret)
8205 ("libsoup" ,libsoup)
8206 ("python" ,python)
8207 ("python-beautifulsoup4" ,python-beautifulsoup4)
8208 ("python-gst" ,python-gst)
d029afdd 8209 ("python-pil" ,python-pillow)
64fce637 8210 ("python-pycairo" ,python-pycairo)
7460f346 8211 ("python-pygobject" ,python-pygobject-3.34)
64fce637
RS
8212 ("python-pylast" ,python-pylast)
8213 ("totem-pl-parser" ,totem-pl-parser)
8214 ("webkitgtk" ,webkitgtk)))
8215 (propagated-inputs
8216 `(;; gst-plugins-base is required to start Lollypop,
8217 ;; the others are required to play streaming.
64fce637
RS
8218 ("gst-plugins-good" ,gst-plugins-good)
8219 ("gst-plugins-ugly" ,gst-plugins-ugly)))
b98eace8 8220 (home-page "https://wiki.gnome.org/Apps/Lollypop")
64fce637
RS
8221 (synopsis "GNOME music playing application")
8222 (description
8223 "Lollypop is a music player designed to play well with GNOME desktop.
8224Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
8225from artists and tracks from the web. It also fetches cover artworks
8226automatically and it can stream songs from online music services and charts.")
8227 (license license:gpl3+)))
d831d49d
AW
8228
8229(define-public gnome-video-effects
8230 (package
8231 (name "gnome-video-effects")
8232 (version "0.4.3")
8233 (source (origin
8234 (method url-fetch)
8235 (uri (string-append "mirror://gnome/sources/" name "/"
8236 (version-major+minor version) "/" name "-"
8237 version ".tar.xz"))
8238 (sha256
8239 (base32
8240 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
8241 (build-system glib-or-gtk-build-system)
8242 (arguments
8243 `(#:out-of-source? #f))
8244 (native-inputs
8245 `(("glib:bin" ,glib "bin")
8246 ("intltool" ,intltool)
8247 ("gettext" ,gettext-minimal)
8248 ("pkg-config" ,pkg-config)))
8249 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
8250 (synopsis "Video effects for Cheese and other GNOME applications")
8251 (description
8252 "A collection of GStreamer video filters and effects to be used in
8253photo-booth-like software, such as Cheese.")
8254 (license license:gpl2+)))
3511c780
AW
8255
8256(define-public cheese
8257 (package
8258 (name "cheese")
dd33b337 8259 (version "3.32.1")
3511c780
AW
8260 (source (origin
8261 (method url-fetch)
8262 (uri (string-append "mirror://gnome/sources/" name "/"
8263 (version-major+minor version) "/" name "-"
8264 version ".tar.xz"))
8265 (sha256
8266 (base32
dd33b337 8267 "1xlmsm4zsx05ahvpd4mgy1hfhxbag0r5i6p63bksjxdligdd36kv"))))
3511c780
AW
8268 (arguments
8269 ;; Tests require GDK.
8270 `(#:tests? #f
8271 #:phases
8272 (modify-phases %standard-phases
8273 (add-before 'install 'skip-gtk-update-icon-cache
8274 (lambda _
8275 ;; Don't create 'icon-theme.cache'
8276 (substitute* "Makefile"
8277 (("gtk-update-icon-cache") (which "true")))
8278 #t))
8279 (add-after 'install 'wrap-cheese
8280 (lambda* (#:key inputs outputs #:allow-other-keys)
8281 (let ((out (assoc-ref outputs "out"))
8282 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8283 (wrap-program (string-append out "/bin/cheese")
8284 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8285 #t)))))
8286 (build-system glib-or-gtk-build-system)
8287 (native-inputs
8288 `(("glib:bin" ,glib "bin")
8289 ("intltool" ,intltool)
8290 ("itstool" ,itstool)
8291 ("libxml2" ,libxml2)
8292 ("pkg-config" ,pkg-config)
8293 ("vala" ,vala)))
8294 (propagated-inputs
6a19f03e
RW
8295 `(("gnome-video-effects" ,gnome-video-effects)
8296 ("clutter" ,clutter)
3511c780
AW
8297 ("clutter-gst" ,clutter-gst)
8298 ("clutter-gtk" ,clutter-gtk)
6a19f03e 8299 ("libcanberra" ,libcanberra)
3511c780
AW
8300 ("gdk-pixbuf" ,gdk-pixbuf)
8301 ("glib" ,glib)
6a19f03e
RW
8302 ("gstreamer" ,gstreamer)))
8303 (inputs
8304 `(("gnome-desktop" ,gnome-desktop)
3511c780 8305 ("gobject-introspection" ,gobject-introspection)
3511c780
AW
8306 ("gst-plugins-base" ,gst-plugins-base)
8307 ("gst-plugins-bad" ,gst-plugins-bad)
8308 ("gtk+" ,gtk+)
3511c780
AW
8309 ("libx11" ,libx11)
8310 ("libxtst" ,libxtst)))
8311 (home-page "https://wiki.gnome.org/Apps/Cheese")
8312 (synopsis "Webcam photo booth software for GNOME")
8313 (description
8314 "Cheese uses your webcam to take photos and videos. Cheese can also
8315apply fancy special effects and lets you share the fun with others.")
8316 (license license:gpl2+)))
3c5dbd2b 8317
8318(define-public sound-juicer
8319 (package
8320 (name "sound-juicer")
8321 (version "3.24.0")
8322 (source
8323 (origin
8324 (method url-fetch)
8325 (uri (string-append "mirror://gnome/sources/" name "/"
8326 (version-major+minor version) "/"
8327 name "-" version ".tar.xz"))
8328 (sha256
8329 (base32
8330 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
8331 (build-system glib-or-gtk-build-system)
8332 (native-inputs
8333 `(("desktop-file-utils" ,desktop-file-utils)
8334 ("intltool" ,intltool)
8335 ("itstool" ,itstool)
8336 ("pkg-config" ,pkg-config)
8337 ("xmllint" ,libxml2)))
8338 (inputs
8339 `(("gtk+" ,gtk+)
8340 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8341 ("gstreamer" ,gstreamer)
8342 ("gst-plugins-base" ,gst-plugins-base)
8343 ("gst-plugins-good" ,gst-plugins-good)
8344 ("iso-codes" ,iso-codes)
8345 ("libbrasero-media3" ,brasero)
8346 ("libcanberra" ,libcanberra)
8347 ("libdiscid" ,libdiscid)
8348 ("libmusicbrainz" ,libmusicbrainz)
8349 ("neon" ,neon)))
8350 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
8351 (synopsis "Audio music cd ripper")
8352 (description "Sound Juicer extracts audio from compact discs and convert it
8353into audio files that a personal computer or digital audio player can play.
8354It supports ripping to any audio codec supported by a GStreamer plugin, such as
8355mp3, Ogg Vorbis and FLAC")
8356 (license license:gpl2+)))
4e3fdeb7 8357
0d3f1708
CB
8358(define-public soundconverter
8359 (package
8360 (name "soundconverter")
fa75a213 8361 (version "3.0.1")
0d3f1708
CB
8362 (source
8363 (origin
8364 (method url-fetch)
8365 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
8366 version "/+download/"
8367 "soundconverter-" version ".tar.xz"))
8368
8369 (sha256
fa75a213 8370 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
0d3f1708
CB
8371 (patches
8372 (search-patches
8373 "soundconverter-remove-gconf-dependency.patch"))))
8374 (build-system glib-or-gtk-build-system)
8375 (arguments
8376 `(#:imported-modules ((guix build python-build-system)
8377 (guix build glib-or-gtk-build-system)
8378 ,@%gnu-build-system-modules)
8379
8380 #:modules ((guix build glib-or-gtk-build-system)
8381 (guix build utils)
8382 ((guix build gnu-build-system) #:prefix gnu:)
8383 ((guix build python-build-system) #:prefix python:))
8384
8385 #:phases
8386 (modify-phases %standard-phases
0d3f1708
CB
8387 (add-after 'install 'wrap-soundconverter-for-python
8388 (assoc-ref python:%standard-phases 'wrap))
8389 (add-after 'install 'wrap-soundconverter
8390 (lambda* (#:key inputs outputs #:allow-other-keys)
8391 (let ((out (assoc-ref outputs "out"))
8392 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8393 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8394 (wrap-program (string-append out "/bin/soundconverter")
8395 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8396 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8397 #t)))))
8398 (native-inputs
8399 `(("intltool" ,intltool)
8400 ("pkg-config" ,pkg-config)
8401 ("glib:bin" ,glib "bin")))
8402 (inputs
8403 `(("gtk+" ,gtk+)
8404 ("python" ,python)
8405 ("python-pygobject" ,python-pygobject)
8406 ("gstreamer" ,gstreamer)
8407 ("gst-plugins-base" ,gst-plugins-base)))
8408 (home-page "http://soundconverter.org/")
8409 (synopsis "Convert between audio formats with a graphical interface")
8410 (description
8411 "SoundConverter supports converting between many audio formats including
8412Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8413configurable file renaming. ")
8414 (license license:gpl3)))
8415
4e3fdeb7 8416(define-public workrave
89f2d736
TGR
8417 (package
8418 (name "workrave")
aa51d92c 8419 (version "1.10.34")
89f2d736
TGR
8420 (source
8421 (origin
8422 (method git-fetch)
8423 (uri (git-reference
8424 (url "https://github.com/rcaelers/workrave.git")
c2e50474
TGR
8425 (commit (string-append "v" (string-map
8426 (match-lambda (#\. #\_) (chr chr))
8427 version)))))
89f2d736
TGR
8428 (file-name (git-file-name name version))
8429 (sha256
aa51d92c 8430 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
89f2d736 8431 (build-system glib-or-gtk-build-system)
d1c96847
MC
8432 (inputs `(("glib" ,glib)
8433 ("gtk+" ,gtk+)
8434 ("gdk-pixbuf" ,gdk-pixbuf)
8435 ("gtkmm" ,gtkmm)
8436 ("glibmm" ,glibmm)
8437 ("libx11" ,libx11)
8438 ("libxtst" ,libxtst)
8439 ("dconf" ,dconf)
8440 ("libice" ,libice)
8441 ("libsm" ,libsm)
8442 ("libxscrnsaver" ,libxscrnsaver)))
aa51d92c 8443 (native-inputs `(("boost" ,boost)
89f2d736
TGR
8444 ("pkg-config" ,pkg-config)
8445 ("gettext" ,gnu-gettext)
8446 ("autoconf" ,autoconf)
8447 ("autoconf-archive" , autoconf-archive)
8448 ("automake" ,automake)
8449 ("libtool" ,libtool)
8450 ("intltool" ,intltool)
89f2d736 8451 ("gobject-introspection" ,gobject-introspection)
aa51d92c
MC
8452 ("python3" ,python-3)
8453 ("python-jinja2" ,python-jinja2)))
89f2d736
TGR
8454 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8455 (description
8456 "Workrave is a program that assists in the recovery and prevention of
cc00249b
TGR
8457repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8458micro-pauses and rest breaks, and restricts you to your daily limit.")
89f2d736
TGR
8459 (home-page "http://www.workrave.org")
8460 (license license:gpl3+)))
312afa7d
LC
8461
8462(define-public ghex
8463 (package
8464 (name "ghex")
3748992a 8465 (version "3.18.4")
312afa7d
LC
8466 (source (origin
8467 (method url-fetch)
2fbab848 8468 (uri (string-append "mirror://gnome/sources/ghex/"
312afa7d 8469 (version-major+minor version) "/"
2fbab848 8470 "ghex-" version ".tar.xz"))
312afa7d
LC
8471 (sha256
8472 (base32
3748992a
KK
8473 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
8474 (build-system meson-build-system)
8475 (arguments
8476 '(#:glib-or-gtk? #t
8477 #:phases
8478 (modify-phases %standard-phases
8479 (add-after 'unpack 'skip-gtk-update-icon-cache
8480 ;; Don't create 'icon-theme.cache'.
8481 (lambda _
8482 (substitute* "meson_post_install.py"
8483 (("gtk-update-icon-cache") (which "true")))
8484 #t)))))
312afa7d
LC
8485 (native-inputs
8486 `(("pkg-config" ,pkg-config)
3748992a 8487 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
312afa7d
LC
8488 ("gnome-common" ,gnome-common)
8489 ("which" ,which)
8490 ("intltool" ,intltool)
8491 ("yelp-tools" ,yelp-tools)
2fbab848 8492 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
312afa7d
LC
8493 (inputs
8494 `(("atk" ,atk)
8495 ("gtk" ,gtk+)))
8496 (synopsis "GNOME hexadecimal editor")
8497 (description "The GHex program can view and edit files in two ways:
8498hexadecimal or ASCII. It is useful for editing binary files in general.")
8499 (home-page "https://wiki.gnome.org/Apps/Ghex")
8500 (license license:gpl2)))
4b2ed6c2
RW
8501
8502(define-public libdazzle
8503 (package
8504 (name "libdazzle")
64fa66ba 8505 (version "3.33.90")
4b2ed6c2
RW
8506 (source (origin
8507 (method url-fetch)
687b4909 8508 (uri (string-append "mirror://gnome/sources/libdazzle/"
4b2ed6c2 8509 (version-major+minor version) "/"
687b4909 8510 "libdazzle-" version ".tar.xz"))
4b2ed6c2
RW
8511 (sha256
8512 (base32
64fa66ba 8513 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
4b2ed6c2
RW
8514 (build-system meson-build-system)
8515 (arguments
8516 `(#:phases
8517 (modify-phases %standard-phases
4b2ed6c2
RW
8518 (add-before 'check 'pre-check
8519 (lambda _
8520 ;; Tests require a running X server.
8521 (system "Xvfb :1 &")
8522 (setenv "DISPLAY" ":1")
8523 #t)))))
8524 (native-inputs
687b4909 8525 `(("glib" ,glib "bin") ; glib-compile-resources
4b2ed6c2 8526 ("pkg-config" ,pkg-config)
687b4909 8527 ;; For tests.
ff337525 8528 ("xorg-server" ,xorg-server-for-tests)))
4b2ed6c2
RW
8529 (inputs
8530 `(("glib" ,glib)
8531 ("gobject-introspection" ,gobject-introspection)
8532 ("gtk+" ,gtk+)
8533 ("vala" ,vala)))
8534 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8535 (synopsis "Companion library to GObject and Gtk+")
8536 (description "The libdazzle library is a companion library to GObject and
8537Gtk+. It provides various features that the authors wish were in the
8538underlying library but cannot for various reasons. In most cases, they are
8539wildly out of scope for those libraries. In other cases, they are not quite
8540generic enough to work for everyone.")
8541 (license license:gpl3+)))
7d3bb433
RW
8542
8543(define-public evolution
8544 (package
8545 (name "evolution")
06141f83 8546 (version "3.32.4")
7d3bb433
RW
8547 (source (origin
8548 (method url-fetch)
8549 (uri (string-append "mirror://gnome/sources/evolution/"
8550 (version-major+minor version) "/"
8551 "evolution-" version ".tar.xz"))
8552 (sha256
8553 (base32
06141f83 8554 "00hmmg4hfns8rq9rcilmy0gi1xkksld27lfbd9zmw2xw37wjmbqh"))))
7d3bb433
RW
8555 (build-system cmake-build-system)
8556 (arguments
5229bea1
KK
8557 `(#:imported-modules (,@%cmake-build-system-modules
8558 (guix build glib-or-gtk-build-system))
8559 #:modules ((guix build cmake-build-system)
8560 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8561 (guix build utils))
8562 #:configure-flags
7d3bb433 8563 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
5229bea1 8564 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
7d3bb433 8565 ; in four years and cannot be built.
5229bea1
KK
8566 #:phases
8567 (modify-phases %standard-phases
8568 ;; The build system attempts to install user interface modules to the
8569 ;; output directory of the "evolution-data-server" package. This
8570 ;; change redirects that change.
8571 (add-after 'unpack 'patch-ui-module-dir
8572 (lambda* (#:key outputs #:allow-other-keys)
8573 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8574 (("\\$\\{edsuimoduledir\\}")
8575 (string-append (assoc-ref outputs "out")
8576 "/lib/evolution-data-server/ui-modules")))
8577 #t))
8578 (add-after 'install 'glib-or-gtk-compile-schemas
8579 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8580 (add-after 'install 'glib-or-gtk-wrap
8581 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
7d3bb433 8582 (native-inputs
ad6e168b 8583 `(("glib" ,glib "bin") ; glib-mkenums
7d3bb433
RW
8584 ("pkg-config" ,pkg-config)
8585 ("intltool" ,intltool)
8586 ("itstool" ,itstool)))
8587 (inputs
8588 `(("enchant" ,enchant)
8589 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8590 ("gcr" ,gcr)
ad6e168b 8591 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7d3bb433
RW
8592 ("gnome-autoar" ,gnome-autoar)
8593 ("gnome-desktop" ,gnome-desktop)
8594 ("gtkspell3" ,gtkspell3)
8595 ("highlight" ,highlight)
8596 ("libcanberra" ,libcanberra)
b63c06f1 8597 ("libedataserverui" ,evolution-data-server)
7d3bb433
RW
8598 ("libgweather" ,libgweather)
8599 ("libnotify" ,libnotify)
8600 ("libsoup" ,libsoup)
8601 ("nss" ,nss)
8602 ("openldap" ,openldap)
8603 ("webkitgtk" ,webkitgtk)
8604 ("ytnef" ,ytnef)))
8605 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8606 (synopsis "Manage your email, contacts and schedule")
8607 (description "Evolution is a personal information management application
8608that provides integrated mail, calendaring and address book
8609functionality.")
8610 ;; See COPYING for details.
23dbe621 8611 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
7d3bb433 8612 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
23dbe621 8613 license:lgpl2.1+)))) ; smime/lib/*
169d63f5
AT
8614
8615(define-public gthumb
8616 (package
8617 (name "gthumb")
8280676b 8618 (version "3.8.2")
169d63f5
AT
8619 (source (origin
8620 (method url-fetch)
8621 (uri (string-append "mirror://gnome/sources/gthumb/"
8622 (version-major+minor version) "/"
8623 "gthumb-" version ".tar.xz"))
8624 (sha256
8625 (base32
8280676b 8626 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
169d63f5
AT
8627 (build-system meson-build-system)
8628 (arguments
8629 `(#:glib-or-gtk? #t
8630 #:configure-flags
8631 ;; Ensure the RUNPATH contains all installed library locations.
8632 (list (string-append "-Dc_link_args=-Wl,-rpath="
8633 (assoc-ref %outputs "out")
8634 "/lib/gthumb/extensions")
8635 (string-append "-Dcpp_link_args=-Wl,-rpath="
8636 (assoc-ref %outputs "out")
8637 "/lib/gthumb/extensions"))))
8638 (native-inputs
8639 `(("pkg-config" ,pkg-config)
8640 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8641 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8642 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8643 ("intltool" ,intltool)
8644 ("itstool" ,itstool)))
8645 (inputs
8646 `(("exiv2" ,exiv2)
8647 ("gtk" ,gtk+)
8648 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8649 ("gstreamer" ,gstreamer)
8650 ("clutter" ,clutter)
8651 ("clutter-gst" ,clutter-gst)
8652 ("clutter-gtk" ,clutter-gtk)
8653 ("libjpeg" ,libjpeg)
8654 ("libtiff" ,libtiff)
8655 ("libraw" ,libraw)))
8656 (home-page "https://wiki.gnome.org/Apps/Gthumb")
8657 (synopsis "GNOME image viewer and browser")
8658 (description "GThumb is an image viewer, browser, organizer, editor and
8659advanced image management tool")
8660 (license license:gpl2+)))
08be02be
AT
8661
8662(define-public terminator
8663 (package
8664 (name "terminator")
8665 (version "1.91")
8666 (source (origin
8667 (method url-fetch)
8668 (uri (string-append "https://launchpad.net/" name "/"
8669 "gtk3/" version "/" "+download/"
8670 name "-" version ".tar.gz"))
8671 (sha256
8672 (base32
8673 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
8674 (build-system python-build-system)
8675 (native-inputs
8676 `(("intltool" ,intltool)
8677 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8678 ("gettext" ,gettext-minimal)
8679 ("pkg-config" ,pkg-config)))
8680 (inputs
8681 `(("cairo" ,cairo)
8682 ("gobject-introspection" ,gobject-introspection)
96681d4b 8683 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
08be02be
AT
8684 ("python2-pycairo" ,python2-pycairo)
8685 ("python2-pygobject" ,python2-pygobject)
8686 ("python2-psutil" ,python2-psutil)
8687 ("vte" ,vte)))
8688 (arguments
96681d4b
TGR
8689 `(#:python ,python-2 ; Python 3 isn't supported
8690 #:imported-modules ((guix build glib-or-gtk-build-system)
8691 ,@%python-build-system-modules)
8692 #:modules ((guix build python-build-system)
8693 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8694 (guix build utils))
08be02be
AT
8695 #:phases
8696 (modify-phases %standard-phases
8697 (add-after
8698 'install 'wrap-program
8699 (lambda* (#:key outputs #:allow-other-keys)
8700 (let ((prog (string-append (assoc-ref outputs "out")
8701 "/bin/terminator")))
8702 (wrap-program prog
8703 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
8704 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
96681d4b
TGR
8705 #t)))
8706 (add-after 'wrap-program 'glib-or-gtk-wrap
8707 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
08be02be
AT
8708 (home-page "https://gnometerminator.blogspot.com/")
8709 (synopsis "Store and run multiple GNOME terminals in one window")
8710 (description
8711 "Terminator allows you to run multiple GNOME terminals in a grid and
8712+tabs, and it supports drag and drop re-ordering of terminals.")
8713 (license license:gpl2)))
213315d4
JF
8714
8715(define-public libhandy
8716 (package
8717 (name "libhandy")
d41ee146 8718 (version "0.0.11")
213315d4
JF
8719 (source
8720 (origin
8721 (method git-fetch)
8722 (uri (git-reference
8723 (url "https://source.puri.sm/Librem5/libhandy")
8724 (commit (string-append "v" version))))
8725 (file-name (git-file-name name version))
8726 (sha256
d41ee146 8727 (base32 "0622zp5wrvn5bvgardijxd11y76g1i54fs32y03dw9nrar7i6vb0"))))
213315d4
JF
8728 (build-system meson-build-system)
8729 (arguments
8730 `(#:configure-flags
8731 '("-Dglade_catalog=disabled"
8732 "-Dgtk_doc=true")
8733 #:phases
8734 (modify-phases %standard-phases
213315d4
JF
8735 (add-before 'check 'pre-check
8736 (lambda _
8737 ;; Tests require a running X server.
8738 (system "Xvfb :1 &")
8739 (setenv "DISPLAY" ":1")
8740 #t)))))
8741 (inputs
8742 `(("gtk+" ,gtk+)))
8743 (native-inputs
8744 `(("glib:bin" ,glib "bin")
8745 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
8746 ("vala" ,vala)
8747 ("gtk-doc" ,gtk-doc)
8748 ("pkg-config" ,pkg-config)
8749 ("gettext" ,gettext-minimal)
d41ee146
TGR
8750
8751 ;; Test suite dependencies.
ff337525 8752 ("xorg-server" ,xorg-server-for-tests)
d41ee146 8753 ("hicolor-icon-theme" ,hicolor-icon-theme)))
213315d4
JF
8754 (home-page "https://source.puri.sm/Librem5/libhandy")
8755 (synopsis "Library full of GTK+ widgets for mobile phones")
8756 (description "The aim of the handy library is to help with developing user
8757intefaces for mobile devices using GTK+.")
8758 (license license:lgpl2.1+)))
a830d14d
GL
8759
8760(define-public libgit2-glib
8761 (package
8762 (name "libgit2-glib")
8763 (version "0.28.0.1")
8764 (source (origin
8765 (method url-fetch)
8766 (uri (string-append "mirror://gnome/sources/" name "/"
8767 (version-major+minor version) "/"
8768 name "-" version ".tar.xz"))
8769 (sha256
8770 (base32
8771 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
8772 (build-system meson-build-system)
8773 (native-inputs
8774 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
8775 ("gobject-introspection" ,gobject-introspection)
8776 ("intltool" ,intltool)
8777 ("libssh2" ,libssh2)
8778 ("pkg-config" ,pkg-config)
8779 ("python-pygobject" ,python-pygobject)
8780 ("python-wrapper" ,python-wrapper)
8781 ("vala" ,vala)))
8782 (inputs
8783 `(("glib" ,glib)
8784 ("libgit2" ,libgit2)))
8785 (synopsis "GLib wrapper around the libgit2 Git access library")
8786 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
8787access library. It only implements the core plumbing functions, not really the
8788higher level porcelain stuff.")
8789 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
8790 (license license:gpl2+)))
93beace0 8791
08db81c9
LP
8792(define-public gitg
8793 (package
8794 (name "gitg")
8795 (version "3.32.1")
8796 (source (origin
8797 (method url-fetch)
8798 (uri (string-append "mirror://gnome/sources/" name "/"
8799 (version-major+minor version) "/"
8800 name "-" version ".tar.xz"))
8801 (sha256
8802 (base32
8803 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
8804 (build-system meson-build-system)
8805 (arguments
8806 `(#:glib-or-gtk? #t
8807 #:phases
8808 (modify-phases %standard-phases
8809 (add-after 'unpack 'disable-post-install-partially
8810 (lambda _
8811 (substitute* "meson_post_install.py"
8812 (("'python'") ; there are no python sources to compile
8813 (string-append "'" (which "true") "'"))
8814 (("gtk-update-icon-cache") (which "true")))
8815 #t))
8816 (add-after 'unpack 'fix-test-sources
8817 (lambda _
8818 (substitute* "tests/libgitg/test-commit.vala"
8819 (("/bin/bash") (which "bash")))
8820 #t))
8821 (add-after 'glib-or-gtk-wrap 'wrap-typelib
8822 (lambda* (#:key outputs #:allow-other-keys)
8823 (let ((prog (string-append (assoc-ref outputs "out")
8824 "/bin/gitg")))
8825 (wrap-program prog
8826 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
8827 #t))))))
8828 (inputs
8829 `(("glib" ,glib)
8830 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8831 ("gtk+" ,gtk+)
8832 ("gtkspell3" ,gtkspell3)
8833 ("gtksourceview" ,gtksourceview-3)
8834 ("json-glib" ,json-glib)
8835 ("libdazzle" ,libdazzle)
8836 ("libgee" ,libgee)
8837 ("libgit2" ,libgit2) ; propagated by libgit2-glib
8838 ("libgit2-glib" ,libgit2-glib)
8839 ("libpeas" ,libpeas)
8840 ("libsecret" ,libsecret)
8841 ("libsoup" ,libsoup)
8842 ("libxml2" ,libxml2)))
8843 (native-inputs
8844 `(("glib:bin" ,glib "bin")
8845 ("gtk+:bin" ,gtk+ "bin")
8846 ("gobject-introspection" ,gobject-introspection)
8847 ("intltool" ,intltool)
8848 ("pkg-config" ,pkg-config)
8849 ("vala" ,vala)))
8850 (synopsis "Graphical user interface for git")
8851 (description
8852 "gitg is a graphical user interface for git. It aims at being a small,
8853fast and convenient tool to visualize the history of git repositories.
8854Besides visualization, gitg also provides several utilities to manage your
8855repository and commit your work.")
8856 (home-page "https://wiki.gnome.org/Apps/Gitg")
8857 (license license:gpl2+)))
8858
93beace0
DW
8859(define-public gnome-mahjongg
8860 (package
8861 (name "gnome-mahjongg")
8862 (version "3.35.1")
8863 (source (origin
8864 (method git-fetch)
8865 (uri (git-reference
8866 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
8867 (commit version)))
8868 (file-name (git-file-name name version))
8869 (sha256
8870 (base32
8871 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
8872 (build-system meson-build-system)
8873 (arguments
8874 `(#:glib-or-gtk? #t))
8875 (native-inputs
8876 `(("appstream-glib" ,appstream-glib)
8877 ("gettext" ,gettext-minimal)
8878 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
8879 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
8880 ("itstool" ,itstool)
8881 ("pkg-config" ,pkg-config)
8882 ("vala" ,vala)))
8883 (propagated-inputs
8884 `(("dconf" ,dconf)))
8885 (inputs
8886 `(("glib" ,glib)
8887 ("gtk+" ,gtk+)
8888 ("librsvg" ,librsvg)))
8889 (synopsis "Mahjongg tile-matching game")
8890 (description "GNOME Mahjongg is a game based on the classic Chinese
8891tile-matching game Mahjong. It features multiple board layouts, tile themes,
8892and a high score table.")
8893 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
8894 (license license:gpl2+)))