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, 2018 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 utils)
34 #:use-module (guix packages)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix build-system gnu)
38 #:use-module (guix build-system meson)
39 #:use-module (guix build-system perl)
40 #:use-module (guix build-system python)
41 #:use-module (gnu packages acl)
42 #:use-module (gnu packages admin)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages bash)
45 #:use-module (gnu packages boost)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages cryptsetup)
49 #:use-module (gnu packages databases)
50 #:use-module (gnu packages disk)
51 #:use-module (gnu packages docbook)
52 #:use-module (gnu packages documentation)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages gl)
55 #:use-module (gnu packages glib) ;intltool
56 #:use-module (gnu packages gnome)
57 #:use-module (gnu packages gnuzilla)
58 #:use-module (gnu packages gperf)
59 #:use-module (gnu packages graphviz)
60 #:use-module (gnu packages gtk)
61 #:use-module (gnu packages libffi)
62 #:use-module (gnu packages libunwind)
63 #:use-module (gnu packages libusb)
64 #:use-module (gnu packages linux)
65 #:use-module (gnu packages m4)
66 #:use-module (gnu packages perl)
67 #:use-module (gnu packages perl-check)
68 #:use-module (gnu packages polkit)
69 #:use-module (gnu packages pkg-config)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages perl-check)
72 #:use-module (gnu packages python)
73 #:use-module (gnu packages valgrind)
74 #:use-module (gnu packages w3m)
75 #:use-module (gnu packages web)
76 #:use-module (gnu packages xml)
77 #:use-module (gnu packages xdisorg)
78 #:use-module (gnu packages xorg)
79 #:use-module (srfi srfi-1))
81 (define-public xdg-utils
89 "https://portland.freedesktop.org/download/xdg-utils-"
93 "1k4b4m3aiyqn9k12a0ihcdahzlspl3zhskmm1d7228dvqvi546cm"))))
94 (build-system gnu-build-system)
96 `(("docbook-xsl" ,docbook-xsl)
97 ("docbook-xml" ,docbook-xml-4.1.2)
102 `(("perl-file-mimeinfo" ,perl-file-mimeinfo) ; for mimeopen fallback
103 ("xprop" ,xprop) ; for Xfce detecting
104 ("xset" ,xset))) ; for xdg-screensaver
106 `(#:tests? #f ; no check target
108 (modify-phases %standard-phases
109 (add-after 'unpack 'patch-hardcoded-paths
111 (substitute* "scripts/xdg-mime.in"
112 (("/usr/bin/file") (which "file")))
113 (substitute* "scripts/xdg-open.in"
114 (("/usr/bin/printf") (which "printf")))
116 (add-before 'build 'locate-catalog-files
117 (lambda* (#:key inputs #:allow-other-keys)
118 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
120 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
121 "/xml/xsl/docbook-xsl-"
122 ,(package-version docbook-xsl))))
123 (for-each (lambda (file)
125 (("http://.*/docbookx\\.dtd")
126 (string-append xmldoc "/docbookx.dtd"))))
127 (find-files "scripts/desc" "\\.xml$"))
128 (substitute* "scripts/Makefile"
129 ;; Apparently `xmlto' does not bother to looks up the stylesheets
130 ;; specified in the XML, unlike the above substitition. Instead it
131 ;; uses a hard-coded URL. Work around it here, but if this is
132 ;; common perhaps we should hardcode this path in xmlto itself.
133 (("\\$\\(XMLTO\\) man")
134 (string-append "$(XMLTO) -x " xsldoc
135 "/manpages/docbook.xsl man")))
137 (string-append xsldoc "/html/docbook.xsl"))
139 (home-page "https://www.freedesktop.org/wiki/Software/xdg-utils/")
140 (synopsis "Freedesktop.org scripts for desktop integration")
141 (description "The xdg-utils package is a set of simple scripts that
142 provide basic desktop integration functions in the framework of the
143 freedesktop.org project.")
144 (license license:expat)))
146 (define-public libinput
152 (uri (string-append "https://freedesktop.org/software/libinput/"
153 name "-" version ".tar.xz"))
156 "1fbv354ii1g4wc4k7d7gbnalqjpzmk9zlpi8linqrzlf6inpc28m"))))
157 (build-system meson-build-system)
159 `(#:configure-flags '("-Ddocumentation=false")))
162 ("pkg-config" ,pkg-config)
163 ("valgrind" ,valgrind)))
165 `(;; In Requires.private of libinput.pc.
166 ("libevdev" ,libevdev)
168 ("libwacom" ,libwacom)
174 (home-page "https://www.freedesktop.org/wiki/Software/libinput/")
175 (synopsis "Input devices handling library")
177 "Libinput is a library to handle input devices for display servers and
178 other applications that need to directly deal with input devices.")
179 (license license:x11)))
181 (define-public libinput-minimal
182 (package (inherit libinput)
183 (name "libinput-minimal")
186 (alist-delete "libwacom" (package-propagated-inputs libinput)))
188 (substitute-keyword-arguments (package-arguments libinput)
189 ((#:configure-flags flags ''())
190 `(cons* "-Dlibwacom=false"
191 "-Ddebug-gui=false" ;requires gtk+@3
194 (define-public libxdg-basedir
196 (name "libxdg-basedir")
201 "https://github.com/devnev/libxdg-basedir/archive/"
202 name "-" version ".tar.gz"))
205 "0s28c7sfwqimsmb3kn91mx7wi55fs3flhbmynl9k60rrllr00aqw"))))
206 (build-system gnu-build-system)
209 (modify-phases %standard-phases
210 (add-after 'unpack 'autogen
212 ;; Run 'configure' in its own phase, not now.
213 (substitute* "autogen.sh"
214 (("^.*\\./configure.*") ""))
215 (zero? (system* "sh" "autogen.sh")))))))
217 `(("autoconf" ,autoconf)
218 ("automake" ,automake)
219 ("libtool" ,libtool)))
220 (home-page "https://github.com/devnev/libxdg-basedir")
221 (synopsis "Implementation of the XDG Base Directory specification")
223 "libxdg-basedir is a C library providing some functions to use with
224 the freedesktop.org XDG Base Directory specification.")
225 (license license:expat)))
227 (define-public elogind
233 (uri (string-append "https://github.com/elogind/elogind/"
234 "archive/v" version ".tar.gz"))
235 (file-name (string-append name "-" version ".tar.gz"))
238 "1qcxian48z2dj5gfmp7brrngdydqf2jm00f4rjr5sy1myh8fy931"))
239 (modules '((guix build utils)))
242 (use-modules (guix build utils))
243 (substitute* "Makefile.am"
244 ;; Avoid validation against DTD because the DTDs for
245 ;; both doctype 4.2 and 4.5 are needed.
246 (("XSLTPROC_FLAGS = ") "XSLTPROC_FLAGS = --novalid"))))))
247 (build-system gnu-build-system)
249 `(#:tests? #f ;FIXME: "make check" in the "po" directory fails.
251 (list (string-append "--with-udevrulesdir="
252 (assoc-ref %outputs "out")
255 ;; Let elogind be its own cgroup controller, rather than relying
256 ;; on systemd or OpenRC. By default, 'configure' makes an
258 "--with-cgroup-controller=elogind"
260 (string-append "--with-rootprefix="
261 (assoc-ref %outputs "out"))
262 (string-append "--with-rootlibexecdir="
263 (assoc-ref %outputs "out")
265 ;; These are needed to ensure that lto linking works.
269 #:make-flags '("PKTTYAGENT=/run/current-system/profile/bin/pkttyagent")
271 (modify-phases %standard-phases
272 (add-after 'unpack 'patch-locale-header
274 ;; Fix compilation with glibc >= 2.26, which removed xlocale.h.
275 ;; This can be removed for elogind 234.
276 (substitute* "src/basic/parse-util.c"
277 (("xlocale\\.h") "locale.h"))))
278 (add-before 'configure 'autogen
280 (and (zero? (system* "intltoolize" "--force" "--automake"))
281 (zero? (system* "autoreconf" "-vif")))))
282 (add-before 'build 'fix-service-file
283 (lambda* (#:key outputs #:allow-other-keys)
284 ;; Fix the file name of the 'elogind' binary in the D-Bus
286 (substitute* "src/login/org.freedesktop.login1.service"
288 (string-append "Exec=" (assoc-ref %outputs "out")
289 "/libexec/elogind/elogind\n")))))
290 (add-after 'install 'add-libcap-to-search-path
291 (lambda* (#:key inputs outputs #:allow-other-keys)
292 ;; Add a missing '-L' for libcap in libelogind.la. See
293 ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00084.html>.
294 (let ((libcap (assoc-ref inputs "libcap"))
295 (out (assoc-ref outputs "out")))
296 (substitute* (string-append out "/lib/libelogind.la")
298 (string-append "-L" libcap "/lib -lcap")))
300 (add-after 'unpack 'remove-uaccess-tag
302 ;; systemd supports a "uaccess" built-in tag, but eudev currently
303 ;; doesn't. This leads to eudev warnings that we'd rather not
304 ;; see, so remove the reference to "uaccess."
305 (substitute* "src/login/73-seat-late.rules.in"
306 (("^TAG==\"uaccess\".*" line)
307 (string-append "# " line "\n")))
310 `(("autoconf" ,autoconf)
311 ("automake" ,automake)
313 ("intltool" ,intltool)
314 ("gettext" ,gettext-minimal)
316 ("docbook-xsl" ,docbook-xsl)
317 ("docbook-xml" ,docbook-xml)
318 ("xsltproc" ,libxslt)
320 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
321 ("pkg-config" ,pkg-config)
323 ;; Use gperf 3.0 to work around
324 ;; <https://github.com/wingo/elogind/issues/8>.
325 ("gperf" ,gperf-3.0)))
327 `(("linux-pam" ,linux-pam)
328 ("linux-libre-headers" ,linux-libre-headers)
330 ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
331 ;when pressing the power button
334 ("acl" ,acl))) ;to add individual users to ACLs on /dev nodes
335 (home-page "https://github.com/elogind/elogind")
336 (synopsis "User, seat, and session management service")
337 (description "Elogind is the systemd project's \"logind\" service,
338 extracted out as a separate project. Elogind integrates with PAM to provide
339 the org.freedesktop.login1 interface over the system bus, allowing other parts
340 of a the system to know what users are logged in, and where.")
341 (license license:lgpl2.1+)))
343 (define-public packagekit
350 "https://www.freedesktop.org/software/"
351 "PackageKit/releases/"
352 "PackageKit-" version ".tar.xz"))
355 "035pqxgkyki813hyw2frrbpfllq113zfk5qcp9wvsq5lsp74ix2h"))))
356 (build-system gnu-build-system)
359 #:make-flags (list (string-append "BASH_COMPLETIONS_DIR="
360 %output "/etc/bash_completion.d"))
362 '("--disable-systemd")))
364 `(("intltool" ,intltool)
365 ("pkg-config" ,pkg-config)
366 ("python" ,python-wrapper)
367 ("glib:bin" ,glib "bin")))
370 ("bash-completion" ,bash-completion)
373 `(("sqlite" ,sqlite)))
374 (home-page "https://www.freedesktop.org/software/PackageKit/")
375 (synopsis "API for package management, through D-Bus")
377 "PackageKit provides a way of performing package management tasks,
378 e.g. updating, removing and installing software. Through supporting many
379 backends, PackageKit can perform these tasks using the appropriate package
380 manager for the current system.")
381 (license license:gpl2+)))
383 (define-public python-pyxdg
385 (name "python-pyxdg")
391 "https://pypi.python.org/packages/source/p/pyxdg/pyxdg-"
395 "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41"))))
396 (build-system python-build-system)
399 (modify-phases %standard-phases
401 (lambda* (#:key inputs #:allow-other-keys)
402 (setenv "XDG_DATA_DIRS"
403 (string-append (assoc-ref inputs "shared-mime-info")
405 (substitute* "test/test-icon.py"
406 (("/usr/share/icons/hicolor/index.theme")
407 (string-append (assoc-ref inputs "hicolor-icon-theme")
408 "/share/icons/hicolor/index.theme"))
409 ;; FIXME: This test fails because the theme contains the unknown
411 (("theme.validate\\(\\)") "#"))
413 ;; One test fails with:
414 ;; AssertionError: 'x-apple-ios-png' != 'png'
415 (substitute* "test/test-mime.py"
416 (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#"))
417 (zero? (system* "nosetests" "-v")))))))
419 `(("shared-mime-info" ,shared-mime-info) ;for tests
420 ("hicolor-icon-theme" ,hicolor-icon-theme) ;for tests
421 ("python-nose" ,python-nose)))
422 (home-page "https://www.freedesktop.org/wiki/Software/pyxdg")
423 (synopsis "Implementations of freedesktop.org standards in Python")
425 "PyXDG is a collection of implementations of freedesktop.org standards in
427 (license license:lgpl2.0)))
429 (define-public python2-pyxdg
430 (package-with-python2 python-pyxdg))
432 (define-public wayland
438 (uri (string-append "https://wayland.freedesktop.org/releases/"
439 name "-" version ".tar.xz"))
442 "1f3sla6h0bw15fz8pjc67jhwj7pwmfdc7qlj42j5k9v116ycm07d"))))
443 (build-system gnu-build-system)
445 `(#:parallel-tests? #f))
447 `(("doxygen" ,doxygen)
448 ("graphviz" ,graphviz)
449 ("pkg-config" ,pkg-config)
451 ("xsltproc" ,libxslt)))
453 `(("docbook-xml" ,docbook-xml)
454 ("docbook-xsl" ,docbook-xsl)
457 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
458 (home-page "https://wayland.freedesktop.org/")
459 (synopsis "Display server protocol")
461 "Wayland is a protocol for a compositor to talk to its clients as well as
462 a C library implementation of that protocol. The compositor can be a standalone
463 display server running on Linux kernel modesetting and evdev input devices, an X
464 application, or a wayland client itself. The clients can be traditional
465 applications, X servers (rootless or fullscreen) or other display servers.")
466 (license license:x11)))
468 (define-public wayland-protocols
470 (name "wayland-protocols")
475 "https://wayland.freedesktop.org/releases/"
476 "wayland-protocols-" version ".tar.xz"))
479 "1cn8ny4zr9xlcdh8qi1qnkmvia8cp4ixnsbhd9sp9571w6lyh69v"))))
480 (build-system gnu-build-system)
482 `(("wayland" ,wayland)))
484 `(("pkg-config" ,pkg-config)))
485 (synopsis "Wayland protocols")
486 (description "This package contains XML definitions of the Wayland protocols.")
487 (home-page "https://wayland.freedesktop.org")
488 (license license:expat)))
490 (define-public weston
497 "https://wayland.freedesktop.org/releases/"
498 "weston-" version ".tar.xz"))
501 "19936zlkb75xcaidd8fag4ah8000wrh2ziqy7nxkq36pimgdbqfd"))))
502 (build-system gnu-build-system)
504 `(("pkg-config" ,pkg-config)
505 ("xorg-server" ,xorg-server)))
507 `(("cairo" ,cairo-xcb)
510 ("libinput" ,libinput-minimal)
511 ("libunwind" ,libunwind)
512 ("libxcursor" ,libxcursor)
513 ("libxkbcommon" ,libxkbcommon)
516 ("linux-pam" ,linux-pam)
518 ("wayland-protocols" ,wayland-protocols)
519 ("xorg-server-xwayland" ,xorg-server-xwayland)))
522 (list "--disable-setuid-install"
523 "--enable-systemd-login"
524 (string-append "--with-xserver-path="
525 (assoc-ref %build-inputs "xorg-server-xwayland")
528 (modify-phases %standard-phases
529 (add-before 'configure 'use-elogind
531 ;; Use elogind instead of systemd
532 (substitute* "configure"
533 (("libsystemd-login >= 198") "libelogind"))
534 (substitute* '("libweston/launcher-logind.c"
535 "libweston/weston-launch.c")
536 (("#include <systemd/sd-login.h>")
537 "#include <elogind/sd-login.h>"))
539 (add-after 'configure 'patch-confdefs.h
541 (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >> confdefs.h")))
542 (add-before 'check 'setup
544 (setenv "HOME" (getcwd))
545 (setenv "XDG_RUNTIME_DIR" (getcwd))
547 (add-before 'check 'start-xorg-server
548 (lambda* (#:key inputs #:allow-other-keys)
549 ;; The test suite requires a running X server.
550 (system (string-append (assoc-ref inputs "xorg-server")
552 (setenv "DISPLAY" ":1")
554 (home-page "https://wayland.freedesktop.org")
555 (synopsis "Reference implementation of a Wayland compositor")
556 (description "Weston is the reference implementation of a Wayland
557 compositor, and a useful compositor in its own right.
559 A Wayland compositor allows applications to render to a shared offscreen
560 buffer using OpenGL ES. The compositor then culls the hidden parts and
561 composes the final output. A Wayland compositor is essentially a
562 multiplexer to the KMS/DRM Linux kernel devices.")
563 (license license:expat)))
565 (define-public exempi
572 "https://libopenraw.freedesktop.org/download/"
573 name "-" version ".tar.bz2"))
576 "1v665fc7x0yi7x6lzskvd8bd2anf7951svn2vd5384dblmgv43av"))))
577 (build-system gnu-build-system)
579 `(#:configure-flags (list (string-append "--with-boost="
580 (assoc-ref %build-inputs "boost")))))
582 `(("boost" ,boost))) ; tests
586 (home-page "https://wiki.freedesktop.org/libopenraw/Exempi")
587 (synopsis "XMP metadata handling library")
588 (description "Exempi is an implementation of the Extensible Metadata
589 Platform (XMP), which enables embedding metadata in PDF and image formats.")
590 (license license:bsd-3)))
592 (define-public libatasmart
598 (uri (string-append "http://0pointer.de/public/"
599 name "-" version ".tar.xz"))
602 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
603 (build-system gnu-build-system)
605 `(("pkg-config" ,pkg-config)))
608 (home-page "http://0pointer.de/blog/projects/being-smart.html")
609 (synopsis "ATA S.M.A.R.T. reading and parsing library")
611 "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring,
612 Analysis and Reporting Technology) functionality.")
613 (license license:lgpl2.1+)))
615 (define-public udisks
621 (uri (string-append "https://udisks.freedesktop.org/releases/"
622 name "-" version ".tar.bz2"))
625 "1nkxhnqh39c9pzvm4zfj50rgv6apqawdx09bv3sfaxrah4a6jhfs"))))
626 (build-system gnu-build-system)
628 `(("docbook-xml" ,docbook-xml-4.3) ; to build the manpages
629 ("docbook-xsl" ,docbook-xsl)
630 ("glib:bin" ,glib "bin") ; for glib-mkenums
631 ("gobject-introspection" ,gobject-introspection)
632 ("intltool" ,intltool)
633 ("pkg-config" ,pkg-config)
634 ("xsltproc" ,libxslt)))
636 `(("glib" ,glib))) ; required by udisks2.pc
639 ("libatasmart" ,libatasmart)
640 ("libgudev" ,libgudev)
642 ("util-linux" ,util-linux)
643 ("cryptsetup" ,cryptsetup)
646 "doc")) ;5 MiB of gtk-doc HTML
648 `(#:tests? #f ; requiring system message dbus
649 #:disallowed-references ("doc") ;enforce separation of "doc"
652 "--localstatedir=/var"
653 "--enable-fhs-media" ;mount devices in /media, not /run/media
654 (string-append "--with-html-dir="
655 (assoc-ref %outputs "doc")
656 "/share/doc/udisks/html")
657 (string-append "--with-udevdir=" %output "/lib/udev"))
659 (let* ((docbook-xsl-name-version ,(string-append
660 (package-name docbook-xsl) "-"
661 (package-version docbook-xsl)))
662 (docbook-xsl-catalog-file (string-append
663 (assoc-ref %build-inputs "docbook-xsl")
665 docbook-xsl-name-version
667 (docbook-xml-catalog-file (string-append
668 (assoc-ref %build-inputs "docbook-xml")
669 "/xml/dtd/docbook/catalog.xml")))
670 ;; Reference the catalog files required to build the manpages.
671 (list (string-append "XML_CATALOG_FILES=" docbook-xsl-catalog-file " "
672 docbook-xml-catalog-file)))
674 (modify-phases %standard-phases
676 'configure 'fix-girdir
678 ;; Install introspection data to its own output.
679 (substitute* "udisks/Makefile.in"
681 "girdir = $(datadir)/gir-1.0\n")
682 (("typelibsdir = .*")
683 "typelibsdir = $(libdir)/girepository-1.0\n"))))
684 (add-after 'install 'wrap-udisksd
685 (lambda* (#:key outputs inputs #:allow-other-keys)
686 ;; Tell 'udisksd' where to find the 'mount' command.
687 (let ((out (assoc-ref outputs "out"))
688 (utils (assoc-ref inputs "util-linux"))
689 (cryptsetup (assoc-ref inputs "cryptsetup"))
690 (parted (assoc-ref inputs "parted")))
691 (wrap-program (string-append out "/libexec/udisks2/udisksd")
693 (,(string-append utils "/bin") ;for 'mount'
694 ;; cryptsetup is required for setting encrypted
695 ;; partitions, e.g. in gnome-disks
696 ,(string-append cryptsetup "/sbin")
697 ;; parted is required for managing partitions, e.g. in
699 ,(string-append parted "/sbin")
700 "/run/current-system/profile/bin"
701 "/run/current-system/profile/sbin")))
703 (home-page "https://www.freedesktop.org/wiki/Software/udisks/")
704 (synopsis "Disk manager service")
706 "UDisks provides interfaces to enumerate and perform operations on disks
707 and storage devices. Any application (including unprivileged ones) can access
708 the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system
710 ;; The dynamic library are under LGPLv2+, others are GPLv2+.
711 (license (list license:gpl2+ license:lgpl2.0+))))
713 (define-public accountsservice
715 (name "accountsservice")
719 (uri (string-append "https://www.freedesktop.org/software/"
720 name "/" name "-" version ".tar.xz"))
723 "1k6n9079001sgcwlkq0bz6mkn4m8y4dwf6hs1qm85swcld5ajfzd"))))
724 (build-system gnu-build-system)
726 '(#:tests? #f ; XXX: tests require DocBook 4.1.2
728 '("--localstatedir=/var")
730 (modify-phases %standard-phases
732 'configure 'pre-configure
733 (lambda* (#:key inputs #:allow-other-keys)
734 ;; Don't try to create /var/lib/AccountsService.
735 (substitute* "src/Makefile.in"
736 (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true"))
737 (let ((shadow (assoc-ref inputs "shadow")))
738 (substitute* '("src/user.c" "src/daemon.c")
739 (("/usr/sbin/usermod") (string-append shadow "/sbin/usermod"))
740 (("/usr/sbin/useradd") (string-append shadow "/sbin/useradd"))
741 (("/usr/sbin/userdel") (string-append shadow "/sbin/userdel"))
742 (("/usr/bin/passwd") (string-append shadow "/bin/passwd"))
743 (("/usr/bin/chage") (string-append shadow "/bin/chage"))))
746 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
747 ("gobject-introspection" ,gobject-introspection)
748 ("intltool" ,intltool)
749 ("pkg-config" ,pkg-config)))
753 (home-page "https://www.freedesktop.org/wiki/Software/AccountsService/")
754 (synopsis "D-Bus interface for user account query and manipulation")
756 "The AccountService project provides a set of D-Bus interfaces for querying
757 and manipulating user account information and an implementation of these
758 interfaces, based on the useradd, usermod and userdel commands.")
759 (license license:gpl3+)))
761 (define-public libmbim
768 "https://www.freedesktop.org/software/" name "/"
769 name "-" version ".tar.xz"))
772 "0flpgzsqpjgybjkx4smbb4rjxf2w1xgd1v9gmz61rvl89qasznbv"))))
773 (build-system gnu-build-system)
775 `(("glib:bin" ,glib "bin") ; for glib-mkenums
776 ("pkg-config" ,pkg-config)
777 ("python" ,python-wrapper)))
779 `(("glib" ,glib))) ; required by mbim-glib.pc
781 `(("libgudev" ,libgudev)))
782 (synopsis "Library to communicate with MBIM-powered modems")
783 (home-page "https://www.freedesktop.org/wiki/Software/libmbim/")
785 "Libmbim is a GLib-based library for talking to WWAN modems and devices
786 which speak the Mobile Interface Broadband Model (MBIM) protocol.")
788 ;; The libmbim-glib library is released under the LGPLv2+ license.
789 ;; The mbimcli tool is released under the GPLv2+ license.
790 (list license:lgpl2.0+ license:gpl2+))))
792 (define-public libqmi
799 "https://www.freedesktop.org/software/" name "/"
800 name "-" version ".tar.xz"))
803 "0h009bzss4bal47nk21lyp4s3mmlcivhhaaj7r9229qvx85bi0v2"))))
804 (build-system gnu-build-system)
806 `(("glib:bin" ,glib "bin") ; for glib-mkenums
807 ("pkg-config" ,pkg-config)
808 ("python" ,python-wrapper)))
810 `(("glib" ,glib))) ; required by qmi-glib.pc
811 (synopsis "Library to communicate with QMI-powered modems")
812 (home-page "https://www.freedesktop.org/wiki/Software/libqmi/")
814 "Libqmi is a GLib-based library for talking to WWAN modems and devices
815 which speak the Qualcomm MSM Interface (QMI) protocol.")
817 ;; The libqmi-glib library is released under the LGPLv2+ license.
818 ;; The qmicli tool is released under the GPLv2+ license.
819 (list license:lgpl2.0+ license:gpl2+))))
821 (define-public modem-manager
823 (name "modem-manager")
828 "https://www.freedesktop.org/software/ModemManager/"
829 "ModemManager-" version ".tar.xz"))
832 "18hvffwcncwz14kdzk42jbkh362n0kjv3kgx7axbqx572pawvrmb"))))
833 (build-system gnu-build-system)
836 `(,(string-append "--with-udev-base-dir=" %output "/lib/udev"))))
838 `(("glib:bin" ,glib "bin") ; for glib-mkenums
839 ("gobject-introspection" ,gobject-introspection)
840 ("intltool" ,intltool)
841 ("pkg-config" ,pkg-config)
846 `(("glib" ,glib))) ; required by mm-glib.pc
848 `(("libgudev" ,libgudev)
852 (synopsis "Mobile broadband modems manager")
853 (home-page "https://www.freedesktop.org/wiki/Software/ModemManager/")
855 "ModemManager is a DBus-activated daemon which controls mobile
856 broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB
857 dongles, bluetooth-paired telephones, or professional RS232/USB devices with
858 external power supplies, ModemManager is able to prepare and configure the
859 modems and setup connections with them.")
860 (license license:gpl2+)))
862 (define-public telepathy-logger
864 (name "telepathy-logger")
868 (uri (string-append "https://telepathy.freedesktop.org/releases/"
869 name "/" name "-" version ".tar.bz2"))
872 "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg"))))
873 (build-system gnu-build-system)
875 '(#:parallel-tests? #f
877 (modify-phases %standard-phases
878 (add-before 'check 'pre-check
880 (setenv "HOME" (getenv "TMPDIR"))
883 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
884 ("gobject-introspection" ,gobject-introspection)
885 ("intltool" ,intltool)
886 ("pkg-config" ,pkg-config)
888 ("xsltproc" ,libxslt)))
890 ;; telepathy-logger-0.2.pc refers to all these.
891 `(("libxml2" ,libxml2)
893 ("telepathy-glib" ,telepathy-glib)))
894 (synopsis "Telepathy logger library")
895 (home-page "https://telepathy.freedesktop.org/")
897 "Telepathy logger is a headless observer client that logs information
898 received by the Telepathy framework. It features pluggable backends to log
899 different sorts of messages in different formats.")
900 (license license:lgpl2.1+)))
902 (define-public telepathy-idle
904 (name "telepathy-idle")
908 (uri (string-append "https://telepathy.freedesktop.org/releases/"
909 name "/" name "-" version ".tar.bz2"))
912 "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh"))))
913 (build-system gnu-build-system)
915 `(("pkg-config" ,pkg-config)))
917 `(("xsltproc" ,libxslt)
919 ("python-dbus" ,python2-dbus)))
921 `(("telepathy-glib" ,telepathy-glib)))
922 (home-page "https://telepathy.freedesktop.org/")
923 (synopsis "Telepathy IRC connection manager")
925 "Idle is an IRC connection manager for the Telepathy framework. This
926 package enables usage of IRC channels and private messages in Telepathy instant
927 messaging clients such as Empathy, GNOME Shell or KDE Telepathy.")
928 (license (list license:lgpl2.1 license:lgpl2.1+))))
930 (define-public telepathy-mission-control
932 (name "telepathy-mission-control")
936 (uri (string-append "https://telepathy.freedesktop.org/releases/"
937 name "/" name "-" version ".tar.gz"))
940 "1jz6wwgsfxixha6ys2hbzbk5faqnj9kh2m5qdlgx5anqgandsscp"))))
941 (build-system gnu-build-system)
943 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
944 ("pkg-config" ,pkg-config)))
948 ("libgnome-keyring" ,libgnome-keyring)
950 ("xsltproc" ,libxslt)))
952 `(("telepathy-glib" ,telepathy-glib)))
953 (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/")
954 (synopsis "Telepathy real-time communication framework management daemon")
956 "Telepathy Mission Control 5 is an account manager and channel dispatcher
957 for the Telepathy framework, allowing user interfaces and other clients to
958 share connections to real-time communication services without conflicting.")
959 (license license:lgpl2.1)))
961 (define-public colord-gtk
967 (uri (string-append "https://www.freedesktop.org/software/colord"
968 "/releases/" name "-" version ".tar.xz"))
971 "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18"))))
972 (build-system gnu-build-system)
973 (arguments '(#:tests? #f)) ; require the colord system service
975 `(("gobject-introspection" ,gobject-introspection)
976 ("intltool" ,intltool)
977 ("pkg-config" ,pkg-config)
980 ;; colord-gtk.pc refers to all these.
983 (synopsis "GTK integration for libcolord")
984 (home-page "https://www.freedesktop.org/software/colord/")
986 "This is a GTK+ convenience library for interacting with colord. It is
987 useful for both applications which need colour management and applications that
988 wish to perform colour calibration.")
989 (license license:lgpl2.1+)))
991 (define-public libfprint
997 (uri (string-append "https://people.freedesktop.org/~hadess/"
998 name "-" version ".tar.xz"))
1001 "1giwh2z63mn45galsjb59rhyrvgwcy01hvvp4g01iaa2snvzr0r5"))))
1002 (build-system gnu-build-system)
1004 '(#:configure-flags (list (string-append "--with-udev-rules-dir="
1005 (assoc-ref %outputs "out")
1006 "/lib/udev/rules.d"))))
1008 `(("pkg-config" ,pkg-config)))
1010 `(("libusb" ,libusb)
1014 ("pixman" ,pixman)))
1015 (home-page "https://www.freedesktop.org/wiki/Software/fprint/libfprint/")
1016 (synopsis "Library to access fingerprint readers")
1018 "libfprint is a library designed to make it easy for application
1019 developers to add support for consumer fingerprint readers to their
1021 (license license:lgpl2.1+)))
1023 (define-public fprintd
1030 "https://people.freedesktop.org/~hadess/fprintd-"
1034 "05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
1035 (build-system gnu-build-system)
1037 '(#:phases (modify-phases %standard-phases
1038 (add-before 'build 'set-sysconfdir
1039 (lambda* (#:key outputs #:allow-other-keys)
1040 ;; Work around a bug whereby the 'SYSCONFDIR' macro
1041 ;; expands literally to '${prefix}/etc'.
1042 (let ((out (assoc-ref outputs "out")))
1043 (substitute* "src/main.c"
1044 (("SYSCONFDIR, \"fprintd.conf\"")
1045 (string-append "\"" out "/etc\", "
1046 "\"fprintd.conf\"")))
1049 `(("pkg-config" ,pkg-config)
1050 ("intltool" ,intltool)))
1052 `(("libfprint" ,libfprint)
1053 ("dbus-glib" ,dbus-glib)
1055 ("linux-pam" ,linux-pam))) ;for pam_fprintd
1056 (home-page "https://www.freedesktop.org/wiki/Software/fprint/fprintd/")
1057 (synopsis "D-Bus daemon that exposes fingerprint reader functionality")
1059 "fprintd is a D-Bus daemon that offers functionality of libfprint, a
1060 library to access fingerprint readers, over the D-Bus interprocess
1061 communication bus. This daemon layer above libfprint solves problems related
1062 to applications simultaneously competing for fingerprint readers.")
1063 (license license:gpl2+)))
1065 (define-public desktop-file-utils
1067 (name "desktop-file-utils")
1071 (uri (string-append "https://www.freedesktop.org/software/" name
1072 "/releases/" name "-" version ".tar.xz"))
1075 "119kj2w0rrxkhg4f9cf5waa55jz1hj8933vh47vcjipcplql02bc"))))
1076 (build-system gnu-build-system)
1078 `(("pkg-config" ,pkg-config)))
1081 (home-page "https://www.freedesktop.org/wiki/Software/desktop-file-utils/")
1082 (synopsis "Utilities for working with desktop entries")
1084 "This package contains a few command line utilities for working with
1087 desktop-file-validate: validates a desktop file and prints warnings/errors
1088 about desktop entry specification violations.
1090 desktop-file-install: installs a desktop file to the applications directory,
1091 optionally munging it a bit in transit.
1093 update-desktop-database: updates the database containing a cache of MIME types
1094 handled by desktop files.")
1095 (license license:gpl2+)))
1097 (define-public xdg-user-dirs
1099 (name "xdg-user-dirs")
1103 (uri (string-append "http://user-dirs.freedesktop.org/releases/"
1104 name "-" version ".tar.gz"))
1106 (base32 "13216b8rfkzak5k6bvpx6jvqv3cnbgpijnjwj8a8d3kq4cl0a1ra"))))
1107 (build-system gnu-build-system)
1109 `(("gettext" ,gettext-minimal)
1110 ("docbook-xsl" ,docbook-xsl)
1111 ("docbook-xml" ,docbook-xml-4.3)
1112 ("xsltproc" ,libxslt)))
1115 (modify-phases %standard-phases
1116 (add-before 'build 'locate-catalog-files
1117 (lambda* (#:key inputs #:allow-other-keys)
1118 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1119 "/xml/dtd/docbook"))
1120 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
1121 "/xml/xsl/docbook-xsl-"
1122 ,(package-version docbook-xsl))))
1123 (for-each (lambda (file)
1125 (("http://.*/docbookx\\.dtd")
1126 (string-append xmldoc "/docbookx.dtd"))))
1127 (find-files "man" "\\.xml$"))
1128 (substitute* "man/Makefile"
1129 (("http://.*/docbook\\.xsl")
1130 (string-append xsldoc "/manpages/docbook.xsl")))
1132 (home-page "https://www.freedesktop.org/wiki/Software/xdg-user-dirs/")
1133 (synopsis "Tool to help manage \"well known\" user directories")
1134 (description "xdg-user-dirs is a tool to help manage \"well known\" user
1135 directories, such as the desktop folder or the music folder. It also handles
1136 localization (i.e. translation) of the file names. Designed to be
1137 automatically run when a user logs in, xdg-user-dirs can also be run
1138 manually by a user.")
1139 (license license:gpl2)))
1141 (define-public perl-file-basedir
1143 (name "perl-file-basedir")
1148 (uri (string-append "mirror://cpan/authors/id/K/KI/KIMRYAN/"
1149 "File-BaseDir-" version ".tar.gz"))
1152 "0aq8d4hsaxqibp36f773y6dfck7zd82v85sp8vhi6pjkg3pmf2hj"))))
1153 (build-system perl-build-system)
1155 `(("perl-module-build" ,perl-module-build)
1156 ("perl-file-which" ,perl-file-which)
1157 ("perl-test-pod" ,perl-test-pod)
1158 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1159 ("xdg-user-dirs" ,xdg-user-dirs)))
1161 `(("perl-ipc-system-simple" ,perl-ipc-system-simple)))
1162 (home-page "http://search.cpan.org/dist/File-BaseDir/")
1163 (synopsis "Use the Freedesktop.org base directory specification")
1165 "@code{File::Basedir} can be used to find directories and files as
1166 specified by the Freedesktop.org Base Directory Specification. This
1167 specifications gives a mechanism to locate directories for configuration,
1168 application data and cache data.")
1169 (license license:perl-license)))
1171 (define-public perl-file-desktopentry
1173 (name "perl-file-desktopentry")
1178 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1179 "File-DesktopEntry-" version ".tar.gz"))
1182 "1f1maqix2kbfg2rf008m7mqnvv6nvcf9y6pcgdv2kxp2vbih370n"))))
1183 (build-system perl-build-system)
1185 `(("perl-test-pod" ,perl-test-pod)
1186 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1188 `(("perl-file-basedir" ,perl-file-basedir)
1189 ("perl-uri" ,perl-uri)))
1190 (home-page "http://search.cpan.org/~michielb/File-DesktopEntry/")
1191 (synopsis "Handle @file{.desktop} files")
1193 "@code{File::DesktopEntry} parses @file{.desktop} files defined by the
1194 Freedesktop.org @dfn{Desktop Entry} specification. It can also run the
1195 applications define in those files.")
1196 (license license:perl-license)))
1198 (define-public perl-file-mimeinfo
1200 (name "perl-file-mimeinfo")
1205 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1206 "File-MimeInfo-" version ".tar.gz"))
1209 "1ipbh63bkh1r2gy5g7q4bzhki8j29mm1jkhbv60p9vwsdys5s91a"))))
1210 (build-system perl-build-system)
1211 ;; If the tests are fixed, add perl-test-pod, perl-test-pod-coverage, and
1212 ;; perl-test-tiny as native-inputs.
1214 `(("shared-mime-info" ,shared-mime-info)
1215 ("perl-file-desktopentry" ,perl-file-desktopentry)))
1217 ;; Some tests fail due to requiring the mimetype of perl files to be
1218 ;; text/plain when they are actually application/x-perl.
1221 (modify-phases %standard-phases
1222 (add-after 'install 'wrap-programs
1223 (lambda* (#:key outputs #:allow-other-keys)
1224 (let ((out (assoc-ref outputs "out")))
1225 (for-each (lambda (prog)
1226 (wrap-program (string-append out "/bin/" prog)
1227 `("PERL5LIB" ":" prefix
1228 (,(string-append (getenv "PERL5LIB") ":" out
1229 "/lib/perl5/site_perl")))))
1230 '("mimeopen" "mimetype")))
1232 (home-page "http://search.cpan.org/dist/File-MimeInfo/")
1233 (synopsis "Determine file type from the file name")
1235 "@code{File::Mimeinfo} can be used to determine the MIME type of a file.
1236 It tries to implement the Freedesktop specification for a shared MIME
1239 This package also contains two related utilities:
1242 @item @command{mimetype} determines a file's MIME type;
1243 @item @command{mimeopen} opens files in an appropriate program according to
1246 (license license:perl-license)))