gnu: dbus: Remove replacement.
[jackhill/guix/guix.git] / gnu / packages / glib.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
8 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
10 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
12 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
13 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
14 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
15 ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
16 ;;; Copyright © 2020 Arthur Margerit <ruhtra.mar@gmail.com>
17 ;;;
18 ;;; This file is part of GNU Guix.
19 ;;;
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
24 ;;;
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
29 ;;;
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32
33 (define-module (gnu packages glib)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages backup)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages bison)
38 #:use-module (gnu packages check)
39 #:use-module (gnu packages compression)
40 #:use-module (gnu packages docbook)
41 #:use-module (gnu packages documentation)
42 #:use-module (gnu packages enlightenment)
43 #:use-module (gnu packages file)
44 #:use-module (gnu packages flex)
45 #:use-module (gnu packages gettext)
46 #:use-module (gnu packages gnome)
47 #:use-module (gnu packages gperf)
48 #:use-module (gnu packages gtk)
49 #:use-module (gnu packages libffi)
50 #:use-module (gnu packages linux)
51 #:use-module (gnu packages m4)
52 #:use-module (gnu packages nettle)
53 #:use-module (gnu packages pcre)
54 #:use-module (gnu packages package-management)
55 #:use-module (gnu packages perl)
56 #:use-module (gnu packages perl-check)
57 #:use-module (gnu packages popt)
58 #:use-module (gnu packages pkg-config)
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages python-xyz)
61 #:use-module (gnu packages selinux)
62 #:use-module (gnu packages web)
63 #:use-module (gnu packages xml)
64 #:use-module (gnu packages xorg)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system meson)
68 #:use-module (guix build-system perl)
69 #:use-module (guix build-system python)
70 #:use-module (guix download)
71 #:use-module ((guix licenses) #:prefix license:)
72 #:use-module (guix packages)
73 #:use-module (guix utils)
74 #:use-module ((srfi srfi-1) #:hide (zip))
75
76 ;; Export variables up-front to allow circular dependency with the 'xorg'
77 ;; module.
78 #:export (dbus
79 glib
80 gobject-introspection
81 dbus-glib
82 intltool
83 itstool
84 libsigc++
85 glibmm
86 telepathy-glib
87 perl-net-dbus
88 perl-net-dbus-glib))
89
90 (define dbus
91 (package
92 (name "dbus")
93 (version "1.12.16")
94 (source (origin
95 (method url-fetch)
96 (uri (string-append
97 "https://dbus.freedesktop.org/releases/dbus/dbus-"
98 version ".tar.gz"))
99 (sha256
100 (base32
101 "107ckxaff1cv4q6kmfdi2fb1nlsv03312a7kf6lb4biglhpjv8jl"))
102 (patches (search-patches "dbus-CVE-2020-12049.patch"
103 "dbus-helper-search-path.patch"))))
104 (build-system gnu-build-system)
105 (arguments
106 '(#:configure-flags
107 (list
108 ;; Install the system bus socket under /var.
109 "--localstatedir=/var"
110
111 ;; Install the session bus socket under /tmp.
112 "--with-session-socket-dir=/tmp"
113
114 ;; Build shared libraries only.
115 "--disable-static"
116
117 ;; Use /etc/dbus-1 for system-wide config.
118 ;; Look for configuration file under
119 ;; /etc/dbus-1. This is notably required by
120 ;; 'dbus-daemon-launch-helper', which looks for
121 ;; the 'system.conf' file in that place,
122 ;; regardless of what '--config-file' was
123 ;; passed to 'dbus-daemon' on the command line;
124 ;; see <https://bugs.freedesktop.org/show_bug.cgi?id=92458>.
125 "--sysconfdir=/etc")
126 #:phases
127 (modify-phases %standard-phases
128 (replace 'install
129 (lambda _
130 ;; Don't try to create /var and /etc.
131 (invoke "make"
132 "localstatedir=/tmp/dummy"
133 "sysconfdir=/tmp/dummy"
134 "install"))))))
135 (native-inputs
136 `(("pkg-config" ,pkg-config)
137 ;; Dependencies to generate the doc.
138 ("docbook-xml" ,docbook-xml-4.4)
139 ("docbook-xsl" ,docbook-xsl)
140 ("doxygen" ,doxygen)
141 ("xmlto" ,xmlto)
142 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
143 ("libxslt" ,libxslt)
144 ("yelp-tools" ,yelp-tools)))
145 (inputs
146 `(("expat" ,expat)
147 ;; Add a dependency on libx11 so that 'dbus-launch' has support for
148 ;; '--autolaunch'.
149 ("libx11" ,libx11)))
150 (outputs '("out" "doc")) ;22 MiB of HTML doc
151 (home-page "https://www.freedesktop.org/wiki/Software/dbus/")
152 (synopsis "Message bus for inter-process communication (IPC)")
153 (description
154 "D-Bus is a message bus system, a simple way for applications to
155 talk to one another. In addition to interprocess communication, D-Bus
156 helps coordinate process lifecycle; it makes it simple and reliable to
157 code a \"single instance\" application or daemon, and to launch
158 applications and daemons on demand when their services are needed.
159
160 D-Bus supplies both a system daemon (for events such as \"new hardware
161 device added\" or \"printer queue changed\") and a
162 per-user-login-session daemon (for general IPC needs among user
163 applications). Also, the message bus is built on top of a general
164 one-to-one message passing framework, which can be used by any two apps
165 to communicate directly (without going through the message bus
166 daemon). Currently the communicating applications are on one computer,
167 or through unencrypted TCP/IP suitable for use behind a firewall with
168 shared NFS home directories.")
169 (license license:gpl2+))) ; or Academic Free License 2.1
170
171 (define glib
172 (package
173 (name "glib")
174 (version "2.62.6")
175 (replacement glib-with-gio-patch)
176 (source (origin
177 (method url-fetch)
178 (uri (string-append "mirror://gnome/sources/"
179 name "/" (string-take version 4) "/"
180 name "-" version ".tar.xz"))
181 (sha256
182 (base32
183 "174bsmbmcvaw69ff9g60q5sx0fn23rkhqcwqz17h5s7sprps4kqh"))
184 (patches (search-patches "glib-tests-timer.patch"))
185 (modules '((guix build utils)))
186 (snippet
187 '(begin
188 (substitute* "tests/spawn-test.c"
189 (("/bin/sh") "sh"))
190 #t))))
191 (build-system meson-build-system)
192 (outputs '("out" ; everything
193 "bin")) ; glib-mkenums, gtester, etc.; depends on Python
194 (propagated-inputs
195 `(("pcre" ,pcre) ; in the Requires.private field of glib-2.0.pc
196 ("libffi" ,libffi) ; in the Requires.private field of gobject-2.0.pc
197 ;; These are in the Requires.private field of gio-2.0.pc
198 ("util-linux" ,util-linux "lib") ;for libmount
199 ("libselinux" ,libselinux)
200 ("zlib" ,zlib)))
201 (native-inputs
202 `(("gettext" ,gettext-minimal)
203 ("m4" ,m4) ; for installing m4 macros
204 ("dbus" ,dbus) ; for GDBus tests
205 ("pkg-config" ,pkg-config)
206 ("python" ,python-wrapper)
207 ("perl" ,perl) ; needed by GIO tests
208 ("tzdata" ,tzdata-for-tests))) ; for tests/gdatetime.c
209 (arguments
210 `(#:disallowed-references (,tzdata-for-tests)
211 #:phases
212 (modify-phases %standard-phases
213 (add-after 'unpack 'patch-dbus-launch-path
214 (lambda* (#:key inputs #:allow-other-keys)
215 (let ((dbus (assoc-ref inputs "dbus")))
216 (substitute* "gio/gdbusaddress.c"
217 (("command_line = g_strdup_printf \\(\"dbus-launch")
218 (string-append "command_line = g_strdup_printf (\""
219 dbus "/bin/dbus-launch")))
220 #t)))
221 (add-after 'unpack 'patch-gio-launch-desktop
222 (lambda* (#:key outputs #:allow-other-keys)
223 (let ((out (assoc-ref outputs "out")))
224 ;; See also <https://gitlab.gnome.org/GNOME/glib/issues/1633>
225 ;; for another future fix.
226 (substitute* "gio/gdesktopappinfo.c"
227 (("gio-launch-desktop")
228 (string-append out "/libexec/gio-launch-desktop")))
229 #t)))
230 (add-before 'build 'pre-build
231 (lambda* (#:key inputs outputs #:allow-other-keys)
232 ;; For tests/gdatetime.c.
233 (setenv "TZDIR"
234 (string-append (assoc-ref inputs "tzdata")
235 "/share/zoneinfo"))
236
237 ;; Some tests want write access there.
238 (setenv "HOME" (getcwd))
239 (setenv "XDG_CACHE_HOME" (getcwd))
240 #t))
241 (add-after 'unpack 'disable-failing-tests
242 (lambda _
243 (let ((disable
244 (lambda (test-file test-paths)
245 (define pattern+procs
246 (map (lambda (test-path)
247 (cons
248 ;; XXX: only works for single line statements.
249 (format #f "g_test_add_func.*\"~a\".*" test-path)
250 (const "")))
251 test-paths))
252 (substitute test-file pattern+procs)))
253 (failing-tests
254 '(("glib/tests/thread.c"
255 (;; prlimit(2) returns ENOSYS on Linux 2.6.32-5-xen-amd64
256 ;; as found on hydra.gnu.org, and strace(1) doesn't
257 ;; recognize it.
258 "/thread/thread4"))
259
260 ;; This tries to find programs in FHS directories.
261 ("glib/tests/utils.c"
262 ("/utils/find-program"))
263
264 ;; This fails because "glib/tests/echo-script" cannot be
265 ;; found.
266 ("glib/tests/spawn-singlethread.c"
267 ("/gthread/spawn-script"))
268
269 ("glib/tests/timer.c"
270 (;; fails if compiler optimizations are enabled, which they
271 ;; are by default.
272 "/timer/stop"))
273
274 ("gio/tests/gapplication.c"
275 (;; XXX: proven to be unreliable. See:
276 ;; <https://bugs.debian.org/756273>
277 ;; <http://bugs.gnu.org/18445>
278 "/gapplication/quit"
279
280 ;; XXX: fails randomly for unknown reason. See:
281 ;; <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00215.html>
282 "/gapplication/local-actions"))
283
284 ("gio/tests/contenttype.c"
285 (;; XXX: requires shared-mime-info.
286 "/contenttype/guess"
287 "/contenttype/guess_svg_from_data"
288 "/contenttype/subtype"
289 "/contenttype/list"
290 "/contenttype/icon"
291 "/contenttype/symbolic-icon"
292 "/contenttype/tree"))
293
294 ("gio/tests/appinfo.c"
295 (;; XXX: requires update-desktop-database.
296 "/appinfo/associations"))
297
298 ("gio/tests/desktop-app-info.c"
299 (;; XXX: requires update-desktop-database.
300 "/desktop-app-info/delete"
301 "/desktop-app-info/default"
302 "/desktop-app-info/fallback"
303 "/desktop-app-info/lastused"
304 "/desktop-app-info/search"))
305
306 ("gio/tests/gdbus-peer.c"
307 (;; Requires /etc/machine-id.
308 "/gdbus/codegen-peer-to-peer"))
309
310 ("gio/tests/gdbus-address-get-session.c"
311 (;; Requires /etc/machine-id.
312 "/gdbus/x11-autolaunch"))
313
314 ("gio/tests/gsocketclient-slow.c"
315 (;; These tests tries to resolve "localhost", and fails.
316 "/socket-client/happy-eyeballs/slow"
317 "/socket-client/happy-eyeballs/cancellation/delayed"))
318
319 )))
320 (for-each (lambda (x) (apply disable x)) failing-tests)
321 #t)))
322 (replace 'check
323 (lambda _
324 (setenv "MESON_TESTTHREADS"
325 (number->string (parallel-job-count)))
326 ;; Do not run tests marked as "flaky".
327 (invoke "meson" "test" "--no-suite" "flaky")))
328 ;; TODO: meson does not permit the bindir to be outside of prefix.
329 ;; See https://github.com/mesonbuild/meson/issues/2561
330 ;; We can remove this once meson is patched.
331 (add-after 'install 'move-executables
332 (lambda* (#:key outputs #:allow-other-keys)
333 (let ((out (assoc-ref outputs "out"))
334 (bin (assoc-ref outputs "bin")))
335 (mkdir-p bin)
336 (rename-file (string-append out "/bin")
337 (string-append bin "/bin"))
338 ;; This one is an implementation detail of glib.
339 ;; It is wrong that that's in "/bin" in the first place,
340 ;; but that's what upstream is doing right now.
341 ;; See <https://gitlab.gnome.org/GNOME/glib/issues/1633>.
342 (mkdir (string-append out "/libexec"))
343 (rename-file (string-append bin "/bin/gio-launch-desktop")
344 (string-append out "/libexec/gio-launch-desktop"))
345 ;; Do not refer to "bindir", which points to "${prefix}/bin".
346 ;; We don't patch "bindir" to point to "$bin/bin", because that
347 ;; would create a reference cycle between the "out" and "bin"
348 ;; outputs.
349 (substitute* (list (string-append out "/lib/pkgconfig/gio-2.0.pc")
350 (string-append out "/lib/pkgconfig/glib-2.0.pc"))
351 (("bindir=\\$\\{prefix\\}/bin") "")
352 (("=\\$\\{bindir\\}/") "="))
353 #t))))))
354 ;; TODO: see above for explanation.
355 ;; #:configure-flags (list (string-append "--bindir="
356 ;; (assoc-ref %outputs "bin")
357 ;; "/bin"))
358
359 (native-search-paths
360 ;; This variable is not really "owned" by GLib, but several related
361 ;; packages refer to it: gobject-introspection's tools use it as a search
362 ;; path for .gir files, and it's also a search path for schemas produced
363 ;; by 'glib-compile-schemas'.
364 (list (search-path-specification
365 (variable "XDG_DATA_DIRS")
366 (files '("share")))
367 ;; To load extra gio modules from glib-networking, etc.
368 (search-path-specification
369 (variable "GIO_EXTRA_MODULES")
370 (files '("lib/gio/modules")))))
371 (search-paths native-search-paths)
372 (properties '((hidden? . #t)))
373
374 (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME")
375 (description
376 "GLib provides data structure handling for C, portability wrappers,
377 and interfaces for such runtime functionality as an event loop, threads,
378 dynamic loading, and an object system.")
379 (home-page "https://developer.gnome.org/glib/")
380 (license license:lgpl2.1+)))
381
382 (define glib-with-gio-patch
383 ;; GLib with a fix for <https://bugs.gnu.org/35594>.
384 ;; TODO: Fold into 'glib' above in the next rebuild cycle.
385 (package
386 (inherit glib)
387 (source (origin
388 (inherit (package-source glib))
389 (patches (cons (search-patch "glib-appinfo-watch.patch")
390 (origin-patches (package-source glib))))))))
391
392 (define-public glib-with-documentation
393 ;; glib's doc must be built in a separate package since it requires gtk-doc,
394 ;; which in turn depends on glib.
395 (package/inherit glib
396 (properties (alist-delete 'hidden? (package-properties glib)))
397 (outputs (cons "doc" (package-outputs glib))) ; 20 MiB of GTK-Doc reference
398 (native-inputs
399 `(("gtk-doc" ,gtk-doc) ; for the doc
400 ("docbook-xml" ,docbook-xml)
401 ("libxml2" ,libxml2)
402 ,@(package-native-inputs glib)))
403 (arguments
404 (substitute-keyword-arguments (package-arguments glib)
405 ((#:configure-flags flags ''())
406 `(cons "-Dgtk_doc=true" ,flags))
407 ((#:phases phases)
408 `(modify-phases ,phases
409 (add-after 'install 'move-doc
410 (lambda* (#:key outputs #:allow-other-keys)
411 (let ((out (assoc-ref outputs "out"))
412 (doc (assoc-ref outputs "doc"))
413 (html (string-append "/share/gtk-doc")))
414 (copy-recursively (string-append out html)
415 (string-append doc html))
416 (delete-file-recursively (string-append out html))
417 #t)))))))))
418
419 (define gobject-introspection
420 (package
421 (name "gobject-introspection")
422 (version "1.62.0")
423 (source
424 (origin
425 (method url-fetch)
426 (uri
427 (string-append "mirror://gnome/sources/"
428 "gobject-introspection/" (version-major+minor version)
429 "/gobject-introspection-" version ".tar.xz"))
430 (sha256
431 (base32 "18lhglg9v6y83lhqzyifc1z0wrlawzrhzzxx0a3h1g7xaz97xvmi"))
432 (patches
433 (search-patches
434 "gobject-introspection-cc.patch"
435 "gobject-introspection-girepository.patch"
436 "gobject-introspection-absolute-shlib-path.patch"))))
437 (build-system meson-build-system)
438 (arguments
439 `(#:phases
440 (modify-phases %standard-phases
441 (add-after 'unpack 'do-not-use-/usr/bin/env
442 (lambda _
443 (substitute* "tools/g-ir-tool-template.in"
444 (("#!@PYTHON_CMD@")
445 (string-append "#!" (which "python3"))))
446 #t)))))
447 (native-inputs
448 `(("glib" ,glib "bin")
449 ("pkg-config" ,pkg-config)))
450 (inputs
451 `(("bison" ,bison)
452 ("flex" ,flex)
453 ("glib" ,glib)
454 ("python" ,python-wrapper)
455 ("zlib" ,zlib)))
456 (propagated-inputs
457 `(("libffi" ,libffi)))
458 (native-search-paths
459 (list
460 (search-path-specification
461 (variable "GI_TYPELIB_PATH")
462 (files '("lib/girepository-1.0")))))
463 (search-paths native-search-paths)
464 (synopsis "GObject introspection tools and libraries")
465 (description "GObject introspection is a middleware layer between
466 C libraries (using GObject) and language bindings. The C library can be scanned
467 at compile time and generate metadata files, in addition to the actual native
468 C library. Then language bindings can read this metadata and automatically
469 provide bindings to call into the C library.")
470 (home-page "https://wiki.gnome.org/Projects/GObjectIntrospection")
471 (license
472 (list
473 ;; For library.
474 license:lgpl2.0+
475 ;; For tools.
476 license:gpl2+))))
477
478 (define intltool
479 (package
480 (name "intltool")
481 (version "0.51.0")
482 (source (origin
483 (method url-fetch)
484 (uri (string-append "https://launchpad.net/intltool/trunk/"
485 version "/+download/intltool-"
486 version ".tar.gz"))
487 (patches (search-patches "intltool-perl-compatibility.patch"))
488 (sha256
489 (base32
490 "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"))))
491 (build-system gnu-build-system)
492 (inputs
493 `(("file" ,file)))
494 (propagated-inputs
495 `(;; Propagate gettext because users expect it to be there, and so does
496 ;; the `intltool-update' script.
497 ("gettext" ,gettext-minimal)
498
499 ("perl-xml-parser" ,perl-xml-parser)
500 ("perl" ,perl)))
501 (arguments
502 `(#:phases
503 (modify-phases %standard-phases
504 (add-after 'unpack 'patch-file-references
505 (lambda* (#:key inputs #:allow-other-keys)
506 (let ((file (assoc-ref inputs "file")))
507 (substitute* "intltool-update.in"
508 (("`file") (string-append "`" file "/bin/file")))
509 #t))))))
510 (home-page "https://launchpad.net/intltool/+download")
511 (synopsis "Tools to centralise translations of different file formats")
512 (description
513 "Intltool is a set of tools to centralise translations of many different
514 file formats using GNU gettext-compatible PO files.
515
516 The intltool collection can be used to do these things:
517
518 Extract translatable strings from various source files (.xml.in,
519 glade, .desktop.in, .server.in, .oaf.in).
520
521 Collect the extracted strings together with messages from traditional
522 source files (.c, .h) in po/$(PACKAGE).pot.
523
524 Merge back the translations from .po files into .xml, .desktop and
525 oaf files. This merge step will happen at build resp. installation time.")
526 (license license:gpl2+)))
527
528 (define itstool
529 (package
530 (name "itstool")
531 (version "2.0.6")
532 (source (origin
533 (method url-fetch)
534 (uri (string-append "http://files.itstool.org/itstool/itstool-"
535 version ".tar.bz2"))
536 (sha256
537 (base32
538 "1acjgf8zlyk7qckdk19iqaca4jcmywd7vxjbcs1mm6kaf8icqcv2"))))
539 (build-system gnu-build-system)
540 (inputs
541 `(("libxml2" ,libxml2)
542 ("python-libxml2" ,python-libxml2)
543 ("python" ,python)))
544 (arguments
545 '(#:phases
546 (modify-phases %standard-phases
547 (add-after 'install 'wrap-program
548 (lambda* (#:key outputs #:allow-other-keys)
549 (let ((prog (string-append (assoc-ref outputs "out")
550 "/bin/itstool")))
551 (wrap-program prog
552 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
553 #t))))))
554 (home-page "http://www.itstool.org")
555 (synopsis "Tool to translate XML documents with PO files")
556 (description
557 "ITS Tool allows you to translate your XML documents with PO files, using
558 rules from the W3C Internationalization Tag Set (ITS) to determine what to
559 translate and how to separate it into PO file messages.
560
561 PO files are the standard translation format for GNU and other Unix-like
562 systems. They present translatable information as discrete messages, allowing
563 each message to be translated independently. In contrast to whole-page
564 translation, translating with a message-based format like PO means you can
565 easily track changes to the source document down to the paragraph. When new
566 strings are added or existing strings are modified, you only need to update the
567 corresponding messages.
568
569 ITS Tool is designed to make XML documents translatable through PO files by
570 applying standard ITS rules, as well as extension rules specific to ITS Tool.
571 ITS also provides an industry standard way for authors to override translation
572 information in their documents, such as whether a particular element should be
573 translated.")
574 (license license:gpl3+)))
575
576 (define dbus-glib
577 (package
578 (name "dbus-glib")
579 (version "0.110")
580 (source (origin
581 (method url-fetch)
582 (uri
583 (string-append "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-"
584 version ".tar.gz"))
585 (sha256
586 (base32
587 "09g8swvc95bk1z6j8sw463p2v0dqmgm2zjfndf7i8sbcyq67dr3w"))))
588 (build-system gnu-build-system)
589 (propagated-inputs ; according to dbus-glib-1.pc
590 `(("dbus" ,dbus)
591 ("glib" ,glib)))
592 (inputs
593 `(("expat" ,expat)))
594 (native-inputs
595 `(("glib" ,glib "bin")
596 ("pkg-config" ,pkg-config)))
597 (home-page "https://dbus.freedesktop.org/doc/dbus-glib/")
598 (synopsis "D-Bus GLib bindings")
599 (description
600 "GLib bindings for D-Bus. The package is obsolete and superseded
601 by GDBus included in Glib.")
602 (license license:gpl2))) ; or Academic Free License 2.1
603
604 (define libsigc++
605 (package
606 (name "libsigc++")
607 (version "2.10.3")
608 (source (origin
609 (method url-fetch)
610 (uri (string-append "mirror://gnome/sources/libsigc++/"
611 (version-major+minor version) "/"
612 name "-" version ".tar.xz"))
613 (sha256
614 (base32
615 "11j7j1jv4z58d9s7jvl42fnqa1dzl4idgil9r45cjv1w673dys0b"))))
616 (build-system gnu-build-system)
617 (native-inputs `(("pkg-config" ,pkg-config)
618 ("m4" ,m4)))
619 (home-page "https://libsigcplusplus.github.io/libsigcplusplus/")
620 (synopsis "Type-safe callback system for standard C++")
621 (description
622 "Libsigc++ implements a type-safe callback system for standard C++. It
623 allows you to define signals and to connect those signals to any callback
624 function, either global or a member function, regardless of whether it is
625 static or virtual.
626
627 It also contains adaptor classes for connection of dissimilar callbacks and
628 has an ease of use unmatched by other C++ callback libraries.")
629 (license license:lgpl2.1+)))
630
631 (define glibmm
632 (package
633 (name "glibmm")
634 (version "2.62.0")
635 (source (origin
636 (method url-fetch)
637 (uri (string-append "mirror://gnome/sources/glibmm/"
638 (version-major+minor version)
639 "/glibmm-" version ".tar.xz"))
640 (sha256
641 (base32
642 "1ziwx6r7k7wbvg4qq1rgrv8zninapgrmhn1hs6926a3krh9ryr9n"))))
643 (build-system gnu-build-system)
644 (arguments
645 `(#:phases
646 (modify-phases %standard-phases
647 (add-before 'build 'pre-build
648 (lambda _
649 ;; This test uses /etc/fstab as an example file to read
650 ;; from; choose a better example.
651 (substitute* "tests/giomm_simple/main.cc"
652 (("/etc/fstab")
653 (string-append (getcwd)
654 "/tests/giomm_simple/main.cc")))
655
656 ;; This test does a DNS lookup, and then expects to be able
657 ;; to open a TLS session; just skip it.
658 (substitute* "tests/giomm_tls_client/main.cc"
659 (("Gio::init.*$")
660 "return 77;\n"))
661 #t)))))
662 (native-inputs `(("pkg-config" ,pkg-config)
663 ("glib" ,glib "bin")))
664 (propagated-inputs
665 `(("libsigc++" ,libsigc++)
666 ("glib" ,glib)))
667 (home-page "https://gtkmm.org/")
668 (synopsis "C++ interface to the GLib library")
669 (description
670 "Glibmm provides a C++ programming interface to the part of GLib that are
671 useful for C++.")
672 (license license:lgpl2.1+)))
673
674 (define-public glibmm-2.64
675 (package
676 (inherit glibmm)
677 (name "glibmm")
678 (version "2.64.2")
679 (source
680 (origin
681 (method url-fetch)
682 (uri
683 (string-append "mirror://gnome/sources/glibmm/"
684 (version-major+minor version)
685 "/glibmm-" version ".tar.xz"))
686 (sha256
687 (base32 "1v6lp23fr2qh4zshcnm28sn29j3nzgsvcqj2nhmrnvamipjq4lm7"))))
688 (propagated-inputs
689 `(("libsigc++" ,libsigc++)
690 ("glib" ,glib)))))
691
692 (define-public python2-pygobject-2
693 (package
694 (name "python2-pygobject")
695 ;; This was the last version to declare the 2.0 platform number, i.e. its
696 ;; pkg-config files were named pygobject-2.0.pc
697 (version "2.28.7")
698 (source
699 (origin
700 (method url-fetch)
701 (uri (string-append "mirror://gnome/sources/pygobject/"
702 (version-major+minor version)
703 "/pygobject-" version ".tar.xz"))
704 (sha256
705 (base32
706 "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv"))
707 (patches (search-patches "python2-pygobject-2-deprecation.patch"))))
708 (build-system gnu-build-system)
709 (native-inputs
710 `(("which" ,which)
711 ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas
712 ("pkg-config" ,pkg-config)
713 ("dbus" ,dbus))) ;for tests
714 (inputs
715 `(("python" ,python-2)
716 ("glib" ,glib)
717 ("python2-pycairo" ,python2-pycairo)
718 ("gobject-introspection" ,gobject-introspection)))
719 (propagated-inputs
720 `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc
721 (arguments
722 `(#:tests? #f ;segfaults during tests
723 #:configure-flags '("LIBS=-lcairo-gobject")))
724 (home-page "https://pypi.org/project/PyGObject/")
725 (synopsis "Python bindings for GObject")
726 (description
727 "Python bindings for GLib, GObject, and GIO.")
728 (license license:lgpl2.1+)))
729
730 (define-public python-pygobject
731 (package
732 (name "python-pygobject")
733 (version "3.34.0")
734 (source
735 (origin
736 (method url-fetch)
737 (uri (string-append "mirror://gnome/sources/pygobject/"
738 (version-major+minor version)
739 "/pygobject-" version ".tar.xz"))
740 (sha256
741 (base32
742 "06i7ynnbvgpz0gw09zsjbvhgcp5qz4yzdifw27qjwdazg2mckql7"))
743 (modules '((guix build utils)))
744 (snippet
745 '(begin
746 ;; We disable these tests in a snippet so that they are inherited
747 ;; by the Python 2 variant which is built differently.
748 (with-directory-excursion "tests"
749 ;; FIXME: These tests require Gdk and/or Gtk 4.
750 (for-each delete-file
751 '("test_atoms.py" "test_overrides_gtk.py"))
752 #t)))))
753 (build-system meson-build-system)
754 (native-inputs
755 `(("glib-bin" ,glib "bin")
756 ("pkg-config" ,pkg-config)
757 ("python-pytest" ,python-pytest)))
758 (inputs
759 `(("python" ,python)
760 ("python-pycairo" ,python-pycairo)
761 ("gobject-introspection" ,gobject-introspection)))
762 (propagated-inputs
763 ;; pygobject-3.0.pc refers to all these.
764 `(("glib" ,glib)
765 ("libffi" ,libffi)))
766 ;; For finding typelib files, since gobject-introscpetion isn't propagated.
767 (native-search-paths (package-native-search-paths gobject-introspection))
768 (home-page "https://live.gnome.org/PyGObject")
769 (synopsis "Python bindings for GObject")
770 (description
771 "Python bindings for GLib, GObject, and GIO.")
772 (license license:lgpl2.1+)
773 (properties `((python2-variant . ,(delay python2-pygobject))))))
774
775 (define-public python2-pygobject
776 (package (inherit (strip-python2-variant python-pygobject))
777 (name "python2-pygobject")
778
779 ;; Note: We use python-build-system here, because Meson only supports
780 ;; Python 3, and needs PYTHONPATH etc set up correctly, which makes it
781 ;; difficult to use for Python 2 projects.
782 (build-system python-build-system)
783 (arguments
784 `(#:python ,python-2
785 #:phases
786 (modify-phases %standard-phases
787 (add-after 'unpack 'delete-broken-tests
788 (lambda _
789 ;; FIXME: this test freezes and times out.
790 (delete-file "tests/test_mainloop.py")
791 ;; FIXME: this test fails with this kind of error:
792 ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler
793 (delete-file "tests/test_ossig.py")
794 #t)))))
795 (inputs
796 `(("python-pycairo" ,python2-pycairo)
797 ("gobject-introspection" ,gobject-introspection)))
798 (native-inputs
799 `(("glib-bin" ,glib "bin")
800 ("pkg-config" ,pkg-config)
801 ("python-pytest" ,python2-pytest)))))
802
803 (define-public perl-glib
804 (package
805 (name "perl-glib")
806 (version "1.3292")
807 (source (origin
808 (method url-fetch)
809 (uri (string-append
810 "mirror://cpan/authors/id/X/XA/XAOC/Glib-"
811 version ".tar.gz"))
812 (sha256
813 (base32
814 "1q5075d6v2g5sm675hyzrcpxsrh09z83crfci8b0wl3jwmnz0frg"))))
815 (build-system perl-build-system)
816 (native-inputs
817 `(("perl-extutils-depends" ,perl-extutils-depends)
818 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
819 (inputs
820 `(("glib" ,glib)))
821 (home-page "https://metacpan.org/release/Glib")
822 (synopsis "Perl wrappers for the GLib utility and Object libraries")
823 (description "This module provides perl access to GLib and GLib's GObject
824 libraries. GLib is a portability and utility library; GObject provides a
825 generic type system with inheritance and a powerful signal system. Together
826 these libraries are used as the foundation for many of the libraries that make
827 up the Gnome environment, and are used in many unrelated projects.")
828 (license license:lgpl2.1+)))
829
830 (define telepathy-glib
831 (package
832 (name "telepathy-glib")
833 (version "0.24.1")
834 (source
835 (origin
836 (method url-fetch)
837 (uri
838 (string-append
839 "https://telepathy.freedesktop.org/releases/telepathy-glib/"
840 "telepathy-glib-" version ".tar.gz"))
841 (sha256
842 (base32
843 "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy"))
844 (patches
845 (list
846 (search-patch "telepathy-glib-channel-memory-leak.patch")
847 ;; Don't use the same test name for multiple tests.
848 ;; <https://bugs.freedesktop.org/show_bug.cgi?id=92245>
849 (origin
850 (method url-fetch)
851 (uri "https://bugs.freedesktop.org/attachment.cgi?id=118608")
852 (file-name (string-append "telepathy-glib-duplicate-tests.patch"))
853 (sha256
854 (base32
855 "0z261fwrszxb28ccg3hsg9rizig4s84zvwmx6y31a4pyv7bvs5w3")))))))
856 (build-system gnu-build-system)
857 (arguments
858 '(#:configure-flags '("--enable-vala-bindings")
859
860 ;; '../tools/glib-*.py' generate files but the target dependencies are
861 ;; (presumably) not fully specified in the makefile, leading to
862 ;; parallel build errors like:
863 ;;
864 ;; EOFError: EOF read where object expected
865 ;; make[2]: *** [Makefile:1906: _gen/register-dbus-glib-marshallers-body.h] Error 1
866 #:parallel-build? #f
867 #:phases
868 (modify-phases %standard-phases
869 (add-after 'unpack 'disable-failing-tests
870 (lambda _
871 ;; None of the tests below are able to find the org.gtk.vfs.Daemon
872 ;; service file provided by gvfs.
873 (substitute* "tests/dbus/Makefile.in"
874 (("test-contacts\\$\\(EXEEXT\\)") "")
875 (("test-file-transfer-channel\\$\\(EXEEXT\\)") "")
876 (("test-stream-tube\\$\\(EXEEXT\\)") ""))
877 #t)))))
878 (native-inputs
879 `(("glib" ,glib "bin") ; uses glib-mkenums
880 ("gobject-introspection" ,gobject-introspection)
881 ("pkg-config" ,pkg-config)
882 ("python" ,python-2)
883 ("vala" ,vala)
884 ("xsltproc" ,libxslt)))
885 (propagated-inputs
886 ;; There are all in the Requires.private field of telepathy-glib.pc.
887 `(("dbus" ,dbus)
888 ("dbus-glib" ,dbus-glib)
889 ("glib" ,glib)))
890 (home-page "https://telepathy.freedesktop.org/wiki/")
891 (synopsis "GLib Real-time communications framework over D-Bus")
892 (description "Telepathy is a flexible, modular communications framework
893 that enables real-time communication over D-Bus via pluggable protocol
894 backends. Telepathy is a communications service that can be accessed by
895 many applications simultaneously.
896
897 This package provides the library for GLib applications.")
898 (license license:lgpl2.1+)))
899
900 (define-public dbus-c++
901 (package
902 (name "dbus-c++")
903 (version "0.9.0")
904 (source (origin
905 (method url-fetch)
906 (uri
907 (string-append
908 "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/"
909 version "/libdbus-c%2B%2B-" version ".tar.gz"))
910 (file-name (string-append name "-" version ".tar.gz"))
911 (patches (search-patches "dbus-c++-gcc-compat.patch"
912 "dbus-c++-threading-mutex.patch"))
913 (sha256
914 (base32
915 "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw"))))
916 (build-system gnu-build-system)
917 (propagated-inputs
918 `(("dbus" ,dbus))) ;mentioned in the pkg-config file
919 (inputs
920 `(("efl" ,efl)
921 ("expat" ,expat)
922 ("glib" ,glib)))
923 (native-inputs
924 `(("pkg-config" ,pkg-config)))
925 (arguments
926 `(;; The 'configure' machinery fails to detect that it needs -lpthread.
927 #:configure-flags (list "LDFLAGS=-lpthread")
928 #:phases
929 (modify-phases %standard-phases
930 (add-before 'configure 'add-missing-header
931 (lambda _
932 (substitute* "include/dbus-c++/eventloop-integration.h"
933 (("#include <errno.h>")
934 "#include <errno.h>\n#include <unistd.h>"))
935 #t)))))
936 (synopsis "D-Bus API for C++")
937 (description "This package provides D-Bus client API bindings for the C++
938 programming language. It also contains the utility
939 @command{dbuscxx-xml2cpp}.")
940 (home-page "https://sourceforge.net/projects/dbus-cplusplus/")
941 (license license:lgpl2.1+)))
942
943 (define-public dbus-cxx
944 (package
945 (name "dbus-cxx")
946 (version "0.12.0")
947 (source (origin
948 (method url-fetch)
949 (uri (string-append "mirror://sourceforge/dbus-cxx/dbus-cxx/"
950 version "/dbus-cxx-" version ".tar.gz"))
951 (sha256
952 (base32
953 "1acsgpkd9v7b9jdc79ijmh9dbdfrzgkwkaff518i3zpk7y6g5mzw"))))
954 (build-system cmake-build-system)
955 (arguments
956 `(#:configure-flags '("-DENABLE_TESTS=ON"
957 "-DENABLE_TOOLS=ON"
958 "-DENABLE_GLIBMM=ON")))
959 (inputs `(("dbus" ,dbus)
960 ("libsigc++" ,libsigc++)
961 ("glibmm" ,glibmm)
962 ("python" ,python)
963 ("popt" ,popt)
964 ("expat" ,expat)))
965 (native-inputs `(("pkg-config" ,pkg-config)
966 ("m4" ,m4)))
967 (synopsis "C++ wrapper for dbus")
968 (description "Dbus-cxx is a C++ wrapper for dbus.\n
969 It exposes the C API to allow direct manipulation and
970 relies on sigc++ to provide an Oriented Object interface.\n
971 This package provide 2 utils:
972 @enumerate
973 @item @command{dbus-cxx-xml2cpp} to generate proxy and adapter
974 @item @command{dbus-cxx-introspect} to introspect a dbus interface
975 @end enumerate
976
977 Some codes examples can be find at:
978 @url{https://dbus-cxx.github.io/examples.html}")
979 (home-page "https://dbus-cxx.github.io/")
980 (license license:gpl3)))
981
982 (define-public appstream-glib
983 (package
984 (name "appstream-glib")
985 (version "0.7.18")
986 (source (origin
987 (method url-fetch)
988 (uri (string-append "https://people.freedesktop.org/~hughsient/"
989 "appstream-glib/releases/"
990 "appstream-glib-" version ".tar.xz"))
991 (sha256
992 (base32
993 "00j0kkgf224nzmrha72g8pd72mymhph7vaisj35i4ffy7cpd47na"))))
994 (build-system meson-build-system)
995 (native-inputs
996 `(("gettext" ,gettext-minimal)
997 ("glib:bin" ,glib "bin") ; for glib-compile-resources
998 ("pkg-config" ,pkg-config)))
999 (propagated-inputs
1000 `(("gcab" ,gcab) ; for .pc file
1001 ("gdk-pixbuf" ,gdk-pixbuf) ; for .pc file
1002 ("libuuid" ,util-linux "lib"))) ; for .pc file
1003 (inputs
1004 `(("glib" ,glib)
1005 ("gperf" ,gperf)
1006 ("gtk+" ,gtk+)
1007 ("json-glib" ,json-glib)
1008 ("libarchive" ,libarchive)
1009 ("libsoup" ,libsoup)))
1010 (arguments
1011 `(#:configure-flags
1012 (list "-Ddep11=false"
1013 "-Dintrospection=false" ; avoid g-ir-scanner dependency
1014 "-Drpm=false"
1015 "-Dstemmer=false")
1016 #:phases
1017 (modify-phases %standard-phases
1018 (add-after 'unpack 'patch-tests
1019 (lambda _
1020 (substitute* "libappstream-glib/as-self-test.c"
1021 (("g_test_add_func.*as_test_store_local_appdata_func);") ""))
1022 #t)))))
1023 (home-page "https://github.com/hughsie/appstream-glib")
1024 (synopsis "Library for reading and writing AppStream metadata")
1025 (description "This library provides objects and helper methods to help
1026 reading and writing @uref{https://www.freedesktop.org/wiki/Distributions/AppStream,AppStream}
1027 metadata.")
1028 (license license:lgpl2.1+)))
1029
1030 (define perl-net-dbus
1031 (package
1032 (name "perl-net-dbus")
1033 (version "1.1.0")
1034 (source
1035 (origin
1036 (method url-fetch)
1037 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/Net-DBus-"
1038 version ".tar.gz"))
1039 (sha256
1040 (base32
1041 "0sg2w147b9r9ykfzjs7y9qxry73xkjnhnk4qf95kfv79p5nnk4c3"))))
1042 (build-system perl-build-system)
1043 (native-inputs
1044 `(("pkg-config" ,pkg-config)
1045 ("perl-test-pod" ,perl-test-pod)
1046 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1047 (inputs
1048 `(("dbus" ,dbus)))
1049 (propagated-inputs
1050 `(("perl-xml-twig" ,perl-xml-twig)))
1051 (home-page "https://metacpan.org/release/Net-DBus")
1052 (synopsis "Extension for the DBus bindings")
1053 (description "@code{Net::DBus} provides a Perl XS API to the DBus
1054 inter-application messaging system. The Perl API covers the core base level
1055 of the DBus APIs, not concerning itself yet with the GLib or QT wrappers.")
1056 (license license:perl-license)))
1057
1058 (define perl-net-dbus-glib
1059 (package
1060 (name "perl-net-dbus-glib")
1061 (version "0.33.0")
1062 (source
1063 (origin
1064 (method url-fetch)
1065 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/"
1066 "Net-DBus-GLib-" version ".tar.gz"))
1067 (sha256
1068 (base32
1069 "1z4mbv8z0rad604xahijpg5szzi8qak07hbahh230z4jf96fkxvj"))))
1070 (build-system perl-build-system)
1071 (native-inputs
1072 `(("pkg-config" ,pkg-config)))
1073 (inputs
1074 `(("dbus-glib" ,dbus-glib)))
1075 (home-page "https://metacpan.org/release/Net-DBus-GLib")
1076 (synopsis "Perl extension for the DBus GLib bindings")
1077 (description "This package provides an extension to the @code{Net::DBus}
1078 module allowing integration with the GLib mainloop. To integrate with the
1079 main loop, simply get a connection to the bus via the methods in
1080 @code{Net::DBus::GLib} rather than the usual @code{Net::DBus} module. Every
1081 other API remains the same.")
1082 (license license:gpl2+)))
1083
1084 (define-public template-glib
1085 (package
1086 (name "template-glib")
1087 (version "3.34.0")
1088 (source (origin
1089 (method url-fetch)
1090 (uri (string-append "mirror://gnome/sources/" name "/"
1091 (version-major+minor version) "/"
1092 name "-" version ".tar.xz"))
1093 (sha256
1094 (base32
1095 "1z9xkin5fyfh071ma9y045jcw83hgx33dfbjraw6cxk0qdmfysr1"))))
1096 (build-system meson-build-system)
1097 (arguments
1098 `(#:configure-flags '("-D" "enable_gtk_doc=true")))
1099 (inputs
1100 `(("gettext" ,gettext-minimal)
1101 ("glib" ,glib)
1102 ("gobject-introspection" ,gobject-introspection)))
1103 (native-inputs
1104 `(("bison" ,bison)
1105 ("flex" ,flex)
1106 ("glib:bin" ,glib "bin") ;; For glib-mkenums
1107 ("gtk-doc" ,gtk-doc)
1108 ("pkg-config" ,pkg-config)
1109 ("vala" ,vala)))
1110 (home-page "https://gitlab.gnome.org/GNOME/template-glib")
1111 (synopsis "Library for template expansion")
1112 (description
1113 "Template-GLib is a library to help you generate text based on a template and
1114 user defined state. Template-GLib does not use a language runtime, so it is
1115 safe to use from any GObject-Introspectable language.
1116
1117 Template-GLib allows you to access properties on GObjects as well as call
1118 simple methods via GObject-Introspection.")
1119 (license license:lgpl2.1+)))
1120
1121 (define-public xdg-dbus-proxy
1122 (package
1123 (name "xdg-dbus-proxy")
1124 (version "0.1.2")
1125 (source (origin
1126 (method url-fetch)
1127 (uri (string-append "https://github.com/flatpak/xdg-dbus-proxy"
1128 "/releases/download/" version
1129 "/xdg-dbus-proxy-" version ".tar.xz"))
1130 (sha256
1131 (base32
1132 "03sj1h0c2l08xa8phw013fnxr4fgav7l2mkjhzf9xk3dykwxcj8p"))))
1133 (build-system gnu-build-system)
1134 (native-inputs
1135 `(("pkg-config" ,pkg-config)
1136
1137 ;; For tests.
1138 ("dbus" ,dbus)
1139
1140 ;; These are required to build the manual.
1141 ("docbook-xml" ,docbook-xml-4.3)
1142 ("docbook-xsl" ,docbook-xsl)
1143 ("libxml2" ,libxml2)
1144 ("xsltproc" ,libxslt)))
1145 (inputs
1146 `(("glib" ,glib)))
1147 (home-page "https://github.com/flatpak/xdg-dbus-proxy")
1148 (synopsis "D-Bus connection proxy")
1149 (description
1150 "xdg-dbus-proxy is a filtering proxy for D-Bus connections. It can be
1151 used to create D-Bus sockets inside a Linux container that forwards requests
1152 to the host system, optionally with filters applied.")
1153 (license license:lgpl2.1+)))
1154
1155 (define-public dbus-test-runner
1156 (package
1157 (name "dbus-test-runner")
1158 (version "19.04.0")
1159 (source (origin
1160 (method url-fetch)
1161 (uri (string-append
1162 "https://launchpad.net/dbus-test-runner/"
1163 (version-major+minor version) "/" version
1164 "/+download/dbus-test-runner-" version ".tar.gz"))
1165 (sha256
1166 (base32
1167 "0xnbay58xn0hav208mdsg8dd176w57dcpw1q2k0g5fh9v7xk4nk4"))))
1168 (build-system gnu-build-system)
1169 (arguments
1170 `(#:phases
1171 (modify-phases %standard-phases
1172 (add-before 'configure 'fix-test-paths
1173 ;; add missing space
1174 (lambda* (#:key outputs #:allow-other-keys)
1175 (substitute* "Makefile.in"
1176 (("#!/bin/bash") (string-append "#!" (which "bash"))))
1177 (substitute* "tests/Makefile.in"
1178 (("/bin/sh") (which "sh"))
1179 (("#!/bin/bash") (string-append "#!" (which "bash")))
1180 (("echo cat") (string-append "echo " (which "cat")))
1181 (("/bin/true") (which "true")))
1182 #t)))))
1183 (inputs
1184 `(("gtk+" ,gtk+)
1185 ("glib" ,glib)
1186 ("dbus-glib" ,dbus-glib)))
1187 (native-inputs
1188 `(("glib:bin" ,glib "bin")
1189 ("intltool" ,intltool)
1190 ("pkg-config" ,pkg-config)
1191 ;; following used for tests
1192 ("python" ,python)
1193 ("python-dbusmock" ,python-dbusmock)
1194 ("xvfb" ,xorg-server-for-tests)))
1195 (home-page "https://launchpad.net/dbus-test-runner")
1196 (synopsis "Run a executables under a new DBus session for testing")
1197 (description "A small little utility to run a couple of executables under a
1198 new DBus session for testing.")
1199 (license license:gpl3)))