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