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