1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2015, 2017 Andy Wingo <wingo@pobox.com>
5 ;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
6 ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
8 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
10 ;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
12 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
13 ;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
14 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages freedesktop)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system python)
39 #:use-module (gnu packages acl)
40 #:use-module (gnu packages admin)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages bash)
43 #:use-module (gnu packages boost)
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages cryptsetup)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages disk)
49 #:use-module (gnu packages docbook)
50 #:use-module (gnu packages documentation)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages gl)
53 #:use-module (gnu packages glib) ;intltool
54 #:use-module (gnu packages gnome)
55 #:use-module (gnu packages gnuzilla)
56 #:use-module (gnu packages gperf)
57 #:use-module (gnu packages graphviz)
58 #:use-module (gnu packages gtk)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages libunwind)
61 #:use-module (gnu packages libusb)
62 #:use-module (gnu packages linux)
63 #:use-module (gnu packages m4)
64 #:use-module (gnu packages perl)
65 #:use-module (gnu packages perl-check)
66 #:use-module (gnu packages polkit)
67 #:use-module (gnu packages pkg-config)
68 #:use-module (gnu packages perl)
69 #:use-module (gnu packages perl-check)
70 #:use-module (gnu packages python)
71 #:use-module (gnu packages w3m)
72 #:use-module (gnu packages web)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages xdisorg)
75 #:use-module (gnu packages xorg))
77 (define-public xdg-utils
85 "https://portland.freedesktop.org/download/xdg-utils-"
89 "1k4b4m3aiyqn9k12a0ihcdahzlspl3zhskmm1d7228dvqvi546cm"))))
90 (build-system gnu-build-system)
92 `(("docbook-xsl" ,docbook-xsl)
93 ("docbook-xml" ,docbook-xml-4.1.2)
98 `(("perl-file-mimeinfo" ,perl-file-mimeinfo) ; for mimeopen fallback
99 ("xprop" ,xprop) ; for Xfce detecting
100 ("xset" ,xset))) ; for xdg-screensaver
102 `(#:tests? #f ; no check target
104 (modify-phases %standard-phases
105 (add-after 'unpack 'patch-hardcoded-paths
107 (substitute* "scripts/xdg-mime.in"
108 (("/usr/bin/file") (which "file")))
109 (substitute* "scripts/xdg-open.in"
110 (("/usr/bin/printf") (which "printf")))
112 (add-before 'build 'locate-catalog-files
113 (lambda* (#:key inputs #:allow-other-keys)
114 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
116 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
117 "/xml/xsl/docbook-xsl-"
118 ,(package-version docbook-xsl))))
119 (for-each (lambda (file)
121 (("http://.*/docbookx\\.dtd")
122 (string-append xmldoc "/docbookx.dtd"))))
123 (find-files "scripts/desc" "\\.xml$"))
124 (substitute* "scripts/Makefile"
125 ;; Apparently `xmlto' does not bother to looks up the stylesheets
126 ;; specified in the XML, unlike the above substitition. Instead it
127 ;; uses a hard-coded URL. Work around it here, but if this is
128 ;; common perhaps we should hardcode this path in xmlto itself.
129 (("\\$\\(XMLTO\\) man")
130 (string-append "$(XMLTO) -x " xsldoc
131 "/manpages/docbook.xsl man")))
133 (string-append xsldoc "/html/docbook.xsl"))
135 (home-page "https://www.freedesktop.org/wiki/Software/xdg-utils/")
136 (synopsis "Freedesktop.org scripts for desktop integration")
137 (description "The xdg-utils package is a set of simple scripts that
138 provide basic desktop integration functions in the framework of the
139 freedesktop.org project.")
140 (license license:expat)))
142 (define-public libinput
148 (uri (string-append "https://freedesktop.org/software/libinput/"
149 name "-" version ".tar.xz"))
152 "07fbzxddvhjcch43hdxb24sj7ri96zzpcjalvsicmw0i4wnn2v89"))))
153 (build-system gnu-build-system)
157 ("pkg-config" ,pkg-config)))
159 `(("libudev" ,eudev))) ; required by libinput.pc
162 ("libevdev" ,libevdev)
164 ("libwacom" ,libwacom)))
165 (home-page "https://www.freedesktop.org/wiki/Software/libinput/")
166 (synopsis "Input devices handling library")
168 "Libinput is a library to handle input devices for display servers and
169 other applications that need to directly deal with input devices.")
170 (license license:x11)))
172 (define-public libinput-minimal
173 (package (inherit libinput)
174 (name "libinput-minimal")
176 `(("pkg-config" ,pkg-config)))
178 `(("libevdev" ,libevdev)
182 '("--disable-libwacom")))))
184 (define-public libxdg-basedir
186 (name "libxdg-basedir")
191 "https://github.com/devnev/libxdg-basedir/archive/"
192 name "-" version ".tar.gz"))
195 "0s28c7sfwqimsmb3kn91mx7wi55fs3flhbmynl9k60rrllr00aqw"))))
196 (build-system gnu-build-system)
199 (modify-phases %standard-phases
200 (add-after 'unpack 'autogen
202 ;; Run 'configure' in its own phase, not now.
203 (substitute* "autogen.sh"
204 (("^.*\\./configure.*") ""))
205 (zero? (system* "sh" "autogen.sh")))))))
207 `(("autoconf" ,autoconf)
208 ("automake" ,automake)
209 ("libtool" ,libtool)))
210 (home-page "https://github.com/devnev/libxdg-basedir")
211 (synopsis "Implementation of the XDG Base Directory specification")
213 "libxdg-basedir is a C library providing some functions to use with
214 the freedesktop.org XDG Base Directory specification.")
215 (license license:expat)))
217 (define-public elogind
223 (uri (string-append "https://github.com/elogind/elogind/"
224 "archive/v" version ".tar.gz"))
225 (file-name (string-append name "-" version ".tar.gz"))
228 "1qcxian48z2dj5gfmp7brrngdydqf2jm00f4rjr5sy1myh8fy931"))
229 (modules '((guix build utils)))
232 (use-modules (guix build utils))
233 (substitute* "Makefile.am"
234 ;; Avoid validation against DTD because the DTDs for
235 ;; both doctype 4.2 and 4.5 are needed.
236 (("XSLTPROC_FLAGS = ") "XSLTPROC_FLAGS = --novalid"))
238 (build-system gnu-build-system)
240 `(#:tests? #f ;FIXME: "make check" in the "po" directory fails.
242 (list (string-append "--with-udevrulesdir="
243 (assoc-ref %outputs "out")
246 ;; Let elogind be its own cgroup controller, rather than relying
247 ;; on systemd or OpenRC. By default, 'configure' makes an
249 "--with-cgroup-controller=elogind"
251 (string-append "--with-rootprefix="
252 (assoc-ref %outputs "out"))
253 (string-append "--with-rootlibexecdir="
254 (assoc-ref %outputs "out")
256 ;; These are needed to ensure that lto linking works.
260 #:make-flags '("PKTTYAGENT=/run/current-system/profile/bin/pkttyagent")
262 (modify-phases %standard-phases
263 (add-after 'unpack 'patch-locale-header
265 ;; Fix compilation with glibc >= 2.26, which removed xlocale.h.
266 ;; This can be removed for elogind 234.
267 (substitute* "src/basic/parse-util.c"
268 (("xlocale\\.h") "locale.h"))))
269 (add-before 'configure 'autogen
271 (and (zero? (system* "intltoolize" "--force" "--automake"))
272 (zero? (system* "autoreconf" "-vif")))))
273 (add-before 'build 'fix-service-file
274 (lambda* (#:key outputs #:allow-other-keys)
275 ;; Fix the file name of the 'elogind' binary in the D-Bus
277 (substitute* "src/login/org.freedesktop.login1.service"
279 (string-append "Exec=" (assoc-ref %outputs "out")
280 "/libexec/elogind/elogind\n")))))
281 (add-after 'install 'add-libcap-to-search-path
282 (lambda* (#:key inputs outputs #:allow-other-keys)
283 ;; Add a missing '-L' for libcap in libelogind.la. See
284 ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00084.html>.
285 (let ((libcap (assoc-ref inputs "libcap"))
286 (out (assoc-ref outputs "out")))
287 (substitute* (string-append out "/lib/libelogind.la")
289 (string-append "-L" libcap "/lib -lcap")))
291 (add-after 'unpack 'remove-uaccess-tag
293 ;; systemd supports a "uaccess" built-in tag, but eudev currently
294 ;; doesn't. This leads to eudev warnings that we'd rather not
295 ;; see, so remove the reference to "uaccess."
296 (substitute* "src/login/73-seat-late.rules.in"
297 (("^TAG==\"uaccess\".*" line)
298 (string-append "# " line "\n")))
301 `(("autoconf" ,autoconf)
302 ("automake" ,automake)
304 ("intltool" ,intltool)
305 ("gettext" ,gettext-minimal)
307 ("docbook-xsl" ,docbook-xsl)
308 ("docbook-xml" ,docbook-xml)
309 ("xsltproc" ,libxslt)
311 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
312 ("pkg-config" ,pkg-config)
314 ;; Use gperf 3.0 to work around
315 ;; <https://github.com/wingo/elogind/issues/8>.
316 ("gperf" ,gperf-3.0)))
318 `(("linux-pam" ,linux-pam)
319 ("linux-libre-headers" ,linux-libre-headers)
321 ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
322 ;when pressing the power button
325 ("acl" ,acl))) ;to add individual users to ACLs on /dev nodes
326 (home-page "https://github.com/elogind/elogind")
327 (synopsis "User, seat, and session management service")
328 (description "Elogind is the systemd project's \"logind\" service,
329 extracted out as a separate project. Elogind integrates with PAM to provide
330 the org.freedesktop.login1 interface over the system bus, allowing other parts
331 of a the system to know what users are logged in, and where.")
332 (license license:lgpl2.1+)))
334 (define-public packagekit
341 "https://www.freedesktop.org/software/"
342 "PackageKit/releases/"
343 "PackageKit-" version ".tar.xz"))
346 "035pqxgkyki813hyw2frrbpfllq113zfk5qcp9wvsq5lsp74ix2h"))))
347 (build-system gnu-build-system)
350 #:make-flags (list (string-append "BASH_COMPLETIONS_DIR="
351 %output "/etc/bash_completion.d"))
353 '("--disable-systemd")))
355 `(("intltool" ,intltool)
356 ("pkg-config" ,pkg-config)
357 ("python" ,python-wrapper)
358 ("glib:bin" ,glib "bin")))
361 ("bash-completion", bash-completion)
364 `(("sqlite" ,sqlite)))
365 (home-page "https://www.freedesktop.org/software/PackageKit/")
366 (synopsis "API for package management, through D-Bus")
368 "PackageKit provides a way of performing package management tasks,
369 e.g. updating, removing and installing software. Through supporting many
370 backends, PackageKit can perform these tasks using the appropriate package
371 manager for the current system.")
372 (license license:gpl2+)))
374 (define-public python-pyxdg
376 (name "python-pyxdg")
382 "https://pypi.python.org/packages/source/p/pyxdg/pyxdg-"
386 "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41"))))
387 (build-system python-build-system)
390 (modify-phases %standard-phases
392 (lambda* (#:key inputs #:allow-other-keys)
393 (setenv "XDG_DATA_DIRS"
394 (string-append (assoc-ref inputs "shared-mime-info")
396 (substitute* "test/test-icon.py"
397 (("/usr/share/icons/hicolor/index.theme")
398 (string-append (assoc-ref inputs "hicolor-icon-theme")
399 "/share/icons/hicolor/index.theme"))
400 ;; FIXME: This test fails because the theme contains the unknown
402 (("theme.validate\\(\\)") "#"))
404 ;; One test fails with:
405 ;; AssertionError: 'x-apple-ios-png' != 'png'
406 (substitute* "test/test-mime.py"
407 (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#"))
408 (zero? (system* "nosetests" "-v")))))))
410 `(("shared-mime-info" ,shared-mime-info) ;for tests
411 ("hicolor-icon-theme" ,hicolor-icon-theme) ;for tests
412 ("python-nose" ,python-nose)))
413 (home-page "https://www.freedesktop.org/wiki/Software/pyxdg")
414 (synopsis "Implementations of freedesktop.org standards in Python")
416 "PyXDG is a collection of implementations of freedesktop.org standards in
418 (license license:lgpl2.0)))
420 (define-public python2-pyxdg
421 (package-with-python2 python-pyxdg))
423 (define-public wayland
429 (uri (string-append "https://wayland.freedesktop.org/releases/"
430 name "-" version ".tar.xz"))
433 "1f3sla6h0bw15fz8pjc67jhwj7pwmfdc7qlj42j5k9v116ycm07d"))))
434 (build-system gnu-build-system)
436 `(#:parallel-tests? #f))
438 `(("doxygen" ,doxygen)
439 ("graphviz" ,graphviz)
440 ("pkg-config" ,pkg-config)
442 ("xsltproc" ,libxslt)))
444 `(("docbook-xml" ,docbook-xml)
445 ("docbook-xsl" ,docbook-xsl)
448 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
449 (home-page "https://wayland.freedesktop.org/")
450 (synopsis "Display server protocol")
452 "Wayland is a protocol for a compositor to talk to its clients as well as
453 a C library implementation of that protocol. The compositor can be a standalone
454 display server running on Linux kernel modesetting and evdev input devices, an X
455 application, or a wayland client itself. The clients can be traditional
456 applications, X servers (rootless or fullscreen) or other display servers.")
457 (license license:x11)))
459 (define-public wayland-protocols
461 (name "wayland-protocols")
466 "https://wayland.freedesktop.org/releases/"
467 "wayland-protocols-" version ".tar.xz"))
470 "1cn8ny4zr9xlcdh8qi1qnkmvia8cp4ixnsbhd9sp9571w6lyh69v"))))
471 (build-system gnu-build-system)
473 `(("wayland" ,wayland)))
475 `(("pkg-config" ,pkg-config)))
476 (synopsis "Wayland protocols")
477 (description "This package contains XML definitions of the Wayland protocols.")
478 (home-page "https://wayland.freedesktop.org")
479 (license license:expat)))
481 (define-public weston
488 "https://wayland.freedesktop.org/releases/"
489 "weston-" version ".tar.xz"))
492 "19936zlkb75xcaidd8fag4ah8000wrh2ziqy7nxkq36pimgdbqfd"))))
493 (build-system gnu-build-system)
495 `(("pkg-config" ,pkg-config)
496 ("xorg-server" ,xorg-server)))
498 `(("cairo" ,cairo-xcb)
501 ("libinput" ,libinput-minimal)
502 ("libunwind" ,libunwind)
503 ("libxcursor" ,libxcursor)
504 ("libxkbcommon" ,libxkbcommon)
507 ("linux-pam" ,linux-pam)
509 ("wayland-protocols" ,wayland-protocols)
510 ("xorg-server-xwayland" ,xorg-server-xwayland)))
513 (list "--disable-setuid-install"
514 "--enable-systemd-login"
515 (string-append "--with-xserver-path="
516 (assoc-ref %build-inputs "xorg-server-xwayland")
519 (modify-phases %standard-phases
520 (add-before 'configure 'use-elogind
522 ;; Use elogind instead of systemd
523 (substitute* "configure"
524 (("libsystemd-login >= 198") "libelogind"))
525 (substitute* '("libweston/launcher-logind.c"
526 "libweston/weston-launch.c")
527 (("#include <systemd/sd-login.h>")
528 "#include <elogind/sd-login.h>"))
530 (add-after 'configure 'patch-confdefs.h
532 (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >> confdefs.h")))
533 (add-before 'check 'setup
535 (setenv "HOME" (getcwd))
536 (setenv "XDG_RUNTIME_DIR" (getcwd))
538 (add-before 'check 'start-xorg-server
539 (lambda* (#:key inputs #:allow-other-keys)
540 ;; The test suite requires a running X server.
541 (system (string-append (assoc-ref inputs "xorg-server")
543 (setenv "DISPLAY" ":1")
545 (home-page "https://wayland.freedesktop.org")
546 (synopsis "Reference implementation of a Wayland compositor")
547 (description "Weston is the reference implementation of a Wayland
548 compositor, and a useful compositor in its own right.
550 A Wayland compositor allows applications to render to a shared offscreen
551 buffer using OpenGL ES. The compositor then culls the hidden parts and
552 composes the final output. A Wayland compositor is essentially a
553 multiplexer to the KMS/DRM Linux kernel devices.")
554 (license license:expat)))
556 (define-public exempi
563 "https://libopenraw.freedesktop.org/download/"
564 name "-" version ".tar.bz2"))
567 "1v665fc7x0yi7x6lzskvd8bd2anf7951svn2vd5384dblmgv43av"))))
568 (build-system gnu-build-system)
570 `(#:configure-flags (list (string-append "--with-boost="
571 (assoc-ref %build-inputs "boost")))))
573 `(("boost" ,boost))) ; tests
577 (home-page "https://wiki.freedesktop.org/libopenraw/Exempi")
578 (synopsis "XMP metadata handling library")
579 (description "Exempi is an implementation of the Extensible Metadata
580 Platform (XMP), which enables embedding metadata in PDF and image formats.")
581 (license license:bsd-3)))
583 (define-public libatasmart
589 (uri (string-append "http://0pointer.de/public/"
590 name "-" version ".tar.xz"))
593 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
594 (build-system gnu-build-system)
596 `(("pkg-config" ,pkg-config)))
599 (home-page "http://0pointer.de/blog/projects/being-smart.html")
600 (synopsis "ATA S.M.A.R.T. reading and parsing library")
602 "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring,
603 Analysis and Reporting Technology) functionality.")
604 (license license:lgpl2.1+)))
606 (define-public udisks
612 (uri (string-append "https://udisks.freedesktop.org/releases/"
613 name "-" version ".tar.bz2"))
616 "1nkxhnqh39c9pzvm4zfj50rgv6apqawdx09bv3sfaxrah4a6jhfs"))))
617 (build-system gnu-build-system)
619 `(("docbook-xml" ,docbook-xml-4.3) ; to build the manpages
620 ("docbook-xsl" ,docbook-xsl)
621 ("glib:bin" ,glib "bin") ; for glib-mkenums
622 ("gobject-introspection" ,gobject-introspection)
623 ("intltool" ,intltool)
624 ("pkg-config" ,pkg-config)
625 ("xsltproc" ,libxslt)))
627 `(("glib" ,glib))) ; required by udisks2.pc
630 ("libatasmart" ,libatasmart)
631 ("libgudev" ,libgudev)
633 ("util-linux" ,util-linux)
634 ("cryptsetup" ,cryptsetup)
637 "doc")) ;5 MiB of gtk-doc HTML
639 `(#:tests? #f ; requiring system message dbus
640 #:disallowed-references ("doc") ;enforce separation of "doc"
643 "--localstatedir=/var"
644 "--enable-fhs-media" ;mount devices in /media, not /run/media
645 (string-append "--with-html-dir="
646 (assoc-ref %outputs "doc")
647 "/share/doc/udisks/html")
648 (string-append "--with-udevdir=" %output "/lib/udev"))
650 (let* ((docbook-xsl-name-version ,(string-append
651 (package-name docbook-xsl) "-"
652 (package-version docbook-xsl)))
653 (docbook-xsl-catalog-file (string-append
654 (assoc-ref %build-inputs "docbook-xsl")
656 docbook-xsl-name-version
658 (docbook-xml-catalog-file (string-append
659 (assoc-ref %build-inputs "docbook-xml")
660 "/xml/dtd/docbook/catalog.xml")))
661 ;; Reference the catalog files required to build the manpages.
662 (list (string-append "XML_CATALOG_FILES=" docbook-xsl-catalog-file " "
663 docbook-xml-catalog-file)))
665 (modify-phases %standard-phases
667 'configure 'fix-girdir
669 ;; Install introspection data to its own output.
670 (substitute* "udisks/Makefile.in"
672 "girdir = $(datadir)/gir-1.0\n")
673 (("typelibsdir = .*")
674 "typelibsdir = $(libdir)/girepository-1.0\n"))))
675 (add-after 'install 'wrap-udisksd
676 (lambda* (#:key outputs inputs #:allow-other-keys)
677 ;; Tell 'udisksd' where to find the 'mount' command.
678 (let ((out (assoc-ref outputs "out"))
679 (utils (assoc-ref inputs "util-linux"))
680 (cryptsetup (assoc-ref inputs "cryptsetup"))
681 (parted (assoc-ref inputs "parted")))
682 (wrap-program (string-append out "/libexec/udisks2/udisksd")
684 (,(string-append utils "/bin") ;for 'mount'
685 ;; cryptsetup is required for setting encrypted
686 ;; partitions, e.g. in gnome-disks
687 ,(string-append cryptsetup "/sbin")
688 ;; parted is required for managing partitions, e.g. in
690 ,(string-append parted "/sbin")
691 "/run/current-system/profile/bin"
692 "/run/current-system/profile/sbin")))
694 (home-page "https://www.freedesktop.org/wiki/Software/udisks/")
695 (synopsis "Disk manager service")
697 "UDisks provides interfaces to enumerate and perform operations on disks
698 and storage devices. Any application (including unprivileged ones) can access
699 the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system
701 ;; The dynamic library are under LGPLv2+, others are GPLv2+.
702 (license (list license:gpl2+ license:lgpl2.0+))))
704 (define-public accountsservice
706 (name "accountsservice")
710 (uri (string-append "https://www.freedesktop.org/software/"
711 name "/" name "-" version ".tar.xz"))
714 "1k6n9079001sgcwlkq0bz6mkn4m8y4dwf6hs1qm85swcld5ajfzd"))))
715 (build-system gnu-build-system)
717 '(#:tests? #f ; XXX: tests require DocBook 4.1.2
719 '("--localstatedir=/var")
721 (modify-phases %standard-phases
723 'configure 'pre-configure
724 (lambda* (#:key inputs #:allow-other-keys)
725 ;; Don't try to create /var/lib/AccountsService.
726 (substitute* "src/Makefile.in"
727 (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true"))
728 (let ((shadow (assoc-ref inputs "shadow")))
729 (substitute* '("src/user.c" "src/daemon.c")
730 (("/usr/sbin/usermod") (string-append shadow "/sbin/usermod"))
731 (("/usr/sbin/useradd") (string-append shadow "/sbin/useradd"))
732 (("/usr/sbin/userdel") (string-append shadow "/sbin/userdel"))
733 (("/usr/bin/passwd") (string-append shadow "/bin/passwd"))
734 (("/usr/bin/chage") (string-append shadow "/bin/chage"))))
737 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
738 ("gobject-introspection" ,gobject-introspection)
739 ("intltool" ,intltool)
740 ("pkg-config" ,pkg-config)))
744 (home-page "https://www.freedesktop.org/wiki/Software/AccountsService/")
745 (synopsis "D-Bus interface for user account query and manipulation")
747 "The AccountService project provides a set of D-Bus interfaces for querying
748 and manipulating user account information and an implementation of these
749 interfaces, based on the useradd, usermod and userdel commands.")
750 (license license:gpl3+)))
752 (define-public libmbim
759 "https://www.freedesktop.org/software/" name "/"
760 name "-" version ".tar.xz"))
763 "0flpgzsqpjgybjkx4smbb4rjxf2w1xgd1v9gmz61rvl89qasznbv"))))
764 (build-system gnu-build-system)
766 `(("glib:bin" ,glib "bin") ; for glib-mkenums
767 ("pkg-config" ,pkg-config)
768 ("python" ,python-wrapper)))
770 `(("glib" ,glib))) ; required by mbim-glib.pc
772 `(("libgudev" ,libgudev)))
773 (synopsis "Library to communicate with MBIM-powered modems")
774 (home-page "https://www.freedesktop.org/wiki/Software/libmbim/")
776 "Libmbim is a GLib-based library for talking to WWAN modems and devices
777 which speak the Mobile Interface Broadband Model (MBIM) protocol.")
779 ;; The libmbim-glib library is released under the LGPLv2+ license.
780 ;; The mbimcli tool is released under the GPLv2+ license.
781 (list license:lgpl2.0+ license:gpl2+))))
783 (define-public libqmi
790 "https://www.freedesktop.org/software/" name "/"
791 name "-" version ".tar.xz"))
794 "0h009bzss4bal47nk21lyp4s3mmlcivhhaaj7r9229qvx85bi0v2"))))
795 (build-system gnu-build-system)
797 `(("glib:bin" ,glib "bin") ; for glib-mkenums
798 ("pkg-config" ,pkg-config)
799 ("python" ,python-wrapper)))
801 `(("glib" ,glib))) ; required by qmi-glib.pc
802 (synopsis "Library to communicate with QMI-powered modems")
803 (home-page "https://www.freedesktop.org/wiki/Software/libqmi/")
805 "Libqmi is a GLib-based library for talking to WWAN modems and devices
806 which speak the Qualcomm MSM Interface (QMI) protocol.")
808 ;; The libqmi-glib library is released under the LGPLv2+ license.
809 ;; The qmicli tool is released under the GPLv2+ license.
810 (list license:lgpl2.0+ license:gpl2+))))
812 (define-public modem-manager
814 (name "modem-manager")
819 "https://www.freedesktop.org/software/ModemManager/"
820 "ModemManager-" version ".tar.xz"))
823 "18hvffwcncwz14kdzk42jbkh362n0kjv3kgx7axbqx572pawvrmb"))))
824 (build-system gnu-build-system)
827 `(,(string-append "--with-udev-base-dir=" %output "/lib/udev"))))
829 `(("glib:bin" ,glib "bin") ; for glib-mkenums
830 ("gobject-introspection" ,gobject-introspection)
831 ("intltool" ,intltool)
832 ("pkg-config" ,pkg-config)
837 `(("glib" ,glib))) ; required by mm-glib.pc
839 `(("libgudev" ,libgudev)
843 (synopsis "Mobile broadband modems manager")
844 (home-page "https://www.freedesktop.org/wiki/Software/ModemManager/")
846 "ModemManager is a DBus-activated daemon which controls mobile
847 broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB
848 dongles, bluetooth-paired telephones, or professional RS232/USB devices with
849 external power supplies, ModemManager is able to prepare and configure the
850 modems and setup connections with them.")
851 (license license:gpl2+)))
853 (define-public telepathy-logger
855 (name "telepathy-logger")
859 (uri (string-append "https://telepathy.freedesktop.org/releases/"
860 name "/" name "-" version ".tar.bz2"))
863 "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg"))))
864 (build-system gnu-build-system)
866 '(#:parallel-tests? #f
868 (modify-phases %standard-phases
869 (add-before 'check 'pre-check
871 (setenv "HOME" (getenv "TMPDIR"))
874 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
875 ("gobject-introspection" ,gobject-introspection)
876 ("intltool" ,intltool)
877 ("pkg-config" ,pkg-config)
879 ("xsltproc" ,libxslt)))
881 ;; telepathy-logger-0.2.pc refers to all these.
882 `(("libxml2" ,libxml2)
884 ("telepathy-glib" ,telepathy-glib)))
885 (synopsis "Telepathy logger library")
886 (home-page "https://telepathy.freedesktop.org/")
888 "Telepathy logger is a headless observer client that logs information
889 received by the Telepathy framework. It features pluggable backends to log
890 different sorts of messages in different formats.")
891 (license license:lgpl2.1+)))
893 (define-public telepathy-idle
895 (name "telepathy-idle")
899 (uri (string-append "https://telepathy.freedesktop.org/releases/"
900 name "/" name "-" version ".tar.bz2"))
903 "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh"))))
904 (build-system gnu-build-system)
906 `(("pkg-config" ,pkg-config)))
908 `(("xsltproc" ,libxslt)
910 ("python-dbus" ,python2-dbus)))
912 `(("telepathy-glib" ,telepathy-glib)))
913 (home-page "https://telepathy.freedesktop.org/")
914 (synopsis "Telepathy IRC connection manager")
916 "Idle is an IRC connection manager for the Telepathy framework. This
917 package enables usage of IRC channels and private messages in Telepathy instant
918 messaging clients such as Empathy, GNOME Shell or KDE Telepathy.")
919 (license (list license:lgpl2.1 license:lgpl2.1+))))
921 (define-public telepathy-mission-control
923 (name "telepathy-mission-control")
927 (uri (string-append "https://telepathy.freedesktop.org/releases/"
928 name "/" name "-" version ".tar.gz"))
931 "1jz6wwgsfxixha6ys2hbzbk5faqnj9kh2m5qdlgx5anqgandsscp"))))
932 (build-system gnu-build-system)
934 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
935 ("pkg-config" ,pkg-config)))
939 ("libgnome-keyring" ,libgnome-keyring)
941 ("xsltproc" ,libxslt)))
943 `(("telepathy-glib" ,telepathy-glib)))
944 (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/")
945 (synopsis "Telepathy real-time communication framework management daemon")
947 "Telepathy Mission Control 5 is an account manager and channel dispatcher
948 for the Telepathy framework, allowing user interfaces and other clients to
949 share connections to real-time communication services without conflicting.")
950 (license license:lgpl2.1)))
952 (define-public colord-gtk
958 (uri (string-append "https://www.freedesktop.org/software/colord"
959 "/releases/" name "-" version ".tar.xz"))
962 "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18"))))
963 (build-system gnu-build-system)
964 (arguments '(#:tests? #f)) ; require the colord system service
966 `(("gobject-introspection" ,gobject-introspection)
967 ("intltool" ,intltool)
968 ("pkg-config" ,pkg-config)
971 ;; colord-gtk.pc refers to all these.
974 (synopsis "GTK integration for libcolord")
975 (home-page "https://www.freedesktop.org/software/colord/")
977 "This is a GTK+ convenience library for interacting with colord. It is
978 useful for both applications which need colour management and applications that
979 wish to perform colour calibration.")
980 (license license:lgpl2.1+)))
982 (define-public libfprint
988 (uri (string-append "https://people.freedesktop.org/~hadess/"
989 name "-" version ".tar.xz"))
992 "1giwh2z63mn45galsjb59rhyrvgwcy01hvvp4g01iaa2snvzr0r5"))))
993 (build-system gnu-build-system)
995 '(#:configure-flags (list (string-append "--with-udev-rules-dir="
996 (assoc-ref %outputs "out")
997 "/lib/udev/rules.d"))))
999 `(("pkg-config" ,pkg-config)))
1001 `(("libusb" ,libusb)
1005 ("pixman" ,pixman)))
1006 (home-page "https://www.freedesktop.org/wiki/Software/fprint/libfprint/")
1007 (synopsis "Library to access fingerprint readers")
1009 "libfprint is a library designed to make it easy for application
1010 developers to add support for consumer fingerprint readers to their
1012 (license license:lgpl2.1+)))
1014 (define-public fprintd
1021 "https://people.freedesktop.org/~hadess/fprintd-"
1025 "05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
1026 (build-system gnu-build-system)
1028 '(#:phases (modify-phases %standard-phases
1029 (add-before 'build 'set-sysconfdir
1030 (lambda* (#:key outputs #:allow-other-keys)
1031 ;; Work around a bug whereby the 'SYSCONFDIR' macro
1032 ;; expands literally to '${prefix}/etc'.
1033 (let ((out (assoc-ref outputs "out")))
1034 (substitute* "src/main.c"
1035 (("SYSCONFDIR, \"fprintd.conf\"")
1036 (string-append "\"" out "/etc\", "
1037 "\"fprintd.conf\"")))
1040 `(("pkg-config" ,pkg-config)
1041 ("intltool" ,intltool)))
1043 `(("libfprint" ,libfprint)
1044 ("dbus-glib" ,dbus-glib)
1046 ("linux-pam" ,linux-pam))) ;for pam_fprintd
1047 (home-page "https://www.freedesktop.org/wiki/Software/fprint/fprintd/")
1048 (synopsis "D-Bus daemon that exposes fingerprint reader functionality")
1050 "fprintd is a D-Bus daemon that offers functionality of libfprint, a
1051 library to access fingerprint readers, over the D-Bus interprocess
1052 communication bus. This daemon layer above libfprint solves problems related
1053 to applications simultaneously competing for fingerprint readers.")
1054 (license license:gpl2+)))
1056 (define-public desktop-file-utils
1058 (name "desktop-file-utils")
1062 (uri (string-append "https://www.freedesktop.org/software/" name
1063 "/releases/" name "-" version ".tar.xz"))
1066 "119kj2w0rrxkhg4f9cf5waa55jz1hj8933vh47vcjipcplql02bc"))))
1067 (build-system gnu-build-system)
1069 `(("pkg-config" ,pkg-config)))
1072 (home-page "https://www.freedesktop.org/wiki/Software/desktop-file-utils/")
1073 (synopsis "Utilities for working with desktop entries")
1075 "This package contains a few command line utilities for working with
1078 desktop-file-validate: validates a desktop file and prints warnings/errors
1079 about desktop entry specification violations.
1081 desktop-file-install: installs a desktop file to the applications directory,
1082 optionally munging it a bit in transit.
1084 update-desktop-database: updates the database containing a cache of MIME types
1085 handled by desktop files.")
1086 (license license:gpl2+)))
1088 (define-public xdg-user-dirs
1090 (name "xdg-user-dirs")
1094 (uri (string-append "http://user-dirs.freedesktop.org/releases/"
1095 name "-" version ".tar.gz"))
1097 (base32 "1rp3c94hxjlfsryvwajklynfnrcvxplhwnjqc7395l89i0nb83vp"))))
1098 (build-system gnu-build-system)
1100 `(("gettext" ,gettext-minimal)
1101 ("docbook-xsl" ,docbook-xsl)
1102 ("docbook-xml" ,docbook-xml-4.3)
1103 ("xsltproc" ,libxslt)))
1106 (modify-phases %standard-phases
1107 (add-before 'build 'locate-catalog-files
1108 (lambda* (#:key inputs #:allow-other-keys)
1109 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1110 "/xml/dtd/docbook"))
1111 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
1112 "/xml/xsl/docbook-xsl-"
1113 ,(package-version docbook-xsl))))
1114 (for-each (lambda (file)
1116 (("http://.*/docbookx\\.dtd")
1117 (string-append xmldoc "/docbookx.dtd"))))
1118 (find-files "man" "\\.xml$"))
1119 (substitute* "man/Makefile"
1120 (("http://.*/docbook\\.xsl")
1121 (string-append xsldoc "/manpages/docbook.xsl")))
1123 (home-page "https://www.freedesktop.org/wiki/Software/xdg-user-dirs/")
1124 (synopsis "Tool to help manage \"well known\" user directories")
1125 (description "xdg-user-dirs is a tool to help manage \"well known\" user
1126 directories, such as the desktop folder or the music folder. It also handles
1127 localization (i.e. translation) of the file names. Designed to be
1128 automatically run when a user logs in, xdg-user-dirs can also be run
1129 manually by a user.")
1130 (license license:gpl2)))
1132 (define-public perl-file-basedir
1134 (name "perl-file-basedir")
1139 (uri (string-append "mirror://cpan/authors/id/K/KI/KIMRYAN/"
1140 "File-BaseDir-" version ".tar.gz"))
1143 "0aq8d4hsaxqibp36f773y6dfck7zd82v85sp8vhi6pjkg3pmf2hj"))))
1144 (build-system perl-build-system)
1146 `(("perl-module-build" ,perl-module-build)
1147 ("perl-file-which" ,perl-file-which)
1148 ("perl-test-pod" ,perl-test-pod)
1149 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1150 ("xdg-user-dirs" ,xdg-user-dirs)))
1152 `(("perl-ipc-system-simple" ,perl-ipc-system-simple)))
1153 (home-page "http://search.cpan.org/dist/File-BaseDir/")
1154 (synopsis "Use the Freedesktop.org base directory specification")
1156 "@code{File::Basedir} can be used to find directories and files as
1157 specified by the Freedesktop.org Base Directory Specification. This
1158 specifications gives a mechanism to locate directories for configuration,
1159 application data and cache data.")
1160 (license license:perl-license)))
1162 (define-public perl-file-desktopentry
1164 (name "perl-file-desktopentry")
1169 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1170 "File-DesktopEntry-" version ".tar.gz"))
1173 "1f1maqix2kbfg2rf008m7mqnvv6nvcf9y6pcgdv2kxp2vbih370n"))))
1174 (build-system perl-build-system)
1176 `(("perl-test-pod" ,perl-test-pod)
1177 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1179 `(("perl-file-basedir" ,perl-file-basedir)
1180 ("perl-uri" ,perl-uri)))
1181 (home-page "http://search.cpan.org/~michielb/File-DesktopEntry/")
1182 (synopsis "Handle @file{.desktop} files")
1184 "@code{File::DesktopEntry} parses @file{.desktop} files defined by the
1185 Freedesktop.org @dfn{Desktop Entry} specification. It can also run the
1186 applications define in those files.")
1187 (license license:perl-license)))
1189 (define-public perl-file-mimeinfo
1191 (name "perl-file-mimeinfo")
1196 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1197 "File-MimeInfo-" version ".tar.gz"))
1200 "1ipbh63bkh1r2gy5g7q4bzhki8j29mm1jkhbv60p9vwsdys5s91a"))))
1201 (build-system perl-build-system)
1202 ;; If the tests are fixed, add perl-test-pod, perl-test-pod-coverage, and
1203 ;; perl-test-tiny as native-inputs.
1205 `(("shared-mime-info" ,shared-mime-info)
1206 ("perl-file-desktopentry" ,perl-file-desktopentry)))
1208 ;; Some tests fail due to requiring the mimetype of perl files to be
1209 ;; text/plain when they are actually application/x-perl.
1212 (modify-phases %standard-phases
1213 (add-after 'install 'wrap-programs
1214 (lambda* (#:key outputs #:allow-other-keys)
1215 (let ((out (assoc-ref outputs "out")))
1216 (for-each (lambda (prog)
1217 (wrap-program (string-append out "/bin/" prog)
1218 `("PERL5LIB" ":" prefix
1219 (,(string-append (getenv "PERL5LIB") ":" out
1220 "/lib/perl5/site_perl")))))
1221 '("mimeopen" "mimetype")))
1223 (home-page "http://search.cpan.org/dist/File-MimeInfo/")
1224 (synopsis "Determine file type from the file name")
1226 "@code{File::Mimeinfo} can be used to determine the MIME type of a file.
1227 It tries to implement the Freedesktop specification for a shared MIME
1230 This package also contains two related utilities:
1233 @item @command{mimetype} determines a file's MIME type;
1234 @item @command{mimeopen} opens files in an appropriate program according to
1237 (license license:perl-license)))