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