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