gnu: libsoup: Update to 2.56.0.
[guix.git] / gnu / packages / gnome.scm
blob1762381cf0327eba8fa09b02aaa0bb5e9ae41d12
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
8 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
11 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
13 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
16 ;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
17 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
18 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
19 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
20 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
23 ;;; Copyright © 2016 David Craven <david@craven.ch>
24 ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
25 ;;;
26 ;;; This file is part of GNU Guix.
27 ;;;
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
32 ;;;
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36 ;;; GNU General Public License for more details.
37 ;;;
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages gnome)
42   #:use-module ((guix licenses) #:prefix license:)
43   #:use-module (guix packages)
44   #:use-module (guix download)
45   #:use-module (guix git-download)
46   #:use-module (guix utils)
47   #:use-module (guix build-system gnu)
48   #:use-module (guix build-system glib-or-gtk)
49   #:use-module (guix build-system trivial)
50   #:use-module (gnu packages)
51   #:use-module (gnu packages admin)
52   #:use-module (gnu packages autotools)
53   #:use-module (gnu packages avahi)
54   #:use-module (gnu packages base)
55   #:use-module (gnu packages bison)
56   #:use-module (gnu packages calendar)
57   #:use-module (gnu packages check)
58   #:use-module (gnu packages cups)
59   #:use-module (gnu packages curl)
60   #:use-module (gnu packages cyrus-sasl)
61   #:use-module (gnu packages databases)
62   #:use-module (gnu packages djvu)
63   #:use-module (gnu packages dns)
64   #:use-module (gnu packages flex)
65   #:use-module (gnu packages docbook)
66   #:use-module (gnu packages enchant)
67   #:use-module (gnu packages fontutils)
68   #:use-module (gnu packages game-development)
69   #:use-module (gnu packages gettext)
70   #:use-module (gnu packages glib)
71   #:use-module (gnu packages gnupg)
72   #:use-module (gnu packages gnuzilla)
73   #:use-module (gnu packages gstreamer)
74   #:use-module (gnu packages gtk)
75   #:use-module (gnu packages gperf)
76   #:use-module (gnu packages guile)
77   #:use-module (gnu packages openldap)
78   #:use-module (gnu packages pdf)
79   #:use-module (gnu packages polkit)
80   #:use-module (gnu packages popt)
81   #:use-module (gnu packages ghostscript)
82   #:use-module (gnu packages ibus)
83   #:use-module (gnu packages iso-codes)
84   #:use-module (gnu packages libcanberra)
85   #:use-module (gnu packages linux)
86   #:use-module (gnu packages libusb)
87   #:use-module (gnu packages lirc)
88   #:use-module (gnu packages lua)
89   #:use-module (gnu packages image)
90   #:use-module (gnu packages networking)
91   #:use-module (gnu packages password-utils)
92   #:use-module (gnu packages perl)
93   #:use-module (gnu packages photo)
94   #:use-module (gnu packages pkg-config)
95   #:use-module (gnu packages pulseaudio)
96   #:use-module (gnu packages python)
97   #:use-module (gnu packages scanner)
98   #:use-module (gnu packages ssh)
99   #:use-module (gnu packages xml)
100   #:use-module (gnu packages gl)
101   #:use-module (gnu packages compression)
102   #:use-module (gnu packages tex)
103   #:use-module (gnu packages tls)
104   #:use-module (gnu packages web)
105   #:use-module (gnu packages webkit)
106   #:use-module (gnu packages xorg)
107   #:use-module (gnu packages xdisorg)
108   #:use-module (gnu packages freedesktop)
109   #:use-module (gnu packages mail)
110   #:use-module (gnu packages mit-krb5)
111   #:use-module (gnu packages multiprecision)
112   #:use-module (gnu packages backup)
113   #:use-module (gnu packages nettle)
114   #:use-module (gnu packages ncurses)
115   #:use-module (gnu packages video)
116   #:use-module (gnu packages cdrom)
117   #:use-module (gnu packages samba)
118   #:use-module (gnu packages readline)
119   #:use-module (gnu packages fonts)
120   #:use-module (srfi srfi-1))
122 (define-public brasero
123   (package
124     (name "brasero")
125     (version "3.12.1")
126     (source (origin
127              (method url-fetch)
128              (uri (string-append "mirror://gnome/sources/" name "/"
129                                  (version-major+minor version) "/"
130                                  name "-" version ".tar.xz"))
131              (sha256
132               (base32
133                "09vi2hyhl0bz7imv3ky6h7x5m3d546n968wcghydwrkvwm9ylpls"))))
134     (build-system glib-or-gtk-build-system)
135     (arguments
136      `(#:configure-flags (list
137                           (string-append "--with-girdir="
138                                          (assoc-ref %outputs "out")
139                                          "/share/gir-1.0")
140                           (string-append "--with-typelibdir="
141                                          (assoc-ref %outputs "out")
142                                          "/lib/girepository-1.0"))))
143     (propagated-inputs
144      `(("hicolor-icon-theme" ,hicolor-icon-theme)))
145     (native-inputs
146      `(("intltool" ,intltool)
147        ("glib" ,glib "bin")                       ; glib-compile-schemas, etc.
148        ("gobject-introspection" ,gobject-introspection)
149        ("pkg-config" ,pkg-config)))
150     (inputs
151      `(("glib" ,glib)
152        ("gnome-doc-utils" ,gnome-doc-utils)
153        ("gstreamer" ,gstreamer)
154        ("gst-plugins-base" ,gst-plugins-base)
155        ("gtk+" ,gtk+)
156        ("itstool" ,itstool)
157        ("libcanberra" ,libcanberra)
158        ("libice" ,libice)
159        ("libnotify" ,libnotify)
160        ("libsm" ,libsm)
161        ("libxml2" ,libxml2)
162        ("nettle" ,nettle)
163        ("totem-pl-parser" ,totem-pl-parser)))
164     (home-page "https://projects.gnome.org/brasero/")
165     (synopsis "CD/DVD burning tool for Gnome")
166     (description "Brasero is an application to burn CD/DVD for the Gnome
167 Desktop.  It is designed to be as simple as possible and has some unique
168 features to enable users to create their discs easily and quickly.")
169     (license license:gpl2+)))
171 (define-public dia
172   ;; This version from GNOME's repository includes fixes for compiling with
173   ;; recent versions of the build tools.  The latest activity on the
174   ;; pre-GNOME version has been in 2014, while GNOME has continued applying
175   ;; fixes in 2016.
176   (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
177     (package
178       (name "dia")
179       (version (string-append "0.97.2-" (string-take commit 7)))
180       (source (origin
181                 (method git-fetch)
182                 (uri (git-reference
183                       (url "https://git.gnome.org/browse/dia")
184                       (commit commit)))
185                 (file-name (string-append name "-" version "-checkout"))
186                 (sha256
187                  (base32
188                   "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
189       (build-system gnu-build-system)
190       (inputs
191        `(("glib" ,glib "bin")
192          ("pango" ,pango)
193          ("gdk-pixbuf" ,gdk-pixbuf)
194          ("gtk+" ,gtk+-2)
195          ("libxml2" ,libxml2)
196          ("freetype" ,freetype)
197          ("libart-lgpl" ,libart-lgpl)))
198       (native-inputs
199        `(("intltool" ,intltool)
200          ("pkg-config" ,pkg-config)
201          ("automake" ,automake)
202          ("autoconf" ,autoconf)
203          ("libtool" ,libtool)
204          ("perl" ,perl)
205          ("python-wrapper" ,python-wrapper)))
206       (arguments
207        `(#:phases
208          (modify-phases %standard-phases
209            (add-before 'configure 'run-autogen
210              (lambda _
211                (system* "sh" "autogen.sh"))))))
212       (home-page "https://wiki.gnome.org/Apps/Dia")
213       (synopsis "Diagram creation for GNOME")
214       (description "Dia can be used to draw different types of diagrams, and
215 includes support for UML static structure diagrams (class diagrams), entity
216 relationship modeling, and network diagrams.  The program supports various file
217 formats like PNG, SVG, PDF and EPS.")
218       (license license:gpl2+))))
220 (define-public gnome-common
221   (package
222     (name "gnome-common")
223     (version "3.18.0")
224     (source
225      (origin
226        (method url-fetch)
227        (uri (string-append "mirror://gnome/sources/" name "/"
228                            (version-major+minor version)  "/"
229                            name "-" version ".tar.xz"))
230        (sha256
231         (base32
232          "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
233     (build-system gnu-build-system)
234     (home-page "https://www.gnome.org/")
235     (synopsis "Bootstrap GNOME modules built from Git")
236     (description "gnome-common contains various files needed to bootstrap
237 GNOME modules built from Git.  It contains a common \"autogen.sh\" script that
238 can be used to configure a source directory checked out from Git and some
239 commonly used macros.")
240     (license license:gpl2+)))
242 (define-public gnome-desktop
243   (package
244     (name "gnome-desktop")
245     (version "3.20.2")
246     (source
247      (origin
248       (method url-fetch)
249       (uri (string-append "mirror://gnome/sources/" name "/"
250                           (version-major+minor version)  "/"
251                           name "-" version ".tar.xz"))
252       (sha256
253        (base32
254         "1cp2c6q1ybirfq6rqyfj5lr5vyqdizy730bfg5jqnflcmakjsb29"))))
255     (build-system gnu-build-system)
256     (native-inputs
257      `(("gobject-introspection" ,gobject-introspection)
258        ("itstool" ,itstool)
259        ("intltool" ,intltool)
260        ("pkg-config" ,pkg-config)
261        ("xmllint" ,libxml2)))
262     (propagated-inputs
263      ;; Required by gnome-desktop-3.0.pc.
264      `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
265        ("gtk+" ,gtk+)))
266     (inputs
267      `(("gdk-pixbuf" ,gdk-pixbuf)
268        ("glib" ,glib)
269        ("iso-codes" ,iso-codes)
270        ("libx11" ,libx11)
271        ("libxext" ,libxext)
272        ("libxkbfile" ,libxkbfile)
273        ("libxrandr" ,libxrandr)
274        ("xkeyboard-config" ,xkeyboard-config)))
275     (home-page "https://www.gnome.org/")
276     (synopsis
277      "Libgnome-desktop, gnome-about, and desktop-wide documents")
278     (description
279      "The libgnome-desktop library provides API shared by several applications
280 on the desktop, but that cannot live in the platform for various reasons.
281 There is no API or ABI guarantee, although we are doing our best to provide
282 stability.  Documentation for the API is available with gtk-doc.
284 The gnome-about program helps find which version of GNOME is installed.")
285     ; Some bits under the LGPL.
286     (license license:gpl2+)))
288 (define-public gnome-doc-utils
289   (package
290     (name "gnome-doc-utils")
291     (version "0.20.10")
292     (source
293      (origin
294       (method url-fetch)
295       (uri (string-append "mirror://gnome/sources/" name "/"
296                           (version-major+minor version)  "/"
297                           name "-" version ".tar.xz"))
298       (sha256
299        (base32
300         "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
301     (build-system gnu-build-system)
302     (native-inputs
303      `(("intltool" ,intltool)
304        ("docbook-xml" ,docbook-xml-4.4)
305        ("python2-libxml2" ,python2-libxml2)
306        ("libxml2" ,libxml2)
307        ("libxslt" ,libxslt)
308        ("pkg-config" ,pkg-config)
309        ("python-2" ,python-2)))
310     (home-page "https://wiki.gnome.org/GnomeDocUtils")
311     (synopsis
312      "Documentation utilities for the Gnome project")
313     (description
314      "Gnome-doc-utils is a collection of documentation utilities for the
315 Gnome project.  It includes xml2po tool which makes it easier to translate
316 and keep up to date translations of documentation.")
317     (license license:gpl2+))) ; xslt under lgpl
319 (define-public gcr
320   (package
321     (name "gcr")
322     (version "3.20.0")
323     (source (origin
324              (method url-fetch)
325              (uri (string-append "mirror://gnome/sources/" name "/"
326                                  (version-major+minor version)  "/"
327                                  name "-" version ".tar.xz"))
328              (sha256
329               (base32
330                "0ydk9dzxx6snxza7j5ps8x932hbr3x1b8hhcaqjq4w4admi2qmwh"))))
331     (build-system gnu-build-system)
332     (arguments
333      '(#:tests? #f ;25 of 598 tests fail because /var/lib/dbus/machine-id does
334                    ;not exist
335        #:phases (modify-phases %standard-phases
336                   (add-before
337                    'check 'pre-check
338                    (lambda* (#:key inputs #:allow-other-keys)
339                      (substitute* "build/tap-driver"
340                        (("/usr/bin/env python") (which "python"))))))))
341     (inputs
342      `(("dbus" ,dbus)
343        ("gnupg" ,gnupg) ;called as a child process during tests
344        ("libgcrypt" ,libgcrypt)))
345     (native-inputs
346      `(("python" ,python-2) ;for tests
347        ("pkg-config" ,pkg-config)
348        ("glib" ,glib "bin")
349        ("gobject-introspection" ,gobject-introspection)
350        ("intltool" ,intltool)
351        ("xsltproc" ,libxslt)))
352     ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
353     (propagated-inputs
354      `(("p11-kit" ,p11-kit)
355        ("glib" ,glib)
356        ("gtk+" ,gtk+)))
357     (home-page "http://www.gnome.org")
358     (synopsis "Libraries for displaying certificates and accessing key stores")
359     (description
360      "The GCR package contains libraries used for displaying certificates and
361 accessing key stores.  It also provides the viewer for crypto files on the
362 GNOME Desktop.")
363     (license license:lgpl2.1+)))
365 (define-public libgnome-keyring
366   (package
367     (name "libgnome-keyring")
368     (version "3.12.0")
369     (source (origin
370              (method url-fetch)
371              (uri (string-append "mirror://gnome/sources/" name "/"
372                                  (version-major+minor version)  "/"
373                                  name "-" version ".tar.xz"))
374              (sha256
375               (base32
376                "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
377     (build-system gnu-build-system)
378     (inputs
379      `(("libgcrypt" ,libgcrypt)
380        ("dbus" ,dbus)))
381     (native-inputs
382      `(("pkg-config" ,pkg-config)
383        ("glib" ,glib "bin")
384        ("intltool" ,intltool)))
385     (propagated-inputs
386      ;; Referred to in .h files and .pc.
387      `(("glib" ,glib)))
388     (home-page "http://www.gnome.org")
389     (synopsis "Accessing passwords from the GNOME keyring")
390     (description
391      "Client library to access passwords from the GNOME keyring.")
393     ;; Though a couple of files are LGPLv2.1+.
394     (license license:lgpl2.0+)))
396 (define-public gnome-keyring
397   (package
398     (name "gnome-keyring")
399     (version "3.20.0")
400     (source (origin
401              (method url-fetch)
402              (uri (string-append "mirror://gnome/sources/" name "/"
403                                  (version-major+minor version)  "/"
404                                  name "-" version ".tar.xz"))
405              (sha256
406               (base32
407                "16gcwwcg91ipxjmiyi4c4njvnxixmv1i278p0bilc3lafk6ww5xw"))))
408     (build-system gnu-build-system)
409     (arguments
410      `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
411                    ;not exist
412        #:configure-flags
413        (list
414         (string-append "--with-pkcs11-config="
415                        (assoc-ref %outputs "out") "/share/p11-kit/modules/")
416         (string-append "--with-pkcs11-modules="
417                        (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
418        #:phases
419        (modify-phases %standard-phases
420          (add-before
421           'check 'pre-check
422           (lambda* (#:key inputs #:allow-other-keys)
423             (substitute* "build/tap-driver"
424               (("/usr/bin/env python") (which "python")))))
425          (add-before
426           'configure 'fix-docbook
427           (lambda* (#:key inputs #:allow-other-keys)
428             (substitute* "docs/Makefile.am"
429               (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
430                (string-append (assoc-ref inputs "docbook-xsl")
431                               "/xml/xsl/docbook-xsl-"
432                               ,(package-version docbook-xsl)
433                               "/manpages/docbook.xsl")))
434             (setenv "XML_CATALOG_FILES"
435                     (string-append (assoc-ref inputs "docbook-xml")
436                                    "/xml/dtd/docbook/catalog.xml")))))))
437     (inputs
438      `(("libgcrypt" ,libgcrypt)
439        ("linux-pam" ,linux-pam)
440        ("dbus" ,dbus)
441        ("gcr" ,gcr)))
442     (native-inputs
443      `(("pkg-config" ,pkg-config)
444        ("glib" ,glib "bin")
445        ("python" ,python-2) ;for tests
446        ("intltool" ,intltool)
447        ("autoconf" ,autoconf)
448        ("automake" ,automake)
449        ("libxslt" ,libxslt) ;for documentation
450        ("docbook-xml" ,docbook-xml-4.2)
451        ("docbook-xsl" ,docbook-xsl)))
452     (home-page "http://www.gnome.org")
453     (synopsis "Daemon to store passwords and encryption keys")
454     (description
455      "gnome-keyring is a program that keeps passwords and other secrets for
456 users.  It is run as a daemon in the session, similar to ssh-agent, and other
457 applications locate it via an environment variable or D-Bus.
459 The program can manage several keyrings, each with its own master password,
460 and there is also a session keyring which is never stored to disk, but
461 forgotten when the session ends.")
462     (license license:lgpl2.1+)))
464 (define-public evince
465   (package
466     (name "evince")
467     (version "3.20.1")
468     (source (origin
469              (method url-fetch)
470              (uri (string-append "mirror://gnome/sources/" name "/"
471                                  (version-major+minor version) "/"
472                                  name "-" version ".tar.xz"))
473              (sha256
474               (base32
475                "0m80s98k4i463dclpyk01fqb91cawbb6vvcz5vq2974k6qqc4ypw"))))
476     (build-system glib-or-gtk-build-system)
477     (arguments
478      `(#:configure-flags '("--disable-nautilus")
480        ;; FIXME: Tests fail with:
481        ;;   ImportError: No module named gi.repository
482        ;; Where should that module come from?
483        #:tests? #f
484        #:phases
485        (modify-phases %standard-phases
486          (add-before 'install 'skip-gtk-update-icon-cache
487            ;; Don't create 'icon-theme.cache'.
488            (lambda _
489              (substitute* "data/Makefile"
490                (("gtk-update-icon-cache") "true"))
491              #t)))))
492     (inputs
493      `(("libspectre" ,libspectre)
494        ("djvulibre" ,djvulibre)
495        ("ghostscript" ,ghostscript)
496        ("poppler" ,poppler)
497        ("libtiff" ,libtiff)
498        ;; TODO:
499        ;;   Add libgxps for XPS support.
500        ;;   Build libkpathsea as a shared library for DVI support.
501        ;; ("libkpathsea" ,texlive-bin)
502        ("gnome-desktop" ,gnome-desktop)
503        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
504        ("libgnome-keyring" ,libgnome-keyring)
505        ("adwaita-icon-theme" ,adwaita-icon-theme)
506        ("gdk-pixbuf" ,gdk-pixbuf)
507        ("atk" ,atk)
508        ("pango" ,pango)
509        ("gtk+" ,gtk+)
510        ("glib" ,glib)
511        ("libxml2" ,libxml2)
512        ("libsm" ,libsm)
513        ("libice" ,libice)
514        ("shared-mime-info" ,shared-mime-info)
515        ("dconf" ,dconf)
516        ("libcanberra" ,libcanberra)
517        ("libsecret" ,libsecret)
518        ;; For tests.
519        ("dogtail" ,python2-dogtail)))
520     (native-inputs
521      `(("itstool" ,itstool)
522        ("intltool" ,intltool)
523        ("glib" ,glib "bin")
524        ("pkg-config" ,pkg-config)
525        ("xmllint" ,libxml2)))
526     (home-page
527      "http://www.gnome.org/projects/evince/")
528     (synopsis "GNOME's document viewer")
529     (description
530      "Evince is a document viewer for multiple document formats.  It
531 currently supports PDF, PostScript, DjVu, TIFF and DVI.  The goal
532 of Evince is to replace the multiple document viewers that exist
533 on the GNOME Desktop with a single simple application.")
534     (license license:gpl2+)))
536 (define-public gsettings-desktop-schemas
537   (package
538     (name "gsettings-desktop-schemas")
539     (version "3.20.0")
540     (source
541      (origin
542       (method url-fetch)
543       (uri (string-append "mirror://gnome/sources/" name "/"
544                           (version-major+minor version)  "/"
545                           name "-" version ".tar.xz"))
546       (sha256
547        (base32
548         "1hfrqqsmqscgbnaikmyq4yq8h72554wdg13algh5bf8a7i9ip92m"))))
549     (build-system gnu-build-system)
550     (inputs
551      `(("glib" ,glib)))
552     (native-inputs
553      `(("intltool" ,intltool)
554        ("glib" ,glib "bin")                       ; glib-compile-schemas, etc.
555        ("gobject-introspection" ,gobject-introspection)
556        ("pkg-config" ,pkg-config)))
557     (home-page "https://launchpad.net/gsettings-desktop-schemas")
558     (synopsis
559      "GNOME settings for various desktop components")
560     (description
561      "Gsettings-desktop-schemas contains a collection of GSettings schemas
562 for settings shared by various components of the GNOME desktop.")
563     (license license:lgpl2.1+)))
565 (define-public icon-naming-utils
566   (package
567     (name "icon-naming-utils")
568     (version "0.8.90")
569     (source
570      (origin
571       (method url-fetch)
572       (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
573                           version ".tar.bz2"))
574       (sha256
575        (base32
576         "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
577     (build-system gnu-build-system)
578     (inputs
579      `(("perl" ,perl)
580        ("perl-xml-simple" ,perl-xml-simple)))
581     (arguments
582      '(#:phases
583        (alist-cons-after
584         'install 'set-load-paths
585         ;; Tell 'icon-name-mapping' where XML::Simple is.
586         (lambda* (#:key outputs #:allow-other-keys)
587           (let* ((out  (assoc-ref outputs "out"))
588                  (prog (string-append out "/libexec/icon-name-mapping")))
589             (wrap-program
590              prog
591              `("PERL5LIB" = ,(list (getenv "PERL5LIB"))))))
592         %standard-phases)))
593     (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
594     (synopsis
595      "Utility to implement the Freedesktop Icon Naming Specification")
596     (description
597      "To help with the transition to the Freedesktop Icon Naming
598 Specification, the icon naming utility maps the icon names used by the
599 GNOME and KDE desktops to the icon names proposed in the specification.")
600     (license license:lgpl2.1+)))
602 (define-public desktop-file-utils
603   (package
604     (name "desktop-file-utils")
605     (version "0.22")
606     (source (origin
607               (method url-fetch)
608               (uri (string-append "https://www.freedesktop.org/software/" name
609                                   "/releases/" name "-" version ".tar.xz"))
610               (sha256
611                (base32
612                 "1ianvr2a69yjv4rpyv30w7yjsmnsb23crrka5ndqxycj4rkk4dc4"))))
613     (build-system gnu-build-system)
614     (native-inputs
615      `(("pkg-config" ,pkg-config)))
616     (inputs
617      `(("glib" ,glib)))
618     (home-page "http://www.freedesktop.org/wiki/Software/desktop-file-utils/")
619     (synopsis "Utilities for working with desktop entries")
620     (description
621      "This package contains a few command line utilities for working with
622 desktop entries:
624 desktop-file-validate: validates a desktop file and prints warnings/errors
625                        about desktop entry specification violations.
627 desktop-file-install: installs a desktop file to the applications directory,
628                       optionally munging it a bit in transit.
630 update-desktop-database: updates the database containing a cache of MIME types
631                          handled by desktop files.")
632     (license license:gpl2+)))
634 (define-public gnome-icon-theme
635   (package
636     (name "gnome-icon-theme")
637     (version "3.12.0")
638     (source
639      (origin
640       (method url-fetch)
641       (uri (string-append "mirror://gnome/sources/" name "/"
642                           (version-major+minor version)  "/"
643                           name "-" version ".tar.xz"))
644       (sha256
645        (base32
646         "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
647     (build-system gnu-build-system)
648     (arguments
649      '(#:configure-flags
650        ;; Don't create 'icon-theme.cache'.
651        (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
652               (true      (string-append coreutils "/bin/true")))
653          (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
654     (native-inputs
655      `(("icon-naming-utils" ,icon-naming-utils)
656        ("intltool" ,intltool)
657        ("pkg-config" ,pkg-config)))
658     (home-page "http://art.gnome.org/")
659     (synopsis
660      "GNOME icon theme")
661     (description
662      "Icons for the GNOME desktop.")
663     (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
665 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
666 (define-public adwaita-icon-theme
667   (package (inherit gnome-icon-theme)
668     (name "adwaita-icon-theme")
669     (version "3.20")
670     (source (origin
671               (method url-fetch)
672               (uri (string-append "mirror://gnome/sources/" name "/"
673                                   (version-major+minor version) "/"
674                                   name "-" version ".tar.xz"))
675               (sha256
676                (base32
677                 "0ddfwwqx8s63qbqimmbb015lqsab4s0rvy1j81jdsh7k95rqh2ks"))))
678     (native-inputs
679      `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
681 (define-public shared-mime-info
682   (package
683     (name "shared-mime-info")
684     (version "1.7")
685     (source (origin
686              (method url-fetch)
687              (uri (string-append "https://freedesktop.org/~hadess/"
688                                  "shared-mime-info-" version ".tar.xz"))
689              (sha256
690               (base32
691                "0bjd2j1rqrj150mr04j7ib71lfdlgbf235fg8d70g8mszqf7ik7a"))))
692     (build-system gnu-build-system)
693     (arguments
694      ;; The build system appears not to be parallel-safe.
695      '(#:parallel-build? #f))
696     (inputs
697      `(("glib" ,glib)
698        ("libxml2" ,libxml2)))
699     (native-inputs
700      `(("intltool" ,intltool)
701        ("pkg-config" ,pkg-config)))
702     (home-page "http://freedesktop.org/wiki/Software/shared-mime-info")
703     (synopsis "Database of common MIME types")
704     (description
705      "The shared-mime-info package contains the core database of common types
706 and the update-mime-database command used to extend it.  It requires glib2 to
707 be installed for building the update command.  Additionally, it uses intltool
708 for translations, though this is only a dependency for the maintainers.  This
709 database is translated at Transifex.")
710     (license license:gpl2+)))
712 (define-public hicolor-icon-theme
713   (package
714     (name "hicolor-icon-theme")
715     (version "0.12")
716     (source
717      (origin
718       (method url-fetch)
719       (uri (string-append "https://icon-theme.freedesktop.org/releases/"
720                           "hicolor-icon-theme-" version ".tar.gz"))
721       (sha256
722        (base32
723         "0wzc7g4ldb2l8zc0x2785ck808c03i857jji942ikakyc68adp4y"))))
724     (build-system gnu-build-system)
725     (arguments
726      `(#:tests? #f)) ; no check target
727     (home-page "http://icon-theme.freedesktop.org/releases/")
728     (synopsis
729      "Freedesktop icon theme")
730     (description
731      "Freedesktop icon theme.")
732     (license license:gpl2)))
734 (define-public libnotify
735   (package
736     (name "libnotify")
737     (version "0.7.6")
738     (source
739      (origin
740       (method url-fetch)
741       (uri (string-append "mirror://gnome/sources/" name "/"
742                           (version-major+minor version)  "/"
743                           name "-" version ".tar.xz"))
744       (sha256
745        (base32
746         "0dyq8zgjnnzcah31axnx6afb21kl7bks1gvrg4hjh3nk02j1rxhf"))))
747     (build-system gnu-build-system)
748     (inputs
749      `(("gdk-pixbuf" ,gdk-pixbuf)
750        ("glib" ,glib)
751        ("gtk+" ,gtk+)
752        ("libpng" ,libpng)))
753     (native-inputs
754       `(("pkg-config" ,pkg-config)
755         ("glib" ,glib "bin")
756         ("gobject-introspection" ,gobject-introspection)))
757     (home-page "https://developer-next.gnome.org/libnotify/")
758     (synopsis
759      "GNOME desktop notification library")
760     (description
761      "Libnotify is a library that sends desktop notifications to a
762 notification daemon, as defined in the Desktop Notifications spec.  These
763 notifications can be used to inform the user about an event or display
764 some form of information without getting in the user's way.")
765     (license license:lgpl2.1+)))
767 (define-public libpeas
768   (package
769     (name "libpeas")
770     (version "1.18.0")
771     (source
772      (origin
773       (method url-fetch)
774       (uri (string-append "mirror://gnome/sources/" name "/"
775                           (version-major+minor version)  "/"
776                           name "-" version ".tar.xz"))
777       (sha256
778        (base32
779         "09jy2rwwgp0xx7cnypxl56m7zzxnj3j4v58xqjxjasf3chn88jdz"))))
780     (build-system gnu-build-system)
781     (inputs
782      `(("gtk+" ,gtk+)
783        ("glade" ,glade3)
784        ("libxml2" ,libxml2) ; XXX: required by gladeui-2.0.pc
785        ("python" ,python)
786        ("python-pygobject" ,python-pygobject)))
787     (native-inputs
788      `(("pkg-config" ,pkg-config)
789        ("glib:bin" ,glib "bin")
790        ("gobject-introspection" ,gobject-introspection)
791        ("intltool" ,intltool)))
792     (home-page "https://wiki.gnome.org/Libpeas")
793     (synopsis "GObject plugin system")
794     (description
795      "Libpeas is a gobject-based plugins engine, and is targetted at giving
796 every application the chance to assume its own extensibility.  It also has a
797 set of features including, but not limited to: multiple extension points; on
798 demand (lazy) programming language support for C, Python and JS; simplicity of
799 the API.")
800     (license license:lgpl2.0+)))
802 (define-public gtkglext
803   (package
804     (name "gtkglext")
805     (version "1.2.0")
806     (source (origin
807               (method url-fetch)
808               (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
809                                   version "/gtkglext-" version ".tar.gz"))
810               (sha256
811                (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
812               (patches (search-patches
813                         "gtkglext-disable-disable-deprecated.patch"))))
814     (build-system gnu-build-system)
815     (inputs `(("gtk+" ,gtk+-2)
816               ("mesa" ,mesa)
817               ("glu" ,glu)
818               ("libx11" ,libx11)
819               ("libxt" ,libxt)))
820     (native-inputs `(("pkg-config" ,pkg-config)
821                      ("glib" ,glib "bin")))
822     (propagated-inputs `(("pangox-compat" ,pangox-compat)))
823     (home-page "https://projects.gnome.org/gtkglext")
824     (synopsis "OpenGL extension to GTK+")
825     (description "GtkGLExt is an OpenGL extension to GTK+.  It provides
826 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
827 API add-ons to make GTK+ widgets OpenGL-capable.")
828     (license license:lgpl2.1+)))
830 (define-public glade3
831   (package
832     (name "glade")
833     (version "3.20.0")
834     (source (origin
835               (method url-fetch)
836               (uri (string-append "mirror://gnome/sources/" name "/"
837                                   (version-major+minor version)  "/"
838                                   name "-" version ".tar.xz"))
839               (sha256
840                (base32
841                 "1zhqvhagy0m85p54jfiayfl0v9af7g0lj7glw8sfwh7cbp56vnc2"))))
842     (build-system glib-or-gtk-build-system)
843     (arguments
844      `(#:tests? #f ; needs X, GL, and software rendering
845        #:phases
846        (modify-phases %standard-phases
847          (add-before 'configure 'fix-docbook
848            (lambda* (#:key inputs #:allow-other-keys)
849              (substitute* "man/Makefile.in"
850                (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
851                 (string-append (assoc-ref inputs "docbook-xsl")
852                                "/xml/xsl/docbook-xsl-"
853                                ,(package-version docbook-xsl)
854                                "/manpages/docbook.xsl")))
855              #t)))))
856     (inputs
857      `(("gtk+" ,gtk+)
858        ("libxml2" ,libxml2)))
859     (native-inputs
860      `(("intltool" ,intltool)
861        ("itstool" ,itstool)
862        ("libxslt" ,libxslt) ;for xsltproc
863        ("docbook-xml" ,docbook-xml-4.2)
864        ("docbook-xsl" ,docbook-xsl)
865        ("python" ,python-2)
866        ("pkg-config" ,pkg-config)))
867     (home-page "https://glade.gnome.org")
868     (synopsis "GTK+ rapid application development tool")
869     (description "Glade is a rapid application development (RAD) tool to
870 enable quick & easy development of user interfaces for the GTK+ toolkit and
871 the GNOME desktop environment.")
872     (license license:lgpl2.0+)))
874 (define-public libcroco
875   (package
876     (name "libcroco")
877     (version "0.6.11")
878     (source (origin
879               (method url-fetch)
880               (uri (string-append "mirror://gnome/sources/" name "/"
881                                   (version-major+minor version)  "/"
882                                   name "-" version ".tar.xz"))
883               (sha256
884                (base32
885                 "0mm0wldbi40am5qn0nv7psisbg01k42rwzjxl3gv11l5jj554aqk"))))
886     (build-system gnu-build-system)
887     (native-inputs
888      `(("pkg-config" ,pkg-config)))
889     (inputs
890      `(("glib" ,glib)
891        ("libxml2" ,libxml2)
892        ("zlib" ,zlib)))
893     (home-page "https://github.com/GNOME/libcroco")
894     (synopsis "CSS2 parsing and manipulation library")
895     (description
896      "Libcroco is a standalone CSS2 parsing and manipulation library.
897 The parser provides a low level event driven SAC-like API and a CSS object
898 model like API.  Libcroco provides a CSS2 selection engine and an experimental
899 XML/CSS rendering engine.")
901     ;; LGPLv2.1-only.
902     (license license:lgpl2.1)))
904 (define-public libgsf
905   (package
906     (name "libgsf")
907     (version "1.14.40")
908     (source (origin
909               (method url-fetch)
910               (uri (string-append "mirror://gnome/sources/" name "/"
911                                   (version-major+minor version)  "/"
912                                   name "-" version ".tar.xz"))
913               (sha256
914                (base32
915                 "1q2i5p9s5zw0y0502risykrzkfma7p24n3mmh244scjy9f4kh1im"))))
916     (build-system gnu-build-system)
917     (native-inputs
918      `(("intltool" ,intltool)
919        ("pkg-config" ,pkg-config)))
920     (inputs
921      `(("python" ,python)
922        ("zlib" ,zlib)
923        ("bzip2" ,bzip2)))
924     (propagated-inputs
925      `(("gdk-pixbuf" ,gdk-pixbuf)
926        ("glib" ,glib)
927        ("libxml2" ,libxml2)))
928     (home-page "http://www.gnome.org/projects/libgsf")
929     (synopsis "GNOME's Structured File Library")
930     (description
931      "Libgsf aims to provide an efficient extensible I/O abstraction for
932 dealing with different structured file formats.")
934     ;; LGPLv2.1-only.
935     (license license:lgpl2.1)))
937 (define-public librsvg
938   (package
939     (name "librsvg")
940     (version "2.40.16")
941     (source (origin
942               (method url-fetch)
943               (uri (string-append "mirror://gnome/sources/" name "/"
944                                   (version-major+minor version)  "/"
945                                   name "-" version ".tar.xz"))
946               (sha256
947                (base32
948                 "0bpz6gsq8xi1pb5k9ax6vinph460v14znch3y5yz167s0dmwz2yl"))))
949     (build-system gnu-build-system)
950     (arguments
951      `(#:phases
952        (alist-cons-before
953         'configure 'pre-configure
954         (lambda* (#:key inputs #:allow-other-keys)
955           (substitute* "gdk-pixbuf-loader/Makefile.in"
956             ;; By default the gdk-pixbuf loader is installed under
957             ;; gdk-pixbuf's prefix.  Work around that.
958             (("gdk_pixbuf_moduledir = .*$")
959              (string-append "gdk_pixbuf_moduledir = "
960                             "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
961                              "loaders\n"))
962             ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
963             (("gdk_pixbuf_cache_file = .*$")
964              "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n")))
965         %standard-phases)))
966     (native-inputs
967      `(("pkg-config" ,pkg-config)
968        ("glib" ,glib "bin")                               ; glib-mkenums, etc.
969        ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
970     (inputs
971      `(("pango" ,pango)
972        ("libcroco" ,libcroco)
973        ("bzip2" ,bzip2)
974        ("libgsf" ,libgsf)
975        ("libxml2" ,libxml2)))
976     (propagated-inputs
977      ;; librsvg-2.0.pc refers to all of that.
978      `(("cairo" ,cairo)
979        ("gdk-pixbuf" ,gdk-pixbuf)
980        ("glib" ,glib)))
981     (home-page "https://wiki.gnome.org/LibRsvg")
982     (synopsis "Render SVG files using Cairo")
983     (description
984      "Librsvg is a C library to render SVG files using the Cairo 2D graphics
985 library.")
986     (license license:lgpl2.0+)))
988 (define-public libidl
989   (package
990     (name "libidl")
991     (version "0.8.14")
992     (source (origin
993               (method url-fetch)
994               (uri (let ((upstream-name "libIDL"))
995                      (string-append "mirror://gnome/sources/" upstream-name "/"
996                                     (version-major+minor version) "/"
997                                     upstream-name "-" version ".tar.bz2")))
998               (sha256
999                (base32
1000                 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
1001     (build-system gnu-build-system)
1002     (inputs `(("glib" ,glib)))
1003     (native-inputs
1004      `(("pkg-config" ,pkg-config)
1005        ("flex" ,flex)
1006        ("bison" ,bison)))
1007     (home-page "http://freecode.com/projects/libidl")
1008     (synopsis "Create trees of CORBA Interface Definition Language files")
1009     (description  "Libidl is a library for creating trees of CORBA Interface
1010 Definition Language (idl) files, which is a specification for defining
1011 portable interfaces. libidl was initially written for orbit (the orb from the
1012 GNOME project, and the primary means of libidl distribution).  However, the
1013 functionality was designed to be as reusable and portable as possible.")
1014     (license license:lgpl2.0+)))
1017 (define-public orbit2
1018   (package
1019     (name "orbit2")
1020     (version "2.14.19")
1021     (source (origin
1022               (method url-fetch)
1023               (uri (let ((upstream-name "ORBit2"))
1024                      (string-append "mirror://gnome/sources/" upstream-name "/"
1025                                     (version-major+minor version) "/"
1026                                     upstream-name "-" version ".tar.bz2")))
1027               (sha256
1028                (base32
1029                 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
1030     (build-system gnu-build-system)
1031     (arguments
1032      `(#:configure-flags
1033        ;; The programmer kindly gives us a hook to turn off deprecation
1034        ;; warnings ...
1035        '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1036        ;; ... which they then completly ignore !!
1037        #:phases
1038        (alist-cons-before
1039         'configure 'ignore-deprecations
1040         (lambda _
1041           (substitute* "linc2/src/Makefile.in"
1042             (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
1043         %standard-phases)))
1044     (inputs `(("glib" ,glib)
1045               ("libidl" ,libidl)))
1046     (native-inputs
1047      `(("pkg-config" ,pkg-config)))
1048     (home-page "https://projects.gnome.org/orbit2/")
1049     (synopsis "CORBA 2.4-compliant Object Request Broker")
1050     (description  "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
1051 featuring mature C, C++ and Python bindings.")
1052     ;; Licence notice is unclear.  The Web page simply say "GPL" without giving
1053     ;; a version.  SOME of the code files have licence notices for GPLv2+.
1054     ;; The tarball contains files of the text of GPLv2 and LGPLv2.
1055     (license license:gpl2+)))
1058 (define-public libbonobo
1059   (package
1060     (name "libbonobo")
1061     (version "2.32.1")
1062     (source (origin
1063               (method url-fetch)
1064               (uri (string-append "mirror://gnome/sources/" name "/"
1065                                   (version-major+minor version)
1066                                   "/" name "-" version ".tar.bz2"))
1067               (sha256
1068                (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
1069               (patches (search-patches
1070                         "libbonobo-activation-test-race.patch"))))
1071     (build-system gnu-build-system)
1072     (arguments
1073      ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
1074      `(#:configure-flags
1075        '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1076        ;; ... which they then completly ignore !!
1077        #:phases
1078        (alist-cons-before
1079         'configure 'ignore-deprecations
1080         (lambda _
1081           (substitute* "activation-server/Makefile.in"
1082             (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
1083         %standard-phases)))
1084     (inputs `(("popt" ,popt)
1085               ("libxml2" ,libxml2)))
1086     ;; The following are Required by the .pc file
1087     (propagated-inputs
1088      `(("glib" ,glib)
1089        ("orbit2" ,orbit2)))
1090     (native-inputs
1091      `(("intltool" ,intltool)
1092        ("pkg-config" ,pkg-config)
1093        ("glib" ,glib "bin")             ; for glib-genmarshal, etc.
1094        ("flex" ,flex)
1095        ("bison" ,bison)))
1096     (home-page "https://developer.gnome.org/libbonobo/")
1097     (synopsis "Framework for creating reusable components for use in GNOME applications")
1098     (description "Bonobo is a framework for creating reusable components for
1099 use in GNOME applications, built on top of CORBA.")
1100     ;; Licence not explicitly stated.  Source files contain no licence notices.
1101     ;; Tarball contains text of both GPLv2 and LGPLv2
1102     ;; GPLv2 covers both conditions
1103     (license license:gpl2+)))
1106 (define-public gconf
1107   (package
1108     (name "gconf")
1109     (version "3.2.6")
1110     (source (origin
1111               (method url-fetch)
1112               (uri
1113                (let ((upstream-name "GConf"))
1114                  (string-append "mirror://gnome/sources/" upstream-name "/"
1115                                 (version-major+minor version) "/"
1116                                 upstream-name "-" version ".tar.xz")))
1117               (sha256
1118                (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
1119     (build-system gnu-build-system)
1120     (inputs `(("dbus-glib" ,dbus-glib)
1121               ("libxml2" ,libxml2)))
1122     (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
1123                          ("orbit2" ,orbit2)))
1124     (native-inputs
1125      `(("intltool" ,intltool)
1126        ("glib" ,glib "bin")             ; for glib-genmarshal, etc.
1127        ("pkg-config" ,pkg-config)))
1128     (home-page "https://projects.gnome.org/gconf/")
1129     (synopsis "Store application preferences")
1130     (description "Gconf is a system for storing application preferences.  It
1131 is intended for user preferences; not arbitrary data storage.")
1132     (license license:lgpl2.0+)
1133     (properties '((upstream-name . "GConf")))))
1136 (define-public gnome-mime-data
1137   (package
1138     (name "gnome-mime-data")
1139     (version "2.18.0")
1140     (source (origin
1141               (method url-fetch)
1142               (uri (string-append "mirror://gnome/sources/" name "/"
1143                                   (version-major+minor version)  "/"
1144                                   name "-" version ".tar.bz2"))
1145               (sha256
1146                (base32
1147                 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
1148     (build-system gnu-build-system)
1149     (native-inputs
1150      `(("perl" ,perl)
1151        ("intltool" ,intltool)))
1152     (home-page "http://www.gnome.org")
1153     (synopsis "Base MIME and Application database for GNOME")
1154     (description  "GNOME Mime Data is a module which contains the base MIME
1155 and Application database for GNOME.  The data stored by this module is
1156 designed to be accessed through the MIME functions in GnomeVFS.")
1157     (license license:gpl2+)))
1160 (define-public gnome-vfs
1161   (package
1162     (name "gnome-vfs")
1163     (version "2.24.4")
1164     (source (origin
1165               (method url-fetch)
1166               (uri (string-append "mirror://gnome/sources/" name "/"
1167                                   (version-major+minor version)  "/"
1168                                   name "-" version ".tar.bz2"))
1169               (sha256
1170                (base32
1171                 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
1172     (build-system gnu-build-system)
1173     (arguments
1174      `(#:phases
1175        (alist-cons-before
1176         'configure 'ignore-deprecations
1177         (lambda _
1178           (substitute* '("libgnomevfs/Makefile.in"
1179                          "daemon/Makefile.in")
1180             (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1181           #t)
1182         (alist-cons-before
1183          'configure 'patch-test-async-cancel-to-never-fail
1184          (lambda _
1185            (substitute* "test/test-async-cancel.c"
1186              (("EXIT_FAILURE") "77")))
1187          %standard-phases))))
1188     (inputs `(("libxml2" ,libxml2)
1189               ("dbus-glib" ,dbus-glib)
1190               ("gconf" ,gconf)
1191               ("gnome-mime-data" ,gnome-mime-data)
1192               ("zlib" ,zlib)))
1193     (native-inputs
1194      `(("glib" ,glib "bin")             ; for glib-mkenums, etc.
1195        ("intltool" ,intltool)
1196        ("pkg-config" ,pkg-config)))
1197     (home-page "https://developer.gnome.org/gnome-vfs/")
1198     (synopsis "Access files and folders in GNOME applications")
1199     (description
1200      "GnomeVFS is the core library used to access files and folders in GNOME
1201 applications.  It provides a file system abstraction which allows applications
1202 to access local and remote files with a single consistent API.")
1203     (license license:lgpl2.0+)))
1207 (define-public libgnome
1208   (package
1209     (name "libgnome")
1210     (version "2.32.1")
1211     (source (origin
1212               (method url-fetch)
1213               (uri (string-append "mirror://gnome/sources/" name "/"
1214                                   (version-major+minor version)  "/"
1215                                   name "-" version ".tar.bz2"))
1216               (sha256
1217                (base32
1218                 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))))
1219     (build-system gnu-build-system)
1220     (arguments
1221      `(#:phases
1222        (alist-cons-before
1223         'configure 'enable-deprecated
1224         (lambda _
1225           (substitute* "libgnome/Makefile.in"
1226             (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
1227         %standard-phases)))
1228     (inputs `(("libxml2" ,libxml2)))
1229     (native-inputs
1230      `(("glib" ,glib "bin")             ; for glib-mkenums, etc.
1231        ("intltool" ,intltool)
1232        ("pkg-config" ,pkg-config)))
1233     ;; The following are listed as Required in the .pc file
1234     ;; (except for libcanberra -- which seems to be oversight on the part
1235     ;; of the upstream developers -- anything that links against libgnome,
1236     ;; must also link against libcanberra
1237     (propagated-inputs
1238      `(("libcanberra" ,libcanberra)
1239        ("libbonobo" ,libbonobo)
1240        ("gconf" ,gconf)
1241        ("gnome-vfs" ,gnome-vfs)
1242        ("popt" ,popt)))                       ;gnome-program.h includes popt.h
1243     (home-page "https://developer.gnome.org/libgnome/")
1244     (synopsis "Useful routines for building applications")
1245     (description  "The libgnome library provides a number of useful routines
1246 for building modern applications, including session management, activation of
1247 files and URIs, and displaying help.")
1248     (license license:lgpl2.0+)))
1251 (define-public libart-lgpl
1252   (package
1253     (name "libart-lgpl")
1254     (version "2.3.21")
1255     (source (origin
1256               (method url-fetch)
1257               (uri (let ((upstream-name "libart_lgpl"))
1258                      (string-append "mirror://gnome/sources/" upstream-name "/"
1259                                     (version-major+minor version) "/"
1260                                     upstream-name "-" version ".tar.bz2")))
1261               (sha256
1262                (base32
1263                 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
1264     (build-system gnu-build-system)
1265     (native-inputs
1266      `(("pkg-config" ,pkg-config)))
1267     (home-page "https://people.gnome.org/~mathieu/libart")
1268     (synopsis "2D drawing library")
1269     (description  "Libart is a 2D drawing library intended as a
1270 high-quality vector-based 2D library with antialiasing and alpha composition.")
1271     (license license:lgpl2.0+)))
1275 (define-public libgnomecanvas
1276   (package
1277     (name "libgnomecanvas")
1278     (version "2.30.3")
1279     (source (origin
1280               (method url-fetch)
1281               (uri (string-append "mirror://gnome/sources/" name "/"
1282                                   (version-major+minor version)  "/"
1283                                   name "-" version ".tar.gz"))
1284               (sha256
1285                (base32
1286                 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
1287     (build-system gnu-build-system)
1288     ;; Mentioned as Required in the .pc file
1289     (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
1290                          ("gtk+" ,gtk+-2)))
1291     (native-inputs
1292      `(("intltool" ,intltool)
1293        ("glib" ,glib "bin")             ; for glib-genmarshal, etc.
1294        ("pkg-config" ,pkg-config)))
1295     (home-page "https://developer.gnome.org/libgnomecanvas/")
1296     (synopsis "Flexible widget for creating interactive structured graphics")
1297     (description  "The GnomeCanvas widget provides a flexible widget for
1298 creating interactive structured graphics.")
1299     (license license:lgpl2.0+)))
1301 (define-public libgnomecanvasmm
1302   (package
1303     (name "libgnomecanvasmm")
1304     (version "2.26.0")
1305     (source (origin
1306               (method url-fetch)
1307               (uri (string-append "mirror://gnome/sources/" name "/"
1308                                   (version-major+minor version)  "/"
1309                                   name "-" version ".tar.bz2"))
1310               (sha256
1311                (base32
1312                 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
1313     (build-system gnu-build-system)
1314     (arguments
1315      '(#:configure-flags '("CXXFLAGS=-std=c++11"))) ; required by gtkmm
1316     (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
1317     (native-inputs
1318      `(("gtkmm-2" ,gtkmm-2)
1319        ("pkg-config" ,pkg-config)))
1320     (home-page "http://gtkmm.org")
1321     (synopsis "C++ bindings to the GNOME Canvas library")
1322     (description "C++ bindings to the GNOME Canvas library.")
1323     (license license:lgpl2.0+)))
1325 (define-public libgnomeui
1326   (package
1327     (name "libgnomeui")
1328     (version "2.24.5")
1329     (source (origin
1330               (method url-fetch)
1331               (uri (string-append "mirror://gnome/sources/" name "/"
1332                                   (version-major+minor version)  "/"
1333                                   name "-" version ".tar.bz2"))
1334               (sha256
1335                (base32
1336                 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
1337     (build-system gnu-build-system)
1338     ;; Mentioned as Required in the .pc file
1339     (propagated-inputs `(("libbonoboui" ,libbonoboui)
1340                          ("libgnome" ,libgnome)
1341                          ("libgnomecanvas" ,libgnomecanvas)
1342                          ("libgnome-keyring" ,libgnome-keyring)))
1343     (inputs `(("libjpeg" ,libjpeg)
1344               ("popt" ,popt)
1345               ("libbonobo" ,libbonobo)
1346               ("libxml2" ,libxml2)
1347               ("libglade" ,libglade)))
1348     (native-inputs
1349      `(("glib" ,glib "bin")             ; for glib-mkenums, etc.
1350        ("intltool" ,intltool)
1351        ("pkg-config" ,pkg-config)))
1352     (home-page "https://developer.gnome.org/libgnomeui/")
1353     (synopsis "Additional widgets for applications")
1354     (description "The libgnomeui library provides additional widgets for
1355 applications.  Many of the widgets from libgnomeui have already been
1356 ported to GTK+.")
1357     (license license:lgpl2.0+)))
1359 (define-public libglade
1360   (package
1361     (name "libglade")
1362     (version "2.6.4")
1363     (source (origin
1364               (method url-fetch)
1365               (uri (string-append "mirror://gnome/sources/" name "/"
1366                                   (version-major+minor version)  "/"
1367                                   name "-" version ".tar.bz2"))
1368               (sha256
1369                (base32
1370                 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
1371     (build-system gnu-build-system)
1372     (inputs
1373      `(("python" ,python))) ;; needed for the optional libglade-convert program
1374     (propagated-inputs
1375      `(("gtk+-2" ,gtk+-2)
1376        ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
1377     (native-inputs
1378      `(("pkg-config" ,pkg-config)))
1379     (home-page "https://developer.gnome.org/libglade")
1380     (synopsis "Load glade interfaces and access the glade built widgets")
1381     (description "Libglade is a library that provides interfaces for loading
1382 graphical interfaces described in glade files and for accessing the
1383 widgets built in the loading process.")
1384     (license license:gpl2+))) ; This is correct.  GPL not LGPL
1386 (define-public libgnomeprint
1387   ;; This library has been deprecated since 2006; see
1388   ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
1389   (package
1390     (name "libgnomeprint")
1391     (version "2.8.2")
1392     (source (origin
1393               (method url-fetch)
1394               (uri (string-append "mirror://gnome/sources/" name "/"
1395                                   (version-major+minor version)  "/"
1396                                   name "-" version ".tar.bz2"))
1397               (sha256
1398                (base32
1399                 "129ka3nn8gx9dlfry17ib79azxk45wzfv5rgqzw6dwx2b5ns8phm"))))
1400     (build-system gnu-build-system)
1401     (inputs
1402      `(("popt" ,popt)
1403        ("libart-lgpl" ,libart-lgpl)
1404        ("gtk+" ,gtk+-2)
1405        ("libxml2" ,libxml2)))
1406     (native-inputs
1407      `(("intltool" ,intltool)
1408        ("glib" ,glib "bin")             ; for glib-genmarshal, etc.
1409        ("pkg-config" ,pkg-config)))
1410     (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
1411     (synopsis "Printing framework for GNOME")
1412     (description
1413      "GNOME-print was a printing framework for GNOME.  It has been deprecated
1414 since ca. 2006, when GTK+ itself incorporated printing support.")
1415     (license license:lgpl2.0+)))
1418 (define-public libgnomeprintui
1419   ;; Deprecated; see libgnomeprint.
1420   (package
1421     (name "libgnomeprintui")
1422     (version "2.8.2")
1423     (source (origin
1424               (method url-fetch)
1425               (uri (string-append "mirror://gnome/sources/" name "/"
1426                                   (version-major+minor version)  "/"
1427                                   name "-" version ".tar.bz2"))
1428               (sha256
1429                (base32
1430                 "1ivipk7r61rg90p9kp889j28xlyyj6466ypvwa4jvnrcllnaajsw"))))
1431     (build-system gnu-build-system)
1432     ;; Mentioned as Required in the .pc file
1433     (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
1434     (inputs `(("gtk+" ,gtk+-2)
1435               ("glib" ,glib)
1436               ("gnome-icon-theme" ,gnome-icon-theme)
1437               ("libgnomecanvas" ,libgnomecanvas)
1438               ("libxml2" ,libxml2)))
1439     (native-inputs
1440      `(("intltool" ,intltool)
1441        ("pkg-config" ,pkg-config)))
1442     (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
1443     (synopsis "Printing framework for GNOME")
1444     (description (package-description libgnomeprint))
1445     (license license:lgpl2.0+)))
1447 (define-public libbonoboui
1448   (package
1449     (name "libbonoboui")
1450     (version "2.24.5")
1451     (source (origin
1452               (method url-fetch)
1453               (uri (string-append "mirror://gnome/sources/" name "/"
1454                                   (version-major+minor version)  "/"
1455                                   name "-" version ".tar.bz2"))
1456               (sha256
1457                (base32
1458                 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
1459     (build-system gnu-build-system)
1460     (arguments
1461      `(#:phases
1462        (alist-cons-before
1463         'check 'start-xserver
1464         (lambda* (#:key inputs #:allow-other-keys)
1465           (let ((xorg-server (assoc-ref inputs "xorg-server"))
1466                 (disp ":1"))
1468             (setenv "HOME" (getcwd))
1469             (setenv "DISPLAY" disp)
1470             ;; There must be a running X server and make check doesn't start one.
1471             ;; Therefore we must do it.
1472             (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))
1473         %standard-phases)))
1474     ;; Mentioned as Required by the .pc file
1475     (propagated-inputs `(("libxml2" ,libxml2)))
1476     (inputs
1477      `(("popt" ,popt)
1478        ("pangox-compat" ,pangox-compat)
1479        ("libgnome" ,libgnome)
1480        ("libgnomecanvas" ,libgnomecanvas)
1481        ("libglade" ,libglade)))
1482     (native-inputs
1483      `(("glib" ,glib "bin")             ; for glib-genmarshal, etc.
1484        ("intltool" ,intltool)
1485        ("xorg-server" ,xorg-server) ; For running the tests
1486        ("pkg-config" ,pkg-config)))
1487     (home-page "https://developer.gnome.org/libbonoboui/")
1488     (synopsis "Some user interface controls using Bonobo")
1489     (description  "The Bonobo UI library provides a number of user interface
1490 controls using the Bonobo component framework.")
1491     (license license:lgpl2.0+)))
1493 (define-public libwnck
1494   (package
1495     (name "libwnck")
1496     (version "3.20.1")
1497     (source (origin
1498               (method url-fetch)
1499               (uri (string-append "mirror://gnome/sources/" name "/"
1500                                   (version-major+minor version) "/"
1501                                   name "-" version ".tar.xz"))
1502               (sha256
1503                (base32 "0wms3hli6y0b9l3cszq6maqi6fyy6kss9gryvzgmhw27phb3gc0w"))))
1504     (build-system gnu-build-system)
1505     (native-inputs
1506      `(("pkg-config" ,pkg-config)
1507        ("intltool" ,intltool)))
1508     (propagated-inputs
1509      `(("gtk+" ,gtk+)
1510        ("libxres" ,libxres)
1511        ("startup-notification" ,startup-notification)))
1512     (home-page "https://developer.gnome.org/libwnck/")
1513     (synopsis "Window Navigator Construction Kit")
1514     (description
1515      "Libwnck is the Window Navigator Construction Kit, a library for use in
1516 writing pagers, tasklists, and more generally applications that are dealing
1517 with window management.  It tries hard to respect the Extended Window Manager
1518 Hints specification (EWMH).")
1519     (license license:lgpl2.0+)))
1521 ;; stable version for gtk2, required by xfwm4.
1522 (define-public libwnck-2
1523   (package (inherit libwnck)
1524     (name "libwnck")
1525     (version "2.30.7")
1526     (source (origin
1527               (method url-fetch)
1528               (uri (string-append "mirror://gnome/sources/" name "/"
1529                                   (version-major+minor version) "/"
1530                                   name "-" version ".tar.xz"))
1531               (sha256
1532                (base32
1533                 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
1534     (propagated-inputs
1535      `(("gtk+" ,gtk+-2)
1536        ("libxres" ,libxres)
1537        ("startup-notification" ,startup-notification)))))
1539 (define-public goffice
1540   (package
1541     (name "goffice")
1542     (version "0.10.32")
1543     (source (origin
1544               (method url-fetch)
1545               (uri (string-append "mirror://gnome/sources/" name "/"
1546                                   (version-major+minor version)  "/"
1547                                   name "-" version ".tar.xz"))
1548               (sha256
1549                (base32 "1hvs5558x98yzm43dc3f93v596x45lfmv1vkp4jjgfagynlpvcq2"))))
1550     (build-system gnu-build-system)
1551     (outputs '("out"
1552                "doc"))                            ;4.1 MiB of gtk-doc
1553     (arguments
1554      '(#:configure-flags (list (string-append "--with-html-dir="
1555                                               (assoc-ref %outputs "doc")
1556                                               "/share/gtk-doc/html"))))
1557     (inputs
1558      `(("gtk+" ,gtk+)
1559        ("libgsf" ,libgsf)
1560        ("librsvg" ,librsvg)
1561        ("libxslt" ,libxslt)
1562        ("libxml2" ,libxml2)))
1563     (native-inputs
1564      `(("intltool" ,intltool)
1565        ("glib" ,glib "bin")
1566        ("pkg-config" ,pkg-config)))
1567     (home-page "https://developer.gnome.org/goffice/")
1568     (synopsis "Document-centric objects and utilities")
1569     (description "A GLib/GTK+ set of document-centric objects and utilities.")
1570     (license
1571      ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
1572      ;; Note: NOT LGPL
1573      (list license:gpl2 license:gpl3))))
1575 (define-public goffice-0.8
1576   (package (inherit goffice)
1577     (version "0.8.17")
1578     (source (origin
1579               (method url-fetch)
1580               (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
1581                                   (version-major+minor version)  "/"
1582                                   (package-name goffice) "-" version ".tar.xz"))
1583               (sha256
1584                (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
1585     (arguments
1586      `(#:phases
1587        (alist-cons-after
1588         'unpack 'fix-pcre-check
1589         (lambda _
1590           ;; Only glib.h can be included directly.  See
1591           ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
1592           (substitute* "configure"
1593             (("glib/gregex\\.h") "glib.h")) #t)
1594         %standard-phases)
1596        ,@(package-arguments goffice)))
1597     (propagated-inputs
1598      ;; libgoffice-0.8.pc mentions libgsf-1
1599      `(("libgsf" ,libgsf)))
1600     (inputs
1601      `(("gtk" ,gtk+-2)
1602        ,@(alist-delete "gtk" (package-inputs goffice))))))
1604 (define-public gnumeric
1605   (package
1606     (name "gnumeric")
1607     (version "1.12.32")
1608     (source (origin
1609               (method url-fetch)
1610               (uri (string-append "mirror://gnome/sources/" name "/"
1611                                   (version-major+minor version)  "/"
1612                                   name "-" version ".tar.xz"))
1613               (sha256
1614                (base32
1615                 "1s3dxvdwzmppsp2dfg90rccilf4hknhwjdy7lazr9sys58zchyx0"))))
1616     (build-system glib-or-gtk-build-system)
1617     (arguments
1618      `(;; The gnumeric developers don't worry much about failing tests.
1619        ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
1620        #:tests? #f
1621        #:phases
1622        (modify-phases %standard-phases
1623          (add-before
1624           'configure 'pre-conf
1625            (lambda* (#:key outputs #:allow-other-keys)
1626              ;; Make install tries to write into the directory of goffice
1627              ;; I am informed that this only affects the possibility to embed a
1628              ;; spreadsheet inside an Abiword document.   So presumably when we
1629              ;; package Abiword we'll have to refer it to this directory.
1630              (substitute* "configure"
1631                (("^GOFFICE_PLUGINS_DIR=.*")
1632                 (string-append "GOFFICE_PLUGINS_DIR="
1633                                (assoc-ref outputs "out")
1634                                "/goffice/plugins"))))))))
1635     (inputs
1636      `(("glib" ,glib)
1637        ("gtk+" ,gtk+)
1638        ("goffice" ,goffice)
1639        ("libgsf" ,libgsf)
1640        ("librsvg" ,librsvg)
1641        ("libxml2" ,libxml2)
1642        ("libxslt" ,libxslt)
1643        ("python" ,python-2)
1644        ("python2-pygobject" ,python2-pygobject)
1645        ("zlib" ,zlib)))
1646     (native-inputs
1647      `(("bison" ,bison)
1648        ("intltool" ,intltool)
1649        ("glib:bin" ,glib "bin")
1650        ("pkg-config" ,pkg-config)))
1651     (home-page "http://www.gnumeric.org")
1652     (synopsis "Spreadsheet application")
1653     (description
1654      "GNUmeric is a GNU spreadsheet application, running under GNOME.  It is
1655 interoperable with other spreadsheet applications.  It has a vast array of
1656 features beyond typical spreadsheet functionality, such as support for linear
1657 and non-linear solvers, statistical analysis, and telecommunication
1658 engineering.")
1659     (license
1660     ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
1661      (list license:gpl2 license:gpl3))))
1663 (define-public gnome-themes-standard
1664   (package
1665     (name "gnome-themes-standard")
1666     (version "3.20.2")
1667     (source
1668      (origin
1669        (method url-fetch)
1670        (uri (string-append "mirror://gnome/sources/" name "/"
1671                            (version-major+minor version) "/" name "-"
1672                            version ".tar.xz"))
1673        (sha256
1674         (base32
1675          "05br99z67f82i18nljpxnwssfnaqp7mph61w3hq0i44z5i5rq3cx"))))
1676     (build-system gnu-build-system)
1677     (arguments
1678      '(#:configure-flags
1679        ;; Don't create 'icon-theme.cache'.
1680        (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
1681               (true      (string-append coreutils "/bin/true")))
1682          (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
1683     (inputs
1684      `(("gtk+" ,gtk+)
1685        ("gtk+-2" ,gtk+-2)
1686        ("librsvg" ,librsvg)
1687        ("libxml2" ,libxml2)
1688        ("glib" ,glib)))
1689     (native-inputs
1690      `(("intltool" ,intltool)
1691        ("glib:bin" ,glib "bin")
1692        ("pkg-config" ,pkg-config)))
1693     (home-page "https://launchpad.net/gnome-themes-standard")
1694     (synopsis "Default GNOME 3 themes")
1695     (description
1696      "The default GNOME 3 themes (Adwaita and some accessibility themes).")
1697     (license license:lgpl2.1+)))
1699 (define-public seahorse
1700   (package
1701     (name "seahorse")
1702     (version "3.20.0")
1703     (source
1704      (origin
1705        (method url-fetch)
1706        (uri (string-append "mirror://gnome/sources/" name "/"
1707                            (version-major+minor version) "/" name "-"
1708                            version ".tar.xz"))
1709        (sha256
1710         (base32
1711          "1py6fj19kb8aaxvg6yrpd0876azc2zjvis98aqz37a2lxmhp9c72"))))
1712     (build-system glib-or-gtk-build-system)
1713     (inputs
1714      `(("gtk+" ,gtk+)
1715        ("gcr" ,gcr)
1716        ("gnupg" ,gnupg)
1717        ("gpgme" ,gpgme)
1718        ("openldap" ,openldap)
1719        ("openssh" ,openssh)
1720        ("libsecret" ,libsecret)
1721        ("libsoup" ,libsoup)))
1722     (native-inputs
1723      `(("intltool" ,intltool)
1724        ("glib:bin" ,glib "bin")
1725        ("itstool" ,itstool)
1726        ("pkg-config" ,pkg-config)
1727        ("xmllint" ,libxml2)))
1728     (home-page "https://launchpad.net/gnome-themes-standard")
1729     (synopsis "Manage encryption keys and passwords in the GNOME keyring")
1730     (description
1731      "Seahorse is a GNOME application for managing encryption keys and
1732 passwords in the GNOME keyring.")
1733     (license license:gpl2+)))
1735 (define-public vala
1736   (package
1737     (name "vala")
1738     (version "0.32.1")
1739     (source (origin
1740               (method url-fetch)
1741               (uri (string-append "mirror://gnome/sources/" name "/"
1742                                   (version-major+minor version) "/"
1743                                   name "-" version ".tar.xz"))
1744               (sha256
1745                (base32
1746                 "1ab1l44abf9fj1wznzq5956431ia136rl5049cggnk5393jlf3fx"))))
1747     (build-system gnu-build-system)
1748     (arguments
1749      '(#:phases
1750        (modify-phases %standard-phases
1751          (add-before 'check 'pre-check
1752                      (lambda _
1753                        (setenv "CC" "gcc")
1754                        ;; For missing '/etc/machine-id'.
1755                        (setenv "DBUS_FATAL_WARNINGS" "0")
1756                        #t)))
1757        ;; Build the Vala API generator
1758        #:configure-flags '("--enable-vapigen")))
1759     (native-inputs
1760      `(("pkg-config" ,pkg-config)
1761        ("flex" ,flex)
1762        ("bison" ,bison)
1763        ("xsltproc" ,libxslt)
1764        ("dbus" ,dbus)                                     ; for dbus tests
1765        ("gobject-introspection" ,gobject-introspection))) ; for gir tests
1766     (propagated-inputs
1767      `(("glib" ,glib))) ; required by libvala-0.26.pc
1768     (home-page "http://live.gnome.org/Vala/")
1769     (synopsis "Compiler for the GObject type system")
1770     (description
1771      "Vala is a programming language that aims to bring modern programming
1772 language features to GNOME developers without imposing any additional runtime
1773 requirements and without using a different ABI compared to applications and
1774 libraries written in C.")
1775     (license license:lgpl2.1+)))
1777 (define-public vte
1778   (package
1779     (name "vte")
1780     (version "0.44.2")
1781     (source (origin
1782               (method url-fetch)
1783               (uri (string-append "mirror://gnome/sources/" name "/"
1784                                   (version-major+minor version) "/"
1785                                   name "-" version ".tar.xz"))
1786               (sha256
1787                (base32
1788                 "0j899ccrkzh7208w29c835m1yms0cas5cxkck8x6l4xv2i45ksm1"))))
1789     (build-system gnu-build-system)
1790     (arguments
1791      ;; XXX: fails to compile tests with the default flags.
1792      ;; vteconv.cc:774:40:
1793      ;;    error: missing sentinel in function call [-Werror=format=]
1794      ;;    g_test_init (&argc, &argv, NULL);
1795      ;;
1796      ;; cc1plus: some warnings being treated as errors
1797      '(#:configure-flags '("CXXFLAGS=-Wformat=0")))
1798     (native-inputs
1799      `(("pkg-config" ,pkg-config)
1800        ("intltool" ,intltool)
1801        ("vala" ,vala)
1802        ("gobject-introspection" ,gobject-introspection)
1803        ("glib" ,glib "bin") ; for glib-genmarshal, etc.
1804        ("xmllint" ,libxml2)))
1805     (propagated-inputs
1806      `(("gtk+" ,gtk+)                             ;required by vte-2.91.pc
1807        ("gnutls" ,gnutls)))                       ;ditto
1808     (home-page "http://www.gnome.org/")
1809     (synopsis "Virtual Terminal Emulator")
1810     (description
1811      "VTE is a library (libvte) implementing a terminal emulator widget for
1812 GTK+, and a minimal sample application (vte) using that.  Vte is mainly used in
1813 gnome-terminal, but can also be used to embed a console/terminal in games,
1814 editors, IDEs, etc.")
1815     (license license:lgpl2.1+)))
1817 (define-public vte-ng
1818   (package
1819     (inherit vte)
1820     (name "vte-ng")
1821     (version "0.44.1.b")
1822     (native-inputs
1823      `(("gtk-doc" ,gtk-doc)
1824        ("gperf" ,gperf)
1825        ("autoconf" ,autoconf)
1826        ("automake" ,automake)
1827        ("libtool" ,libtool)
1828        ,@(package-native-inputs vte)))
1829     (source (origin
1830               (method url-fetch)
1831               (uri (string-append "https://github.com/thestinger/"
1832                                   name "/archive/" version ".tar.gz"))
1833               (file-name (string-append name "-" version ".tar.gz"))
1834               (sha256
1835                (base32
1836                 "1mhz4i1qkdlrs49vgm7nsrb60lry9v6wsgwsmji7fln1nyrp1pag"))))
1837     (arguments
1838       `(#:configure-flags '("CXXFLAGS=-Wformat=0")
1839         #:phases (modify-phases %standard-phases
1840                   (add-after 'unpack 'bootstrap
1841                     (lambda _
1842                       (setenv "NOCONFIGURE" "true")
1843                       (zero? (system* "sh" "autogen.sh")))))))
1844   (synopsis "Enhanced VTE terminal widget")
1845   (description
1846    "VTE is a library (libvte) implementing a terminal emulator widget for
1847 GTK+, this fork provides additional functions exposed for keyboard text
1848 selection and URL hints.")))
1850 ;; provides vte 2.90, required for some terminal emulators
1851 ;; tilda bug: https://github.com/lanoxx/tilda/issues/94
1852 ;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
1853 ;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
1854 ;; pantheon-terminal, roxterm are not currently packaged
1855 (define-public vte-0.36
1856   (package (inherit vte)
1857     (name "vte")
1858     (version "0.36.5")
1859     (source (origin
1860               (method url-fetch)
1861               (uri (string-append "mirror://gnome/sources/" name "/"
1862                                   (version-major+minor version) "/"
1863                                   name "-" version ".tar.xz"))
1864               (sha256
1865                (base32
1866                 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
1867     (propagated-inputs
1868      `(("gtk" ,gtk+)
1869        ("ncurses" ,ncurses)))))
1871 ;; stable version for gtk2, required by xfce4-terminal.
1872 (define-public vte/gtk+-2
1873   (package (inherit vte)
1874     (name "vte")
1875     (version "0.28.2")
1876     (source (origin
1877               (method url-fetch)
1878               (uri (string-append "mirror://gnome/sources/" name "/"
1879                                   (version-major+minor version) "/"
1880                                   name "-" version ".tar.xz"))
1881               (sha256
1882                (base32
1883                 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
1884               (patches (search-patches
1885                          "vte-CVE-2012-2738-pt1.patch"
1886                          "vte-CVE-2012-2738-pt2.patch"))))
1887     (arguments
1888      '(#:configure-flags '("--disable-python")))
1889     (native-inputs
1890      `(("pkg-config" ,pkg-config)
1891        ("intltool" ,intltool)
1892        ("glib" ,glib "bin")))   ; for glib-genmarshal, etc.
1893     (propagated-inputs
1894      `(("gtk+" ,gtk+-2)         ; required by libvte.pc
1895        ("ncurses" ,ncurses))))) ; required by libvte.la
1897 (define-public dconf
1898   (package
1899     (name "dconf")
1900     (version "0.26.0")
1901     (source (origin
1902               (method url-fetch)
1903               (uri (string-append
1904                     "mirror://gnome/sources/" name "/"
1905                     (version-major+minor version) "/"
1906                     name "-" version ".tar.xz"))
1907               (sha256
1908                (base32
1909                 "1jaqsr1r0grpd25rbsc2v3vb0sc51lia9w31wlqswgqsncp2k0w6"))))
1910     (build-system glib-or-gtk-build-system)
1911     (inputs
1912      `(("gtk+" ,gtk+)
1913        ("glib" ,glib)
1914        ("dbus" ,dbus)
1915        ("libxml2" ,libxml2)))
1916     (native-inputs
1917      `(("libxslt" ,libxslt)
1918        ("docbook-xml" ,docbook-xml-4.2)
1919        ("docbook-xsl" ,docbook-xsl)
1920        ("intltool" ,intltool)
1921        ("pkg-config" ,pkg-config)))
1922     (arguments
1923      `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
1924                    ; or /etc/machine-id.
1925        #:configure-flags
1926        ;; Set the correct RUNPATH in binaries.
1927        (list (string-append "LDFLAGS=-Wl,-rpath="
1928                             (assoc-ref %outputs "out") "/lib")
1929              "--disable-gtk-doc-html") ; FIXME: requires gtk-doc
1930        #:phases
1931        (alist-cons-before
1932         'configure 'fix-docbook
1933         (lambda* (#:key inputs #:allow-other-keys)
1934           (substitute* "docs/Makefile.in"
1935             (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1936              (string-append (assoc-ref inputs "docbook-xsl")
1937                             "/xml/xsl/docbook-xsl-"
1938                             ,(package-version docbook-xsl)
1939                             "/manpages/docbook.xsl")))
1940           (setenv "XML_CATALOG_FILES"
1941                   (string-append (assoc-ref inputs "docbook-xml")
1942                                  "/xml/dtd/docbook/catalog.xml")))
1943         %standard-phases)))
1944     (home-page "https://developer.gnome.org/dconf")
1945     (synopsis "Low-level GNOME configuration system")
1946     (description "Dconf is a low-level configuration system.  Its main purpose
1947 is to provide a backend to GSettings on platforms that don't already have
1948 configuration storage systems.")
1949     (license license:lgpl2.1)))
1951 (define-public json-glib
1952   (package
1953     (name "json-glib")
1954     (version "1.2.2")
1955     (source (origin
1956               (method url-fetch)
1957               (uri (string-append "mirror://gnome/sources/" name "/"
1958                                   (version-major+minor version) "/"
1959                                   name "-" version ".tar.xz"))
1960               (sha256
1961                (base32
1962                 "08d6449sgnwfh92x8rhwsm03g8frv0mvp3s4wl3cskw25asql4pa"))
1963               (modules '((guix build utils)))
1964               (snippet
1965                ;; Don't duplicate test names.
1966                ;; <https://bugzilla.gnome.org/show_bug.cgi?id=755977>.
1967                '(substitute* "json-glib/tests/builder.c"
1968                   (("\"/builder/complex\", test_builder_empty")
1969                    "\"/builder/empty\", test_builder_empty")))))
1970     (build-system gnu-build-system)
1971     (native-inputs
1972      `(("glib" ,glib "bin")              ;for glib-mkenums and glib-genmarshal
1973        ("gobject-introspection" ,gobject-introspection)
1974        ("pkg-config" ,pkg-config)))
1975     (propagated-inputs
1976      `(("glib" ,glib)))                         ;according to json-glib-1.0.pc
1977     (home-page "https://wiki.gnome.org/Projects/JsonGlib")
1978     (synopsis "Compiler for the GObject type system")
1979     (description
1980      "JSON-GLib is a C library based on GLib providing serialization and
1981 deserialization support for the JavaScript Object Notation (JSON) format
1982 described by RFC 4627.  It provides parser and generator GObject classes and
1983 various wrappers for the complex data types employed by JSON, such as arrays
1984 and objects.")
1985     (license license:lgpl2.1+)))
1987 (define-public libxklavier
1988   (package
1989     (name "libxklavier")
1990     (version "5.3")
1991     (source (origin
1992               (method url-fetch)
1993               (uri (string-append "mirror://gnome/sources/" name "/"
1994                                   version "/" name "-" version ".tar.xz"))
1995               (sha256
1996                (base32
1997                 "016lpdv35z0qsw1cprdc2k5qzkdi5waj6qmr0a2q6ljn9g2kpv7b"))))
1998     (build-system gnu-build-system)
1999     (arguments
2000      '(#:configure-flags
2001        (list (string-append "--with-xkb-base="
2002                             (assoc-ref %build-inputs "xkeyboard-config")
2003                             "/share/X11/xkb"))))
2004     (native-inputs
2005      `(("glib:bin"              ,glib "bin") ; for glib-mkenums, etc.
2006        ("gobject-introspection" ,gobject-introspection)
2007        ("pkg-config"            ,pkg-config)))
2008     (propagated-inputs
2009      ;; Required by libxklavier.pc.
2010      `(("glib"    ,glib)
2011        ("libxml2" ,libxml2)))
2012     (inputs
2013      `(("iso-codes"        ,iso-codes)
2014        ("libxi"            ,libxi)
2015        ("libxkbfile"       ,libxkbfile)
2016        ("xkbcomp"          ,xkbcomp)
2017        ("xkeyboard-config" ,xkeyboard-config)))
2018     (home-page "http://www.freedesktop.org/wiki/Software/LibXklavier/")
2019     (synopsis "High-level API for X Keyboard Extension")
2020     (description
2021      "LibXklavier is a library providing high-level API for X Keyboard
2022 Extension known as XKB.  This library is intended to support XFree86 and other
2023 commercial X servers.  It is useful for creating XKB-related software (layout
2024 indicators etc).")
2025     (license license:lgpl2.0+)))
2027 (define-public python2-rsvg
2028   ;; XXX: This is actually a subset of gnome-python-desktop.
2029   (package
2030     (name "python2-rsvg")
2031     (version "2.32.0")
2032     (source
2033      (origin
2034        (method url-fetch)
2035        (uri (string-append
2036              "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
2037              version ".tar.bz2"))
2038        (sha256
2039         (base32
2040          "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
2041     (build-system gnu-build-system)
2042     (native-inputs
2043      `(("pkg-config" ,pkg-config)))
2044     (inputs
2045      `(("python" ,python-2)
2046        ("python2-pygtk" ,python2-pygtk)
2047        ("librsvg" ,librsvg)))
2048     (home-page "http://www.gnome.org")
2049     (synopsis "Python bindings to librsvg")
2050     (description
2051      "This packages provides Python bindings to librsvg, the SVG rendering
2052 library.")
2054     ;; This is the license of the rsvg bindings.  The license of each module
2055     ;; of gnome-python-desktop is given in 'COPYING'.
2056     (license license:lgpl2.1+)))
2058 (define-public glib-networking
2059   (package
2060     (name "glib-networking")
2061     (version "2.48.2")
2062     (source (origin
2063               (method url-fetch)
2064               (uri (string-append "mirror://gnome/sources/glib-networking/"
2065                                   (version-major+minor version) "/"
2066                                   name "-" version ".tar.xz"))
2067               (sha256
2068                (base32
2069                 "111spcar6wbp6m0rdxzjscc7vfqx5nawscrfbxlvbf5jsr4hqp4j"))
2070               (patches
2071                (search-patches "glib-networking-ssl-cert-file.patch"))))
2072     (build-system gnu-build-system)
2073     (arguments
2074      `(#:configure-flags
2075        '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")
2076        #:phases
2077        (modify-phases %standard-phases
2078          (add-before 'configure 'patch-giomoduledir
2079                      ;; Install GIO modules into $out/lib/gio/modules.
2080                      (lambda _
2081                        (substitute* "configure"
2082                          (("GIO_MODULE_DIR=.*")
2083                           (string-append "GIO_MODULE_DIR=" %output
2084                                          "/lib/gio/modules\n")))))
2085          (add-before 'check 'use-empty-ssl-cert-file
2086                      (lambda _
2087                        ;; The ca-certificates.crt is not available in the build
2088                        ;; environment.
2089                        (setenv "SSL_CERT_FILE" "/dev/null")
2090                        #t)))))
2091     (native-inputs
2092      `(("pkg-config" ,pkg-config)
2093        ("intltool" ,intltool)))
2094     (inputs
2095      `(("glib" ,glib)
2096        ("gnutls" ,gnutls)
2097        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2098        ("p11-kit" ,p11-kit)))
2099     (home-page "http://www.gnome.org")
2100     (synopsis "Network-related GIO modules")
2101     (description
2102      "This package contains various network related extensions for the GIO
2103 library.")
2104     (license license:lgpl2.0+)))
2106 (define-public rest
2107   (package
2108     (name "rest")
2109     (version "0.8.0")
2110     (source (origin
2111               (method url-fetch)
2112               (uri (string-append "mirror://gnome/sources/rest/"
2113                                   (version-major+minor version) "/"
2114                                   name "-" version ".tar.xz"))
2115               (sha256
2116                (base32
2117                 "0iznvzhab1jq9z3nwy97dh2pid9azwkqm7kkxwx0f5ql1hh9pf77"))))
2118     (build-system gnu-build-system)
2119     (arguments
2120      '(#:tests? #f ; tests require internet connection
2121        #:configure-flags
2122        '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
2123     (native-inputs
2124      `(("glib-mkenums" ,glib "bin")
2125        ("gobject-introspection" ,gobject-introspection)
2126        ("pkg-config" ,pkg-config)))
2127     (propagated-inputs
2128      ;; rest-0.7.pc refers to all these.
2129      `(("glib"    ,glib)
2130        ("libsoup" ,libsoup)
2131        ("libxml2" ,libxml2)))
2132     (home-page "http://www.gtk.org/")
2133     (synopsis "RESTful web api query library")
2134     (description
2135      "This library was designed to make it easier to access web services that
2136 claim to be \"RESTful\".  It includes convenience wrappers for libsoup and
2137 libxml to ease remote use of the RESTful API.")
2138     (license license:lgpl2.1+)))
2140 (define-public libsoup
2141   (package
2142     (name "libsoup")
2143     (version "2.56.0")
2144     (source (origin
2145               (method url-fetch)
2146               (uri (string-append "mirror://gnome/sources/libsoup/"
2147                                   (version-major+minor version) "/"
2148                                   name "-" version ".tar.xz"))
2149               (sha256
2150                (base32
2151                 "1r8zz270qdg92gbsvy61d51y1cj7hp059h2f4xpvqiw2vrqnn8fq"))))
2152     (build-system gnu-build-system)
2153     (outputs '("out" "doc"))
2154     (arguments
2155      `(#:configure-flags
2156        (list (string-append "--with-html-dir="
2157                             (assoc-ref %outputs "doc")
2158                             "/share/gtk-doc/html"))
2159        #:phases
2160        (modify-phases %standard-phases
2161          (add-before 'configure 'disable-unconnected-socket-test
2162                      ;; This test fails due to missing /etc/nsswitch.conf
2163                      ;; in the build environment.
2164                      (lambda _
2165                        (substitute* "tests/socket-test.c"
2166                          ((".*/sockets/unconnected.*") ""))
2167                        #t))
2168          (add-before 'check 'pre-check
2169                      (lambda _
2170                        ;; The 'check-local' target runs 'env LANG=C sort -u',
2171                        ;; unset 'LC_ALL' to make 'LANG' working.
2172                        (unsetenv "LC_ALL")
2173                        ;; The ca-certificates.crt is not available in the build
2174                        ;; environment.
2175                        (setenv "SSL_CERT_FILE" "/dev/null")
2176                        #t))
2177          (replace 'install
2178                   (lambda _
2179                     (zero?
2180                      (system* "make"
2181                               ;; Install vala bindings into $out.
2182                               (string-append "vapidir=" %output
2183                                              "/share/vala/vapi")
2184                               "install")))))))
2185     (native-inputs
2186      `(("glib:bin" ,glib "bin") ; for glib-mkenums
2187        ("gobject-introspection" ,gobject-introspection)
2188        ("intltool" ,intltool)
2189        ("pkg-config" ,pkg-config)
2190        ("python" ,python-wrapper)
2191        ("vala" ,vala)
2192        ;; These are needed for the tests.
2193        ;; FIXME: Add PHP once available.
2194        ("curl" ,curl)
2195        ("httpd" ,httpd)))
2196     (propagated-inputs
2197      ;; libsoup-2.4.pc refers to all these.
2198      `(("glib" ,glib)
2199        ("libxml2" ,libxml2)))
2200     (inputs
2201      `(("glib-networking" ,glib-networking)
2202        ("sqlite" ,sqlite)))
2203     (home-page "https://live.gnome.org/LibSoup/")
2204     (synopsis "GLib-based HTTP Library")
2205     (description
2206      "LibSoup is an HTTP client/server library for GNOME.  It uses GObjects
2207 and the GLib main loop, to integrate well with GNOME applications.")
2208     (license license:lgpl2.0+)))
2210 (define-public libsecret
2211   (package
2212     (name "libsecret")
2213     (version "0.18.5")
2214     (source (origin
2215               (method url-fetch)
2216               (uri (string-append
2217                     "mirror://gnome/sources/libsecret/"
2218                     (version-major+minor version) "/"
2219                     name "-" version ".tar.xz"))
2220               (sha256
2221                (base32
2222                 "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww"))))
2223     (build-system gnu-build-system)
2224     (outputs '("out" "doc"))
2225     (arguments
2226      `(#:tests? #f ; FIXME: Testing hangs.
2227        #:configure-flags
2228        (list (string-append "--with-html-dir="
2229                             (assoc-ref %outputs "doc")
2230                             "/share/gtk-doc/html"))))
2231     (native-inputs
2232      `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
2233        ("gobject-introspection" ,gobject-introspection)
2234        ("intltool" ,intltool)
2235        ("pkg-config" ,pkg-config)
2236        ("vala" ,vala)
2237        ("xsltproc" ,libxslt)))
2238        ;; These are needed for the tests.
2239        ;; FIXME: Add gjs once available.
2240        ;("dbus" ,dbus)
2241        ;("python2" ,python-2)
2242        ;("python2-dbus" ,python2-dbus)
2243        ;("python2-pygobject" ,python2-pygobject)
2244        ;("python2-pygobject-2" ,python2-pygobject-2)))
2245     (propagated-inputs
2246      `(("glib" ,glib))) ; required by libsecret-1.pc
2247     (inputs
2248      `(("docbook-xsl" ,docbook-xsl)
2249        ("libgcrypt" ,libgcrypt)
2250        ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
2251     (home-page "https://wiki.gnome.org/Projects/Libsecret/")
2252     (synopsis "GObject bindings for \"Secret Service\" API")
2253     (description
2254      "Libsecret is a GObject based library for storing and retrieving passwords
2255 and other secrets.  It communicates with the \"Secret Service\" using DBus.")
2256     (license license:lgpl2.1+)))
2258 (define-public gnome-mines
2259   (package
2260     (name "gnome-mines")
2261     (version "3.20.1")
2262     (source
2263      (origin
2264        (method url-fetch)
2265        (uri (string-append "mirror://gnome/sources/" name "/"
2266                            (version-major+minor version) "/"
2267                            name "-" version ".tar.xz"))
2268        (sha256
2269         (base32
2270          "0frb1r0f55giz7yqxl9920vvzqlirdivz54ygc9d85r8v63fh5aq"))))
2271     (build-system glib-or-gtk-build-system)
2272     (arguments
2273      '(#:phases
2274        (modify-phases %standard-phases
2275          (add-before 'configure 'patch-/bin/true
2276                      (lambda _
2277                        (substitute* "configure"
2278                          (("/bin/true") (which "true"))))))))
2279     (native-inputs
2280      `(("pkg-config" ,pkg-config)
2281        ("desktop-file-utils" ,desktop-file-utils)
2282        ("intltool" ,intltool)
2283        ("itstool" ,itstool)
2284        ("xmllint" ,libxml2)))
2285     (inputs
2286      `(("gtk+" ,gtk+)
2287        ("librsvg" ,librsvg)))
2288     (home-page "https://wiki.gnome.org/Apps/Mines")
2289     (synopsis "Minesweeper game")
2290     (description
2291      "Mines (previously gnomine) is a puzzle game where you locate mines
2292 floating in an ocean using only your brain and a little bit of luck.")
2293     (license license:gpl2+)))
2295 (define-public gnome-sudoku
2296   (package
2297     (name "gnome-sudoku")
2298     (version "3.20.5")
2299     (source
2300      (origin
2301        (method url-fetch)
2302        (uri (string-append "mirror://gnome/sources/" name "/"
2303                            (version-major+minor version) "/"
2304                            name "-" version ".tar.xz"))
2305        (sha256
2306         (base32
2307          "166bbv5k50v7pjp3wbl2rmxcmv1adwr14hxg5rw2ws8kams8151k"))))
2308     (build-system glib-or-gtk-build-system)
2309     (native-inputs
2310      `(("pkg-config" ,pkg-config)
2311        ("desktop-file-utils" ,desktop-file-utils)
2312        ("intltool" ,intltool)
2313        ("itstool" ,itstool)
2314        ("xmllint" ,libxml2)))
2315     (inputs
2316      `(("gtk+" ,gtk+)
2317        ("json-glib" ,json-glib)
2318        ("libgee" ,libgee)
2319        ("librsvg" ,librsvg)
2320        ("qqwing" ,qqwing)))
2321     (home-page "https://wiki.gnome.org/Apps/Sudoku")
2322     (synopsis "Japanese logic game")
2323     (description
2324      "Sudoku is a Japanese logic game that exploded in popularity in 2005.
2325 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
2326 possible while still providing features that make playing difficult Sudoku
2327 more fun.")
2328     (license license:gpl2+)))
2330 (define-public gnome-terminal
2331   (package
2332     (name "gnome-terminal")
2333     (version "3.20.2")
2334     (source
2335      (origin
2336        (method url-fetch)
2337        (uri (string-append "mirror://gnome/sources/" name "/"
2338                            (version-major+minor version) "/"
2339                            name "-" version ".tar.xz"))
2340        (sha256
2341         (base32
2342          "08ssch8h1y85wyhddkyr7ab4v8dnsn17z4ayyc5ff78gfdh30f7m"))))
2343     (build-system glib-or-gtk-build-system)
2344     (arguments
2345      '(#:configure-flags
2346        (list "--disable-migration" "--disable-search-provider"
2347              "--without-nautilus-extension")
2348        #:phases
2349        (modify-phases %standard-phases
2350          (add-before 'configure 'patch-/bin/true
2351                      (lambda _
2352                        (substitute* "configure"
2353                          (("/bin/true") (which "true"))))))))
2354     (native-inputs
2355      `(("pkg-config" ,pkg-config)
2356        ("desktop-file-utils" ,desktop-file-utils)
2357        ("intltool" ,intltool)
2358        ("itstool" ,itstool)
2359        ("xmllint" ,libxml2)))
2360     (propagated-inputs
2361      `(("dconf" ,dconf)))
2362     (inputs
2363      `(("gtk+" ,gtk+)
2364        ("vte" ,vte)
2365        ("gnutls" ,gnutls)
2366        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2367        ("util-linux" ,util-linux)
2368        ("vala" ,vala)))
2369     (home-page "https://wiki.gnome.org/Apps/Terminal")
2370     (synopsis "Terminal emulator")
2371     (description
2372      "GNOME Terminal is a terminal emulator application for accessing a
2373 UNIX shell environment which can be used to run programs available on
2374 your system.
2376 It supports several profiles, multiple tabs and implements several
2377 keyboard shortcuts.")
2378     (license license:gpl3+)))
2380 (define-public colord
2381   (package
2382     (name "colord")
2383     (version "1.1.8")
2384     (source
2385      (origin
2386        (method url-fetch)
2387        (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
2388                            name "-" version ".tar.xz"))
2389        (sha256
2390         (base32
2391          "01w97rgzk4qi6fp03scq5jyw0ayx11b479p7dkm2r77k84b9agph"))))
2392     (build-system glib-or-gtk-build-system)
2393     (arguments
2394      '(;; The tests want to run valgrind.  Punt for now.
2395        #:tests? #f
2396        #:configure-flags (list "--localstatedir=/var"
2397                                ;; GUSB not packaged yet.
2398                                "--disable-gusb"
2399                                ;; No dep on systemd.
2400                                "--disable-systemd-login"
2401                                ;; Wants to install to global completion dir;
2402                                ;; punt.
2403                                "--disable-bash-completion"
2404                                ;; colord-gtk not packaged yet.
2405                                "--disable-session-example"
2406                                "--with-daemon-user=colord"
2407                                "--enable-sane"
2408                                (string-append "--with-udevrulesdir="
2409                                               (assoc-ref %outputs "out")
2410                                               "/lib/udev/rules.d"))
2411        #:phases
2412        (modify-phases %standard-phases
2413          (add-before 'configure 'patch-/bin/true
2414                      (lambda _
2415                        (substitute* "configure"
2416                          (("/bin/true") (which "true")))
2417                        (substitute* "src/Makefile.in"
2418                          (("if test -w \\$\\(DESTDIR\\)\\$\\(prefix\\)/;")
2419                           "if test -w $(DESTDIR)$(localstatedir);")))))))
2420     (native-inputs
2421      `(("pkg-config" ,pkg-config)
2422        ("gobject-introspection" ,gobject-introspection)
2423        ("libtool" ,libtool)
2424        ("intltool" ,intltool)))
2425     (propagated-inputs
2426      ;; colord.pc refers to all these.
2427      `(("glib" ,glib)
2428        ("udev" ,eudev)
2429        ("lcms" ,lcms)))
2430     (inputs
2431      `(("dbus-glib" ,dbus-glib)
2432        ("libgudev" ,libgudev)
2433        ("libusb" ,libusb)
2434        ("sqlite" ,sqlite)
2435        ("polkit" ,polkit)
2436        ("sane-backends" ,sane-backends)))
2437     (home-page "http://www.freedesktop.org/software/colord/")
2438     (synopsis "Color management service")
2439     (description "Colord is a system service that makes it easy to manage,
2440 install and generate color profiles to accurately color manage input and
2441 output devices.")
2442     (license license:gpl2+)))
2444 (define-public geoclue
2445   (package
2446     (name "geoclue")
2447     (version "2.4.4")
2448     (source
2449      (origin
2450        (method url-fetch)
2451        (uri (string-append "https://www.freedesktop.org/software/" name
2452                            "/releases/" (version-major+minor version) "/"
2453                            name "-" version ".tar.xz"))
2454        (sha256
2455         (base32
2456          "0p1ibjf5vzjsahw5xif2si3lj6a00sxhll008jk7w1hj1jfznhww"))
2457        (patches (search-patches "geoclue-config.patch"))))
2458     (build-system glib-or-gtk-build-system)
2459     (arguments
2460      '(;; The tests want to run the system bus.
2461        #:tests? #f
2462        #:configure-flags (list ;; Disable bits requiring ModemManager.
2463                                "--disable-3g-source"
2464                                "--disable-cdma-source"
2465                                "--disable-modem-gps-source"
2466                                "--with-dbus-service-user=geoclue")
2467        #:phases
2468        (modify-phases %standard-phases
2469          (add-before 'configure 'patch-/bin/true
2470                      (lambda _
2471                        (substitute* "configure"
2472                          (("/bin/true") (which "true"))))))))
2473     (native-inputs
2474      `(("pkg-config" ,pkg-config)
2475        ("intltool" ,intltool)))
2476     (inputs
2477      `(("avahi" ,avahi)
2478        ("glib" ,glib)
2479        ("json-glib" ,json-glib)
2480        ("libsoup" ,libsoup)))
2481     (home-page "http://freedesktop.org/wiki/Software/GeoClue/")
2482     (synopsis "Geolocation service")
2483     (description "Geoclue is a D-Bus service that provides location
2484 information.  The primary goal of the Geoclue project is to make creating
2485 location-aware applications as simple as possible, while the secondary goal is
2486 to ensure that no application can access location information without explicit
2487 permission from user.")
2488     (license license:gpl2+)))
2490 (define-public geocode-glib
2491   (package
2492     (name "geocode-glib")
2493     (version "3.20.1")
2494     (source (origin
2495               (method url-fetch)
2496               (uri (string-append "mirror://gnome/sources/geocode-glib/"
2497                                   (version-major+minor version) "/"
2498                                   name "-" version ".tar.xz"))
2499               (sha256
2500                (base32
2501                 "18iphsx3bybw7lssbb7rxc1rrnsc8vxai521zkqc535zr8rci7v6"))))
2502     (build-system gnu-build-system)
2503     (arguments
2504      `(;; The tests want to write to $HOME/.cache/geocode-glib, which doesn't
2505        ;; work for the builder.  Punt.
2506        #:tests? #f))
2507     (native-inputs
2508      `(("glib:bin" ,glib "bin") ; for glib-mkenums
2509        ("gobject-introspection" ,gobject-introspection)
2510        ("pkg-config" ,pkg-config)
2511        ("json-glib" ,json-glib)))
2512     (propagated-inputs
2513      ;; geocode-glib-1.0.pc refers to GIO.
2514      `(("glib" ,glib)))
2515     (inputs
2516      `(("libsoup" ,libsoup)))
2517     (home-page "https://github.com/GNOME/geocode-glib/")
2518     (synopsis "Geocoding and reverse-geocoding library")
2519     (description
2520      "geocode-glib is a convenience library for geocoding (finding longitude,
2521 and latitude from an address) and reverse geocoding (finding an address from
2522 coordinates) using the Nominatim service.  geocode-glib caches requests for
2523 faster results and to avoid unnecessary server load.")
2524     (license license:lgpl2.0+)))
2526 (define-public upower
2527   (package
2528     (name "upower")
2529     (version "0.99.3")
2530     (source (origin
2531               (method url-fetch)
2532               (uri (string-append "https://upower.freedesktop.org/releases/"
2533                                   name "-" version ".tar.xz"))
2534               (sha256
2535                (base32
2536                 "0f6x9mi1jzgqdpycaikyhjljnw3aacsl3gxndyg0dfqkq6y9jwb9"))
2537               (patches (search-patches "upower-builddir.patch"))))
2538     (build-system glib-or-gtk-build-system)
2539     (arguments
2540      '( ;; The tests want to contact the system bus, which can't be done in the
2541        ;; build environment.  The integration test can run, but the last of
2542        ;; the up-self-tests doesn't.  Disable tests for now.
2543        #:tests? #f
2544        #:configure-flags (list "--localstatedir=/var"
2545                                (string-append "--with-udevrulesdir="
2546                                               (assoc-ref %outputs "out")
2547                                               "/lib/udev/rules.d"))
2548        #:phases
2549        (modify-phases %standard-phases
2550          (add-before 'configure 'patch-/bin/true
2551                      (lambda _
2552                        (substitute* "configure"
2553                          (("/bin/true") (which "true")))))
2554          (add-before 'configure 'patch-integration-test
2555                      (lambda _
2556                        (substitute* "src/linux/integration-test"
2557                          (("/usr/bin/python3") (which "python3"))))))))
2558     (native-inputs
2559      `(("gobject-introspection" ,gobject-introspection)
2560        ("pkg-config" ,pkg-config)
2561        ("intltool" ,intltool)
2562        ("python" ,python)
2564        ;; For man pages.
2565        ("libxslt" ,libxslt)                       ;for 'xsltproc'
2566        ("libxml2" ,libxml2)                       ;for 'XML_CATALOG_FILES'
2567        ("docbook-xsl" ,docbook-xsl)))
2568     (inputs
2569      `(("dbus-glib" ,dbus-glib)
2570        ("libgudev" ,libgudev)
2571        ("libusb" ,libusb)))
2572     (home-page "http://upower.freedesktop.org/")
2573     (synopsis "System daemon for managing power devices")
2574     (description
2575      "UPower is an abstraction for enumerating power devices,
2576 listening to device events and querying history and statistics.  Any
2577 application or service on the system can access the org.freedesktop.UPower
2578 service via the system message bus.")
2579     (license license:gpl2+)))
2581 (define-public libgweather
2582   (package
2583     (name "libgweather")
2584     (version "3.20.3")
2585     (source (origin
2586               (method url-fetch)
2587               (uri (string-append "mirror://gnome/sources/" name "/"
2588                                   (version-major+minor version) "/"
2589                                   name "-" version ".tar.xz"))
2590               (sha256
2591                (base32
2592                 "02vcnlchcq3hxsm75x2szzkszg1yp1rg164p1b23vnzm9svcaszv"))))
2593     (build-system gnu-build-system)
2594     (arguments
2595      `(#:configure-flags
2596        `(,(string-append "--with-zoneinfo-dir="
2597                          (assoc-ref %build-inputs "tzdata")
2598                          "/share/zoneinfo"))
2599        #:phases
2600        (modify-phases %standard-phases
2601          (add-before 'check 'pre-check
2602            (lambda* (#:key inputs #:allow-other-keys)
2603              (substitute* "data/check-timezones.sh"
2604                (("/usr/share/zoneinfo/zone.tab")
2605                 (string-append (assoc-ref inputs "tzdata")
2606                                "/share/zoneinfo/zone.tab")))
2608              ;; 'Asia/Rangoon' was renamed in tzdata-2016:
2609              ;; <https://github.com/eggert/tz/commit/4368251ebf11310a4aadccd1910daeac9080c501>.
2610              (substitute* "data/Locations.xml"
2611                (("Asia/Rangoon")
2612                 "Asia/Yangon"))
2613             #t)))))
2614     (native-inputs
2615      `(("glib:bin" ,glib "bin") ; for glib-mkenums
2616        ("gobject-introspection" ,gobject-introspection)
2617        ("pkg-config" ,pkg-config)
2618        ("intltool" ,intltool)))
2619     (propagated-inputs
2620      ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
2621      ;; libsoup.
2622      `(("gtk+" ,gtk+)
2623        ("gdk-pixbuf" ,gdk-pixbuf)
2624        ("libxml2" ,libxml2)
2625        ("libsoup" ,libsoup)))
2626     (inputs
2627      `(("tzdata" ,tzdata)
2628        ("geocode-glib" ,geocode-glib)))
2629     (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
2630     (synopsis "Location, time zone, and weather library for GNOME")
2631     (description
2632      "libgweather is a library to access weather information from online
2633 services for numerous locations.")
2634     (license license:gpl2+)))
2636 (define-public gnome-settings-daemon
2637   (package
2638     (name "gnome-settings-daemon")
2639     (version "3.20.1")
2640     (source
2641      (origin
2642        (method url-fetch)
2643        (uri (string-append "mirror://gnome/sources/" name "/"
2644                            (version-major+minor version) "/"
2645                            name "-" version ".tar.xz"))
2646        (sha256
2647         (base32
2648          "1rvqisrh3lridsb8rvm7spvncyq206ly0245zgpbm8swi5fhfjp8"))))
2649     (build-system glib-or-gtk-build-system)
2650     (arguments
2651      `(;; Network manager not yet packaged.
2652        #:configure-flags '("--disable-network-manager")
2653        ;; Color management test can't reach the colord system service.
2654        #:tests? #f))
2655     (native-inputs
2656      `(("pkg-config" ,pkg-config)
2657        ("intltool" ,intltool)
2658        ("xsltproc" ,libxslt)
2659        ("libxml2" ,libxml2)                       ;for XML_CATALOG_FILES
2660        ("docbook-xml" ,docbook-xml-4.2)
2661        ("docbook-xsl" ,docbook-xsl)))
2662     (inputs
2663      `(("colord" ,colord)
2664        ("libgudev" ,libgudev)
2665        ("upower" ,upower)
2666        ("polkit" ,polkit)
2667        ("pulseaudio" ,pulseaudio)
2668        ("libcanberra" ,libcanberra)
2669        ("libx11" ,libx11)
2670        ("libxtst" ,libxtst)
2671        ("lcms" ,lcms)
2672        ("libnotify" ,libnotify)
2673        ("geoclue" ,geoclue)
2674        ("geocode-glib" ,geocode-glib)
2675        ("libgweather" ,libgweather)
2676        ("gnome-desktop" ,gnome-desktop)
2677        ("nss" ,nss)
2678        ("cups" ,cups)
2679        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2680        ("libwacom" ,libwacom)
2681        ("librsvg" ,librsvg)
2682        ("xf86-input-wacom" ,xf86-input-wacom)))
2683     (home-page "http://www.gnome.org")
2684     (synopsis "GNOME settings daemon")
2685     (description
2686      "This package contains the daemon responsible for setting the various
2687 parameters of a GNOME session and the applications that run under it.  It
2688 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
2689 settings, themes, mouse settings, and startup of other daemons.")
2690     (license license:gpl2+)))
2692 (define-public totem-pl-parser
2693  (package
2694    (name "totem-pl-parser")
2695    (version "3.10.6")
2696    (source (origin
2697             (method url-fetch)
2698             (uri (string-append "mirror://gnome/sources/totem-pl-parser/3.10/"
2699                                 "totem-pl-parser-" version ".tar.xz"))
2700             (sha256
2701              (base32
2702               "0mv7aw9mw77w04zg95zjf0zmk6ckshpysbb9nap15h5is6zdk9cq"))))
2703    (build-system gnu-build-system)
2704    (arguments
2705     ;; FIXME: Tests require gvfs.
2706     `(#:tests? #f))
2707    (native-inputs
2708     `(("intltool" ,intltool)
2709       ("glib" ,glib "bin")
2710       ("gobject-introspection" ,gobject-introspection)
2711       ("pkg-config" ,pkg-config)))
2712    (propagated-inputs
2713     `(("glib" ,glib)
2714       ("gmime" ,gmime)
2715       ("libxml2" ,libxml2)))
2716    (inputs
2717     `(("libarchive" ,libarchive)
2718       ("libgcrypt" ,libgcrypt)
2719       ("nettle" ,nettle)
2720       ("libsoup" ,libsoup)))
2721    (home-page "https://projects.gnome.org/totem")
2722    (synopsis "Library to parse and save media playlists for GNOME")
2723    (description "Totem-pl-parser is a GObjects-based library to parse and save
2724 playlists in a variety of formats.")
2725    (license license:lgpl2.0+)))
2727 (define-public aisleriot
2728   (package
2729     (name "aisleriot")
2730     (version "3.20.2")
2731     (source (origin
2732               (method url-fetch)
2733               (uri (string-append "mirror://gnome/sources/" name "/"
2734                                   (version-major+minor version) "/"
2735                                   name "-" version ".tar.xz"))
2736               (sha256
2737                (base32
2738                 "0vhpi7bzm4gbraky1d3ma26rbwnylcqdakav82j67bpqd7f6n0v2"))))
2739     (build-system glib-or-gtk-build-system)
2740     (arguments
2741      '(#:configure-flags
2742        '("--with-platform=gtk-only"
2743          "--with-card-theme-formats=svg")))
2744     (native-inputs
2745      `(("desktop-file-utils" ,desktop-file-utils)
2746        ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2747        ("intltool" ,intltool)
2748        ("itstool" ,itstool)
2749        ("pkg-config" ,pkg-config)
2750        ("xmllint" ,libxml2)))
2751     (inputs
2752      `(("gtk+" ,gtk+)
2753        ("guile" ,guile-2.0)
2754        ("libcanberra" ,libcanberra)
2755        ("librsvg" ,librsvg)))
2756     (home-page "https://wiki.gnome.org/Apps/Aisleriot")
2757     (synopsis "Solitaire card games")
2758     (description
2759      "Aisleriot (also known as Solitaire or sol) is a collection of card games
2760 which are easy to play with the aid of a mouse.")
2761     (license license:gpl3+)))
2763 (define-public devhelp
2764   (package
2765     (name "devhelp")
2766     (version "3.20.0")
2767     (source (origin
2768               (method url-fetch)
2769               (uri (string-append "mirror://gnome/sources/" name "/"
2770                                   (version-major+minor version) "/"
2771                                   name "-" version ".tar.xz"))
2772               (sha256
2773                (base32
2774                 "078zr92xs5ifp862v1vdmw1j9m6gr9zk5hjbk5065vxjwb17acx2"))))
2775     (build-system glib-or-gtk-build-system)
2776     (native-inputs
2777      `(("intltool" ,intltool)
2778        ("pkg-config" ,pkg-config)))
2779     (inputs
2780      `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2781        ("webkitgtk" ,webkitgtk)))
2782     (home-page "https://wiki.gnome.org/Apps/Devhelp")
2783     (synopsis "API documentation browser for GNOME")
2784     (description
2785      "Devhelp is an API documentation browser for GTK+ and GNOME.  It works
2786 natively with GTK-Doc (the API reference system developed for GTK+ and used
2787 throughout GNOME for API documentation).")
2788     (license license:gpl2+)))
2790 (define-public cogl
2791   (package
2792     (name "cogl")
2793     (version "1.22.0")
2794     (source
2795      (origin
2796        (method url-fetch)
2797        (uri (string-append "mirror://gnome/sources/" name "/"
2798                            (version-major+minor version) "/"
2799                            name "-" version ".tar.xz"))
2800        (sha256
2801         (base32
2802          "14daxqrid5039xmq9yl4pk86awng1n9zgl6ysblhc4gw2ifzp7b8"))))
2803     (build-system gnu-build-system)
2804     (native-inputs
2805      `(("glib:bin" ,glib "bin")     ; for glib-mkenums
2806        ("gobject-introspection" ,gobject-introspection)
2807        ;;("xorg-server" ,xorg-server) ; for the test suite
2808        ("pkg-config" ,pkg-config)))
2809     (propagated-inputs
2810      `(("glib" ,glib)
2811        ("gdk-pixbuf" ,gdk-pixbuf)
2812        ("libx11" ,libx11)
2813        ("libxext" ,libxext)
2814        ("libxfixes" ,libxfixes)
2815        ("libxdamage" ,libxdamage)
2816        ("libxcomposite" ,libxcomposite)
2817        ("libxrandr" ,libxrandr)))
2818     (inputs
2819      `(("mesa" ,mesa)
2820        ("cairo" ,cairo)
2821        ("pango" ,pango)
2822        ("gstreamer" ,gstreamer)
2823        ("gst-plugins-base" ,gst-plugins-base)))
2824     (arguments
2825      `(#:configure-flags (list "--enable-cogl-gst"
2826                                ;; Arrange to pass an absolute file name to
2827                                ;; dlopen for libGL.so.
2828                                (string-append "--with-gl-libname="
2829                                               (assoc-ref %build-inputs "mesa")
2830                                               "/lib/libGL.so"))
2831        ;; XXX FIXME: All tests fail, with many warnings printed like this:
2832        ;;   _FontTransOpen: Unable to Parse address
2833        ;;   ${prefix}/share/fonts/X11/misc/
2834        #:tests? #f
2835        #; #:phases
2836        #;
2837        (modify-phases %standard-phases
2838          (add-before 'check 'start-xorg-server
2839                      (lambda* (#:key inputs #:allow-other-keys)
2840                        ;; The test suite requires a running X server.
2841                        (system (format #f "~a/bin/Xvfb :1 &"
2842                                        (assoc-ref inputs "xorg-server")))
2843                        (setenv "DISPLAY" ":1")
2844                        #t)))))
2845     (home-page "http://www.cogl3d.org")
2846     (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
2847     (description
2848      "Cogl is a small library for using 3D graphics hardware to draw pretty
2849 pictures.  The API departs from the flat state machine style of OpenGL and is
2850 designed to make it easy to write orthogonal components that can render
2851 without stepping on each others toes.")
2852     (license (list license:expat       ; most of the code
2853                    license:bsd-3       ; cogl/cogl-point-in-poly.c
2854                    license:sgifreeb2.0 ; cogl-path/tesselator/
2855                    license:asl2.0))))  ; examples/android/
2857 (define-public clutter
2858   (package
2859     (name "clutter")
2860     (version "1.26.0")
2861     (source
2862      (origin
2863        (method url-fetch)
2864        (uri (string-append "mirror://gnome/sources/" name "/"
2865                            (version-major+minor version) "/"
2866                            name "-" version ".tar.xz"))
2867        (sha256
2868         (base32
2869          "01nfjd4k7j2n3agpx2d9ncff86nfsqv4n23465rb9zmk4iw4wlb7"))))
2870     (build-system gnu-build-system)
2871     (outputs '("out"
2872                "doc"))                            ;9 MiB of gtk-doc HTML pages
2873     (native-inputs
2874      `(("glib:bin" ,glib "bin")     ; for glib-genmarshal
2875        ("gobject-introspection" ,gobject-introspection)
2876        ("pkg-config" ,pkg-config)
2877        ("xsltproc" ,libxslt)))
2878     (propagated-inputs
2879      `(("cogl" ,cogl)
2880        ("cairo" ,cairo)
2881        ("atk" ,atk)
2882        ("gtk+" ,gtk+)
2883        ("json-glib" ,json-glib)
2884        ("glib" ,glib)
2885        ("libxcomposite" ,libxcomposite)
2886        ("libxdamage" ,libxdamage)
2887        ("libxext" ,libxext)
2888        ("xinput" ,xinput)))
2889     (inputs
2890      `(("libxkbcommon" ,libxkbcommon)
2891        ("udev" ,eudev)))
2892     (arguments
2893      `(#:configure-flags (list "--enable-x11-backend=yes"
2895                                ;; This produces share/doc/{clutter,cally}.
2896                                (string-append "--with-html-dir="
2897                                               (assoc-ref %outputs "doc")
2898                                               "/share/doc"))
2899        ;; XXX FIXME: Get test suite working.  It would probably fail in the
2900        ;; same way the cogl tests fail, since clutter is based on cogl.
2901        #:tests? #f))
2902     (home-page "http://www.clutter-project.org")
2903     (synopsis "Open GL based interactive canvas library")
2904     (description
2905      "Clutter is an Open GL based interactive canvas library, designed for
2906 creating fast, mainly 2D single window applications such as media box UIs,
2907 presentations, kiosk style applications and so on.")
2908     (license license:lgpl2.0+)))
2910 (define-public clutter-gtk
2911   (package
2912     (name "clutter-gtk")
2913     (version "1.8.0")
2914     (source
2915      (origin
2916        (method url-fetch)
2917        (uri (string-append "mirror://gnome/sources/" name "/"
2918                            (version-major+minor version) "/"
2919                            name "-" version ".tar.xz"))
2920        (sha256
2921         (base32
2922          "07dzvx0b3fsswxnpxgk0adjgccnrvbxsd971naqwndnfivbgjbkl"))))
2923     (build-system gnu-build-system)
2924     (native-inputs
2925      `(("pkg-config" ,pkg-config)
2926        ("gobject-introspection" ,gobject-introspection)))
2927     (propagated-inputs
2928      ;; clutter-gtk.pc refers to all these.
2929      `(("clutter" ,clutter)
2930        ("gtk+" ,gtk+)))
2931     (home-page "http://www.clutter-project.org")
2932     (synopsis "Open GL based interactive canvas library GTK+ widget")
2933     (description
2934      "Clutter is an Open GL based interactive canvas library, designed for
2935 creating fast, mainly 2D single window applications such as media box UIs,
2936 presentations, kiosk style applications and so on.")
2937     (license license:lgpl2.0+)))
2939 (define-public clutter-gst
2940   (package
2941     (name "clutter-gst")
2942     (version "3.0.18")
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
2951          "14w0pi9myvcn1yxzmk9sk8dghj17m5ji3aqdpfjikk90c060vv0a"))))
2952     (build-system gnu-build-system)
2953     (native-inputs
2954      `(("glib:bin" ,glib "bin")     ; for glib-mkenums
2955        ("pkg-config" ,pkg-config)
2956        ("gobject-introspection" ,gobject-introspection)))
2957     (inputs
2958      `(("clutter" ,clutter)
2959        ("gstreamer" ,gstreamer)
2960        ("gst-plugins-base" ,gst-plugins-base)))
2961     (home-page "http://www.clutter-project.org")
2962     (synopsis "Integration library for using GStreamer with Clutter")
2963     (description
2964      "Clutter-Gst is an integration library for using GStreamer with Clutter.
2965 It provides a GStreamer sink to upload frames to GL and an actor that
2966 implements the ClutterGstPlayer interface using playbin.  Clutter is an Open
2967 GL based interactive canvas library.")
2968     (license license:lgpl2.0+)))
2970 (define-public libchamplain
2971   (package
2972     (name "libchamplain")
2973     (version "0.12.13")
2974     (source (origin
2975               (method url-fetch)
2976               (uri (string-append
2977                     "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
2978                     version ".tar.xz"))
2979               (sha256
2980                (base32
2981                 "1arzd1hsgq14rbiwa1ih2g250x6ljna2s2kiqfrw155c612s9cxk"))))
2982     (build-system gnu-build-system)
2983     (arguments '(#:configure-flags '("--enable-vala")))
2984     (native-inputs
2985      `(("gobject-introspection" ,gobject-introspection)
2986        ("pkg-config" ,pkg-config)
2987        ("vala" ,vala)))
2988     (propagated-inputs
2989      `(("libsoup" ,libsoup)
2990        ("sqlite" ,sqlite)
2991        ("clutter" ,clutter)
2992        ("clutter-gtk" ,clutter-gtk)
2993        ("glib:bin" ,glib "bin")                   ;glib-mkenums, etc.
2994        ("cairo" ,cairo)
2995        ("gtk+3" ,gtk+)
2996        ("glib" ,glib)))
2997     (home-page "http://projects.gnome.org/libchamplain/")
2998     (synopsis "C library providing a ClutterActor to display maps")
2999     (description
3000      "libchamplain is a C library providing a ClutterActor to display maps.
3001 It also provides a Gtk+ widget to display maps in Gtk+ applications.  Python
3002 and Perl bindings are also available.  It supports numerous free map sources
3003 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
3004     (license license:lgpl2.1+)))
3006 (define-public gom
3007   (package
3008     (name "gom")
3009     (version "0.3.2")
3010     (source
3011      (origin
3012        (method url-fetch)
3013        (uri (string-append "mirror://gnome/sources/" name "/"
3014                            (version-major+minor version) "/"
3015                            name "-" version ".tar.xz"))
3016        (sha256
3017         (base32
3018          "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
3019     (build-system gnu-build-system)
3020     (native-inputs
3021      `(("intltool" ,intltool)
3022        ("pkg-config" ,pkg-config)
3023        ("gobject-introspection" ,gobject-introspection)))
3024     (inputs
3025      `(("glib" ,glib)
3026        ("gdk-pixbuf" ,gdk-pixbuf)
3027        ("sqlite" ,sqlite)))
3028     ;; XXX TODO: Figure out how to run the test suite.
3029     (arguments `(#:tests? #f))
3030     (home-page "https://wiki.gnome.org/Projects/Gom")
3031     (synopsis "Object mapper from GObjects to SQLite")
3032     (description
3033      "Gom provides an object mapper from GObjects to SQLite.  It helps you
3034 write applications that need to store structured data as well as make complex
3035 queries upon that data.")
3036     (license license:lgpl2.1+)))
3038 (define-public libgames-support
3039   (package
3040     (name "libgames-support")
3041     (version "1.0.2")
3042     (source (origin
3043               (method url-fetch)
3044               (uri (string-append "mirror://gnome/sources/" name "/"
3045                                   (version-major+minor version) "/"
3046                                   name "-" version ".tar.xz"))
3047               (sha256
3048                (base32
3049                 "0rms2ksiv7j9944km7r87q22nh05si1fisn5xm3z4zy5vpcfi5mh"))))
3050     (build-system gnu-build-system)
3051     (arguments
3052      '(#:phases
3053        (modify-phases %standard-phases
3054          (add-before 'check 'pre-check
3055            (lambda _
3056              ;; tests require a writable HOME.
3057              (setenv "HOME" (getcwd))
3058              #t)))))
3059     (native-inputs
3060      `(("intltool" ,intltool)
3061        ("pkg-config" ,pkg-config)
3062        ("vala" ,vala)))
3063     (propagated-inputs
3064      ;; Required by libgames-support-1.0.pc
3065      `(("gtk+" ,gtk+)
3066        ("libgee" ,libgee)))
3067     (home-page "https://www.gnome.org/")
3068     (synopsis "Useful functionality shared among GNOME games")
3069     (description
3070      "libgames-support is a small library intended for internal use by
3071 GNOME Games, but it may be used by others.")
3072     (license license:lgpl3+)))
3074 (define-public gnome-klotski
3075   (package
3076     (name "gnome-klotski")
3077     (version "3.20.2")
3078     (source (origin
3079               (method url-fetch)
3080               (uri (string-append "mirror://gnome/sources/" name "/"
3081                                   (version-major+minor version) "/"
3082                                   name "-" version ".tar.xz"))
3083               (sha256
3084                (base32
3085                 "14w40a1gjlg4l1vhcy0qcf3scmwm2v3vhxnxj269pfqlv8s7alaw"))))
3086     (build-system glib-or-gtk-build-system)
3087     (native-inputs
3088      `(("desktop-file-utils" ,desktop-file-utils)
3089        ("intltool" ,intltool)
3090        ("itstool" ,itstool)
3091        ("pkg-config" ,pkg-config)
3092        ("xmllint" ,libxml2)))
3093     (inputs
3094      `(("gtk+" ,gtk+)
3095        ("libgames-support" ,libgames-support)
3096        ("librsvg" ,librsvg)))
3097     (home-page "https://wiki.gnome.org/Apps/Klotski")
3098     (synopsis "Sliding block puzzles")
3099     (description
3100      "GNOME Klotski is a set of block sliding puzzles.  The objective is to move
3101 the patterned block to the area bordered by green markers.  To do so, you will
3102 need to slide other blocks out of the way.  Complete each puzzle in as few moves
3103 as possible!")
3104     (license license:gpl2+)))
3106 (define-public grilo
3107   (package
3108     (name "grilo")
3109     (version "0.3.0")
3110     (source
3111      (origin
3112        (method url-fetch)
3113        (uri (string-append "mirror://gnome/sources/" name "/"
3114                            (version-major+minor version) "/"
3115                            name "-" version ".tar.xz"))
3116        (sha256
3117         (base32
3118          "0q5wcvnckpfks48hy0gvlfdmvqm67vnblm3912rssmkgc1ysil8z"))))
3119     (build-system gnu-build-system)
3120     (native-inputs
3121      `(("glib:bin" ,glib "bin")         ; for glib-mkenums and glib-genmarshal
3122        ("intltool" ,intltool)
3123        ("pkg-config" ,pkg-config)
3124        ("gobject-introspection" ,gobject-introspection)))
3125     (inputs
3126      `(("glib" ,glib)
3127        ("gtk+" ,gtk+)
3128        ("libxml2" ,libxml2)
3129        ;; XXX TODO: Add oauth
3130        ("libsoup" ,libsoup)
3131        ("totem-pl-parser" ,totem-pl-parser)))
3132     (arguments
3133      `(#:phases
3134        (modify-phases %standard-phases
3135          (add-after 'unpack 'fix-introspection-install-dir
3136                     (lambda* (#:key outputs #:allow-other-keys)
3137                       (let ((out (assoc-ref outputs "out")))
3138                         (substitute* '("src/Makefile.in"
3139                                        "libs/pls/Makefile.in"
3140                                        "libs/net/Makefile.in")
3141                           (("@INTROSPECTION_GIRDIR@")
3142                            (string-append out "/share/gir-1.0/"))
3143                           (("@INTROSPECTION_TYPELIBDIR@")
3144                            (string-append out "/lib/girepository-1.0/")))))))))
3145     (native-search-paths
3146      (list (search-path-specification
3147             (variable "GRL_PLUGIN_PATH")
3148             (files (list (string-append "lib/grilo-"
3149                                         (version-major+minor version)))))))
3150     (home-page "http://live.gnome.org/Grilo")
3151     (synopsis "Framework for discovering and browsing media")
3152     (description
3153      "Grilo is a framework focused on making media discovery and browsing easy
3154 for application developers.")
3155     (license license:lgpl2.1+)))
3157 (define-public grilo-plugins
3158   (package
3159     (name "grilo-plugins")
3160     (version "0.3.1")
3161     (source
3162      (origin
3163        (method url-fetch)
3164        (uri (string-append "mirror://gnome/sources/" name "/"
3165                            (version-major+minor version) "/"
3166                            name "-" version ".tar.xz"))
3167        (sha256
3168         (base32
3169          "1akd7q6pqnkcnayrdfjb0qx5w5yyl06kxzwhqp2gxm4y1b208pb0"))))
3170     (build-system gnu-build-system)
3171     (native-inputs
3172      `(("glib:bin" ,glib "bin")     ; for glib-mkenums and glib-genmarshal
3173        ("intltool" ,intltool)
3174        ("itstool" ,itstool)
3175        ("pkg-config" ,pkg-config)))
3176     (inputs
3177      `(("grilo" ,grilo)
3178        ("nettle" ,nettle) ; XXX: required by libgrlpls-0.3.la
3179        ("glib" ,glib)
3180        ("libxml2" ,libxml2)
3181        ("sqlite" ,sqlite)
3182        ("gom" ,gom)
3183        ;; XXX TODO: Add oauth
3184        ;; XXX TODO: Add goa
3185        ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
3186        ;; XXX TODO: Add lua (needs help finding it)
3187        ("json-glib" ,json-glib)
3188        ("avahi" ,avahi)
3189        ("gmime" ,gmime)
3190        ("libsoup" ,libsoup)
3191        ("libarchive" ,libarchive)
3192        ("totem-pl-parser" ,totem-pl-parser)))
3193     (arguments
3194      `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
3195                                          %output
3196                                          "/lib/grilo-"
3197                                          ,(version-major+minor version)))
3198        ;; XXX FIXME: Try to get the test suite working.  It appears to require
3199        ;; a working system dbus.  Inside the build container, all tests fail
3200        ;; with: "assertion failed: (source)".  Outside of the build container,
3201        ;; most tests succeed.
3202        #:tests? #f))
3203     (home-page "http://live.gnome.org/Grilo")
3204     (synopsis "Plugins for the Grilo media discovery library")
3205     (description
3206      "Grilo is a framework focused on making media discovery and browsing easy
3207 for application developers.")
3208     (license license:lgpl2.1+)))
3210 (define-public totem
3211   (package
3212     (name "totem")
3213     (version "3.20.1")
3214     (source
3215      (origin
3216        (method url-fetch)
3217        (uri (string-append "mirror://gnome/sources/" name "/"
3218                            (version-major+minor version) "/"
3219                            name "-" version ".tar.xz"))
3220        (sha256
3221         (base32
3222          "09swnhp46cyy2svqx02fzy555pjgc61lyjw56v9rz1mfc41lh8kg"))
3223        (patches (search-patches "totem-debug-format-fix.patch"))))
3224     (build-system glib-or-gtk-build-system)
3225     (native-inputs
3226      `(("pkg-config" ,pkg-config)
3227        ("desktop-file-utils" ,desktop-file-utils)
3228        ("gobject-introspection" ,gobject-introspection)
3229        ("intltool" ,intltool)
3230        ("itstool" ,itstool)
3231        ("xmllint" ,libxml2)))
3232     (propagated-inputs
3233      `(("dconf" ,dconf)))
3234     (inputs
3235      `(("gtk+" ,gtk+)
3236        ("gdk-pixbuf" ,gdk-pixbuf)
3237        ("atk" ,atk)
3238        ("cairo" ,cairo)
3239        ("dbus-glib" ,dbus-glib)
3240        ("clutter" ,clutter)
3241        ("clutter-gtk" ,clutter-gtk)
3242        ("clutter-gst" ,clutter-gst)
3243        ("xproto" ,xproto)
3244        ("libxxf86vm" ,libxxf86vm)
3245        ("libxtst" ,libxtst)
3246        ("libxrandr" ,libxrandr)
3247        ("libxml2" ,libxml2)
3248        ("libsoup" ,libsoup)
3249        ("libpeas" ,libpeas)
3250        ("librsvg" ,librsvg)
3251        ("lirc" ,lirc)
3252        ("gnome-desktop" ,gnome-desktop)
3253        ("gstreamer" ,gstreamer)
3254        ("gst-plugins-base" ,gst-plugins-base)
3255        ("gst-plugins-good" ,gst-plugins-good)
3256        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3257        ("adwaita-icon-theme" ,adwaita-icon-theme)
3258        ;; XXX We use python-2 because libxml2 because itstool (which needs
3259        ;; libxml) currently uses python-2.
3260        ("python" ,python-2)
3261        ("python-pygobject" ,python2-pygobject)
3262        ;; XXX TODO pylint needed for python support
3263        ("totem-pl-parser" ,totem-pl-parser)
3264        ("grilo" ,grilo)
3265        ("grilo-plugins" ,grilo-plugins)
3266        ("nettle" ,nettle)
3267        ("vala" ,vala)))
3268     (arguments
3269      `(#:phases
3270        (modify-phases %standard-phases
3271          (add-after
3272           'install 'wrap-totem
3273           (lambda* (#:key inputs outputs #:allow-other-keys)
3274             (let ((out             (assoc-ref outputs "out"))
3275                   (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
3276                   (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
3277               (wrap-program (string-append out "/bin/totem")
3278                 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
3279                 `("GRL_PLUGIN_PATH"        ":" prefix (,grl-plugin-path))))
3280             #t)))))
3281     (home-page "https://wiki.gnome.org/Apps/Videos")
3282     (synopsis "Simple media player for GNOME based on GStreamer")
3283     (description "Totem is a simple yet featureful media player for GNOME
3284 which can read a large number of file formats.")
3285     ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
3286     ;; to be used and distributed together with GStreamer and Totem.  See
3287     ;; file://COPYING in the source distribution for details.
3288     (license license:gpl2+)))
3290 (define-public rhythmbox
3291  (package
3292    (name "rhythmbox")
3293    (version "3.4")
3294    (source (origin
3295             (method url-fetch)
3296             (uri (string-append "mirror://gnome/sources/" name "/"
3297                                 (version-major+minor version) "/"
3298                                 name "-" version ".tar.xz"))
3299             (sha256
3300              (base32
3301               "1347747m90aiz47wny1f8rdk5195qf2ph0554c6y91711sm951gg"))))
3302    (build-system glib-or-gtk-build-system)
3303    (arguments
3304     `(#:configure-flags
3305       (list "--enable-lirc"
3306             "--enable-python"
3307             "--enable-vala"
3308             "--with-brasero"
3309             "--with-gudev"
3310             "--with-libsecret")
3311       #:phases
3312       (modify-phases %standard-phases
3313         (add-after
3314          'install 'wrap-rhythmbox
3315          (lambda* (#:key inputs outputs #:allow-other-keys)
3316            (let ((out               (assoc-ref outputs "out"))
3317                  (gi-typelib-path   (getenv "GI_TYPELIB_PATH"))
3318                  (gst-plugin-path   (getenv "GST_PLUGIN_SYSTEM_PATH"))
3319                  (grl-plugin-path   (getenv "GRL_PLUGIN_PATH"))
3320                  (python-path       (getenv "PYTHONPATH")))
3321              (wrap-program (string-append out "/bin/rhythmbox")
3322                `("GI_TYPELIB_PATH"        ":" prefix (,gi-typelib-path))
3323                `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
3324                `("GRL_PLUGIN_PATH"        ":" prefix (,grl-plugin-path))
3325                `("PYTHONPATH"             ":" prefix (,python-path))))
3326            #t)))))
3327    (propagated-inputs
3328     `(("dconf" ,dconf)))
3329    (native-inputs
3330     `(("itstool" ,itstool)
3331       ("intltool" ,intltool)
3332       ("glib" ,glib "bin")
3333       ("gobject-introspection" ,gobject-introspection)
3334       ("desktop-file-utils" ,desktop-file-utils)
3335       ("pkg-config" ,pkg-config)
3336       ("xmllint" ,libxml2)))
3337    (inputs
3338     `(("json-glib" ,json-glib)
3339       ("tdb" ,tdb)
3340       ("gnome-desktop" ,gnome-desktop)
3341       ("python" ,python)
3342       ("python-pygobject" ,python2-pygobject)
3343       ("vala" ,vala)
3344       ("gmime" ,gmime)
3345       ("nettle" ,nettle)
3346       ("adwaita-icon-theme" ,adwaita-icon-theme)
3347       ("grilo" ,grilo)
3348       ("grilo-plugins" ,grilo-plugins)
3349       ("gstreamer" ,gstreamer)
3350       ("gst-plugins-base" ,gst-plugins-base)
3351       ("gst-plugins-good" ,gst-plugins-good)
3352       ("totem-pl-parser" ,totem-pl-parser)
3353       ("libgudev" ,libgudev)
3354       ;;("libmtp" ,libmtp) FIXME: Not detected
3355       ("libsecret" ,libsecret)
3356       ("libsoup" ,libsoup)
3357       ("libnotify" ,libnotify)
3358       ("libpeas" ,libpeas)
3359       ("lirc" ,lirc)
3360       ;; TODO: clutter* only used by visualizer plugin, which also requires mx
3361       ;;("clutter" ,clutter)
3362       ;;("clutter-gtk" ,clutter-gtk)
3363       ;;("clutter-gst" ,clutter-gst)
3364       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3365       ("atk" ,atk)
3366       ("pango" ,pango)
3367       ("gtk+" ,gtk+)
3368       ;; TODO:
3369       ;;  * libgpod
3370       ;;  * mx
3371       ("brasero" ,brasero)))
3372    (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
3373    (synopsis "Music player for GNOME")
3374    (description "Rhythmbox is a music playing application for GNOME.  It
3375 supports playlists, song ratings, and any codecs installed through gstreamer.")
3376    (license license:gpl2+)))
3378 (define-public eog
3379  (package
3380    (name "eog")
3381    (version "3.20.4")
3382    (source (origin
3383             (method url-fetch)
3384             (uri (string-append "mirror://gnome/sources/" name "/"
3385                                 (version-major+minor version) "/"
3386                                 name "-" version ".tar.xz"))
3387             (sha256
3388              (base32
3389               "1qsv3brhi8l8fr22nd3d0fwq5xhwspqw0bammhkkq3ga0z6791wn"))))
3390    (build-system glib-or-gtk-build-system)
3391    (arguments
3392     `(#:phases
3393       (modify-phases %standard-phases
3394         (add-after
3395          'install 'wrap-eog
3396          (lambda* (#:key outputs #:allow-other-keys)
3397            (let ((out               (assoc-ref outputs "out"))
3398                  (gi-typelib-path   (getenv "GI_TYPELIB_PATH")))
3399              (wrap-program (string-append out "/bin/eog")
3400                `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
3401            #t)))))
3402    (propagated-inputs
3403     `(("dconf" ,dconf)))
3404    (native-inputs
3405     `(("intltool" ,intltool)
3406       ("itstool" ,itstool)
3407       ("glib" ,glib "bin")
3408       ("gobject-introspection" ,gobject-introspection)
3409       ("pkg-config" ,pkg-config)
3410       ("xmllint" ,libxml2)))
3411    (inputs
3412     `(("gnome-desktop" ,gnome-desktop)
3413       ("shared-mime-info" ,shared-mime-info)
3414       ("adwaita-icon-theme" ,adwaita-icon-theme)
3415       ("exempi" ,exempi)
3416       ("lcms" ,lcms)
3417       ("libexif" ,libexif)
3418       ("libpeas" ,libpeas)
3419       ("libjpeg" ,libjpeg)
3420       ("librsvg" ,librsvg)
3421       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3422       ("gtk+" ,gtk+)))
3423    (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
3424    (synopsis "GNOME image viewer")
3425    (description "Eye of GNOME is the GNOME image viewer.  It
3426 supports image conversion, rotation, and slideshows.")
3427    (license license:gpl2+)))
3429 (define-public libgudev
3430   (package
3431     (name "libgudev")
3432     (version "230")
3433     (source (origin
3434               (method url-fetch)
3435               (uri (string-append "mirror://gnome/sources/" name "/"
3436                                   version "/" name "-" version ".tar.xz"))
3437               (sha256
3438                (base32
3439                 "063w6j35n0i0ssmv58kivc1mw4070z6fzb83hi4xfrhcxnn7zrx2"))))
3440     (build-system gnu-build-system)
3441     (native-inputs
3442      `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
3443        ("gobject-introspection" ,gobject-introspection)
3444        ("pkg-config" ,pkg-config)))
3445     (propagated-inputs
3446      `(("glib" ,glib))) ; required by gudev-1.0.pc
3447     (inputs
3448      `(("udev" ,eudev)))
3449     (home-page "https://wiki.gnome.org/Projects/libgudev")
3450     (synopsis "GObject bindings for libudev")
3451     (description
3452      "This library provides GObject bindings for libudev.  It was originally
3453 part of udev-extras, then udev, then systemd.  It's now a project on its own.")
3454     (license license:lgpl2.1+)))
3456 (define-public gvfs
3457   (package
3458     (name "gvfs")
3459     (version "1.28.3")
3460     (source (origin
3461               (method url-fetch)
3462               (uri (string-append "mirror://gnome/sources/" name "/"
3463                                   (version-major+minor version) "/"
3464                                   name "-" version ".tar.xz"))
3465               (sha256
3466                (base32
3467                 "05xxy0ids310qy24vmkyl3hc6mq05p39aa8mkr5fzxkhhnv4r325"))))
3468     (build-system gnu-build-system)
3469     (arguments
3470      '(#:tests? #f)) ; XXX: requiring `pidof'
3471     (native-inputs
3472      `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
3473        ("intltool" ,intltool)
3474        ("pkg-config" ,pkg-config)
3475        ("xsltproc" ,libxslt)))
3476     (inputs
3477      `(("avahi" ,avahi)
3478        ("docbook-xml" ,docbook-xml-4.2)
3479        ("docbook-xsl" ,docbook-xsl)
3480        ("dbus" ,dbus)
3481        ("fuse" ,fuse)
3482        ("gcr" ,gcr)
3483        ("glib" ,glib)
3484        ("libarchive" ,libarchive)
3485        ("libbluray" ,libbluray)
3486        ("libcdio-paranoia" ,libcdio-paranoia)
3487        ("libgcrypt" ,libgcrypt)
3488        ("libgphoto2" ,libgphoto2)
3489        ("libgudev" ,libgudev)
3490        ("libmtp" ,libmtp)
3491        ("libsecret" ,libsecret)
3492        ("libsmbclient" ,samba)
3493        ("libsoup" ,libsoup)
3494        ("libxml2" ,libxml2)
3495        ("nettle" ,nettle) ; XXX: required by libarchive.pc
3496        ("udisks" ,udisks)))
3497     (home-page "https://wiki.gnome.org/gvfs/")
3498     (synopsis "Userspace virtual file system for GIO")
3499     (description
3500      "GVFS is a userspace virtual file system designed to work with the I/O
3501 abstraction of GIO.  It contains a GIO module that seamlessly adds GVFS support
3502 to all applications using the GIO API.  It also supports exposing the GVFS
3503 mounts to non-GIO applications using FUSE.
3505 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
3506 DAV, and others.")
3507     (license license:lgpl2.0+)))
3509 (define-public gusb
3510   (package
3511     (name "gusb")
3512     (version "0.2.6")
3513     (source (origin
3514               (method url-fetch)
3515               (uri (string-append "https://github.com/hughsie/libgusb/archive/"
3516                                   "gusb_"
3517                                   (string-join (string-split version #\.)
3518                                                "_")
3519                                   ".tar.gz"))
3520               (sha256
3521                (base32
3522                 "0h9dzaza81b0mx5jfh5cnc31xdynl0jsxgwvl6vqyhy8mnwfi5nr"))))
3523     (build-system gnu-build-system)
3524     (native-inputs
3525      `(("glib:bin" ,glib "bin")         ; for glib-genmarshal, etc.
3526        ("gobject-introspection" ,gobject-introspection)
3527        ("pkg-config" ,pkg-config)
3528        ("vala" ,vala)
3529        ("autoconf" ,autoconf)
3530        ("automake" ,automake)
3531        ("libtool" ,libtool)
3532        ("gtk-doc" ,gtk-doc)))
3533     (propagated-inputs
3534      ;; Both of these are required by gusb.pc.
3535      `(("glib" ,glib)
3536        ("libusb" ,libusb)))
3537     (arguments
3538      `(#:tests? #f  ; libusb fails to initialize.  Wonder what that is.
3539        #:phases
3540        (modify-phases %standard-phases
3541          (add-after 'unpack 'autogen
3542                     (lambda _
3543                       (and (zero? (system* "gtkdocize"))
3544                            (zero? (system* "autoreconf" "-vif"))))))))
3545     (home-page "https://github.com/hughsie/libgusb")
3546     (synopsis "GLib binding for libusb1")
3547     (description
3548      "GUsb is a GObject wrapper for libusb1 that makes it easy to do
3549 asynchronous control, bulk and interrupt transfers with proper cancellation
3550 and integration into a mainloop.  This makes it easy to integrate low level
3551 USB transfers with your high-level application or system daemon.")
3552     (license license:lgpl2.1+)))
3554 (define-public simple-scan
3555   (package
3556     (name "simple-scan")
3557     (version "3.22.0.1")
3558     (source (origin
3559               (method url-fetch)
3560               (uri (string-append "https://launchpad.net/simple-scan/"
3561                                   (version-major+minor version) "/"
3562                                   version "/+download/simple-scan-"
3563                                   version ".tar.xz"))
3564               (sha256
3565                (base32
3566                 "0l1b3llkdlqq0bcjx1cadba67l2zb4zfykdaprpjbjbr6gkbc1f5"))))
3567     (build-system glib-or-gtk-build-system)
3568     (inputs
3569      `(("gtk" ,gtk+)
3570        ("zlib" ,zlib)
3571        ("cairo" ,cairo)
3572        ("gdk-pixbuf" ,gdk-pixbuf)
3573        ("gusb" ,gusb)
3574        ("libsane" ,sane-backends)))
3575     (native-inputs
3576      `(("gettext" ,gettext-minimal)
3577        ("itstool" ,itstool)
3578        ("colord" ,colord)
3579        ("glib" ,glib "bin")                       ; glib-compile-schemas, etc.
3580        ("pkg-config" ,pkg-config)
3581        ("vala" ,vala)
3582        ("xmllint" ,libxml2)))
3583     (arguments
3584      '(#:configure-flags '("--disable-packagekit")
3585        #:phases
3586        (modify-phases %standard-phases
3587          (add-after 'unpack 'clean
3588                     (lambda _
3589                       ;; Remove a left-over reference to PackageKit.
3591                       ;; https://bugs.launchpad.net/simple-scan/+bug/1462769
3593                       ;; There are some generated C files erroneously
3594                       ;; included in the source distribution, and this
3595                       ;; one breaks the build by referring to a
3596                       ;; non-existent header (packagekit.h)
3597                       (delete-file "src/ui.c"))))))
3598     (home-page "https://launchpad.net/simple-scan")
3599     (synopsis "Document and image scanner")
3600     (description "Simple Scan is an easy-to-use application, designed to let
3601 users connect their scanner and quickly have the image/document in an
3602 appropriate format.  Simple Scan is basically a frontend for SANE - which is
3603 the same backend as XSANE uses. This means that all existing scanners will
3604 work and the interface is well tested.")
3605     (license license:gpl3+)))
3607 (define-public epiphany
3608   (package
3609     (name "epiphany")
3610     (version "3.22.1")
3611     (source (origin
3612               (method url-fetch)
3613               (uri (string-append "mirror://gnome/sources/" name "/"
3614                                   (version-major+minor version) "/"
3615                                   name "-" version ".tar.xz"))
3616               (sha256
3617                (base32
3618                 "03ncqmb8n06qr88rlwa2rph833gjcwsmxaw2wf1yawadwpnn5cda"))))
3619     (build-system glib-or-gtk-build-system)
3620     (arguments
3621      ;; FIXME: tests run under Xvfb, but fail with:
3622      ;;   /src/bookmarks/ephy-bookmarks/create:
3623      ;;   ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
3624      ;;      subsystem
3625      ;;   FAIL
3626      '(#:tests? #f))
3627     (propagated-inputs
3628      `(("dconf" ,dconf)))
3629     (native-inputs
3630      `(("intltool" ,intltool)
3631        ("itstool" ,itstool)
3632        ("pkg-config" ,pkg-config)
3633        ("xmllint" ,libxml2)))
3634     (inputs
3635      `(("avahi" ,avahi)
3636        ("gcr" ,gcr)
3637        ("glib-networking" ,glib-networking)
3638        ("gnome-desktop" ,gnome-desktop)
3639        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3640        ("iso-codes" ,iso-codes)
3641        ("libnotify" ,libnotify)
3642        ("libsecret" ,libsecret)
3643        ("libxslt" ,libxslt)
3644        ("sqlite" ,sqlite)
3645        ("webkitgtk" ,webkitgtk)))
3646     (home-page "https://wiki.gnome.org/Apps/Web")
3647     (synopsis "GNOME web browser")
3648     (description
3649      "Epiphany is a GNOME web browser targeted at non-technical users.  Its
3650 principles are simplicity and standards compliance.")
3651     (license license:gpl2+)))
3653 (define-public d-feet
3654   (package
3655     (name "d-feet")
3656     (version "0.3.10")
3657     (source (origin
3658               (method url-fetch)
3659               (uri (string-append "mirror://gnome/sources/" name "/"
3660                                   (version-major+minor version) "/"
3661                                   name "-" version ".tar.xz"))
3662               (sha256
3663                (base32
3664                 "0nb31bvwnj7pcpm85g8bvgjc6s5kbqy8g4qp7pzqf8w6rdgxzw48"))))
3665     (build-system glib-or-gtk-build-system)
3666     (arguments
3667      '(#:out-of-source? #f ; tests need to run in the source directory.
3668        #:phases
3669        (modify-phases %standard-phases
3670          (add-before
3671           'check 'pre-check
3672           (lambda _
3673             ;; The test suite requires a running X server.
3674             (system "Xvfb :1 &")
3675             (setenv "DISPLAY" ":1")
3676             ;; Don't fail on missing '/etc/machine-id'.
3677             (setenv "DBUS_FATAL_WARNINGS" "0")
3678             ;; tests.py and window.py don't meet E402:
3679             ;;   E402 module level import not at top of file
3680             (substitute* "src/tests/Makefile"
3681               (("--ignore=E123") "--ignore=E123,E402"))
3682             #t))
3683          (add-after
3684           'install 'wrap-program
3685           (lambda* (#:key outputs #:allow-other-keys)
3686             (let ((prog (string-append (assoc-ref outputs "out")
3687                                        "/bin/d-feet")))
3688               (wrap-program prog
3689                 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
3690                 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
3691               #t))))))
3692     (native-inputs
3693      `(("intltool" ,intltool)
3694        ("itstool" ,itstool)
3695        ("pkg-config" ,pkg-config)
3696        ("python-pep8" ,python-pep8)
3697        ("xmllint" ,libxml2)
3698        ("xorg-server" ,xorg-server)))
3699     (inputs
3700      `(("gobject-introspection" ,gobject-introspection)
3701        ("gtk+" ,gtk+)
3702        ("python" ,python-wrapper)
3703        ("python-pygobject" ,python-pygobject)))
3704     (home-page "https://wiki.gnome.org/Apps/DFeet")
3705     (synopsis "D-Bus debugger")
3706     (description
3707      "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
3708 of running programs and invoke methods on those interfaces.")
3709     (license license:gpl2+)))
3711 (define-public yelp-xsl
3712   (package
3713     (name "yelp-xsl")
3714     (version "3.20.1")
3715     (source (origin
3716               (method url-fetch)
3717               (uri (string-append "mirror://gnome/sources/" name "/"
3718                                   (version-major+minor version) "/"
3719                                   name "-" version ".tar.xz"))
3720               (sha256
3721                (base32
3722                 "183vz4aw8fcmw8k8q7r4zrm1p76gwg2cca1fsdrkaiyabng88qfw"))))
3723     (build-system gnu-build-system)
3724     (native-inputs
3725      `(("intltool" ,intltool)
3726        ("itstool" ,itstool)
3727        ("xmllint" ,libxml2)))
3728     (home-page "https://wiki.gnome.org/Apps/Yelp")
3729     (synopsis "XSL stylesheets for Yelp")
3730     (description
3731      "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
3732 to format Docbook and Mallard documents.")
3733     (license license:gpl2+)))
3735 (define-public yelp
3736   (package
3737     (name "yelp")
3738     (version "3.20.1")
3739     (source (origin
3740               (method url-fetch)
3741               (uri (string-append "mirror://gnome/sources/" name "/"
3742                                   (version-major+minor version) "/"
3743                                   name "-" version ".tar.xz"))
3744               (sha256
3745                (base32
3746                 "1hh8yqbv0scn9nksk9mq94cb4sdczlzxplclv2wqr41jmm8v186x"))))
3747     (build-system glib-or-gtk-build-system)
3748     (native-inputs
3749      `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
3750        ("intltool" ,intltool)
3751        ("itstool" ,itstool)
3752        ("pkg-config" ,pkg-config)))
3753     (propagated-inputs
3754      `(("dconf" ,dconf)))
3755     (inputs
3756      `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3757        ("libxslt" ,libxslt)
3758        ("sqlite" ,sqlite)
3759        ("webkitgtk" ,webkitgtk)
3760        ("yelp-xsl" ,yelp-xsl)))
3761     (home-page "https://wiki.gnome.org/Apps/Yelp")
3762     (synopsis "GNOME help browser")
3763     (description
3764      "Yelp is the help viewer in Gnome.  It natively views Mallard, DocBook,
3765 man, info, and HTML documents.  It can locate documents according to the
3766 freedesktop.org help system specification.")
3767     (license license:gpl2+)))
3769 (define-public yelp-tools
3770   (package
3771     (name "yelp-tools")
3772     (version "3.18.0")
3773     (source (origin
3774               (method url-fetch)
3775               (uri (string-append "mirror://gnome/sources/" name "/"
3776                                   (version-major+minor version) "/"
3777                                   name "-" version ".tar.xz"))
3778               (sha256
3779                (base32
3780                 "0ck9f78c1xka8a823bd7w1k0gdn4k19zvaj7viy2d5r3h1gxdhf6"))))
3781     (build-system gnu-build-system)
3782     (native-inputs
3783      `(("pkg-config" ,pkg-config)))
3784     (propagated-inputs
3785      ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
3786      `(("itstool" ,itstool)
3787        ("xmllint" ,libxml2)
3788        ("xsltproc" ,libxslt)))
3789     (inputs
3790      `(("yelp-xsl" ,yelp-xsl)))
3791     (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
3792     (synopsis "Yelp documentation tools")
3793     (description
3794      "Yelp-tools is a collection of scripts and build utilities to help create,
3795 manage, and publish documentation for Yelp and the web.  Most of the heavy
3796 lifting is done by packages like yelp-xsl and itstool.  This package just
3797 wraps things up in a developer-friendly way.")
3798     (license license:gpl2+)))
3800 (define-public libgee
3801   (package
3802     (name "libgee")
3803     (version "0.18.0")
3804     (source (origin
3805               (method url-fetch)
3806               (uri (string-append "mirror://gnome/sources/" name "/"
3807                                   (version-major+minor version) "/"
3808                                   name "-" version ".tar.xz"))
3809               (sha256
3810                (base32
3811                 "16a34js81w9m2bw4qd8csm4pcgr3zq5z87867j4b8wfh6zwrxnaa"))))
3812     (build-system gnu-build-system)
3813     (arguments
3814      `(#:phases
3815        (modify-phases %standard-phases
3816          (add-after 'unpack 'fix-introspection-install-dir
3817           (lambda* (#:key outputs #:allow-other-keys)
3818             (let ((out (assoc-ref outputs "out")))
3819               (substitute* "gee/Makefile.in"
3820                 (("@INTROSPECTION_GIRDIR@")
3821                  (string-append out "/share/gir-1.0/"))
3822                 (("@INTROSPECTION_TYPELIBDIR@")
3823                  (string-append out "/lib/girepository-1.0/")))))))))
3824     (native-inputs
3825      `(("glib" ,glib "bin")
3826        ("pkg-config" ,pkg-config)))
3827     (inputs
3828      `(("glib" ,glib)
3829        ("gobject-introspection" ,gobject-introspection)))
3830     (home-page "https://wiki.gnome.org/Projects/Libgee")
3831     (synopsis "GObject collection library")
3832     (description
3833      "Libgee is a utility library providing GObject-based interfaces and
3834 classes for commonly used data structures.")
3835     (license license:lgpl2.1+)))
3837 (define-public gexiv2
3838   (package
3839     (name "gexiv2")
3840     (version "0.10.4")
3841     (source (origin
3842               (method url-fetch)
3843               (uri (string-append "mirror://gnome/sources/" name "/"
3844                                   (version-major+minor version) "/"
3845                                   name "-" version ".tar.xz"))
3846               (sha256
3847                (base32
3848                 "190www3b61spfgwx42jw8h5hsz2996jcxky48k63468avjpk33dd"))))
3849     (build-system gnu-build-system)
3850     (native-inputs
3851      `(("glib" ,glib "bin")
3852        ("pkg-config" ,pkg-config)))
3853     (propagated-inputs
3854      ;; Listed in "Requires" section of gexiv2.pc
3855      `(("exiv2" ,exiv2)))
3856     (inputs
3857      `(("glib" ,glib)
3858        ("gobject-introspection" ,gobject-introspection)))
3859     (home-page "https://wiki.gnome.org/Projects/gexiv2")
3860     (synopsis "GObject wrapper around the Exiv2 photo metadata library")
3861     (description
3862      "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library.  It
3863 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
3864 metadata in photo and video files of various formats.")
3865     (license license:gpl2+)))
3867 (define-public shotwell
3868   (package
3869     (name "shotwell")
3870     (version "0.25.0.1")
3871     (source (origin
3872               (method url-fetch)
3873               (uri (string-append "mirror://gnome/sources/" name "/"
3874                                   (version-major+minor version) "/"
3875                                   name "-" version ".tar.xz"))
3876               (sha256
3877                (base32
3878                 "19h0ckrgv0c6sj85m6ankyqkmy453ph9kq6zhf7ys2k5xsrrd776"))))
3879     (build-system glib-or-gtk-build-system)
3880     (propagated-inputs
3881      `(("dconf" ,dconf)))
3882     (native-inputs
3883      `(("pkg-config" ,pkg-config)
3884        ("itstool" ,itstool)
3885        ("gettext" ,gettext-minimal)
3886        ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
3887        ("itstool" ,itstool)
3888        ("vala" ,vala)))
3889     (inputs
3890      `(("glib:bin" ,glib "bin")
3891        ("gstreamer" ,gstreamer)
3892        ("gst-plugins-base" ,gst-plugins-base)
3893        ("libgee" ,libgee)
3894        ("gexiv2" ,gexiv2)
3895        ("libraw" ,libraw)
3896        ("json-glib" ,json-glib)
3897        ("webkitgtk" ,webkitgtk)
3898        ("sqlite" ,sqlite)
3899        ("libsoup" ,libsoup)
3900        ("libxml2" ,libxml2)
3901        ("libgudev" ,libgudev)
3902        ("libgphoto2" ,libgphoto2)
3903        ("gcr" ,gcr)))
3904     (home-page "https://wiki.gnome.org/Apps/Shotwell")
3905     (synopsis "Photo manager for GNOME 3")
3906     (description
3907      "Shotwell is a digital photo manager designed for the GNOME desktop
3908 environment.  It allows you to import photos from disk or camera, organize
3909 them by keywords and events, view them in full-window or fullscreen mode, and
3910 share them with others via social networking and more.")
3911     (license license:lgpl2.1+)))
3913 (define-public file-roller
3914   (package
3915     (name "file-roller")
3916     (version "3.20.3")
3917     (source (origin
3918               (method url-fetch)
3919               (uri (string-append "mirror://gnome/sources/" name "/"
3920                                   (version-major+minor version) "/"
3921                                   name "-" version ".tar.xz"))
3922               (sha256
3923                (base32
3924                 "1sa46vjx78d670m6bikpibgz39a5zb6ri8yjmj632lmxqvj2sp3b"))))
3925     (build-system glib-or-gtk-build-system)
3926     (arguments
3927      '(#:phases
3928        (modify-phases %standard-phases
3929          (add-before 'install 'skip-gtk-update-icon-cache
3930            (lambda _
3931              ;; Don't create 'icon-theme.cache'
3932              (substitute* (find-files "data" "^Makefile$")
3933                (("gtk-update-icon-cache") (which "true")))
3934              #t)))))
3935     (native-inputs
3936      `(("intltool" ,intltool)
3937        ("pkg-config" ,pkg-config)))
3938     ;; TODO: Add libnautilus.
3939     (inputs
3940      `(("gtk+" ,gtk+)
3941        ("gdk-pixbuf" ,gdk-pixbuf)
3942        ("json-glib" ,json-glib)
3943        ("libarchive" ,libarchive)
3944        ("libnotify" ,libnotify)
3945        ("nettle" ,nettle)
3946        ("itstool" ,itstool)
3947        ("libxml2" ,libxml2)))
3948     (synopsis "Graphical archive manager for GNOME")
3949     (description "File Roller is an archive manager for the GNOME desktop
3950 environment that allows users to view, unpack, and create compressed archives
3951 such as gzip tarballs.")
3952     (home-page "http://fileroller.sourceforge.net/")
3953     (license license:gpl2+)))
3955 (define-public gnome-session
3956   (package
3957     (name "gnome-session")
3958     (version "3.20.2")
3959     (source (origin
3960               (method url-fetch)
3961               (uri (string-append "mirror://gnome/sources/" name "/"
3962                                   (version-major+minor version) "/"
3963                                   name "-" version ".tar.xz"))
3964               (sha256
3965                (base32
3966                 "1npnjm6wirz2v0liv7n23ivp2w0y1q230qcdb681hhzmp7h9fpq2"))))
3967     (arguments
3968      '(#:phases
3969        (modify-phases %standard-phases
3970          (add-before 'configure 'pre-configure
3971            (lambda* (#:key outputs #:allow-other-keys)
3972              ;; Use elogind instead of systemd.
3973              (substitute* "configure"
3974                (("libsystemd-login >= 183 libsystemd-daemon libsystemd-journal")
3975                 "libelogind")
3976                (("systemd") "elogind"))
3977              (substitute* "gnome-session/gsm-systemd.c"
3978                (("#include <systemd/sd-login.h>")
3979                 "#include <elogind/sd-login.h>"))
3980              ;; Remove uses of the systemd journal.
3981              (substitute* "gnome-session/main.c"
3982                (("#ifdef HAVE_SYSTEMD") "#if 0"))
3983              (substitute* "gnome-session/gsm-manager.c"
3984                (("#ifdef HAVE_SYSTEMD") "#if 0"))
3985              (substitute* "gnome-session/gsm-autostart-app.c"
3986                (("#ifdef HAVE_SYSTEMD") "#if 0"))
3987              #t))
3988          (add-after 'install 'wrap-gnome-session
3989            (lambda* (#:key inputs outputs #:allow-other-keys)
3990              ;; Make sure 'gnome-session' finds the 'gsettings' program.
3991              (let ((glib (assoc-ref inputs "glib:bin"))
3992                    (out  (assoc-ref outputs "out")))
3993                (wrap-program (string-append out "/bin/gnome-session")
3994                  `("PATH" ":" prefix (,(string-append glib "/bin"))))
3995                #t)))
3996          (add-after 'install 'disable-hardware-acceleration-check
3997            (lambda* (#:key outputs #:allow-other-keys)
3998              ;; Do not abort if hardware acceleration is missing.  This allows
3999              ;; GNOME to run in QEMU and on low-end devices.
4000              (let ((out (assoc-ref outputs "out")))
4001                (substitute* (string-append out
4002                                            "/share/xsessions/gnome.desktop")
4003                  (("gnome-session")
4004                   "gnome-session --disable-acceleration-check"))
4005                #t))))
4007        #:configure-flags
4008        '("--enable-elogind")))
4009     (build-system glib-or-gtk-build-system)
4010     (native-inputs
4011      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4012        ("pkg-config" ,pkg-config)
4013        ("intltool" ,intltool)
4014        ("xsltproc" ,libxslt)))
4015     (inputs
4016      `(("elogind" ,elogind)
4017        ("gnome-desktop" ,gnome-desktop)
4018        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4019        ("gtk+" ,gtk+)
4020        ("json-glib" ,json-glib)
4021        ("libsm" ,libsm)
4022        ("libxcomposite" ,libxcomposite)
4023        ("libxtst" ,libxtst)
4024        ("mesa" ,mesa)
4025        ("upower" ,upower)
4026        ("xtrans" ,xtrans)))
4027     (synopsis "Session manager for GNOME")
4028     (description
4029      "This package contains the GNOME session manager, as well as a
4030 configuration program to choose applications starting on login.")
4031     (home-page "https://wiki.gnome.org/Projects/SessionManagement")
4032     (license license:gpl2+)))
4034 (define-public gjs
4035   (package
4036     (name "gjs")
4037     (version "1.44.0")
4038     (source (origin
4039               (method url-fetch)
4040               (uri (string-append "mirror://gnome/sources/" name "/"
4041                                   (version-major+minor version) "/"
4042                                   name "-" version ".tar.xz"))
4043               (sha256
4044                (base32
4045                 "106fgpr4y99sj68l72pnfa2za11ps4bn6p9z28fr79j7mpv61jc8"))
4046               (modules '((guix build utils)))
4047               (snippet '(substitute* "test/run-with-dbus"
4048                           (("/bin/rm") "rm")))))
4049     (build-system gnu-build-system)
4050     (arguments
4051      '(#:phases
4052        (modify-phases %standard-phases
4053          (add-before
4054           'check 'pre-check
4055           (lambda _
4056             ;; For the missing /etc/machine-id.
4057             (setenv "DBUS_FATAL_WARNINGS" "0")
4059             ;; XXX: fails with:
4060             ;;   Failed to convert UTF-8 string to JS string: ...
4061             ;; TODO: actually fix it.
4062             (substitute* "installed-tests/js/testEverythingBasic.js"
4063               ((".*test_utf8_inout.*") ""))
4064             #t)))))
4065     (native-inputs
4066      `(("glib:bin" ,glib "bin")       ; for glib-compile-resources
4067        ("pkg-config" ,pkg-config)
4068        ("xmllint" ,libxml2)
4069        ;; For testing
4070        ("dbus-launch" ,dbus)
4071        ("uuidgen" ,util-linux)
4072        ("xvfb" ,xorg-server)))
4073     (propagated-inputs
4074      ;; These are all in the Requires.private field of gjs-1.0.pc.
4075      `(("gobject-introspection" ,gobject-introspection)
4076        ("mozjs" ,mozjs-24)))
4077     (inputs
4078      `(("gtk+" ,gtk+)
4079        ("readline" ,readline)))
4080     (synopsis "Javascript bindings for GNOME")
4081     (home-page "http://live.gnome.org/Gjs")
4082     (description
4083      "Gjs is a javascript binding for GNOME.  It's mainly based on spidermonkey
4084 javascript engine and the GObject introspection framework.")
4085     (license license:gpl2+)))
4087 (define-public gedit
4088   (package
4089     (name "gedit")
4090     (version "3.20.2")
4091     (source (origin
4092               (method url-fetch)
4093               (uri (string-append "mirror://gnome/sources/" name "/"
4094                                   (version-major+minor version) "/"
4095                                   name "-" version ".tar.xz"))
4096               (sha256
4097                (base32
4098                 "1y330hanqfld3kssf77wfphah2qpfg17pa109spsbm50f5m2g89j"))))
4099     (build-system glib-or-gtk-build-system)
4100     (arguments
4101      `(#:configure-flags '("--disable-spell") ; XXX: gspell not packaged yet
4102        #:phases
4103        (modify-phases %standard-phases
4104          (add-after
4105           'install 'wrap-gedit
4106           (lambda* (#:key inputs outputs #:allow-other-keys)
4107             (let ((out               (assoc-ref outputs "out"))
4108                   (gtksourceview     (assoc-ref inputs "gtksourceview"))
4109                   (gi-typelib-path   (getenv "GI_TYPELIB_PATH"))
4110                   (python-path       (getenv "PYTHONPATH")))
4111               (wrap-program (string-append out "/bin/gedit")
4112                 ;; For plugins.
4113                 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4114                 `("PYTHONPATH" ":" prefix (,python-path))
4115                 ;; For language-specs.
4116                 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
4117                                                               "/share")))))
4118             #t)))))
4119     (propagated-inputs
4120      `(("dconf" ,dconf)))
4121     (native-inputs
4122      `(("intltool" ,intltool)
4123        ("itstool" ,itstool)
4124        ("gobject-introspection" ,gobject-introspection)
4125        ("pkg-config" ,pkg-config)))
4126     (inputs
4127      `(("glib" ,glib)
4128        ("gtk+" ,gtk+)
4129        ("gtksourceview" ,gtksourceview)
4130        ("libpeas" ,libpeas)
4131        ("libxml2" ,libxml2)
4132        ("iso-codes" ,iso-codes)
4133        ("python-pygobject" ,python-pygobject)
4134        ("python" ,python)
4135        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4136        ("libx11" ,libx11)
4137        ("vala" ,vala)
4138        ("adwaita-icon-theme" ,adwaita-icon-theme)
4139        ("libsoup" ,libsoup)
4140        ("gnome-desktop" ,gnome-desktop)))
4141     (home-page "https://wiki.gnome.org/Apps/Gedit")
4142     (synopsis "GNOME text editor")
4143     (description "While aiming at simplicity and ease of use, gedit is a
4144 powerful general purpose text editor.")
4145     (license license:gpl2+)))
4147 (define-public zenity
4148   (package
4149     (name "zenity")
4150     (version "3.20.0")
4151     (source (origin
4152               (method url-fetch)
4153               (uri (string-append "mirror://gnome/sources/" name "/"
4154                                   (version-major+minor version) "/"
4155                                   name "-" version ".tar.xz"))
4156               (sha256
4157                (base32
4158                 "0j2sy6imwp41l75hy3fwr68n35drvanbwgmr42kc04zqjy9pbs02"))))
4159     (build-system gnu-build-system)
4160     (native-inputs
4161      `(("gettext" ,gettext-minimal)
4162        ("itstool" ,itstool)
4163        ("pkg-config" ,pkg-config)))
4164     (inputs
4165      `(("libnotify" ,libnotify)
4166        ("webkitgtk" ,webkitgtk)))
4167     (synopsis "Display graphical dialog boxes from shell scripts")
4168     (home-page "http://www.gnome.org")
4169     (description
4170      "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
4171 to display dialog boxes from the commandline and shell scripts.")
4172     (license license:lgpl2.0+)))
4174 (define-public mutter
4175   (package
4176     (name "mutter")
4177     (version "3.20.3")
4178     (source (origin
4179               (method url-fetch)
4180               (uri (string-append "mirror://gnome/sources/" name "/"
4181                                   (version-major+minor version) "/"
4182                                   name "-" version ".tar.xz"))
4183               (sha256
4184                (base32
4185                 "05pr78vgq52bkkqpbfnp9mxw14ij2wk91l2yfa69dpjbvxqm4b0l"))))
4186     (build-system gnu-build-system)
4187     (arguments
4188      '(#:configure-flags
4189        ;; XXX: build fails with [-Werror]:
4190        ;;    backends/meta-cursor-renderer.c:112:5: error:
4191        ;;      implicit declaration of function ?roundf?
4192        '("--enable-compile-warnings=minimum")))
4193     (native-inputs
4194      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4195        ("gobject-introspection" ,gobject-introspection)
4196        ("intltool" ,intltool)
4197        ("pkg-config" ,pkg-config)))
4198     (propagated-inputs
4199      ;; libmutter.pc refers to all these.
4200      `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4201        ("gtk+" ,gtk+)
4202        ("clutter" ,clutter)))
4203     (inputs
4204      `(("gnome-desktop" ,gnome-desktop)
4205        ("libcanberra-gtk" ,libcanberra)
4206        ("libice" ,libice)
4207        ("libsm" ,libsm)
4208        ("libxkbcommon" ,libxkbcommon)
4209        ("libxkbfile" ,libxkbfile)
4210        ("mesa-headers" ,mesa-headers)
4211        ("startup-notification" ,startup-notification)
4212        ("upower-glib" ,upower)
4213        ("xkeyboard-config" ,xkeyboard-config)
4214        ("zenity" ,zenity)))
4215     (synopsis "Window and compositing manager")
4216     (home-page "http://www.gnome.org")
4217     (description
4218      "Mutter is a window and compositing manager that displays and manages your
4219 desktop via OpenGL.  Mutter combines a sophisticated display engine using the
4220 Clutter toolkit with solid window-management logic inherited from the Metacity
4221 window manager.")
4222     (license license:gpl2+)))
4224 (define-public gnome-online-accounts
4225   (package
4226     (name "gnome-online-accounts")
4227     (version "3.20.3")
4228     (source (origin
4229               (method url-fetch)
4230               (uri (string-append "mirror://gnome/sources/" name "/"
4231                                   (version-major+minor version) "/"
4232                                   name "-" version ".tar.xz"))
4233               (sha256
4234                (base32
4235                 "0ip0q539bik3wqwl867rjc63w2d5rjyvbqzwczkard70yd6c0kq9"))))
4236     (build-system glib-or-gtk-build-system)
4237     (native-inputs
4238      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4239        ("gobject-introspection" ,gobject-introspection)
4240        ("intltool" ,intltool)
4241        ("pkg-config" ,pkg-config)
4242        ("xsltproc" ,libxslt)))
4243     (propagated-inputs
4244      `(("glib" ,glib)           ; required by goa-1.0.pc
4245        ("gtk+" ,gtk+)))         ; required by goa-backend-1.0.pc
4246     (inputs
4247      `(("docbook-xsl" ,docbook-xsl)
4248        ("json-glib" ,json-glib)
4249        ("libsecret" ,libsecret)
4250        ("rest" ,rest)
4251        ("telepathy-glib" ,telepathy-glib)
4252        ("webkitgtk" ,webkitgtk)))
4253     (synopsis "Single sign-on framework for GNOME")
4254     (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
4255     (description
4256      "GNOME Online Accounts provides interfaces so that applications and
4257 libraries in GNOME can access the user's online accounts.  It has providers for
4258 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
4259 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
4260     (license license:lgpl2.0+)))
4262 (define-public evolution-data-server
4263   (package
4264     (name "evolution-data-server")
4265     (version "3.20.5")
4266     (source (origin
4267               (method url-fetch)
4268               (uri (string-append "mirror://gnome/sources/" name "/"
4269                                   (version-major+minor version) "/"
4270                                   name "-" version ".tar.xz"))
4271               (sha256
4272                (base32
4273                 "0zmybf63y0d5zn48q3xjgkh2p2c3ka9xvzd6labp96bd6b6qc58d"))))
4274     (build-system gnu-build-system)
4275     (arguments
4276      '(;; XXX: fails with:
4277        ;;   /Fixture/Calendar0: cleaning up pid xxxx
4278        ;;   t status: 139)
4279        #:tests? #f
4280        #:configure-flags
4281        (let ((nss  (assoc-ref %build-inputs "nss"))
4282              (nspr (assoc-ref %build-inputs "nspr")))
4283          (list "--disable-uoa"    ; disable Ubuntu Online Accounts support
4284                "--disable-google" ; disable Google Contacts support
4285                "--disable-google-auth" ; disable Google authentication
4286                "--enable-vala-bindings"
4287                (string-append "--with-nspr-includes=" nspr "/include/nspr")
4288                (string-append "--with-nss-includes=" nss "/include/nss")
4289                (string-append "--with-nss-libs=" nss "/lib/nss")))
4290        #:phases
4291        (modify-phases %standard-phases
4292          (add-before 'check 'pre-check
4293           (lambda _
4294             (substitute* "tests/test-server-utils/e-test-server-utils.c"
4295               (("/bin/rm") (which "rm")))
4296             #t)))))
4297     (native-inputs
4298      `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4299        ("gobject-introspection" ,gobject-introspection)
4300        ("gperf" ,gperf)
4301        ("intltool" ,intltool)
4302        ("pkg-config" ,pkg-config)
4303        ("vala" ,vala)
4304        ("python" ,python)))
4305     (propagated-inputs
4306      ;; These are all in the Requires field of .pc files.
4307      `(("gtk+" ,gtk+)
4308        ("libical" ,libical)
4309        ("libsecret" ,libsecret)
4310        ("libsoup" ,libsoup)
4311        ("nss" ,nss)
4312        ("sqlite" ,sqlite)))
4313     (inputs
4314      `(("bdb" ,bdb)
4315        ("gcr" ,gcr)
4316        ("gnome-online-accounts" ,gnome-online-accounts)
4317        ("libgweather" ,libgweather)))
4318     (synopsis "Store address books and calendars")
4319     (home-page "https://wiki.gnome.org/Apps/Evolution")
4320     (description
4321      "This package provides a unified backend for programs that work with
4322 contacts, tasks, and calendar information.  It was originally developed for
4323 Evolution (hence the name), but is now used by other packages as well.")
4324     (license license:lgpl2.0)))
4326 (define-public caribou
4327   (package
4328     (name "caribou")
4329     (version "0.4.21")
4330     (source (origin
4331               (method url-fetch)
4332               (uri (string-append "mirror://gnome/sources/" name "/"
4333                                   (version-major+minor version) "/"
4334                                   name "-" version ".tar.xz"))
4335               (sha256
4336                (base32
4337                 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
4338     (build-system glib-or-gtk-build-system)
4339     (arguments
4340      '(#:phases
4341        (modify-phases %standard-phases
4342          (add-before
4343           'build 'pre-build
4344           (lambda* (#:key outputs #:allow-other-keys)
4345             (let ((out (assoc-ref outputs "out")))
4346               ;; Use absolute shared library path in Caribou-1.0.typelib.
4347               (substitute* "libcaribou/Makefile"
4348                 (("--shared-library=libcaribou.so")
4349                  (string-append "--shared-library="
4350                                 out "/lib/libcaribou.so")))
4351               #t)))
4352          (add-after 'install 'wrap-programs
4353           (lambda* (#:key outputs #:allow-other-keys)
4354             (let* ((out (assoc-ref outputs "out"))
4355                    (python-path (getenv "PYTHONPATH"))
4356                    (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4357               (for-each
4358                (lambda (prog)
4359                  (wrap-program prog
4360                    `("PYTHONPATH"      ":" prefix (,python-path))
4361                    `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4362                (list (string-append out "/bin/caribou-preferences")
4363                      (string-append out "/libexec/antler-keyboard"))))
4364             #t)))))
4365     (native-inputs
4366      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4367        ("gobject-introspection" ,gobject-introspection)
4368        ("intltool" ,intltool)
4369        ("pkg-config" ,pkg-config)
4370        ("python" ,python-2) ; incompatible with Python 3 (print syntax)
4371        ("vala" ,vala)
4372        ("xsltproc" ,libxslt)))
4373     (propagated-inputs
4374      ;; caribou-1.0.pc refers to all these.
4375      `(("libgee" ,libgee)
4376        ("libxklavier" ,libxklavier)
4377        ("libxtst" ,libxtst)
4378        ("gtk+" ,gtk+)))
4379     (inputs
4380      `(("clutter" ,clutter)
4381        ("dconf" ,dconf)
4382        ("gtk+-2" ,gtk+-2)
4383        ("python-pygobject" ,python2-pygobject)))
4384     (synopsis "Text entry and UI navigation application")
4385     (home-page "https://wiki.gnome.org/Projects/Caribou")
4386     (description
4387      "Caribou is an input assistive technology intended for switch and pointer
4388 users.")
4389     (license license:lgpl2.1)))
4391 (define-public network-manager
4392   (package
4393     (name "network-manager")
4394     (version "1.4.2")
4395     (source (origin
4396               (method url-fetch)
4397               (uri (string-append "mirror://gnome/sources/NetworkManager/"
4398                                   (version-major+minor version) "/"
4399                                   "NetworkManager-" version ".tar.xz"))
4400               (sha256
4401                (base32
4402                 "016jc21mwjxvnfiblp5lji55sr8aq6w8a08fsjmqvnpnvm3y6r58"))))
4403     (build-system gnu-build-system)
4404     (outputs '("out"
4405                "doc")) ; 8 MiB of gtk-doc HTML
4406     (arguments
4407      '(#:configure-flags
4408        (let ((out      (assoc-ref %outputs "out"))
4409              (doc      (assoc-ref %outputs "doc"))
4410              (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
4411                                       "/sbin/dhclient")))
4412          (list "--with-crypto=gnutls"
4413                "--disable-config-plugin-ibft"
4414                "--sysconfdir=/etc"
4415                "--localstatedir=/var"
4416                (string-append "--with-udev-dir="
4417                               out "/lib/udev")
4418                (string-append "--with-dbus-sys-dir="
4419                               out "/etc/dbus-1/system.d")
4420                (string-append "--with-html-dir="
4421                               doc "/share/gtk-doc/html")
4422                (string-append "--with-dhclient=" dhclient)))
4423        #:phases
4424        (modify-phases %standard-phases
4425          (add-before 'configure 'pre-configure
4426            (lambda _
4427              ;; These tests try to test aspects of network-manager's
4428              ;; functionality within restricted containers, but they don't
4429              ;; cope with being already in the Guix build jail as that jail
4430              ;; lacks some features that they would like to proxy over (like
4431              ;; a /sys mount).
4432              (substitute* '("src/platform/Makefile.in"
4433                             "src/devices/Makefile.in")
4434                (("SUBDIRS = tests") ""))
4435              (substitute* '("src/tests/Makefile.in")
4436                (("\ttest-route-manager-linux") "\t")
4437                (("\ttest-route-manager-fake") "\t"))
4438              #t))
4439          (add-before 'check 'pre-check
4440            (lambda _
4441              ;; For the missing /etc/machine-id.
4442              (setenv "DBUS_FATAL_WARNINGS" "0")
4443              #t))
4444          (replace 'install
4445            (lambda _
4446              (zero? (system* "make"
4447                              "sysconfdir=/tmp"
4448                              "rundir=/tmp"
4449                              "statedir=/tmp"
4450                              "install")))))))
4451     (propagated-inputs
4452      `(("glib" ,glib)))
4453     (native-inputs
4454      `(("glib:bin" ,glib "bin") ; for gdbus-codegen
4455        ("gobject-introspection" ,gobject-introspection)
4456        ("intltool" ,intltool)
4457        ("pkg-config" ,pkg-config)
4458        ;; For testing.
4459        ("python" ,python-wrapper)
4460        ("python-dbus" ,python-dbus)
4461        ("python-pygobject" ,python-pygobject)))
4462     (inputs
4463      `(("dbus-glib" ,dbus-glib)
4464        ("dnsmasq" ,dnsmasq)
4465        ("gnutls" ,gnutls)
4466        ("iptables" ,iptables)
4467        ("isc-dhcp" ,isc-dhcp)
4468        ("libgcrypt" ,libgcrypt)
4469        ("libgudev" ,libgudev)
4470        ("libndp" ,libndp)
4471        ("libnl" ,libnl)
4472        ("libsoup" ,libsoup)
4473        ("modem-manager" ,modem-manager)
4474        ("polkit" ,polkit)
4475        ("ppp" ,ppp)
4476        ("readline" ,readline)
4477        ("util-linux" ,util-linux)))
4478     (synopsis "Network connection manager")
4479     (home-page "http://www.gnome.org/projects/NetworkManager/")
4480     (description
4481      "NetworkManager is a system network service that manages your network
4482 devices and connections, attempting to keep active network connectivity when
4483 available.  It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
4484 devices, and provides VPN integration with a variety of different VPN
4485 services.")
4486     (license license:gpl2+)
4487     (properties '((upstream-name . "NetworkManager")))))
4489 (define-public mobile-broadband-provider-info
4490   (package
4491     (name "mobile-broadband-provider-info")
4492     (version "20151214")
4493     (source (origin
4494               (method url-fetch)
4495               (uri (string-append
4496                     "mirror://gnome/sources/"
4497                     "mobile-broadband-provider-info/" version "/"
4498                     "mobile-broadband-provider-info-" version ".tar.xz"))
4499               (sha256
4500                (base32
4501                 "1905nab1h8p4hx0m1w0rn4mkg9209x680dcr4l77bngy21pmvr4a"))))
4502     (build-system gnu-build-system)
4503     (arguments
4504      `(#:tests? #f)) ; No tests
4505     (home-page "https://wiki.gnome.org/Projects/NetworkManager")
4506     (synopsis "Database of broadband connection configuration")
4507     (description "Database of broadband connection configuration.")
4508     (license license:public-domain)))
4510 (define-public network-manager-applet
4511   (package
4512     (name "network-manager-applet")
4513     (version "1.4.2")
4514     (source (origin
4515               (method url-fetch)
4516               (uri (string-append "mirror://gnome/sources/" name "/"
4517                                   (version-major+minor version) "/"
4518                                   name "-" version ".tar.xz"))
4519               (sha256
4520                (base32
4521                 "16a43sl9aijmvxbb08hbjqyjnlshj8dckycbgi9nm333fr47n6s3"))))
4522     (build-system glib-or-gtk-build-system)
4523     ;; TODO: WWAN support supposedly requires an update of glibmm which in turn
4524     ;; requires an update of the its dependencies (glib and others).
4525     (arguments '(#:configure-flags '("--disable-migration"
4526                                      "--without-wwan")))
4527     (native-inputs
4528      `(("intltool" ,intltool)
4529        ("gobject-introspection" ,gobject-introspection)
4530        ("pkg-config" ,pkg-config)))
4531     (propagated-inputs
4532      ;; libnm-gtk.pc refers to all these.
4533      `(("dbus-glib" ,dbus-glib)
4534        ("gtk+" ,gtk+)
4535        ("network-manager" ,network-manager)))
4536     (inputs
4537      `(("iso-codes" ,iso-codes)
4538        ("libgudev" ,libgudev)
4539        ("libnotify" ,libnotify)
4540        ("libsecret" ,libsecret)
4541        ("jansson" ,jansson)))                     ;for team support
4542     (synopsis "Applet for managing network connections")
4543     (home-page "http://www.gnome.org/projects/NetworkManager/")
4544     (description
4545      "This package contains a systray applet for NetworkManager.  It displays
4546 the available networks and allows users to easily switch between them.")
4547     (license license:gpl2+)))
4549 (define-public libxml++
4550   (package
4551     (name "libxml++")
4552     (version "3.0.0")
4553     (source (origin
4554               (method url-fetch)
4555               (uri (string-append "mirror://gnome/sources/" name "/"
4556                                   (version-major+minor version) "/"
4557                                   name "-" version ".tar.xz"))
4558               (sha256
4559                (base32
4560                 "0lkrajbdys5f6w6qwfijih3hnbk4c6809qx2mmxkb7bj2w269wrg"))))
4561     (build-system gnu-build-system)
4562     ;; libxml++-3.0.pc refers to all these.
4563     (propagated-inputs
4564      `(("libxml2" ,libxml2)
4565        ("glibmm" ,glibmm)))
4566     (native-inputs
4567      `(("perl" ,perl)
4568        ("pkg-config" ,pkg-config)))
4569     (home-page "http://libxmlplusplus.sourceforge.net/")
4570     (synopsis "C++ wrapper for XML parser library libxml2")
4571     (description
4572      "This package provides a C++ wrapper for the XML parser library
4573 libxml2.")
4574     (license license:lgpl2.1+)))
4576 (define-public libxml++-2
4577   (package
4578     (inherit libxml++)
4579     (name "libxml++")
4580     (version "2.40.1")
4581     (source (origin
4582               (method url-fetch)
4583               (uri (string-append "mirror://gnome/sources/" name "/"
4584                                   (version-major+minor version) "/"
4585                                   name "-" version ".tar.xz"))
4586               (sha256
4587                (base32
4588                 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
4590 (define-public gdm
4591   (package
4592     (name "gdm")
4593     (version "3.20.1")
4594     (source (origin
4595               (method url-fetch)
4596               (uri (string-append "mirror://gnome/sources/" name "/"
4597                                   (version-major+minor version) "/"
4598                                   name "-" version ".tar.xz"))
4599               (sha256
4600                (base32
4601                 "17vqcnqnwx7s5xzgn358gsgbmpz7k90sh1qrwrh3wnj5r0pm38hh"))))
4602     (build-system gnu-build-system)
4603     (arguments
4604      '(#:configure-flags
4605        '("--without-plymouth")
4606        #:phases
4607        (modify-phases %standard-phases
4608          (add-before
4609           'configure 'pre-configure
4610           (lambda _
4611             ;; We don't have <systemd/sd-daemon.h>.
4612             (substitute* '("common/gdm-log.c"
4613                            "daemon/gdm-server.c"
4614                            "daemon/gdm-session-worker.c"
4615                            "daemon/gdm-session-worker-job.c")
4616               (("#include <systemd/sd-daemon\\.h>") ""))
4617             ;; Use elogind for sd-login.
4618             (substitute* '("common/gdm-common.c"
4619                            "daemon/gdm-manager.c"
4620                            "libgdm/gdm-user-switching.c")
4621               (("#include <systemd/sd-login\\.h>")
4622                "#include <elogind/sd-login.h>"))
4623             ;; Avoid checking SYSTEMD using pkg-config.
4624             (setenv "SYSTEMD_CFLAGS" " ")
4625             (setenv "SYSTEMD_LIBS" "-lelogind")
4626             #t)))))
4627     (native-inputs
4628      `(("dconf" ,dconf)
4629        ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4630        ("gobject-introspection" ,gobject-introspection)
4631        ("intltool" ,intltool)
4632        ("itstool" ,itstool)
4633        ("pkg-config" ,pkg-config)
4634        ("xmllint" ,libxml2)))
4635     (inputs
4636      `(("accountsservice" ,accountsservice)
4637        ("check" ,check) ; for testing
4638        ("elogind" ,elogind)
4639        ("gtk+" ,gtk+)
4640        ("iso-codes" ,iso-codes)
4641        ("libcanberra" ,libcanberra)
4642        ("linux-pam" ,linux-pam)))
4643     (synopsis "Display manager for GNOME")
4644     (home-page "http://wiki.gnome.org/Projects/GDM/")
4645     (description
4646      "GNOME Display Manager is a system service that is responsible for
4647 providing graphical log-ins and managing local and remote displays.")
4648     (license license:gpl2+)))
4650 (define-public libgtop
4651   (package
4652     (name "libgtop")
4653     (version "2.34.1")
4654     (source (origin
4655               (method url-fetch)
4656               (uri (string-append "mirror://gnome/sources/" name "/"
4657                                   (version-major+minor version) "/"
4658                                   name "-" version ".tar.xz"))
4659               (sha256
4660                (base32
4661                 "1qh9srg8pqmrsl12mwnclncs7agmjjvx3q6v5qwqvcb2cskpi6f8"))))
4662     (build-system gnu-build-system)
4663     (native-inputs
4664      `(("gobject-introspection" ,gobject-introspection)
4665        ("intltool" ,intltool)
4666        ("perl" ,perl)
4667        ("pkg-config" ,pkg-config)))
4668     (propagated-inputs
4669      `(("glib" ,glib))) ; required by libgtop-2.0.pc
4670     (synopsis "Portable system access library")
4671     (home-page "https://www.gnome.org/")
4672     (description
4673      "LibGTop is a library to get system specific data such as CPU and memory
4674 usage and information about running processes.")
4675     (license license:gpl2+)))
4677 (define-public gnome-bluetooth
4678   (package
4679     (name "gnome-bluetooth")
4680     (version "3.20.0")
4681     (source (origin
4682               (method url-fetch)
4683               (uri (string-append "mirror://gnome/sources/" name "/"
4684                                   (version-major+minor version) "/"
4685                                   name "-" version ".tar.xz"))
4686               (sha256
4687                (base32
4688                 "0lzbwk2kn7kp39sv5bf4ja92mfkxkc27gxxk8k86i8a8ncbcmcwk"))))
4689     (build-system glib-or-gtk-build-system)
4690     (native-inputs
4691      `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4692        ("gobject-introspection" ,gobject-introspection)
4693        ("intltool" ,intltool)
4694        ("pkg-config" ,pkg-config)
4695        ("xmllint" ,libxml2)))
4696     (propagated-inputs
4697      ;; gnome-bluetooth-1.0.pc refers to all these.
4698      `(("gtk+" ,gtk+)
4699        ("udev" ,eudev)))
4700     (inputs
4701      `(("libcanberra" ,libcanberra)
4702        ("libnotify" ,libnotify)))
4703     (synopsis "GNOME Bluetooth subsystem")
4704     (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
4705     (description
4706      "This package contains tools for managing and manipulating Bluetooth
4707 devices using the GNOME desktop.")
4708     (license license:lgpl2.1+)))
4710 (define-public gnome-control-center
4711   (package
4712     (name "gnome-control-center")
4713     (version "3.20.1")
4714     (source (origin
4715               (method url-fetch)
4716               (uri (string-append "mirror://gnome/sources/" name "/"
4717                                   (version-major+minor version) "/"
4718                                   name "-" version ".tar.xz"))
4719               (sha256
4720                (base32
4721                 "1vd1h31vwyq7ss5f1151gx1vdsy35sjmapjmmz7x73ppc3y78r6f"))))
4722     (build-system glib-or-gtk-build-system)
4723     (arguments
4724      '(#:phases
4725        (modify-phases %standard-phases
4726          (add-before 'configure 'patch-paths
4727            (lambda* (#:key inputs #:allow-other-keys)
4728              (let ((libc   (assoc-ref inputs "libc"))
4729                    (tzdata (assoc-ref inputs "tzdata")))
4730                (substitute* "panels/datetime/tz.h"
4731                  (("/usr/share/zoneinfo/zone.tab")
4732                   (string-append tzdata "/share/zoneinfo/zone.tab")))
4733                (substitute* "panels/datetime/test-endianess.c"
4734                  (("/usr/share/locale")
4735                   (string-append libc "/share/locale")))
4736                #t))))))
4737     (native-inputs
4738      `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4739        ("intltool" ,intltool)
4740        ("pkg-config" ,pkg-config)
4741        ("xsltproc" ,libxslt)))
4742     (inputs
4743      `(("accountsservice" ,accountsservice)
4744        ("clutter-gtk" ,clutter-gtk)
4745        ("colord-gtk" ,colord-gtk)
4746        ("cups" ,cups)
4747        ("dconf" ,dconf)
4748        ("docbook-xsl" ,docbook-xsl)
4749        ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
4750        ("gnome-bluetooth" ,gnome-bluetooth)
4751        ("gnome-desktop" ,gnome-desktop)
4752        ("gnome-online-accounts" ,gnome-online-accounts)
4753        ("gnome-settings-daemon" ,gnome-settings-daemon)
4754        ("grilo" ,grilo)
4755        ("ibus" ,ibus)
4756        ("libcanberra" ,libcanberra)
4757        ("libgudev" ,libgudev)
4758        ("libgtop" ,libgtop)
4759        ("libpwquality" ,libpwquality)
4760        ("libsoup" ,libsoup)
4761        ("libxml2" ,libxml2)
4762        ("libwacom" ,libwacom)
4763        ("mesa" ,mesa)
4764        ("mit-krb5" ,mit-krb5)
4765        ("modem-manager" ,modem-manager)
4766        ("network-manager-applet" ,network-manager-applet)
4767        ("polkit" ,polkit)
4768        ("pulseaudio" ,pulseaudio)
4769        ("smbclient" ,samba)
4770        ("tzdata" ,tzdata)
4771        ("upower" ,upower)))
4772     (synopsis "Utilities to configure the GNOME desktop")
4773     (home-page "https://www.gnome.org/")
4774     (description
4775      "This package contains configuration applets for the GNOME desktop,
4776 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
4777 properties, sound setup, desktop theme and background, user interface
4778 properties, screen resolution, and other GNOME parameters.")
4779     (license license:gpl2+)))
4781 (define-public gnome-shell
4782   (package
4783     (name "gnome-shell")
4784     (version "3.20.4")
4785     (source (origin
4786               (method url-fetch)
4787               (uri (string-append "mirror://gnome/sources/" name "/"
4788                                   (version-major+minor version) "/"
4789                                   name "-" version ".tar.xz"))
4790               (sha256
4791                (base32
4792                 "0kd9y847pw9v3zl0g52ly7xdcjz0b9v37aqmi19iddfkxjjyn4qc"))))
4793     (build-system glib-or-gtk-build-system)
4794     (arguments
4795      '(#:phases
4796        (modify-phases %standard-phases
4797          (replace 'install
4798            (lambda* (#:key outputs #:allow-other-keys)
4799              (let* ((out     (assoc-ref outputs "out"))
4800                     (keysdir (string-append
4801                               out "/share/gnome-control-center/keybindings")))
4802                (zero? (system* "make"
4803                                (string-append "keysdir=" keysdir)
4804                                "install")))))
4805          (add-after
4806           'install 'wrap-programs
4807           (lambda* (#:key outputs #:allow-other-keys)
4808             (let ((out              (assoc-ref outputs "out"))
4809                   (gi-typelib-path  (getenv "GI_TYPELIB_PATH"))
4810                   (python-path      (getenv "PYTHONPATH")))
4811               (wrap-program (string-append out "/bin/gnome-shell")
4812                 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
4813               (for-each
4814                (lambda (prog)
4815                  (wrap-program (string-append out "/bin/" prog)
4816                    `("PYTHONPATH"      ":" prefix (,python-path))
4817                    `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4818                '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
4819               #t))))))
4820     (native-inputs
4821      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4822        ("gobject-introspection" ,gobject-introspection)
4823        ("intltool" ,intltool)
4824        ("pkg-config" ,pkg-config)
4825        ("python" ,python)
4826        ("xsltproc" ,libxslt)))
4827     (inputs
4828      `(("accountsservice" ,accountsservice)
4829        ("caribou" ,caribou)
4830        ("docbook-xsl" ,docbook-xsl)
4831        ("evolution-data-server" ,evolution-data-server)
4832        ("gcr" ,gcr)
4833        ("gdm" ,gdm)
4834        ("gjs" ,gjs)
4835        ("gnome-bluetooth" ,gnome-bluetooth)
4836        ("gnome-control-center" ,gnome-control-center)
4837        ("gnome-desktop" ,gnome-desktop)
4838        ("gnome-settings-daemon" ,gnome-settings-daemon)
4839        ("gst-plugins-base" ,gst-plugins-base)
4840        ("ibus" ,ibus)
4841        ("libcanberra" ,libcanberra)
4842        ("libcroco" ,libcroco)
4843        ("libgweather" ,libgweather)
4844        ("libsoup" ,libsoup)
4845        ("mesa-headers" ,mesa-headers)
4846        ("mutter" ,mutter)
4847        ("network-manager-applet" ,network-manager-applet)
4848        ("polkit" ,polkit)
4849        ("pulseaudio" ,pulseaudio)
4850        ("python-pygobject" ,python-pygobject)
4851        ("startup-notification" ,startup-notification)
4852        ("telepathy-logger" ,telepathy-logger)
4853        ("upower" ,upower)
4854        ;; XXX: required by libgjs.la.
4855        ("readline" ,readline)))
4856     (synopsis "Desktop shell for GNOME")
4857     (home-page "https://wiki.gnome.org/Projects/GnomeShell")
4858     (description
4859      "GNOME Shell provides core user interface functions for the GNOME desktop,
4860 like switching to windows and launching applications.")
4861     (license license:gpl2+)))
4863 (define-public gtk-vnc
4864   (package
4865     (name "gtk-vnc")
4866     (version "0.6.0")
4867     (source
4868      (origin
4869        (method url-fetch)
4870        (uri (string-append "mirror://gnome/sources/" name "/"
4871                            (version-major+minor version) "/"
4872                            name "-" version ".tar.xz"))
4873        (sha256
4874         (base32
4875          "0cq42dghjp4bhsxlj9hd2nz5s5rhd53fx7snmq6i6kg60n438ncm"))))
4876     (build-system gnu-build-system)
4877     (arguments
4878      '(#:configure-flags '("--with-gtk=3.0")))
4879     (propagated-inputs
4880      `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
4881     (inputs
4882      `(("cyrus-sasl" ,cyrus-sasl)
4883        ("gnutls" ,gnutls)
4884        ("libgcrypt" ,libgcrypt)
4885        ("pulseaudio" ,pulseaudio)))
4886     (native-inputs
4887      `(("glib:bin" ,glib "bin")
4888        ("gobject-introspection" ,gobject-introspection)
4889        ("intltool" ,intltool)
4890        ("pkg-config" ,pkg-config)
4891        ("vala" ,vala)))
4892     (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
4893     (synopsis "VNC viewer widget for GTK+")
4894     (description
4895      "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
4896 applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
4897 GTK-VNC implements client side RFB protocol and authentication extensions such
4898 as SASL, TLS and VeNCrypt.  Additionally it supports encoding extensions.")
4899     (license license:lgpl2.1+)))
4901 (define-public nautilus
4902   (package
4903     (name "nautilus")
4904     (version "3.20.2")
4905     (source (origin
4906               (method url-fetch)
4907               (uri (string-append "mirror://gnome/sources/" name "/"
4908                                   (version-major+minor version) "/"
4909                                   name "-" version ".tar.xz"))
4910               (sha256
4911                (base32
4912                 "1bnalv0ljdjzqzvh3rfyg7r4z8vdbq1gdard5q68riqdi2dnfvld"))))
4913     (build-system glib-or-gtk-build-system)
4914     (arguments
4915      '(#:configure-flags
4916        '("--disable-tracker" "--disable-selinux") ; XXX: not packaged
4917        ;; XXX: FAIL: check-nautilus
4918        ;;   Settings schema 'org.gnome.nautilus.preferences' is not installed
4919        #:tests? #f))
4920     (native-inputs
4921      `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4922        ("gobject-introspection" ,gobject-introspection)
4923        ("intltool" ,intltool)
4924        ("pkg-config" ,pkg-config)))
4925     (inputs
4926      `(("dconf" ,dconf)
4927        ("gvfs" ,gvfs)
4928        ("exempi" ,exempi)
4929        ("gnome-desktop" ,gnome-desktop)
4930        ;; XXX: gtk+ is required by libnautilus-extension.pc
4931        ;;
4932        ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
4933        ;; package.  See:
4934        ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
4935        ("gtk+" ,gtk+)
4936        ("libexif" ,libexif)
4937        ("libxml2" ,libxml2)))
4938     (synopsis "File manager for GNOME")
4939     (home-page "https://wiki.gnome.org/Apps/Nautilus")
4940     (description
4941      "Nautilus (Files) is a file manager designed to fit the GNOME desktop
4942 design and behaviour, giving the user a simple way to navigate and manage its
4943 files.")
4944     (license license:gpl2+)))
4946 (define-public baobab
4947   (package
4948     (name "baobab")
4949     (version "3.20.1")
4950     (source (origin
4951               (method url-fetch)
4952               (uri (string-append
4953                     "mirror://gnome/sources/" name "/"
4954                     (version-major+minor version) "/"
4955                     name "-" version ".tar.xz"))
4956               (sha256
4957                (base32
4958                 "07wx4jb3nmipd4caybv21hl8h0gb282qc5a24b731mxhfqmg3pz9"))))
4959     (build-system glib-or-gtk-build-system)
4960     (native-inputs
4961      `(("intltool" ,intltool)
4962        ("pkg-config" ,pkg-config)
4963        ("itstool" ,itstool)
4964        ("xmllint" ,libxml2)
4965        ("glib" ,glib "bin")
4966        ("vala" ,vala)))
4967     (inputs
4968      `(("gtk+" ,gtk+)))
4969     (synopsis "Disk usage analyzer for GNOME")
4970     (description
4971      "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
4972 usage in the GNOME desktop environment.  It can easily scan device volumes or
4973 a specific user-requested directory branch (local or remote).  Once the scan
4974 is complete it provides a graphical representation of each selected folder.")
4975     (home-page "https://wiki.gnome.org/Apps/Baobab")
4976     (license license:gpl2+)))
4978 (define-public gnome-backgrounds
4979   (package
4980     (name "gnome-backgrounds")
4981     (version "3.20")
4982     (source
4983      (origin
4984        (method url-fetch)
4985        (uri (string-append "mirror://gnome/sources/" name "/"
4986                            (version-major+minor version) "/"
4987                            name "-" version ".tar.xz"))
4988        (sha256
4989         (base32
4990          "09viag7q53lfwrp074a1w7j0r8izlwpi10xbwjgbf5jwbqb6wv6n"))))
4991     (build-system glib-or-gtk-build-system)
4992     (native-inputs
4993      `(("intltool" ,intltool)))
4994     (home-page "https://git.gnome.org/browse/gnome-backgrounds")
4995     (synopsis "Background images for the GNOME desktop")
4996     (description
4997      "GNOME backgrounds package contains a collection of graphics files which
4998 can be used as backgrounds in the GNOME Desktop environment.  Additionally,
4999 the package creates the proper framework and directory structure so that you
5000 can add your own files to the collection.")
5001     (license (list license:gpl2+
5002                    license:cc-by2.0
5003                    license:cc-by-sa2.0
5004                    license:cc-by-sa3.0))))
5006 (define-public gnome-screenshot
5007   (package
5008     (name "gnome-screenshot")
5009     (version "3.20.1")
5010     (source
5011      (origin
5012        (method url-fetch)
5013        (uri (string-append "mirror://gnome/sources/" name "/"
5014                            (version-major+minor version) "/"
5015                            name "-" version ".tar.xz"))
5016        (sha256
5017         (base32
5018          "0hz1ywgb5vbfqr0p0cr20hmz5b11msyi3psanszdnv0lhxl9pa06"))))
5019     (build-system glib-or-gtk-build-system)
5020     (native-inputs
5021      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5022        ("intltool" ,intltool)
5023        ("pkg-config" ,pkg-config)))
5024     (inputs
5025      `(("gtk+" ,gtk+)
5026        ("libcanberra" ,libcanberra)
5027        ("libx11" ,libx11)
5028        ("libxext" ,libxext)))
5029     (home-page "https://git.gnome.org/browse/gnome-screenshot")
5030     (synopsis "Take pictures of your screen")
5031     (description
5032      "GNOME Screenshot is a utility used for taking screenshots of the entire
5033 screen, a window or a user defined area of the screen, with optional
5034 beautifying border effects.")
5035     (license license:gpl2+)))
5037 (define-public dconf-editor
5038   (package
5039     (name "dconf-editor")
5040     (version "3.20.3")
5041     (source
5042      (origin
5043        (method url-fetch)
5044        (uri (string-append "mirror://gnome/sources/" name "/"
5045                            (version-major+minor version) "/"
5046                            name "-" version ".tar.xz"))
5047        (sha256
5048         (base32
5049          "0yf553bd9l030shhs0jkl5gvkzkfxbxxm56xv0l0nmbplaci8wm8"))))
5050     (build-system glib-or-gtk-build-system)
5051     (arguments
5052      '(#:phases
5053        (modify-phases %standard-phases
5054          (add-before 'install 'skip-gtk-update-icon-cache
5055            (lambda _
5056              ;; Don't create 'icon-theme.cache'.
5057              (substitute* "editor/Makefile"
5058                (("gtk-update-icon-cache") "true"))
5059              #t)))))
5060     (native-inputs
5061      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
5062        ("intltool" ,intltool)
5063        ("pkg-config" ,pkg-config)))
5064     (inputs
5065      `(("dconf" ,dconf)
5066        ("gtk+" ,gtk+)
5067        ("libxml2" ,libxml2)))
5068     (home-page "https://git.gnome.org/browse/dconf-editor")
5069     (synopsis "Graphical editor for GNOME's dconf configuration system")
5070     (description
5071      "Dconf-editor is a graphical tool for browsing and editing the dconf
5072 configuration system for GNOME.  It allows users to configure desktop
5073 software that do not provide their own configuration interface.")
5074     (license license:lgpl2.1+)))
5076 (define-public gnome
5077   (package
5078     (name "gnome")
5079     (version (package-version gnome-shell))
5080     (source #f)
5081     (build-system trivial-build-system)
5082     (arguments '(#:builder (mkdir %output)))
5083     (propagated-inputs
5084      ;; TODO: Add more packages according to:
5085      ;;       <https://packages.debian.org/jessie/gnome-core>.
5086      `(("adwaita-icon-theme"        ,adwaita-icon-theme)
5087        ("baobab"                    ,baobab)
5088        ("font-cantarell"            ,font-cantarell)
5089        ("at-spi2-core"              ,at-spi2-core)
5090        ("dbus"                      ,dbus)
5091        ("dconf"                     ,dconf)
5092        ("desktop-file-utils"        ,desktop-file-utils)
5093        ("eog"                       ,eog)
5094        ("epiphany"                  ,epiphany)
5095        ("evince"                    ,evince)
5096        ("file-roller"               ,file-roller)
5097        ("gedit"                     ,gedit)
5098        ("glib-networking"           ,glib-networking)
5099        ("gnome-backgrounds"         ,gnome-backgrounds)
5100        ("gnome-control-center"      ,gnome-control-center)
5101        ("gnome-keyring"             ,gnome-keyring)
5102        ("gnome-session"             ,gnome-session)
5103        ("gnome-settings-daemon"     ,gnome-settings-daemon)
5104        ("gnome-shell"               ,gnome-shell)
5105        ("gnome-terminal"            ,gnome-terminal)
5106        ("gnome-themes-standard"     ,gnome-themes-standard)
5107        ("gvfs"                      ,gvfs)
5108        ("hicolor-icon-theme"        ,hicolor-icon-theme)
5109        ("nautilus"                  ,nautilus)
5110        ("pinentry-gnome3"           ,pinentry-gnome3)
5111        ("pulseaudio"                ,pulseaudio)
5112        ("shared-mime-info"          ,shared-mime-info)
5113        ("totem"                     ,totem)
5114        ("yelp"                      ,yelp)
5115        ("zenity"                    ,zenity)))
5116     (synopsis "The GNU desktop environment")
5117     (home-page "https://www.gnome.org/")
5118     (description
5119      "GNOME is the graphical desktop for GNU.  It includes a wide variety of
5120 applications for browsing the web, editing text and images, creating
5121 documents and diagrams, playing media, scanning, and much more.")
5122     (license license:gpl2+)))
5124 (define-public byzanz
5125   ;; The last stable release of Byzanz was in 2011, but there have been many
5126   ;; useful commits made to the Byzanz repository since then that it would be
5127   ;; silly to use such an old release.
5128   (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
5129     (package
5130       (name "byzanz")
5131       (version (string-append "0.2-1." (string-take commit 7)))
5132       (source (origin
5133                 (method git-fetch)
5134                 (uri (git-reference
5135                       (url "git://git.gnome.org/byzanz")
5136                       (commit commit)))
5137                 (sha256
5138                  (base32
5139                   "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
5140       (build-system glib-or-gtk-build-system)
5141       (arguments
5142        '(#:phases
5143          (modify-phases %standard-phases
5144            (add-after 'unpack 'bootstrap
5145              (lambda _
5146                ;; The build system cleverly detects that we're not building from
5147                ;; a release tarball and turns on -Werror for GCC.
5148                ;; Unsurprisingly, there is a warning during compilation that
5149                ;; causes the build to fail unnecessarily, so we remove the flag.
5150                (substitute* '("configure.ac")
5151                  (("-Werror") ""))
5152                ;; The autogen.sh script in gnome-common will run ./configure
5153                ;; by default, which is problematic because source shebangs
5154                ;; have not yet been patched.
5155                (setenv "NOCONFIGURE" "t")
5156                (zero? (system* "sh" "autogen.sh")))))))
5157       (native-inputs
5158        `(("autoconf" ,autoconf)
5159          ("automake" ,automake)
5160          ("gnome-common" ,gnome-common)
5161          ("intltool" ,intltool)
5162          ("libtool" ,libtool)
5163          ("pkg-config" ,pkg-config)
5164          ("which" ,which)))
5165       (inputs
5166        `(("glib" ,glib)
5167          ("gstreamer" ,gstreamer)
5168          ("gst-plugins-base" ,gst-plugins-base)
5169          ("gtk+" ,gtk+)))
5170       (synopsis "Desktop recording program")
5171       (description "Byzanz is a simple desktop recording program with a
5172 command-line interface.  It can record part or all of an X display for a
5173 specified duration and save it as a GIF encoded animated image file.")
5174       (home-page "https://git.gnome.org/browse/byzanz")
5175       (license license:gpl2+))))
5177 (define-public libzapojit
5178   (package
5179     (name "libzapojit")
5180     (version "0.0.3")
5181     (source (origin
5182               (method url-fetch)
5183               (uri (string-append "mirror://gnome/sources/" name "/"
5184                                   (version-major+minor version) "/"
5185                                   name "-" version ".tar.xz"))
5186               (sha256
5187                (base32
5188                 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
5189     (build-system gnu-build-system)
5190     (native-inputs
5191      `(("gobject-introspection" ,gobject-introspection)
5192        ("intltool" ,intltool)
5193        ("pkg-config" ,pkg-config)))
5194     (inputs
5195      `(("gnome-online-accounts" ,gnome-online-accounts)
5196        ("json-glib" ,json-glib)
5197        ("rest" ,rest)))
5198     (home-page "https://wiki.gnome.org/Projects/Zapojit")
5199     (synopsis "Library for accessing SkyDrive and Hotmail")
5200     (description
5201      "Libzapojit is a GLib-based library for accessing online service APIs of
5202 Microsoft SkyDrive and Hotmail, using their REST protocols.")
5203     (license license:lgpl2.1+)))
5205 (define-public gnome-calendar
5206   (package
5207     (name "gnome-calendar")
5208     (version "3.20.2")
5209     (source (origin
5210               (method url-fetch)
5211               (uri (string-append "mirror://gnome/sources/" name "/"
5212                                   (version-major+minor version) "/"
5213                                   name "-" version ".tar.xz"))
5214               (sha256
5215                (base32
5216                 "1vny8fclwglapdyxd2g9fbwdlk5hhnb993k2hvq3rf0hcgswycpi"))))
5217     (build-system glib-or-gtk-build-system)
5218     (native-inputs
5219      `(("intltool" ,intltool)
5220        ("pkg-config" ,pkg-config)))
5221     (inputs
5222      `(("bdb" ,bdb)
5223        ("desktop-file-utils" ,desktop-file-utils)
5224        ("evolution-data-server" ,evolution-data-server)
5225        ("gnome-online-accounts" ,gnome-online-accounts)))
5226     (home-page "https://wiki.gnome.org/Apps/Calendar")
5227     (synopsis "GNOME's calendar application")
5228     (description
5229      "GNOME Calendar is a simple calendar application designed to fit the GNOME
5230 desktop.  It supports multiple calendars, monthly view and yearly view.")
5231     (license license:gpl3+)))
5233 (define-public gnome-dictionary
5234   (package
5235     (name "gnome-dictionary")
5236     (version "3.20.0")
5237     (source (origin
5238               (method url-fetch)
5239               (uri (string-append "mirror://gnome/sources/" name "/"
5240                                   (version-major+minor version) "/"
5241                                   name "-" version ".tar.xz"))
5242               (sha256
5243                (base32
5244                 "08b1f5s5aqka3dwxnzmwr2fmyddjm9xw7zmqsf8r5zvfsivn7czg"))))
5245     (build-system glib-or-gtk-build-system)
5246     (native-inputs
5247      `(("glib:bin" ,glib "bin")
5248        ("gobject-introspection" ,gobject-introspection)
5249        ("intltool" ,intltool)
5250        ("itstool" ,itstool)
5251        ("pkg-config" ,pkg-config)
5252        ("xmllint" ,libxml2)))
5253     (inputs
5254      `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5255        ("gtk+" ,gtk+)))
5256     (home-page "https://wiki.gnome.org/Apps/Dictionary")
5257     (synopsis "Look up words in dictionary sources")
5258     (description
5259      "GNOME Dictionary can look for the definition or translation of a word in
5260 existing databases over the internet.")
5261     (license license:gpl3+)))
5263 (define-public gnome-tweak-tool
5264   (package
5265     (name "gnome-tweak-tool")
5266     (version "3.20.1")
5267     (source (origin
5268               (method url-fetch)
5269               (uri (string-append "mirror://gnome/sources/gnome-tweak-tool/"
5270                                   (version-major+minor version) "/"
5271                                   "gnome-tweak-tool-" version ".tar.xz"))
5272               (patches (list
5273                         (search-patch "gnome-tweak-tool-search-paths.patch")))
5274               (sha256
5275                (base32
5276                 "1fj6wjvnjygzm9br3sw9gya6d18yly1rm69yaiar9spfbkvv4wai"))))
5277     (build-system gnu-build-system)
5278     (arguments
5279      `(#:configure-flags '("--localstatedir=/tmp"
5280                            "--sysconfdir=/tmp")
5281        #:imported-modules ((guix build python-build-system)
5282                            ,@%gnu-build-system-modules)
5283        #:phases (modify-phases %standard-phases
5284                   (add-after 'install 'wrap
5285                     (@@ (guix build python-build-system) wrap)))))
5286     (native-inputs
5287      `(("intltool" ,intltool)
5288        ("pkg-config" ,pkg-config)))
5289     (inputs
5290      `(("python" ,python-2)
5291        ("python2-pygobject" ,python2-pygobject)))
5292     (propagated-inputs
5293      `(("libnotify" ,libnotify)
5294        ("gobject-introspection" ,gobject-introspection)
5295        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5296        ("gtk+" ,gtk+)))
5297     (synopsis "Customize advanced GNOME 3 options")
5298     (home-page "https://wiki.gnome.org/action/show/Apps/GnomeTweakTool")
5299     (description
5300      "GNOME Tweak Tool allows adjusting advanced configuration settings in
5301 GNOME 3.  This includes things like the fonts used in user interface elements,
5302 alternative user interface themes, changes in window management behavior,
5303 GNOME Shell appearance and extension, etc.")
5304     (license license:gpl3+)))
5306 (define-public gnome-shell-extensions
5307   (package
5308     (name "gnome-shell-extensions")
5309     (version "3.20.1")
5310     (source (origin
5311               (method url-fetch)
5312               (uri (string-append "mirror://gnome/sources/" name "/"
5313                                   (version-major+minor version)  "/"
5314                                   name "-" version ".tar.xz"))
5315               (sha256
5316                (base32
5317                 "18rr55krnqx1nzrzlj6kfzh4n67f3crakmwh28rr95y7cg0jwhxw"))))
5318     (build-system gnu-build-system)
5319     (arguments
5320      '(#:configure-flags '("--enable-extensions=all")))
5321     (native-inputs
5322      `(("intltool" ,intltool)
5323        ("pkg-config" ,pkg-config)))
5324     (propagated-inputs
5325      `(("glib" ,glib)
5326        ("glib" ,glib "bin")))
5327     (synopsis "Extensions for GNOME Shell")
5328     (description "GNOME Shell extensions modify and extend GNOME Shell
5329 functionality and behavior.")
5330     (home-page "https://extensions.gnome.org/")
5331     (license license:gpl3+)))
5333 (define-public arc-theme
5334   (package
5335     (name "arc-theme")
5336     (version "20160605")
5337     (source (origin
5338               (method url-fetch)
5339               (uri (string-append "https://github.com/horst3180/arc-theme"
5340                                   "/archive/" version ".tar.gz"))
5341               (file-name (string-append name "-" version ".tar.gz"))
5342               (sha256
5343                (base32
5344                 "0sq2031xda8jn2ws0x2bvhq77jfh7xy0c3kg86v6vm2kbrrss7y6"))))
5345     (build-system gnu-build-system)
5346     (arguments
5347      '(#:phases
5348        (modify-phases %standard-phases
5349          (add-after 'unpack 'bootstrap
5350            (lambda _
5351              (zero? (system* "autoreconf" "-vif")))))))
5352     (native-inputs
5353      `(("autoconf" ,autoconf)
5354        ("automake" ,automake)
5355        ("pkg-config" ,pkg-config)))
5356     (inputs
5357      `(("gtk+" ,gtk+)))
5358     (synopsis "A flat GTK+ theme with transparent elements")
5359     (description "Arc is a flat theme with transparent elements for GTK 3, GTK
5360 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
5361 like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
5362     (home-page "https://github.com/horst3180/arc-theme")
5363     ;; No "or later" language found.
5364     (license license:gpl3)))
5366 (define-public moka-icon-theme
5367   (package
5368     (name "moka-icon-theme")
5369     (version "5.3.1")
5370     (source (origin
5371               (method url-fetch)
5372               (uri (string-append "https://github.com/moka-project"
5373                                   "/moka-icon-theme/archive/v"
5374                                   version ".tar.gz"))
5375               (file-name (string-append name "-" version ".tar.gz"))
5376               (sha256
5377                (base32
5378                 "1lnk7p8dsd9xh6cgz5krvlcr457w8yl4m6p6s5c2g5narsjswzrm"))))
5379     (build-system gnu-build-system)
5380     (arguments
5381      '(#:phases
5382        (modify-phases %standard-phases
5383          (add-after 'unpack 'patch-makefile.am
5384            (lambda _
5385              (substitute* '("Makefile.am")
5386                (("\\$\\(DESTDIR\\)/usr/share")
5387                 "$(datadir)"))
5388              #t))
5389          (add-after 'patch-makefile.am 'bootstrap
5390            (lambda _
5391              (zero? (system* "autoreconf" "-vif")))))))
5392     (native-inputs
5393      `(("autoconf" ,autoconf)
5394        ("automake" ,automake)))
5395     (synopsis "Moka icon theme")
5396     (description "Moka is a stylized desktop icon set, designed to be clear,
5397 simple and consistent.")
5398     (home-page "http://snwh.org/moka")
5399     (license license:gpl3+)))
5401 (define-public arc-icon-theme
5402   (package
5403     (name "arc-icon-theme")
5404     (version "20160605")
5405     (source (origin
5406               (method url-fetch)
5407               (uri (string-append "https://github.com/horst3180/arc-icon-theme"
5408                                   "/archive/" version ".tar.gz"))
5409               (file-name (string-append name "-" version ".tar.gz"))
5410               (sha256
5411                (base32
5412                 "1npf0ki0j0llrw9wbffhxxa1cdms0q7b8xlg9m943dd9g7pgdm2p"))))
5413     (build-system gnu-build-system)
5414     (arguments
5415      '(#:phases
5416        (modify-phases %standard-phases
5417          (add-after 'unpack 'bootstrap
5418            (lambda _
5419              (zero? (system* "autoreconf" "-vif")))))))
5420     (native-inputs
5421      `(("autoconf" ,autoconf)
5422        ("automake" ,automake)))
5423     ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
5424     (propagated-inputs
5425      `(("moka-icon-theme" ,moka-icon-theme)))
5426     (synopsis "Arc icon theme")
5427     (description "The Arc icon theme provides a set of icons matching the
5428 style of the Arc GTK theme.  Icons missing from the Arc theme are provided by
5429 the Moka icon theme.")
5430     (home-page "https://github.com/horst3180/arc-icon-theme")
5431     (license license:gpl3+)))
5433 (define-public folks
5434   (package
5435     (name "folks")
5436     (version "0.11.2")
5437     (source (origin
5438               (method url-fetch)
5439               (uri (string-append
5440                     "mirror://gnome/sources/" name "/"
5441                     (version-major+minor version) "/"
5442                     name "-" version ".tar.xz"))
5443               (sha256
5444                (base32
5445                 "1f51albxgfqxbax57i3pcgv2fx7i419xaapzdvldas6gw100ma1m"))))
5446     (build-system glib-or-gtk-build-system)
5447     (inputs
5448      `(("bdb" ,bdb)
5449        ("dbus-glib" ,dbus-glib)
5450        ("evolution-data-server" ,evolution-data-server)
5451        ("glib" ,glib)
5452        ("libgee" ,libgee)
5453        ("telepathy-glib" ,telepathy-glib)))
5454     (native-inputs
5455      `(("gobject-introspection" ,gobject-introspection)
5456        ("intltool" ,intltool)
5457        ("pkg-config" ,pkg-config)
5458        ("vala" ,vala)))
5459     (synopsis "Library to aggregate data about people")
5460     (description "Libfolks is a library that aggregates information about people
5461 from multiple sources (e.g., Telepathy connection managers for IM contacts,
5462 Evolution Data Server for local contacts, libsocialweb for web service contacts,
5463 etc.) to create metacontacts.  It's written in Vala, which generates C code when
5464 compiled.")
5465     (home-page "https://wiki.gnome.org/Projects/Folks")
5466     (license license:lgpl2.1+)))
5468 (define-public gfbgraph
5469   (package
5470     (name "gfbgraph")
5471     (version "0.2.3")
5472     (source (origin
5473               (method url-fetch)
5474               (uri (string-append
5475                     "mirror://gnome/sources/" name "/"
5476                     (version-major+minor version) "/"
5477                     name "-" version ".tar.xz"))
5478               (sha256
5479                (base32
5480                 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
5481     (build-system glib-or-gtk-build-system)
5482     (arguments
5483      `(#:tests? #f ; Tests appear to require the network.
5484        ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
5485        #:configure-flags '("--disable-gtk-doc"
5486                            "--disable-static"
5487                            "--enable-introspection")))
5488     (native-inputs
5489      `(("pkg-config" ,pkg-config)
5490        ("gobject-introspection" ,gobject-introspection)))
5491     (inputs
5492      `(("json-glib" ,json-glib)
5493        ("gnome-online-accounts" ,gnome-online-accounts)
5494        ("rest" ,rest)))
5495     (synopsis "GLib/GObject wrapper for the Facebook API")
5496     (description "This library allows you to use the Facebook API from
5497 GLib/GObject code.")
5498     (home-page "https://wiki.gnome.org/Projects/GFBGraph")
5499     (license license:lgpl2.1+)))
5501 (define-public libgnomekbd
5502   (package
5503     (name "libgnomekbd")
5504     (version "3.6.0")
5505     (source (origin
5506               (method url-fetch)
5507               (uri (string-append "mirror://gnome/sources/" name "/"
5508                                   (version-major+minor version)  "/"
5509                                   name "-" version ".tar.xz"))
5510               (sha256
5511                (base32
5512                 "02bahnl3vaqyqyr99r9kwka84sxj8qdrz7x0bf97192dysqaa7n4"))))
5513     (build-system gnu-build-system)
5514     (native-inputs
5515      `(("pkg-config" ,pkg-config)
5516        ("glib" ,glib "bin")
5517        ("intltool" ,intltool)))
5518     (propagated-inputs
5519      ;; Referred to in .h files and .pc.
5520      `(("glib" ,glib)
5521        ("gtk+" ,gtk+)
5522        ("libxklavier" ,libxklavier)))
5523     (home-page "https://www.gnome.org")
5524     (synopsis "GNOME keyboard configuration library")
5525     (description
5526      "Libgnomekbd is a keyboard configuration library for the GNOME desktop
5527 environment, which can notably display keyboard layouts.")
5528     (license license:lgpl2.0+)))
5530 ;;; This package is no longer maintained:
5531 ;;; https://wiki.gnome.org/Attic/LibUnique
5532 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
5533 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
5534 (define-public libunique
5535   (package
5536     (name "libunique")
5537     (version "3.0.2")
5538     (source (origin
5539               (method url-fetch)
5540               (uri (string-append "mirror://gnome/sources/" name "/"
5541                                   (version-major+minor version)  "/"
5542                                   name "-" version ".tar.xz"))
5543               (sha256
5544                (base32
5545                 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
5546     (build-system glib-or-gtk-build-system)
5547     (arguments
5548      `(#:configure-flags '("--disable-static"
5549                            "--disable-dbus" ; use gdbus
5550                            "--enable-introspection")))
5551     (native-inputs
5552      `(("pkg-config" ,pkg-config)
5553        ("gobject-introspection" ,gobject-introspection)
5554        ("glib:bin" ,glib "bin")
5555        ("gtk-doc" ,gtk-doc)))
5556     (propagated-inputs
5557      ;; Referred to in .h files and .pc.
5558      `(("gtk+" ,gtk+)))
5559     (home-page "https://wiki.gnome.org/Attic/LibUnique")
5560     (synopsis "Library for writing single instance applications")
5561     (description
5562      "Libunique is a library for writing single instance applications.  If you
5563 launch a single instance application twice, the second instance will either just
5564 quit or will send a message to the running instance.  Libunique makes it easy to
5565 write this kind of application, by providing a base class, taking care of all
5566 the IPC machinery needed to send messages to a running instance, and also
5567 handling the startup notification side.")
5568     (license license:lgpl2.1+)))
5570 (define-public gnome-calculator
5571   (package
5572     (name "gnome-calculator")
5573     (version "3.22.2")
5574     (source
5575      (origin
5576        (method url-fetch)
5577        (uri (string-append "mirror://gnome/sources/" name "/"
5578                            (version-major+minor version) "/"
5579                            name "-" version ".tar.xz"))
5580        (sha256
5581         (base32
5582          "03il7xl4yr6xbzj6x1lbl16yzlb166c9h9wny1w7mj9dccnz99wr"))))
5583     (build-system glib-or-gtk-build-system)
5584     (native-inputs
5585      `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
5586        ("intltool" ,intltool)
5587        ("itstool" ,itstool)
5588        ("pkg-config" ,pkg-config)))
5589     (inputs
5590      `(("gtksourceview" ,gtksourceview)
5591        ("libsoup" ,libsoup)
5592        ("mpfr" ,mpfr)))
5593     (home-page "https://wiki.gnome.org/Apps/Calculator")
5594     (synopsis "Desktop calculator")
5595     (description
5596      "Calculator is an application that solves mathematical equations and
5597 is suitable as a default application in a Desktop environment.")
5598     (license license:gpl3)))
5600 (define-public xpad
5601   (package
5602     (name "xpad")
5603     (version "4.8.0")
5604     (source
5605      (origin
5606        (method url-fetch)
5607        (uri (string-append "https://launchpad.net/xpad/trunk/4.8.0/+download/"
5608                            name "-" version ".tar.bz2"))
5609        (sha256
5610         (base32
5611          "17f915yyvfa2fsavq6wh0q0dfhib28b4k1gc0292b9xdlrvy7f22"))))
5612     (build-system gnu-build-system)
5613     (native-inputs
5614      `(("intltool" ,intltool)
5615        ("pkg-config" ,pkg-config)))
5616     (inputs
5617      `(("gtk+" ,gtk+)
5618        ("gtksourceview" ,gtksourceview)
5619        ("libsm" ,libsm)))
5620     (home-page "https://wiki.gnome.org/Apps/Xpad")
5621     (synopsis "Virtual sticky note")
5622     (description
5623      "Xpad is a sticky note that strives to be simple, fault tolerant,
5624 and customizable.  Xpad consists of independent pad windows, each is
5625 basically a text box in which notes can be written.")
5626     (license license:gpl3+)))
5628 (define-public gucharmap
5629   (package
5630     (name "gucharmap")
5631     (version "3.18.0")
5632     (source
5633      (origin
5634        (method url-fetch)
5635        (uri (string-append "mirror://gnome/sources/" name "/"
5636                            (version-major+minor version) "/"
5637                            name "-" version ".tar.xz"))
5638        (sha256
5639         (base32
5640          "0c1q9w5vql0vvg6g0knxfnv4ap19fg5cdrwndi1cj9lsym92c78j"))))
5641     (build-system gnu-build-system)
5642     (native-inputs
5643      `(("desktop-file-utils" ,desktop-file-utils)
5644        ("glib:bin" ,glib "bin") ; for glib-compile-resources.
5645        ("gobject-introspection" ,gobject-introspection)
5646        ("intltool" ,intltool)
5647        ("itstool" ,itstool)
5648        ("pkg-config" ,pkg-config)))
5649     (inputs
5650      `(("gtk+" ,gtk+)
5651        ("xmllint" ,libxml2)))
5652     (home-page "https://wiki.gnome.org/Apps/Gucharmap")
5653     (synopsis "Unicode character picker and font browser")
5654     (description
5655      "This program allows you to browse through all the available Unicode
5656 characters and categories for the installed fonts, and to examine their
5657 detailed properties.  It is an easy way to find the character you might
5658 only know by its Unicode name or code point.")
5659     (license license:gpl3+)))
5661 (define-public bluefish
5662   (package
5663     (name "bluefish")
5664     (version "2.2.9")
5665     (source
5666      (origin
5667        (method url-fetch)
5668        (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
5669                            name "-" version ".tar.gz"))
5670        (sha256
5671         (base32
5672          "1vnl6raxbvc4hacg3pr6sqyjh707d304dhk5nyhlp7m0m1y3j756"))))
5673     (build-system gnu-build-system)
5674     (native-inputs
5675      `(("desktop-file-utils" ,desktop-file-utils)
5676        ("intltool" ,intltool)
5677        ("pkg-config" ,pkg-config)))
5678     (inputs
5679      `(("enchant" ,enchant)
5680        ("gtk+" ,gtk+)
5681        ("python" ,python-2)
5682        ("xmllint" ,libxml2)
5683        ("gucharmap" ,gucharmap)))
5684     (home-page "http://bluefish.openoffice.nl")
5685     (synopsis "Web development studio")
5686     (description
5687      "Bluefish is an editor targeted towards programmers and web developers,
5688 with many options to write web sites, scripts and other code.
5689 Bluefish supports many programming and markup languages.")
5690     (license license:gpl3+)))
5692 (define-public gnome-system-monitor
5693   (package
5694     (name "gnome-system-monitor")
5695     (version "3.20.1")
5696     (source
5697      (origin
5698        (method url-fetch)
5699        (uri (string-append "mirror://gnome/sources/" name "/"
5700                            (version-major+minor version) "/"
5701                            name "-" version ".tar.xz"))
5702        (sha256
5703         (base32
5704          "1ya41b58syf8g5pc12gw1xm6jhdx3crap803bjwm086r7x2an8wv"))))
5705     (build-system glib-or-gtk-build-system)
5706     (native-inputs
5707      `(("glib:bin" ,glib "bin") ; for glib-mkenums.
5708        ("intltool" ,intltool)
5709        ("itstool" ,itstool)
5710        ("libgtop" ,libgtop)
5711        ("pkg-config" ,pkg-config)))
5712     (inputs
5713      `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
5714        ("gtk+" ,gtk+)
5715        ("gtkmm" ,gtkmm)
5716        ("librsvg" ,librsvg)
5717        ("libxml2" ,libxml2)))
5718     (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
5719     (synopsis "Process viewer and system resource monitor for GNOME")
5720     (description
5721      "GNOME System Monitor is a GNOME process viewer and system monitor with
5722 an attractive, easy-to-use interface.  It has features, such as a tree view
5723 for process dependencies, icons for processes, the ability to hide processes,
5724 graphical time histories of CPU/memory/swap usage and the ability to
5725 kill/reinice processes.")
5726     (license license:gpl2+)))