Commit | Line | Data |
---|---|---|
0b0e11a9 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> | |
dac354fe | 3 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> |
e76008db | 4 | ;;; Copyright © 2015, 2017 Andy Wingo <wingo@pobox.com> |
aff0cce9 | 5 | ;;; Copyright © 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> |
15dc8ed5 | 6 | ;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net> |
177b4255 | 7 | ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com> |
959a7d73 | 8 | ;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il> |
3c8ba11a | 9 | ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net> |
5b9bdeb5 | 10 | ;;; Copyright © 2017 Nikita <nikita@n0.is> |
d4040f6e | 11 | ;;; Copyright © 2017, 2018 Mark H Weaver <mhw@netris.org> |
20c87138 | 12 | ;;; Copyright © 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com> |
a6037072 | 13 | ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com> |
ad64b09d | 14 | ;;; Copyright © 2017, 2020 Brendan Tildesley <mail@brendan.scot> |
239d3e9c | 15 | ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
4715f92e | 16 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
4163f246 | 17 | ;;; Copyright © 2018 Stefan Stefanović <stefanx2ovic@gmail.com> |
748ca12f | 18 | ;;; Copyright © 2019 Reza Alizadeh Majd <r.majd@pantherx.org> |
dc4fae11 | 19 | ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net> |
2e4bb893 | 20 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> |
c9aadd07 | 21 | ;;; Copyright © 2020 Rene Saavedra <pacoon@protonmail.com> |
5e2750fb | 22 | ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz> |
ef43f74c | 23 | ;;; Copyright © 2020 Anders Thuné <asse.97@gmail.com> |
0b0e11a9 AE |
24 | ;;; |
25 | ;;; This file is part of GNU Guix. | |
26 | ;;; | |
27 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
28 | ;;; under the terms of the GNU General Public License as published by | |
29 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
30 | ;;; your option) any later version. | |
31 | ;;; | |
32 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
33 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | ;;; GNU General Public License for more details. | |
36 | ;;; | |
37 | ;;; You should have received a copy of the GNU General Public License | |
38 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
39 | ||
40 | (define-module (gnu packages freedesktop) | |
366553e4 | 41 | #:use-module ((guix licenses) #:prefix license:) |
285c091e | 42 | #:use-module (guix utils) |
0b0e11a9 AE |
43 | #:use-module (guix packages) |
44 | #:use-module (guix download) | |
366553e4 | 45 | #:use-module (guix git-download) |
1f2e0601 | 46 | #:use-module (guix build-system cmake) |
dac354fe | 47 | #:use-module (guix build-system gnu) |
285c091e | 48 | #:use-module (guix build-system meson) |
b32596ec | 49 | #:use-module (guix build-system perl) |
e8444b26 | 50 | #:use-module (guix build-system python) |
e4b8feaf | 51 | #:use-module (guix build-system glib-or-gtk) |
d4040f6e | 52 | #:use-module (gnu packages) |
73bb984e EF |
53 | #:use-module (gnu packages acl) |
54 | #:use-module (gnu packages admin) | |
366553e4 | 55 | #:use-module (gnu packages autotools) |
2e4bb893 | 56 | #:use-module (gnu packages base) |
fe4e0b0a | 57 | #:use-module (gnu packages bash) |
73bb984e | 58 | #:use-module (gnu packages boost) |
ac257f12 | 59 | #:use-module (gnu packages check) |
73bb984e | 60 | #:use-module (gnu packages compression) |
03800de1 | 61 | #:use-module (gnu packages cryptsetup) |
03800de1 | 62 | #:use-module (gnu packages disk) |
73bb984e EF |
63 | #:use-module (gnu packages docbook) |
64 | #:use-module (gnu packages documentation) | |
91150437 | 65 | #:use-module (gnu packages fontutils) |
2e4bb893 | 66 | #:use-module (gnu packages gawk) |
366553e4 | 67 | #:use-module (gnu packages gettext) |
23635b2e | 68 | #:use-module (gnu packages ghostscript) |
24e051cb | 69 | #:use-module (gnu packages gl) |
73bb984e EF |
70 | #:use-module (gnu packages glib) ;intltool |
71 | #:use-module (gnu packages gnome) | |
366553e4 | 72 | #:use-module (gnu packages gperf) |
55ba649d | 73 | #:use-module (gnu packages graphviz) |
e6823279 | 74 | #:use-module (gnu packages gtk) |
23635b2e | 75 | #:use-module (gnu packages image) |
171ae35c | 76 | #:use-module (gnu packages libffi) |
24e051cb | 77 | #:use-module (gnu packages libunwind) |
dfb01bae | 78 | #:use-module (gnu packages libusb) |
73bb984e | 79 | #:use-module (gnu packages linux) |
ad64b09d | 80 | #:use-module (gnu packages man) |
73bb984e | 81 | #:use-module (gnu packages m4) |
aff0cce9 | 82 | #:use-module (gnu packages nss) |
91150437 | 83 | #:use-module (gnu packages package-management) |
825cebdb BT |
84 | #:use-module (gnu packages perl) |
85 | #:use-module (gnu packages perl-check) | |
73bb984e | 86 | #:use-module (gnu packages pkg-config) |
5d46c8b4 | 87 | #:use-module (gnu packages polkit) |
73bb984e | 88 | #:use-module (gnu packages python) |
d29d04c9 | 89 | #:use-module (gnu packages python-crypto) |
44d10b1f | 90 | #:use-module (gnu packages python-xyz) |
cd0322a3 | 91 | #:use-module (gnu packages sqlite) |
285c091e | 92 | #:use-module (gnu packages valgrind) |
23635b2e | 93 | #:use-module (gnu packages video) |
fa8a585e | 94 | #:use-module (gnu packages w3m) |
825cebdb | 95 | #:use-module (gnu packages web) |
73bb984e | 96 | #:use-module (gnu packages xdisorg) |
5d46c8b4 | 97 | #:use-module (gnu packages xml) |
285c091e MB |
98 | #:use-module (gnu packages xorg) |
99 | #:use-module (srfi srfi-1)) | |
0b0e11a9 | 100 | |
bd8a6a89 RG |
101 | (define-public libglib-testing |
102 | (package | |
103 | (name "libglib-testing") | |
104 | (version "0.1.0") | |
105 | (source | |
106 | (origin | |
107 | (method git-fetch) | |
108 | (uri (git-reference | |
109 | (url "https://gitlab.gnome.org/pwithnall/libglib-testing.git") | |
110 | (commit version))) | |
111 | (file-name (git-file-name name version)) | |
112 | (sha256 | |
113 | (base32 "0xmycsrlqyji6sc2i4wvp2gxf3897z65a57ygihfnpjpyl7zlwkr")))) | |
114 | (build-system meson-build-system) | |
115 | (arguments | |
116 | `(#:glib-or-gtk? #t | |
117 | #:phases | |
118 | (modify-phases %standard-phases | |
119 | (add-before | |
120 | 'check 'pre-check | |
121 | (lambda _ | |
122 | ;; The test suite requires a running dbus-daemon. | |
123 | (system "dbus-daemon &") | |
124 | ;; Don't fail on missing '/etc/machine-id'. | |
125 | (setenv "DBUS_FATAL_WARNINGS" "0") | |
126 | #t))))) | |
127 | (native-inputs | |
128 | `(("glib:bin" ,glib "bin") | |
129 | ("gobject-introspection" ,gobject-introspection) | |
130 | ("pkg-config" ,pkg-config) | |
131 | ("gtk-doc" ,gtk-doc))) | |
132 | (inputs | |
133 | `(("dbus" ,dbus) | |
134 | ("glib" ,glib))) | |
135 | (synopsis "Glib testing library") | |
136 | (description "Libglib-testing is a test library providing test harnesses and | |
137 | mock classes which complement the classes provided by GLib. It is intended to | |
138 | be used by any project which uses GLib and which wants to write internal unit | |
139 | tests.") | |
140 | (home-page "https://gitlab.gnome.org/pwithnall/libglib-testing") | |
141 | (license license:lgpl2.1+))) | |
142 | ||
08684798 RG |
143 | (define-public malcontent |
144 | (package | |
145 | (name "malcontent") | |
146 | (version "0.8.0") | |
147 | (source | |
148 | (origin | |
149 | (method git-fetch) | |
150 | (uri (git-reference | |
151 | (url "https://gitlab.freedesktop.org/pwithnall/malcontent.git") | |
152 | (commit version))) | |
153 | (file-name (git-file-name name version)) | |
154 | (sha256 | |
155 | (base32 "0vnf0pk516fwwh41v96c29l2i7h1pnwhivlkbf53kkx1q35g7lb3")))) | |
156 | (build-system meson-build-system) | |
157 | (arguments | |
158 | `(#:glib-or-gtk? #t | |
159 | #:phases | |
160 | (modify-phases %standard-phases | |
161 | ;; AppInfo not available inside build environment. | |
162 | (add-after 'unpack 'fix-tests | |
163 | (lambda _ | |
164 | (substitute* "libmalcontent/tests/app-filter.c" | |
165 | (("g_test_add_func \\(\"/app-filter/appinfo\", test_app_filter_appinfo\\);") | |
166 | "")) | |
167 | #t))))) | |
168 | (native-inputs | |
169 | `(("desktop-file-utils" ,desktop-file-utils) | |
170 | ("gettext" ,gettext-minimal) | |
171 | ("glib:bin" ,glib "bin") | |
172 | ("gobject-introspection" ,gobject-introspection) | |
173 | ("gtk+:bin" ,gtk+ "bin") | |
174 | ("itstool" ,itstool) | |
175 | ("libglib-testing" ,libglib-testing) | |
176 | ("libxml2" ,libxml2) | |
177 | ("pkg-config" ,pkg-config))) | |
178 | (inputs | |
179 | `(("accountsservice" ,accountsservice) | |
180 | ("appstream-glib" ,appstream-glib) | |
181 | ("dbus" ,dbus) | |
182 | ("flatpak" ,flatpak) | |
183 | ("glib" ,glib) | |
184 | ("gtk+" ,gtk+) | |
185 | ("libostree" ,libostree) | |
186 | ("linux-pam" ,linux-pam) | |
187 | ("polkit" ,polkit))) | |
188 | (synopsis "Parental controls support") | |
189 | (description "MalContent implements parental controls support which can | |
190 | be used by applications to filter or limit the access of child accounts to | |
191 | inappropriate content.") | |
192 | (home-page "https://gitlab.freedesktop.org/pwithnall/malcontent") | |
193 | (license | |
194 | (list | |
195 | license:gpl2+ | |
196 | license:lgpl2.1+)))) | |
197 | ||
0b0e11a9 AE |
198 | (define-public xdg-utils |
199 | (package | |
200 | (name "xdg-utils") | |
4d0f463d | 201 | (version "1.1.3") |
0b0e11a9 AE |
202 | (source |
203 | (origin | |
204 | (method url-fetch) | |
205 | (uri (string-append | |
5cc3096c | 206 | "https://portland.freedesktop.org/download/xdg-utils-" |
fa8a585e | 207 | version ".tar.gz")) |
0b0e11a9 AE |
208 | (sha256 |
209 | (base32 | |
4d0f463d | 210 | "1nai806smz3zcb2l5iny4x7li0fak0rzmjg6vlyhdqm8z25b166p")))) |
0b0e11a9 | 211 | (build-system gnu-build-system) |
fa8a585e MB |
212 | (native-inputs |
213 | `(("docbook-xsl" ,docbook-xsl) | |
214 | ("docbook-xml" ,docbook-xml-4.1.2) | |
215 | ("libxslt" ,libxslt) | |
216 | ("w3m" ,w3m) | |
217 | ("xmlto" ,xmlto))) | |
2e4bb893 JK |
218 | (inputs |
219 | `(("awk" ,gawk) | |
220 | ("coreutils" ,coreutils) | |
221 | ("grep" ,grep) | |
222 | ("inetutils" ,inetutils) ; xdg-screensaver uses `hostname' | |
223 | ("perl-file-mimeinfo" ,perl-file-mimeinfo) ; for mimeopen fallback | |
224 | ("sed" ,sed) | |
04c35737 | 225 | ("xprop" ,xprop) ; for Xfce detecting |
b3546174 | 226 | ("xset" ,xset))) ; for xdg-screensaver |
0b0e11a9 | 227 | (arguments |
fa8a585e | 228 | `(#:tests? #f ; no check target |
2e4bb893 JK |
229 | #:modules ((srfi srfi-26) |
230 | ,@%gnu-build-system-modules) | |
fa8a585e MB |
231 | #:phases |
232 | (modify-phases %standard-phases | |
233 | (add-after 'unpack 'patch-hardcoded-paths | |
234 | (lambda _ | |
235 | (substitute* "scripts/xdg-mime.in" | |
236 | (("/usr/bin/file") (which "file"))) | |
237 | (substitute* "scripts/xdg-open.in" | |
238 | (("/usr/bin/printf") (which "printf"))) | |
239 | #t)) | |
240 | (add-before 'build 'locate-catalog-files | |
241 | (lambda* (#:key inputs #:allow-other-keys) | |
242 | (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml") | |
243 | "/xml/dtd/docbook")) | |
244 | (xsldoc (string-append (assoc-ref inputs "docbook-xsl") | |
245 | "/xml/xsl/docbook-xsl-" | |
246 | ,(package-version docbook-xsl)))) | |
247 | (for-each (lambda (file) | |
248 | (substitute* file | |
249 | (("http://.*/docbookx\\.dtd") | |
250 | (string-append xmldoc "/docbookx.dtd")))) | |
251 | (find-files "scripts/desc" "\\.xml$")) | |
252 | (substitute* "scripts/Makefile" | |
253 | ;; Apparently `xmlto' does not bother to looks up the stylesheets | |
254 | ;; specified in the XML, unlike the above substitition. Instead it | |
255 | ;; uses a hard-coded URL. Work around it here, but if this is | |
256 | ;; common perhaps we should hardcode this path in xmlto itself. | |
257 | (("\\$\\(XMLTO\\) man") | |
258 | (string-append "$(XMLTO) -x " xsldoc | |
259 | "/manpages/docbook.xsl man"))) | |
260 | (setenv "STYLESHEET" | |
261 | (string-append xsldoc "/html/docbook.xsl")) | |
2e4bb893 JK |
262 | #t))) |
263 | (add-after 'install 'wrap-executables | |
264 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
265 | (let ((out (assoc-ref outputs "out"))) | |
266 | (with-directory-excursion (string-append out "/bin") | |
267 | (let ((path-ext | |
268 | (map (cute string-append <> "/bin") | |
269 | (cons out | |
270 | (map (cute assoc-ref inputs <>) | |
271 | '("awk" "coreutils" "grep" "inetutils" | |
272 | "perl-file-mimeinfo" "sed" "xprop" | |
273 | "xset")))))) | |
274 | (for-each (cute wrap-program <> | |
275 | `("PATH" ":" prefix ,path-ext)) | |
276 | (find-files ".")))) | |
fa8a585e MB |
277 | #t)))))) |
278 | (home-page "https://www.freedesktop.org/wiki/Software/xdg-utils/") | |
0b0e11a9 AE |
279 | (synopsis "Freedesktop.org scripts for desktop integration") |
280 | (description "The xdg-utils package is a set of simple scripts that | |
281 | provide basic desktop integration functions in the framework of the | |
282 | freedesktop.org project.") | |
366553e4 | 283 | (license license:expat))) |
dac354fe SB |
284 | |
285 | (define-public libinput | |
56451c78 | 286 | ;; Updating this will rebuild over 700 packages through libinput-minimal. |
dac354fe SB |
287 | (package |
288 | (name "libinput") | |
f020f8c4 | 289 | (version "1.15.5") |
dac354fe SB |
290 | (source (origin |
291 | (method url-fetch) | |
521b1d88 | 292 | (uri (string-append "https://freedesktop.org/software/libinput/" |
b4ed7c3e | 293 | "libinput-" version ".tar.xz")) |
dac354fe SB |
294 | (sha256 |
295 | (base32 | |
f020f8c4 | 296 | "15ww4jl3lcxyi8m8idg8canklbqv729gnwpkz7r98c1w8a7zq3m9")))) |
285c091e MB |
297 | (build-system meson-build-system) |
298 | (arguments | |
794c773d MB |
299 | `(#:configure-flags '("-Ddocumentation=false") |
300 | ||
301 | ;; XXX: Using 'debug' or 'debugoptimized' pulls in an additional test that | |
302 | ;; hangs, and the comments around it suggests that we should be using this | |
303 | ;; Meson target anyway. | |
304 | #:build-type "release")) | |
dac354fe | 305 | (native-inputs |
285c091e | 306 | `(("check" ,check) |
411c27e2 | 307 | ("pkg-config" ,pkg-config))) |
c6deabf9 MB |
308 | (inputs |
309 | `(("cairo" ,cairo) | |
310 | ("glib" ,glib) | |
311 | ("gtk+" ,gtk+) | |
7ca37da8 | 312 | ("libevdev" ,libevdev) |
285c091e MB |
313 | ("libwacom" ,libwacom) |
314 | ("mtdev" ,mtdev))) | |
0dbb6c2f MB |
315 | (propagated-inputs |
316 | `(;; libinput.h requires <libudev.h>, so propagate it. | |
317 | ("udev" ,eudev))) | |
6aabc87d | 318 | (home-page "https://www.freedesktop.org/wiki/Software/libinput/") |
dac354fe SB |
319 | (synopsis "Input devices handling library") |
320 | (description | |
321 | "Libinput is a library to handle input devices for display servers and | |
322 | other applications that need to directly deal with input devices.") | |
366553e4 RW |
323 | (license license:x11))) |
324 | ||
c38fb02e DC |
325 | (define-public libinput-minimal |
326 | (package (inherit libinput) | |
327 | (name "libinput-minimal") | |
c6deabf9 MB |
328 | (inputs |
329 | (fold alist-delete (package-inputs libinput) | |
330 | '("cairo" "glib" "gtk+" "libwacom"))) | |
c38fb02e | 331 | (arguments |
285c091e MB |
332 | (substitute-keyword-arguments (package-arguments libinput) |
333 | ((#:configure-flags flags ''()) | |
334 | `(cons* "-Dlibwacom=false" | |
335 | "-Ddebug-gui=false" ;requires gtk+@3 | |
336 | ,flags)))))) | |
c38fb02e | 337 | |
60a5617b AK |
338 | (define-public libxdg-basedir |
339 | (package | |
340 | (name "libxdg-basedir") | |
341 | (version "1.2.0") | |
342 | (source (origin | |
959a7d73 EF |
343 | (method git-fetch) |
344 | (uri (git-reference | |
345 | (url "https://github.com/devnev/libxdg-basedir") | |
346 | (commit (string-append name "-" version)))) | |
347 | (file-name (git-file-name name version)) | |
60a5617b AK |
348 | (sha256 |
349 | (base32 | |
959a7d73 | 350 | "12yz53ny5bi2dii3zwcr6b9ay0yy1g1xv13jg097k7gjligcq11m")))) |
60a5617b AK |
351 | (build-system gnu-build-system) |
352 | (arguments | |
353 | '(#:phases | |
354 | (modify-phases %standard-phases | |
15dc8ed5 | 355 | (add-after 'unpack 'patch-autogen |
60a5617b AK |
356 | (lambda _ |
357 | ;; Run 'configure' in its own phase, not now. | |
358 | (substitute* "autogen.sh" | |
359 | (("^.*\\./configure.*") "")) | |
15dc8ed5 | 360 | #t))))) |
60a5617b AK |
361 | (native-inputs |
362 | `(("autoconf" ,autoconf) | |
363 | ("automake" ,automake) | |
364 | ("libtool" ,libtool))) | |
365 | (home-page "https://github.com/devnev/libxdg-basedir") | |
366 | (synopsis "Implementation of the XDG Base Directory specification") | |
367 | (description | |
368 | "libxdg-basedir is a C library providing some functions to use with | |
369 | the freedesktop.org XDG Base Directory specification.") | |
370 | (license license:expat))) | |
371 | ||
366553e4 | 372 | (define-public elogind |
5c91962a AW |
373 | (package |
374 | (name "elogind") | |
c0d1f923 | 375 | (version "243.4") |
5c91962a | 376 | (source (origin |
1f9b1d3d SS |
377 | (method git-fetch) |
378 | (uri (git-reference | |
379 | (url "https://github.com/elogind/elogind") | |
380 | (commit (string-append "v" version)))) | |
381 | (file-name (git-file-name name version)) | |
5c91962a AW |
382 | (sha256 |
383 | (base32 | |
c0d1f923 | 384 | "141frvgyk4fafcxsix94qc0d9ffrwksld8lqq4hq6xsgjlvv0mrs")))) |
4163f246 | 385 | (build-system meson-build-system) |
5c91962a | 386 | (arguments |
4163f246 SS |
387 | `(#:configure-flags |
388 | (let* ((out (assoc-ref %outputs "out")) | |
389 | (sysconf (string-append out "/etc")) | |
390 | (libexec (string-append out "/libexec/elogind")) | |
391 | (dbuspolicy (string-append out "/etc/dbus-1/system.d")) | |
c0d1f923 | 392 | (shadow (assoc-ref %build-inputs "shadow")) |
4163f246 SS |
393 | (shepherd (assoc-ref %build-inputs "shepherd")) |
394 | (halt-path (string-append shepherd "/sbin/halt")) | |
395 | (kexec-path "") ;not available in Guix yet | |
c0d1f923 | 396 | (nologin-path (string-append shadow "/sbin/nologin")) |
4163f246 SS |
397 | (poweroff-path (string-append shepherd "/sbin/shutdown")) |
398 | (reboot-path (string-append shepherd "/sbin/reboot"))) | |
399 | (list | |
400 | (string-append "-Drootprefix=" out) | |
401 | (string-append "-Dsysconfdir=" sysconf) | |
402 | (string-append "-Drootlibexecdir=" libexec) | |
403 | (string-append "-Ddbuspolicydir=" dbuspolicy) | |
404 | (string-append "-Dc_link_args=-Wl,-rpath=" libexec) | |
405 | (string-append "-Dcpp_link_args=-Wl,-rpath=" libexec) | |
406 | (string-append "-Dhalt-path=" halt-path) | |
407 | (string-append "-Dkexec-path=" kexec-path) | |
408 | (string-append "-Dpoweroff-path=" poweroff-path) | |
409 | (string-append "-Dreboot-path=" reboot-path) | |
c0d1f923 | 410 | (string-append "-Dnologin-path=" nologin-path) |
4163f246 | 411 | "-Dcgroup-controller=elogind" |
c0d1f923 | 412 | "-Dman=true" |
4163f246 | 413 | ;; Disable some tests. |
4163f246 | 414 | "-Dslow-tests=false")) |
fa67d565 RW |
415 | #:phases |
416 | (modify-phases %standard-phases | |
4163f246 | 417 | (add-after 'unpack 'fix-pkttyagent-path |
fa67d565 | 418 | (lambda _ |
4163f246 SS |
419 | (substitute* "meson.build" |
420 | (("join_paths\\(bindir, 'pkttyagent'\\)") | |
421 | "'\"/run/current-system/profile/bin/pkttyagent\"'")) | |
3f54fd1e | 422 | #t)) |
c0d1f923 MB |
423 | (add-after 'unpack 'adjust-dbus-socket-address |
424 | (lambda _ | |
425 | ;; Look for the D-Bus socket in /var/run instead of /run. Remove | |
426 | ;; this for versions > 243.4. | |
427 | (substitute* "src/libelogind/sd-bus/bus-internal.h" | |
428 | (("=/run/dbus/system_bus_socket") | |
429 | "=/var/run/dbus/system_bus_socket")) | |
430 | #t)) | |
20c87138 MB |
431 | (add-after 'unpack 'adjust-tests |
432 | (lambda _ | |
433 | ;; This test tries to copy some bytes from /usr/lib/os-release, | |
434 | ;; which does not exist in the build container. Choose something | |
435 | ;; more likely to be available. | |
436 | (substitute* "src/test/test-copy.c" | |
437 | (("/usr/lib/os-release") | |
438 | "/etc/passwd")) | |
439 | ;; Use a shebang that works in the build container. | |
440 | (substitute* "src/test/test-exec-util.c" | |
441 | (("#!/bin/sh") | |
442 | (string-append "#!" (which "sh")))) | |
443 | ;; Do not look for files or directories that do not exist. | |
444 | (substitute* "src/test/test-fs-util.c" | |
445 | (("usr") "etc") | |
446 | (("/etc/machine-id") "/etc/passwd")) | |
447 | ;; FIXME: Why is sd_id128_get_machine_app_specific failing. | |
448 | ;; Disable for now by hooking into the kernel support check. | |
449 | (substitute* "src/test/test-id128.c" | |
450 | (("if \\(r == -EOPNOTSUPP\\)") | |
451 | "if (1)")) | |
452 | ;; This test expects that /sys is available. | |
453 | (substitute* "src/test/test-mountpoint-util.c" | |
454 | (("assert_se\\(path_is_mount_point\\(\"/sys.*") | |
455 | "")) | |
456 | ;; /bin/sh does not exist in the build container. | |
457 | (substitute* "src/test/test-path-util.c" | |
458 | (("/bin/sh") (which "sh"))) | |
459 | ;; This test uses sd_device_new_from_syspath to allocate a | |
460 | ;; loopback device, but that fails because /sys is unavailable. | |
461 | (substitute* "src/libelogind/sd-device/test-sd-device-thread.c" | |
462 | ((".*sd_device_new_from_syspath.*/sys/class/net/lo.*") | |
463 | "return 77;")) | |
464 | ;; Most of these tests require cgroups or an actual live | |
465 | ;; logind system so that it can flicker the monitor, etc. | |
466 | ;; Just skip it until a more narrow selection can be made. | |
467 | (substitute* "src/libelogind/sd-login/test-login.c" | |
468 | (("r = sd_pid_get_slice.*") | |
469 | "return 77;")) | |
470 | #t)) | |
4163f246 | 471 | (add-after 'unpack 'change-pid-file-path |
f8446df6 | 472 | (lambda _ |
4163f246 SS |
473 | (substitute* "src/login/elogind.c" |
474 | (("\"/run/elogind.pid\"") "\"/run/systemd/elogind.pid\"")) | |
f8446df6 | 475 | #t))))) |
5c91962a | 476 | (native-inputs |
4163f246 SS |
477 | `(("docbook-xml" ,docbook-xml) |
478 | ("docbook-xml-4.2" ,docbook-xml-4.2) | |
5c91962a | 479 | ("docbook-xsl" ,docbook-xsl) |
4163f246 SS |
480 | ("gettext" ,gettext-minimal) |
481 | ("gperf" ,gperf) | |
5c91962a | 482 | ("libxml2" ,libxml2) ;for XML_CATALOG_FILES |
4163f246 | 483 | ("m4" ,m4) |
b3546174 | 484 | ("pkg-config" ,pkg-config) |
4163f246 SS |
485 | ("python" ,python) |
486 | ("xsltproc" ,libxslt))) | |
5c91962a AW |
487 | (inputs |
488 | `(("linux-pam" ,linux-pam) | |
5c91962a | 489 | ("libcap" ,libcap) |
c0d1f923 | 490 | ("shadow" ,shadow) ;for 'nologin' |
d312a832 | 491 | ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked |
1d19bc11 | 492 | ;when pressing the power button |
5c91962a | 493 | ("dbus" ,dbus) |
95d7d0c5 CM |
494 | ("eudev" ,eudev) |
495 | ("acl" ,acl))) ;to add individual users to ACLs on /dev nodes | |
fa67d565 | 496 | (home-page "https://github.com/elogind/elogind") |
5c91962a AW |
497 | (synopsis "User, seat, and session management service") |
498 | (description "Elogind is the systemd project's \"logind\" service, | |
366553e4 RW |
499 | extracted out as a separate project. Elogind integrates with PAM to provide |
500 | the org.freedesktop.login1 interface over the system bus, allowing other parts | |
501 | of a the system to know what users are logged in, and where.") | |
5c91962a | 502 | (license license:lgpl2.1+))) |
e8444b26 | 503 | |
f63861b5 LC |
504 | (define-public localed |
505 | ;; XXX: This package is extracted from systemd but we retain so little of it | |
506 | ;; that it would make more sense to maintain a fork of the bits we need. | |
507 | (package | |
508 | (name "localed") | |
509 | (version "241") | |
510 | (source (origin | |
511 | (method git-fetch) | |
512 | (uri (git-reference | |
513 | (url "https://github.com/systemd/systemd") | |
514 | (commit (string-append "v" version)))) | |
515 | (sha256 | |
516 | (base32 | |
517 | "0sy91flzbhpq58k7v0294pa2gxpr0bk27rcnxlbhk2fi6nc51d28")) | |
518 | (file-name (git-file-name name version)) | |
519 | (modules '((guix build utils))) | |
520 | (snippet | |
521 | '(begin | |
522 | ;; Connect to the right location for our D-Bus daemon. | |
523 | (substitute* '("src/basic/def.h" | |
524 | "src/libsystemd/sd-bus/sd-bus.c" | |
525 | "src/stdio-bridge/stdio-bridge.c") | |
526 | (("/run/dbus/system_bus_socket") | |
527 | "/var/run/dbus/system_bus_socket")) | |
528 | ||
529 | ;; Don't insist on having systemd as PID 1 (otherwise | |
530 | ;; 'localectl' would exit without doing anything.) | |
531 | (substitute* "src/shared/bus-util.c" | |
532 | (("sd_booted\\(\\)") | |
533 | "(1)")) | |
534 | #t)) | |
535 | (patches (search-patches "localed-xorg-keyboard.patch")))) | |
536 | (build-system meson-build-system) | |
537 | (arguments | |
538 | ;; Try to build as little as possible (list of components taken from the | |
539 | ;; top-level 'meson.build' file.) | |
540 | (let ((components '("utmp" | |
541 | "hibernate" | |
542 | "environment-d" | |
543 | "binfmt" | |
544 | "coredump" | |
545 | "resolve" | |
546 | "logind" | |
547 | "hostnamed" | |
548 | "localed" | |
549 | "machined" | |
550 | "portabled" | |
551 | "networkd" | |
552 | "timedated" | |
553 | "timesyncd" | |
554 | "firstboot" | |
555 | "randomseed" | |
556 | "backlight" | |
557 | "vconsole" | |
558 | "quotacheck" | |
559 | "sysusers" | |
560 | "tmpfiles" | |
561 | "hwdb" | |
562 | "rfkill" | |
563 | "ldconfig" | |
564 | "efi" | |
565 | "tpm" | |
566 | "ima" | |
567 | "smack" | |
568 | "gshadow" | |
569 | "idn" | |
570 | "nss-myhostname" | |
571 | "nss-systemd"))) | |
572 | `(#:configure-flags ',(map (lambda (component) | |
573 | (string-append "-D" component "=false")) | |
574 | (delete "localed" components)) | |
575 | ||
576 | ;; It doesn't make sense to test all of systemd. | |
577 | #:tests? #f | |
578 | ||
579 | #:phases (modify-phases %standard-phases | |
580 | (add-after 'unpack 'set-xkeyboard-config-file-name | |
581 | (lambda* (#:key inputs #:allow-other-keys) | |
582 | ;; Set the file name to xkeyboard-config and kbd. | |
583 | ;; This is used by 'localectl list-x11-keymap-layouts' | |
584 | ;; and similar functions. | |
585 | (let ((xkb (assoc-ref inputs "xkeyboard-config")) | |
586 | (kbd (assoc-ref inputs "kbd"))) | |
587 | (substitute* "src/locale/localectl.c" | |
588 | (("/usr/share/X11/xkb/rules") | |
589 | (string-append xkb "/share/X11/xkb/rules"))) | |
590 | (substitute* "src/basic/def.h" | |
591 | (("/usr/share/keymaps") | |
592 | (string-append kbd "/share/keymaps"))) | |
593 | #t))) | |
594 | (replace 'install | |
595 | (lambda* (#:key outputs #:allow-other-keys) | |
596 | ;; Install 'localed', the D-Bus and polkit files, and | |
597 | ;; 'localectl'. | |
598 | (let* ((out (assoc-ref outputs "out")) | |
599 | (libexec (string-append out "/libexec/localed")) | |
600 | (bin (string-append out "/bin")) | |
601 | (lib (string-append out "/lib")) | |
602 | (dbus (string-append out | |
603 | "/share/dbus-1/system-services")) | |
604 | (conf (string-append out | |
605 | "/etc/dbus-1/system.d/")) | |
606 | (polkit (string-append out | |
607 | "/share/polkit-1/actions")) | |
608 | (data (string-append out "/share/systemd"))) | |
609 | (define (source-file regexp) | |
610 | (car (find-files ".." regexp))) | |
611 | ||
612 | (mkdir-p libexec) | |
613 | (copy-file "systemd-localed" | |
614 | (string-append libexec "/localed")) | |
615 | (install-file "localectl" bin) | |
616 | ||
617 | (let ((service-file (source-file | |
618 | "\\.locale1\\.service$"))) | |
619 | (substitute* service-file | |
620 | (("^Exec=.*$") | |
621 | (string-append "Exec=" libexec "/localed\n"))) | |
622 | (install-file service-file dbus)) | |
623 | (install-file (source-file "\\.locale1\\.policy$") | |
624 | polkit) | |
625 | (install-file (source-file "\\.locale1\\.conf$") | |
626 | conf) | |
627 | (for-each (lambda (file) | |
628 | (install-file file lib)) | |
629 | (find-files "src/shared" | |
630 | "libsystemd-shared.*\\.so")) | |
631 | ||
632 | (for-each (lambda (map) | |
633 | (install-file map data)) | |
634 | (find-files ".." "^(kbd-model-map|language-fallback-map)$")) | |
635 | #t))))))) | |
636 | (native-inputs (package-native-inputs elogind)) | |
bb93042c | 637 | (inputs `(("libmount" ,util-linux "lib") |
f63861b5 LC |
638 | ("xkeyboard-config" ,xkeyboard-config) |
639 | ("kbd" ,kbd) | |
640 | ,@(package-inputs elogind))) | |
641 | (home-page "https://www.freedesktop.org/wiki/Software/systemd/localed/") | |
642 | (synopsis "Control the system locale and keyboard layout") | |
643 | (description | |
644 | "Localed is a tiny daemon that can be used to control the system locale | |
645 | and keyboard mapping from user programs. It is used among other things by the | |
646 | GNOME Shell. The @command{localectl} command-line tool allows you to interact | |
647 | with localed. This package is extracted from the broader systemd package.") | |
648 | (license license:lgpl2.1+))) | |
649 | ||
fe4e0b0a CB |
650 | (define-public packagekit |
651 | (package | |
652 | (name "packagekit") | |
ba0b9d41 | 653 | (version "1.1.13") |
fe4e0b0a CB |
654 | (source (origin |
655 | (method url-fetch) | |
656 | (uri (string-append | |
657 | "https://www.freedesktop.org/software/" | |
658 | "PackageKit/releases/" | |
659 | "PackageKit-" version ".tar.xz")) | |
660 | (sha256 | |
661 | (base32 | |
ba0b9d41 | 662 | "1dr1laic65ld95abp2yxbwvijnngh0dwyb1x49x4wjm5rhq43dl8")))) |
fe4e0b0a CB |
663 | (build-system gnu-build-system) |
664 | (arguments | |
665 | `(#:tests? #f | |
666 | #:make-flags (list (string-append "BASH_COMPLETIONS_DIR=" | |
667 | %output "/etc/bash_completion.d")) | |
668 | #:configure-flags | |
669 | '("--disable-systemd"))) | |
670 | (native-inputs | |
671 | `(("intltool" ,intltool) | |
672 | ("pkg-config" ,pkg-config) | |
673 | ("python" ,python-wrapper) | |
674 | ("glib:bin" ,glib "bin"))) | |
675 | (inputs | |
676 | `(("glib" ,glib) | |
c695fb76 | 677 | ("bash-completion" ,bash-completion) |
fe4e0b0a CB |
678 | ("polkit" ,polkit))) |
679 | (propagated-inputs | |
680 | `(("sqlite" ,sqlite))) | |
681 | (home-page "https://www.freedesktop.org/software/PackageKit/") | |
682 | (synopsis "API for package management, through D-Bus") | |
683 | (description | |
684 | "PackageKit provides a way of performing package management tasks, | |
685 | e.g. updating, removing and installing software. Through supporting many | |
686 | backends, PackageKit can perform these tasks using the appropriate package | |
687 | manager for the current system.") | |
688 | (license license:gpl2+))) | |
689 | ||
e8444b26 RW |
690 | (define-public python-pyxdg |
691 | (package | |
692 | (name "python-pyxdg") | |
693 | (version "0.25") | |
694 | (source | |
695 | (origin | |
696 | (method url-fetch) | |
8f60e533 | 697 | (uri (pypi-uri "pyxdg" version)) |
e8444b26 RW |
698 | (sha256 |
699 | (base32 | |
700 | "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41")))) | |
701 | (build-system python-build-system) | |
702 | (arguments | |
703 | '(#:phases | |
dc1d3cde KK |
704 | (modify-phases %standard-phases |
705 | (replace 'check | |
706 | (lambda* (#:key inputs #:allow-other-keys) | |
707 | (setenv "XDG_DATA_DIRS" | |
708 | (string-append (assoc-ref inputs "shared-mime-info") | |
709 | "/share/")) | |
710 | (substitute* "test/test-icon.py" | |
711 | (("/usr/share/icons/hicolor/index.theme") | |
712 | (string-append (assoc-ref inputs "hicolor-icon-theme") | |
ffcff272 MB |
713 | "/share/icons/hicolor/index.theme")) |
714 | ;; FIXME: This test fails because the theme contains the unknown | |
715 | ;; key "Scale". | |
716 | (("theme.validate\\(\\)") "#")) | |
e8444b26 | 717 | |
dc1d3cde KK |
718 | ;; One test fails with: |
719 | ;; AssertionError: 'x-apple-ios-png' != 'png' | |
720 | (substitute* "test/test-mime.py" | |
721 | (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#")) | |
10ee03c1 | 722 | (invoke "nosetests" "-v")))))) |
e8444b26 | 723 | (native-inputs |
10ee03c1 TGR |
724 | ;; For tests. |
725 | `(("shared-mime-info" ,shared-mime-info) | |
726 | ("hicolor-icon-theme" ,hicolor-icon-theme) | |
f3b98f4f | 727 | ("python-nose" ,python-nose))) |
57e7d748 | 728 | (home-page "https://www.freedesktop.org/wiki/Software/pyxdg") |
e8444b26 RW |
729 | (synopsis "Implementations of freedesktop.org standards in Python") |
730 | (description | |
731 | "PyXDG is a collection of implementations of freedesktop.org standards in | |
e881752c | 732 | Python.") |
e8444b26 RW |
733 | (license license:lgpl2.0))) |
734 | ||
735 | (define-public python2-pyxdg | |
736 | (package-with-python2 python-pyxdg)) | |
6178d947 SB |
737 | |
738 | (define-public wayland | |
739 | (package | |
740 | (name "wayland") | |
a6037072 | 741 | (version "1.17.0") |
6178d947 SB |
742 | (source (origin |
743 | (method url-fetch) | |
5cc3096c | 744 | (uri (string-append "https://wayland.freedesktop.org/releases/" |
6178d947 SB |
745 | name "-" version ".tar.xz")) |
746 | (sha256 | |
747 | (base32 | |
a6037072 | 748 | "194ibzwpdcn6fvk4xngr4bf5axpciwg2bj82fdvz88kfmjw13akj")))) |
6178d947 | 749 | (build-system gnu-build-system) |
28a96f2a | 750 | (arguments |
62a91d2e | 751 | `(#:parallel-tests? #f)) |
6178d947 SB |
752 | (native-inputs |
753 | `(("doxygen" ,doxygen) | |
55ba649d | 754 | ("graphviz" ,graphviz) |
6178d947 SB |
755 | ("pkg-config" ,pkg-config) |
756 | ("xmlto" ,xmlto) | |
757 | ("xsltproc" ,libxslt))) | |
758 | (inputs | |
759 | `(("docbook-xml" ,docbook-xml) | |
760 | ("docbook-xsl" ,docbook-xsl) | |
761 | ("expat" ,expat) | |
762 | ("libffi" ,libffi) | |
763 | ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES | |
9012e118 | 764 | (home-page "https://wayland.freedesktop.org/") |
6178d947 SB |
765 | (synopsis "Display server protocol") |
766 | (description | |
767 | "Wayland is a protocol for a compositor to talk to its clients as well as | |
768 | a C library implementation of that protocol. The compositor can be a standalone | |
769 | display server running on Linux kernel modesetting and evdev input devices, an X | |
770 | application, or a wayland client itself. The clients can be traditional | |
771 | applications, X servers (rootless or fullscreen) or other display servers.") | |
772 | (license license:x11))) | |
177b4255 | 773 | |
eca4c011 DC |
774 | (define-public wayland-protocols |
775 | (package | |
776 | (name "wayland-protocols") | |
5ceb1a3d | 777 | (version "1.18") |
eca4c011 DC |
778 | (source (origin |
779 | (method url-fetch) | |
780 | (uri (string-append | |
781 | "https://wayland.freedesktop.org/releases/" | |
782 | "wayland-protocols-" version ".tar.xz")) | |
783 | (sha256 | |
784 | (base32 | |
5ceb1a3d | 785 | "1cvl93h83ymbfhb567jv5gzyq08181w7c46rsw4xqqqpcvkvfwrx")))) |
eca4c011 DC |
786 | (build-system gnu-build-system) |
787 | (inputs | |
788 | `(("wayland" ,wayland))) | |
789 | (native-inputs | |
790 | `(("pkg-config" ,pkg-config))) | |
791 | (synopsis "Wayland protocols") | |
792 | (description "This package contains XML definitions of the Wayland protocols.") | |
793 | (home-page "https://wayland.freedesktop.org") | |
794 | (license license:expat))) | |
795 | ||
1f2e0601 MB |
796 | (define-public waylandpp |
797 | (package | |
798 | (name "waylandpp") | |
bdc801e1 | 799 | (version "0.2.7") |
1f2e0601 MB |
800 | (home-page "https://github.com/NilsBrause/waylandpp") |
801 | (source (origin | |
802 | (method git-fetch) | |
803 | (uri (git-reference (url home-page) (commit version))) | |
f1d4d79f | 804 | (file-name (git-file-name name version)) |
1f2e0601 MB |
805 | (sha256 |
806 | (base32 | |
bdc801e1 | 807 | "1r4m0xhvwpcqxrqvp3hz1bzlkxqj2jiymd5r6hj8xjzz536hyprz")))) |
1f2e0601 MB |
808 | (build-system cmake-build-system) |
809 | (arguments | |
810 | `(#:tests? #f)) ;no tests | |
811 | (native-inputs | |
812 | `(("pkg-config" ,pkg-config))) | |
813 | (inputs | |
814 | `(("mesa" ,mesa) | |
815 | ("pugixml" ,pugixml))) | |
816 | (propagated-inputs | |
817 | `(;; In Requires of the .pc files. | |
818 | ("wayland" ,wayland))) | |
819 | (synopsis "Wayland C++ bindings") | |
820 | (description | |
821 | "This package provides C++ bindings for the Wayland display protocol.") | |
822 | (license license:bsd-2))) | |
823 | ||
24e051cb DC |
824 | (define-public weston |
825 | (package | |
826 | (name "weston") | |
38c8437e | 827 | (version "6.0.1") |
24e051cb DC |
828 | (source (origin |
829 | (method url-fetch) | |
830 | (uri (string-append | |
831 | "https://wayland.freedesktop.org/releases/" | |
832 | "weston-" version ".tar.xz")) | |
833 | (sha256 | |
834 | (base32 | |
38c8437e | 835 | "1d2m658ll8x7prlsfk71qgw89c7dz6y7d6nndfxwl49fmrd6sbxz")))) |
23635b2e | 836 | (build-system meson-build-system) |
24e051cb DC |
837 | (native-inputs |
838 | `(("pkg-config" ,pkg-config) | |
839 | ("xorg-server" ,xorg-server))) | |
840 | (inputs | |
841 | `(("cairo" ,cairo-xcb) | |
23635b2e | 842 | ("colord" ,colord) |
24e051cb DC |
843 | ("dbus" ,dbus) |
844 | ("elogind" ,elogind) | |
23635b2e RH |
845 | ("lcms" ,lcms) |
846 | ("libevdev" ,libevdev) | |
24e051cb | 847 | ("libinput" ,libinput-minimal) |
4bd428a7 | 848 | ("libjpeg" ,libjpeg-turbo) |
24e051cb | 849 | ("libunwind" ,libunwind) |
23635b2e RH |
850 | ("libva" ,libva) |
851 | ("libwebp" ,libwebp) | |
24e051cb DC |
852 | ("libxcursor" ,libxcursor) |
853 | ("libxkbcommon" ,libxkbcommon) | |
23635b2e | 854 | ("libxml2" ,libxml2) |
24e051cb DC |
855 | ("mesa" ,mesa) |
856 | ("mtdev" ,mtdev) | |
857 | ("linux-pam" ,linux-pam) | |
23635b2e | 858 | ("pango" ,pango) |
24e051cb DC |
859 | ("wayland" ,wayland) |
860 | ("wayland-protocols" ,wayland-protocols) | |
861 | ("xorg-server-xwayland" ,xorg-server-xwayland))) | |
862 | (arguments | |
863 | `(#:configure-flags | |
23635b2e RH |
864 | (list "-Dbackend-rdp=false" ; TODO: Enable. |
865 | "-Dremoting=false" ; TODO: Enable. | |
866 | "-Dsimple-dmabuf-drm=auto" | |
867 | "-Dsystemd=false" | |
868 | (string-append "-Dxwayland-path=" | |
24e051cb DC |
869 | (assoc-ref %build-inputs "xorg-server-xwayland") |
870 | "/bin/Xwayland")) | |
26bcd2a2 | 871 | #:parallel-tests? #f ; Parallel tests cause failures. |
24e051cb DC |
872 | #:phases |
873 | (modify-phases %standard-phases | |
874 | (add-before 'configure 'use-elogind | |
875 | (lambda _ | |
876 | ;; Use elogind instead of systemd | |
23635b2e RH |
877 | (substitute* "libweston/meson.build" |
878 | (("libsystemd-login") "libelogind")) | |
b23992af MB |
879 | (substitute* '("libweston/launcher-logind.c" |
880 | "libweston/weston-launch.c") | |
24e051cb | 881 | (("#include <systemd/sd-login.h>") |
b23992af MB |
882 | "#include <elogind/sd-login.h>")) |
883 | #t)) | |
24e051cb DC |
884 | (add-after 'configure 'patch-confdefs.h |
885 | (lambda _ | |
23635b2e RH |
886 | (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >> confdefs.h") |
887 | #t)) | |
24e051cb DC |
888 | (add-before 'check 'setup |
889 | (lambda _ | |
890 | (setenv "HOME" (getcwd)) | |
891 | (setenv "XDG_RUNTIME_DIR" (getcwd)) | |
892 | #t)) | |
893 | (add-before 'check 'start-xorg-server | |
894 | (lambda* (#:key inputs #:allow-other-keys) | |
895 | ;; The test suite requires a running X server. | |
896 | (system (string-append (assoc-ref inputs "xorg-server") | |
897 | "/bin/Xvfb :1 &")) | |
898 | (setenv "DISPLAY" ":1") | |
899 | #t))))) | |
900 | (home-page "https://wayland.freedesktop.org") | |
901 | (synopsis "Reference implementation of a Wayland compositor") | |
902 | (description "Weston is the reference implementation of a Wayland | |
903 | compositor, and a useful compositor in its own right. | |
904 | ||
905 | A Wayland compositor allows applications to render to a shared offscreen | |
906 | buffer using OpenGL ES. The compositor then culls the hidden parts and | |
907 | composes the final output. A Wayland compositor is essentially a | |
908 | multiplexer to the KMS/DRM Linux kernel devices.") | |
909 | (license license:expat))) | |
910 | ||
ad64b09d BT |
911 | (define-public wev |
912 | ;; There simple tool has no version or release yet. | |
913 | (let ((commit "cee3dfb2a8b40ee303611018c68ae182d84a7f46")) | |
914 | (package | |
915 | (name "wev") | |
916 | (version (string-append "2020-02-06-" (string-take commit 8))) | |
917 | (source (origin | |
918 | (method git-fetch) | |
919 | (uri (git-reference | |
920 | (url "https://git.sr.ht/~sircmpwn/wev") | |
921 | (commit commit))) | |
922 | (file-name (git-file-name name version)) | |
923 | (sha256 | |
924 | (base32 | |
925 | "0l71v3fzgiiv6xkk365q1l08qvaymxd4kpaya6r2g8yzkr7i2hms")))) | |
926 | (build-system gnu-build-system) | |
927 | (arguments | |
928 | `(#:tests? #f ; no tests | |
929 | #:make-flags | |
930 | (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
931 | #:phases | |
932 | (modify-phases %standard-phases | |
933 | (delete 'configure)))) | |
934 | (native-inputs | |
935 | `(("pkg-config" ,pkg-config) | |
936 | ("scdoc" ,scdoc))) | |
937 | (inputs | |
938 | `(("libxkbcommon" ,libxkbcommon) | |
939 | ("wayland" ,wayland) | |
940 | ("wayland-protocols" ,wayland-protocols))) | |
941 | (home-page "https://git.sr.ht/~sircmpwn/wev") | |
942 | (synopsis "Wayland event viewer") | |
943 | (description "Wev is a tool that opens a window, printing all events | |
944 | sent to a Wayland window, such as key presses. It is analogous to the X11 tool | |
945 | XEv.") | |
946 | (license license:expat)))) | |
947 | ||
177b4255 DH |
948 | (define-public exempi |
949 | (package | |
950 | (name "exempi") | |
28d3f49e | 951 | (version "2.5.2") |
177b4255 DH |
952 | (source (origin |
953 | (method url-fetch) | |
954 | (uri (string-append | |
5cc3096c | 955 | "https://libopenraw.freedesktop.org/download/" |
177b4255 DH |
956 | name "-" version ".tar.bz2")) |
957 | (sha256 | |
958 | (base32 | |
28d3f49e | 959 | "1mdfxb36p8251n5m7l55gx3fcqpk46yz9v568xfr8igxmqa47xaj")))) |
177b4255 DH |
960 | (build-system gnu-build-system) |
961 | (arguments | |
962 | `(#:configure-flags (list (string-append "--with-boost=" | |
cd533cb4 MB |
963 | (assoc-ref %build-inputs "boost"))) |
964 | #:phases | |
965 | (modify-phases %standard-phases | |
966 | (add-after 'install 'remove-static-library | |
967 | (lambda* (#:key outputs #:allow-other-keys) | |
968 | ;; XXX: Some tests fail to build with --disable-static due to | |
969 | ;; symbols not being visible in the shared library: | |
970 | ;; <https://gitlab.freedesktop.org/libopenraw/exempi/-/issues/17>. | |
971 | ;; Simply delete the static library instead to save ~4.3 MiB. | |
972 | (delete-file (string-append (assoc-ref outputs "out") | |
973 | "/lib/libexempi.a")) | |
974 | #t))))) | |
177b4255 DH |
975 | (native-inputs |
976 | `(("boost" ,boost))) ; tests | |
977 | (inputs | |
978 | `(("expat" ,expat) | |
979 | ("zlib" ,zlib))) | |
c96ec771 | 980 | (home-page "https://libopenraw.freedesktop.org/exempi/") |
177b4255 DH |
981 | (synopsis "XMP metadata handling library") |
982 | (description "Exempi is an implementation of the Extensible Metadata | |
0b042591 TGR |
983 | Platform (@dfn{XMP}), which enables embedding metadata in PDF and image |
984 | formats.") | |
177b4255 | 985 | (license license:bsd-3))) |
cfbbff31 SB |
986 | |
987 | (define-public libatasmart | |
988 | (package | |
989 | (name "libatasmart") | |
990 | (version "0.19") | |
991 | (source (origin | |
992 | (method url-fetch) | |
993 | (uri (string-append "http://0pointer.de/public/" | |
994 | name "-" version ".tar.xz")) | |
995 | (sha256 | |
996 | (base32 | |
997 | "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31")))) | |
998 | (build-system gnu-build-system) | |
999 | (native-inputs | |
1000 | `(("pkg-config" ,pkg-config))) | |
1001 | (inputs | |
1002 | `(("udev" ,eudev))) | |
1003 | (home-page "http://0pointer.de/blog/projects/being-smart.html") | |
1004 | (synopsis "ATA S.M.A.R.T. reading and parsing library") | |
1005 | (description | |
1006 | "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring, | |
1007 | Analysis and Reporting Technology) functionality.") | |
1008 | (license license:lgpl2.1+))) | |
171ae35c SB |
1009 | |
1010 | (define-public udisks | |
1011 | (package | |
1012 | (name "udisks") | |
59b7689e | 1013 | (version "2.8.4") |
171ae35c SB |
1014 | (source (origin |
1015 | (method url-fetch) | |
92eb7aff PN |
1016 | (uri (string-append |
1017 | "https://github.com/storaged-project/udisks/releases/download/udisks-" | |
1018 | version "/udisks-" version ".tar.bz2")) | |
171ae35c SB |
1019 | (sha256 |
1020 | (base32 | |
59b7689e | 1021 | "06cq52kp1nyy15qzylywy9s7hhhqc45k0s3y68crf0zsmjyng0yj")))) |
171ae35c SB |
1022 | (build-system gnu-build-system) |
1023 | (native-inputs | |
aef5055f MC |
1024 | `(("docbook-xml" ,docbook-xml-4.3) ; to build the manpages |
1025 | ("docbook-xsl" ,docbook-xsl) | |
92eb7aff PN |
1026 | ("glib:bin" ,glib "bin") ; for glib-mkenums |
1027 | ("gnome-common" ,gnome-common) ; TODO: Why is this needed? | |
171ae35c | 1028 | ("gobject-introspection" ,gobject-introspection) |
92eb7aff | 1029 | ("gtk-doc" ,gtk-doc) |
171ae35c SB |
1030 | ("intltool" ,intltool) |
1031 | ("pkg-config" ,pkg-config) | |
1032 | ("xsltproc" ,libxslt))) | |
1033 | (propagated-inputs | |
1034 | `(("glib" ,glib))) ; required by udisks2.pc | |
1035 | (inputs | |
1036 | `(("acl" ,acl) | |
92eb7aff | 1037 | ("cryptsetup" ,cryptsetup) |
171ae35c | 1038 | ("libatasmart" ,libatasmart) |
92eb7aff | 1039 | ("libblockdev" ,libblockdev) |
171ae35c | 1040 | ("libgudev" ,libgudev) |
5905114a | 1041 | ("polkit" ,polkit) |
92eb7aff | 1042 | ("util-linux" ,util-linux))) |
daa3b04c LC |
1043 | (outputs '("out" |
1044 | "doc")) ;5 MiB of gtk-doc HTML | |
171ae35c SB |
1045 | (arguments |
1046 | `(#:tests? #f ; requiring system message dbus | |
c0351459 | 1047 | #:disallowed-references ("doc") ;enforce separation of "doc" |
171ae35c | 1048 | #:configure-flags |
aef5055f | 1049 | (list "--enable-man" |
92eb7aff | 1050 | "--enable-available-modules" ; Such as lvm2, btrfs, etc. |
171ae35c | 1051 | "--localstatedir=/var" |
35263cd8 | 1052 | "--enable-fhs-media" ;mount devices in /media, not /run/media |
daa3b04c LC |
1053 | (string-append "--with-html-dir=" |
1054 | (assoc-ref %outputs "doc") | |
1055 | "/share/doc/udisks/html") | |
171ae35c | 1056 | (string-append "--with-udevdir=" %output "/lib/udev")) |
aef5055f MC |
1057 | #:make-flags |
1058 | (let* ((docbook-xsl-name-version ,(string-append | |
1059 | (package-name docbook-xsl) "-" | |
1060 | (package-version docbook-xsl))) | |
1061 | (docbook-xsl-catalog-file (string-append | |
1062 | (assoc-ref %build-inputs "docbook-xsl") | |
1063 | "/xml/xsl/" | |
1064 | docbook-xsl-name-version | |
1065 | "/catalog.xml")) | |
1066 | (docbook-xml-catalog-file (string-append | |
1067 | (assoc-ref %build-inputs "docbook-xml") | |
1068 | "/xml/dtd/docbook/catalog.xml"))) | |
1069 | ;; Reference the catalog files required to build the manpages. | |
1070 | (list (string-append "XML_CATALOG_FILES=" docbook-xsl-catalog-file " " | |
1071 | docbook-xml-catalog-file))) | |
171ae35c SB |
1072 | #:phases |
1073 | (modify-phases %standard-phases | |
1074 | (add-before | |
1075 | 'configure 'fix-girdir | |
1076 | (lambda _ | |
1077 | ;; Install introspection data to its own output. | |
1078 | (substitute* "udisks/Makefile.in" | |
1079 | (("girdir = .*") | |
1080 | "girdir = $(datadir)/gir-1.0\n") | |
1081 | (("typelibsdir = .*") | |
5905114a | 1082 | "typelibsdir = $(libdir)/girepository-1.0\n")))) |
03800de1 | 1083 | (add-after 'install 'wrap-udisksd |
5905114a LC |
1084 | (lambda* (#:key outputs inputs #:allow-other-keys) |
1085 | ;; Tell 'udisksd' where to find the 'mount' command. | |
1086 | (let ((out (assoc-ref outputs "out")) | |
03800de1 CB |
1087 | (utils (assoc-ref inputs "util-linux")) |
1088 | (cryptsetup (assoc-ref inputs "cryptsetup")) | |
1089 | (parted (assoc-ref inputs "parted"))) | |
5905114a LC |
1090 | (wrap-program (string-append out "/libexec/udisks2/udisksd") |
1091 | `("PATH" ":" prefix | |
1092 | (,(string-append utils "/bin") ;for 'mount' | |
03800de1 CB |
1093 | ;; cryptsetup is required for setting encrypted |
1094 | ;; partitions, e.g. in gnome-disks | |
1095 | ,(string-append cryptsetup "/sbin") | |
5905114a LC |
1096 | "/run/current-system/profile/bin" |
1097 | "/run/current-system/profile/sbin"))) | |
1098 | #t)))))) | |
988e1dca | 1099 | (home-page "https://www.freedesktop.org/wiki/Software/udisks/") |
171ae35c SB |
1100 | (synopsis "Disk manager service") |
1101 | (description | |
1102 | "UDisks provides interfaces to enumerate and perform operations on disks | |
1103 | and storage devices. Any application (including unprivileged ones) can access | |
1104 | the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system | |
1105 | message bus.") | |
1106 | ;; The dynamic library are under LGPLv2+, others are GPLv2+. | |
1107 | (license (list license:gpl2+ license:lgpl2.0+)))) | |
83a2e492 SB |
1108 | |
1109 | (define-public accountsservice | |
1110 | (package | |
1111 | (name "accountsservice") | |
0981ec13 | 1112 | (version "0.6.50") |
2a6403c1 TGR |
1113 | (source |
1114 | (origin | |
1115 | (method url-fetch) | |
1116 | (uri (string-append "https://www.freedesktop.org/software/" | |
1117 | "accountsservice/accountsservice-" version ".tar.xz")) | |
1118 | (sha256 | |
1119 | (base32 "0jn7vg1z4vxnna0hl33hbcb4bb3zpilxc2vyclh24vx4vvsjhn83")))) | |
83a2e492 SB |
1120 | (build-system gnu-build-system) |
1121 | (arguments | |
1122 | '(#:tests? #f ; XXX: tests require DocBook 4.1.2 | |
1123 | #:configure-flags | |
0981ec13 MB |
1124 | '("--localstatedir=/var" |
1125 | "--disable-systemd" | |
1126 | "--enable-elogind") | |
83a2e492 SB |
1127 | #:phases |
1128 | (modify-phases %standard-phases | |
c9aadd07 RS |
1129 | (add-after 'unpack 'patch-/bin/cat |
1130 | (lambda _ | |
1131 | (substitute* "src/user.c" | |
1132 | (("/bin/cat") (which "cat"))) | |
1133 | #t)) | |
83a2e492 SB |
1134 | (add-before |
1135 | 'configure 'pre-configure | |
e76008db AW |
1136 | (lambda* (#:key inputs #:allow-other-keys) |
1137 | ;; Don't try to create /var/lib/AccountsService. | |
83a2e492 | 1138 | (substitute* "src/Makefile.in" |
571ffdeb | 1139 | (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true")) |
e76008db AW |
1140 | (let ((shadow (assoc-ref inputs "shadow"))) |
1141 | (substitute* '("src/user.c" "src/daemon.c") | |
1142 | (("/usr/sbin/usermod") (string-append shadow "/sbin/usermod")) | |
1143 | (("/usr/sbin/useradd") (string-append shadow "/sbin/useradd")) | |
1144 | (("/usr/sbin/userdel") (string-append shadow "/sbin/userdel")) | |
1145 | (("/usr/bin/passwd") (string-append shadow "/bin/passwd")) | |
1146 | (("/usr/bin/chage") (string-append shadow "/bin/chage")))) | |
571ffdeb | 1147 | #t))))) |
83a2e492 SB |
1148 | (native-inputs |
1149 | `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc. | |
1150 | ("gobject-introspection" ,gobject-introspection) | |
1151 | ("intltool" ,intltool) | |
1152 | ("pkg-config" ,pkg-config))) | |
1153 | (inputs | |
0981ec13 MB |
1154 | `(("elogind" ,elogind) |
1155 | ("polkit" ,polkit) | |
1156 | ("shadow" ,shadow))) | |
57e7d748 | 1157 | (home-page "https://www.freedesktop.org/wiki/Software/AccountsService/") |
83a2e492 SB |
1158 | (synopsis "D-Bus interface for user account query and manipulation") |
1159 | (description | |
1160 | "The AccountService project provides a set of D-Bus interfaces for querying | |
1161 | and manipulating user account information and an implementation of these | |
1162 | interfaces, based on the useradd, usermod and userdel commands.") | |
1163 | (license license:gpl3+))) | |
f3ad1490 SB |
1164 | |
1165 | (define-public libmbim | |
1166 | (package | |
1167 | (name "libmbim") | |
fdb88305 | 1168 | (version "1.20.2") |
f3ad1490 SB |
1169 | (source (origin |
1170 | (method url-fetch) | |
1171 | (uri (string-append | |
351c8042 TGR |
1172 | "https://www.freedesktop.org/software/libmbim/" |
1173 | "libmbim-" version ".tar.xz")) | |
f3ad1490 SB |
1174 | (sha256 |
1175 | (base32 | |
fdb88305 | 1176 | "16q550sy84izi5ic3sbbhjnnka2fwhj8vvdrirpn9xspbsgbc3sm")))) |
f3ad1490 SB |
1177 | (build-system gnu-build-system) |
1178 | (native-inputs | |
1179 | `(("glib:bin" ,glib "bin") ; for glib-mkenums | |
1180 | ("pkg-config" ,pkg-config) | |
1181 | ("python" ,python-wrapper))) | |
1182 | (propagated-inputs | |
1183 | `(("glib" ,glib))) ; required by mbim-glib.pc | |
1184 | (inputs | |
1185 | `(("libgudev" ,libgudev))) | |
1186 | (synopsis "Library to communicate with MBIM-powered modems") | |
66056126 | 1187 | (home-page "https://www.freedesktop.org/wiki/Software/libmbim/") |
f3ad1490 SB |
1188 | (description |
1189 | "Libmbim is a GLib-based library for talking to WWAN modems and devices | |
1190 | which speak the Mobile Interface Broadband Model (MBIM) protocol.") | |
1191 | (license | |
1192 | ;; The libmbim-glib library is released under the LGPLv2+ license. | |
1193 | ;; The mbimcli tool is released under the GPLv2+ license. | |
1194 | (list license:lgpl2.0+ license:gpl2+)))) | |
5302c5ff SB |
1195 | |
1196 | (define-public libqmi | |
1197 | (package | |
1198 | (name "libqmi") | |
22fdca91 | 1199 | (version "1.24.14") |
5302c5ff SB |
1200 | (source (origin |
1201 | (method url-fetch) | |
1202 | (uri (string-append | |
6c5101f8 MB |
1203 | "https://www.freedesktop.org/software/libqmi/" |
1204 | "libqmi-" version ".tar.xz")) | |
5302c5ff SB |
1205 | (sha256 |
1206 | (base32 | |
22fdca91 | 1207 | "0zshxqbm9ldybgrzh7pjmwmfjvvvfd0xh8qhgl8xiqdb9ply73r0")))) |
5302c5ff | 1208 | (build-system gnu-build-system) |
b707140b MW |
1209 | (inputs |
1210 | `(("libgudev" ,libgudev))) | |
5302c5ff SB |
1211 | (native-inputs |
1212 | `(("glib:bin" ,glib "bin") ; for glib-mkenums | |
1213 | ("pkg-config" ,pkg-config) | |
1214 | ("python" ,python-wrapper))) | |
1215 | (propagated-inputs | |
1216 | `(("glib" ,glib))) ; required by qmi-glib.pc | |
1217 | (synopsis "Library to communicate with QMI-powered modems") | |
97a08595 | 1218 | (home-page "https://www.freedesktop.org/wiki/Software/libqmi/") |
5302c5ff SB |
1219 | (description |
1220 | "Libqmi is a GLib-based library for talking to WWAN modems and devices | |
1221 | which speak the Qualcomm MSM Interface (QMI) protocol.") | |
1222 | (license | |
1223 | ;; The libqmi-glib library is released under the LGPLv2+ license. | |
1224 | ;; The qmicli tool is released under the GPLv2+ license. | |
1225 | (list license:lgpl2.0+ license:gpl2+)))) | |
1509a1dc SB |
1226 | |
1227 | (define-public modem-manager | |
1228 | (package | |
1229 | (name "modem-manager") | |
cf390391 | 1230 | (version "1.12.10") |
1509a1dc SB |
1231 | (source (origin |
1232 | (method url-fetch) | |
1233 | (uri (string-append | |
e9f68a64 | 1234 | "https://www.freedesktop.org/software/ModemManager/" |
1509a1dc SB |
1235 | "ModemManager-" version ".tar.xz")) |
1236 | (sha256 | |
1237 | (base32 | |
cf390391 | 1238 | "1apq9camys2gaw6y6ic1ld20cncfwpmxnzvh4j5zkbbjpf5hbcxj")))) |
1509a1dc SB |
1239 | (build-system gnu-build-system) |
1240 | (arguments | |
1241 | '(#:configure-flags | |
cf390391 | 1242 | `(,(string-append "--with-udev-base-dir=" %output "/lib/udev")))) |
1509a1dc SB |
1243 | (native-inputs |
1244 | `(("glib:bin" ,glib "bin") ; for glib-mkenums | |
1245 | ("gobject-introspection" ,gobject-introspection) | |
1246 | ("intltool" ,intltool) | |
1247 | ("pkg-config" ,pkg-config) | |
1248 | ("vala" ,vala) | |
1249 | ;; For testing. | |
1250 | ("dbus" ,dbus))) | |
1251 | (propagated-inputs | |
1252 | `(("glib" ,glib))) ; required by mm-glib.pc | |
1253 | (inputs | |
1254 | `(("libgudev" ,libgudev) | |
1255 | ("libmbim" ,libmbim) | |
1256 | ("libqmi" ,libqmi) | |
1257 | ("polkit" ,polkit))) | |
1258 | (synopsis "Mobile broadband modems manager") | |
57e7d748 | 1259 | (home-page "https://www.freedesktop.org/wiki/Software/ModemManager/") |
1509a1dc SB |
1260 | (description |
1261 | "ModemManager is a DBus-activated daemon which controls mobile | |
1262 | broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB | |
1263 | dongles, bluetooth-paired telephones, or professional RS232/USB devices with | |
1264 | external power supplies, ModemManager is able to prepare and configure the | |
1265 | modems and setup connections with them.") | |
1266 | (license license:gpl2+))) | |
6976e7d2 SB |
1267 | |
1268 | (define-public telepathy-logger | |
1269 | (package | |
1270 | (name "telepathy-logger") | |
1271 | (version "0.8.2") | |
1272 | (source (origin | |
1273 | (method url-fetch) | |
5cc3096c | 1274 | (uri (string-append "https://telepathy.freedesktop.org/releases/" |
6976e7d2 SB |
1275 | name "/" name "-" version ".tar.bz2")) |
1276 | (sha256 | |
1277 | (base32 | |
1278 | "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg")))) | |
1279 | (build-system gnu-build-system) | |
1280 | (arguments | |
8758efe0 LF |
1281 | '(#:parallel-tests? #f |
1282 | #:phases | |
6976e7d2 SB |
1283 | (modify-phases %standard-phases |
1284 | (add-before 'check 'pre-check | |
1285 | (lambda _ | |
1286 | (setenv "HOME" (getenv "TMPDIR")) | |
1287 | #t))))) | |
1288 | (native-inputs | |
1289 | `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc. | |
1290 | ("gobject-introspection" ,gobject-introspection) | |
1291 | ("intltool" ,intltool) | |
1292 | ("pkg-config" ,pkg-config) | |
1293 | ("python" ,python-2) | |
1294 | ("xsltproc" ,libxslt))) | |
1295 | (propagated-inputs | |
1296 | ;; telepathy-logger-0.2.pc refers to all these. | |
1297 | `(("libxml2" ,libxml2) | |
1298 | ("sqlite" ,sqlite) | |
1299 | ("telepathy-glib" ,telepathy-glib))) | |
1300 | (synopsis "Telepathy logger library") | |
57e7d748 | 1301 | (home-page "https://telepathy.freedesktop.org/") |
6976e7d2 SB |
1302 | (description |
1303 | "Telepathy logger is a headless observer client that logs information | |
1304 | received by the Telepathy framework. It features pluggable backends to log | |
1305 | different sorts of messages in different formats.") | |
1306 | (license license:lgpl2.1+))) | |
e6823279 | 1307 | |
bb8b543a KK |
1308 | (define-public telepathy-idle |
1309 | (package | |
1310 | (name "telepathy-idle") | |
1311 | (version "0.2.0") | |
1312 | (source (origin | |
1313 | (method url-fetch) | |
1314 | (uri (string-append "https://telepathy.freedesktop.org/releases/" | |
1315 | name "/" name "-" version ".tar.bz2")) | |
1316 | (sha256 | |
1317 | (base32 | |
1318 | "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh")))) | |
1319 | (build-system gnu-build-system) | |
1320 | (native-inputs | |
1321 | `(("pkg-config" ,pkg-config))) | |
1322 | (inputs | |
1323 | `(("xsltproc" ,libxslt) | |
1324 | ("python" ,python-2) | |
1325 | ("python-dbus" ,python2-dbus))) | |
1326 | (propagated-inputs | |
1327 | `(("telepathy-glib" ,telepathy-glib))) | |
57e7d748 | 1328 | (home-page "https://telepathy.freedesktop.org/") |
bb8b543a KK |
1329 | (synopsis "Telepathy IRC connection manager") |
1330 | (description | |
1331 | "Idle is an IRC connection manager for the Telepathy framework. This | |
1332 | package enables usage of IRC channels and private messages in Telepathy instant | |
1333 | messaging clients such as Empathy, GNOME Shell or KDE Telepathy.") | |
1334 | (license (list license:lgpl2.1 license:lgpl2.1+)))) | |
1335 | ||
261b3da5 KK |
1336 | (define-public telepathy-mission-control |
1337 | (package | |
1338 | (name "telepathy-mission-control") | |
6c5401fc | 1339 | (version "5.16.5") |
da42873c TGR |
1340 | (source |
1341 | (origin | |
1342 | (method url-fetch) | |
1343 | (uri (string-append "https://telepathy.freedesktop.org/releases/" | |
1344 | "telepathy-mission-control/" | |
1345 | "telepathy-mission-control-" version ".tar.gz")) | |
1346 | (sha256 | |
6c5401fc | 1347 | (base32 "00xxv38cfdirnfvgyd56m60j0nkmsv5fz6p2ydyzsychicxl6ssc")))) |
261b3da5 KK |
1348 | (build-system gnu-build-system) |
1349 | (native-inputs | |
1350 | `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc. | |
1351 | ("pkg-config" ,pkg-config))) | |
1352 | (inputs | |
1353 | `(("dconf" ,dconf) | |
1354 | ("gtk-doc" ,gtk-doc) | |
1355 | ("libgnome-keyring" ,libgnome-keyring) | |
1356 | ("python" ,python-2) | |
1357 | ("xsltproc" ,libxslt))) | |
1358 | (propagated-inputs | |
1359 | `(("telepathy-glib" ,telepathy-glib))) | |
1360 | (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/") | |
1361 | (synopsis "Telepathy real-time communication framework management daemon") | |
1362 | (description | |
1363 | "Telepathy Mission Control 5 is an account manager and channel dispatcher | |
1364 | for the Telepathy framework, allowing user interfaces and other clients to | |
1365 | share connections to real-time communication services without conflicting.") | |
1366 | (license license:lgpl2.1))) | |
1367 | ||
e6823279 SB |
1368 | (define-public colord-gtk |
1369 | (package | |
1370 | (name "colord-gtk") | |
1371 | (version "0.1.26") | |
1372 | (source (origin | |
1373 | (method url-fetch) | |
5cc3096c | 1374 | (uri (string-append "https://www.freedesktop.org/software/colord" |
e6823279 SB |
1375 | "/releases/" name "-" version ".tar.xz")) |
1376 | (sha256 | |
1377 | (base32 | |
1378 | "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18")))) | |
1379 | (build-system gnu-build-system) | |
1380 | (arguments '(#:tests? #f)) ; require the colord system service | |
1381 | (native-inputs | |
1382 | `(("gobject-introspection" ,gobject-introspection) | |
1383 | ("intltool" ,intltool) | |
1384 | ("pkg-config" ,pkg-config) | |
1385 | ("vala" ,vala))) | |
1386 | (propagated-inputs | |
1387 | ;; colord-gtk.pc refers to all these. | |
1388 | `(("colord" ,colord) | |
1389 | ("gtk+" ,gtk+))) | |
1390 | (synopsis "GTK integration for libcolord") | |
57e7d748 | 1391 | (home-page "https://www.freedesktop.org/software/colord/") |
e6823279 SB |
1392 | (description |
1393 | "This is a GTK+ convenience library for interacting with colord. It is | |
1394 | useful for both applications which need colour management and applications that | |
1395 | wish to perform colour calibration.") | |
1396 | (license license:lgpl2.1+))) | |
dfb01bae LC |
1397 | |
1398 | (define-public libfprint | |
1399 | (package | |
1400 | (name "libfprint") | |
239d3e9c TGR |
1401 | (version "1.90.1") |
1402 | (source | |
1403 | (origin | |
1404 | (method git-fetch) | |
1405 | (uri (git-reference | |
1406 | (url "https://gitlab.freedesktop.org/libfprint/libfprint") | |
1407 | (commit (string-append "v" version)))) | |
1408 | (file-name (git-file-name name version)) | |
1409 | (sha256 | |
1410 | (base32 "0fdaak7qjr9b4482g7fhhqpyfdqpxq5kpmyzkp7f5i7qq2ynb78a")))) | |
1411 | (build-system meson-build-system) | |
dfb01bae | 1412 | (arguments |
239d3e9c TGR |
1413 | '(#:configure-flags |
1414 | (list (string-append "-Dudev_rules_dir=" (assoc-ref %outputs "out") | |
1415 | "/lib/udev/rules.d")))) | |
dfb01bae | 1416 | (native-inputs |
239d3e9c TGR |
1417 | `(("eudev" ,eudev) |
1418 | ("glib:bin" ,glib "bin") ; for {glib-,}mkenums | |
1419 | ("gobject-introspection" ,gobject-introspection) | |
1420 | ("gtk-doc" ,gtk-doc) ; for 88 KiB of API documentation | |
1421 | ("pkg-config" ,pkg-config))) | |
dfb01bae | 1422 | (inputs |
239d3e9c TGR |
1423 | `(("glib" ,glib) |
1424 | ("gusb" ,gusb) | |
1425 | ("nss" ,nss) ; for the URU4x00 driver | |
1426 | ||
1427 | ;; Replacing this with cairo works but just results in a reference | |
1428 | ;; (only) to pixman in the end. | |
dfb01bae | 1429 | ("pixman" ,pixman))) |
50f02ced | 1430 | (home-page "https://fprint.freedesktop.org/") |
dfb01bae LC |
1431 | (synopsis "Library to access fingerprint readers") |
1432 | (description | |
1433 | "libfprint is a library designed to make it easy for application | |
1434 | developers to add support for consumer fingerprint readers to their | |
1435 | software.") | |
1436 | (license license:lgpl2.1+))) | |
9e3e972d LC |
1437 | |
1438 | (define-public fprintd | |
1439 | (package | |
1440 | (name "fprintd") | |
239d3e9c TGR |
1441 | (version "1.90.1") |
1442 | (source | |
1443 | (origin | |
1444 | (method git-fetch) | |
1445 | (uri (git-reference | |
1446 | (url "https://gitlab.freedesktop.org/libfprint/fprintd") | |
1447 | (commit version))) | |
1448 | (file-name (git-file-name name version)) | |
1449 | (sha256 | |
1450 | (base32 "0mbzk263x7f58i9cxhs44mrngs7zw5wkm62j5r6xlcidhmfn03cg")))) | |
1451 | (build-system meson-build-system) | |
5c3d6c1d | 1452 | (arguments |
239d3e9c TGR |
1453 | `(#:configure-flags |
1454 | (list "-Dsystemd_system_unit_dir=/tmp" | |
1455 | (string-append "-Ddbus_service_dir=" (assoc-ref %outputs "out") | |
1456 | "/share/dbus-1/system-services") | |
1457 | (string-append "-Dpam_modules_dir=" (assoc-ref %outputs "out") | |
1458 | "/lib/security")) | |
1459 | #:phases | |
1460 | (modify-phases %standard-phases | |
1461 | (add-before 'configure 'patch-output-directories | |
1462 | ;; Install files to our output, not that of the ‘owner’ package. | |
1463 | ;; These are not exposed as Meson options and must be patched. | |
1464 | (lambda* (#:key outputs #:allow-other-keys) | |
1465 | (let ((out (assoc-ref outputs "out"))) | |
1466 | (substitute* "meson.build" | |
1467 | (("(dbus_interfaces_dir = ).*" _ set) | |
1468 | (string-append set "'" out "/share/dbus-1/interfaces'\n")) | |
1469 | (("(polkit_policy_directory = ).*" _ set) | |
1470 | (string-append set "'" out "/share/polkit-1/actions/'\n")) | |
1471 | (("(dbus_data_dir = ).*" _ set) | |
1472 | (string-append set "get_option('prefix')" | |
1473 | " / get_option('datadir')\n"))) | |
1474 | #t))) | |
1475 | (add-before 'configure 'patch-mistake | |
1476 | (lambda _ | |
1477 | (substitute* "meson.build" | |
1478 | (("(storage_path = )(get_option\\('prefix'\\))(.*)" | |
1479 | _ set mistake value) | |
1480 | (string-append set "''" value "\n"))) | |
1481 | #t)) | |
1482 | (add-before 'configure 'patch-systemd-dependencies | |
1483 | (lambda _ | |
1484 | (substitute* "meson.build" | |
1485 | (("'(libsystemd|systemd)'") "'libelogind'")) | |
1486 | #t)) | |
1487 | (add-before 'configure 'ignore-test-dependencies | |
1488 | (lambda _ | |
1489 | (substitute* "meson.build" | |
1490 | (("pam_wrapper_dep .*") "") | |
1491 | ((".*'(cairo|dbus|dbusmock|gi|pypamtest)': .*,.*") "")) | |
1492 | #t)) | |
1493 | (add-before 'install 'no-polkit-magic | |
1494 | ;; Meson ‘magically’ invokes pkexec, which fails (not setuid). | |
1495 | (lambda _ | |
1496 | (setenv "PKEXEC_UID" "something") | |
1497 | #t))) | |
1498 | #:tests? #f)) ; XXX depend on unpackaged packages | |
9e3e972d | 1499 | (native-inputs |
239d3e9c TGR |
1500 | `(("gettext" ,gettext-minimal) |
1501 | ("glib:bin" ,glib "bin") ; for glib-genmarshal | |
1502 | ("libxslt" ,libxslt) ; for xsltproc | |
1503 | ("perl" ,perl) ; for pod2man | |
1504 | ("pkg-config" ,pkg-config))) | |
1505 | ;; For tests. | |
1506 | ;;("pam_wrapper" ,pam_wrapper) | |
1507 | ;;("python-pycairo" ,python-pycairo) | |
1508 | ;;("python-dbus" ,python-dbus) | |
1509 | ;;("python-dbusmock" ,python-dbusmock) | |
1510 | ;;("python-pygobject" ,python-pygobject) | |
1511 | ;;("python-pypamtest" ,python-pypamtest) | |
9e3e972d | 1512 | (inputs |
239d3e9c TGR |
1513 | `(("dbus-glib" ,dbus-glib) |
1514 | ("elogind" ,elogind) | |
1515 | ("libfprint" ,libfprint) | |
1516 | ("linux-pam" ,linux-pam) | |
9e3e972d | 1517 | ("polkit" ,polkit) |
239d3e9c TGR |
1518 | |
1519 | ;; XXX These are in libfprint's Requires.private. Meson refuses to grant | |
1520 | ;; the ‘libfprint-2’ dependency if they are not provided here. | |
1521 | ("gusb" ,gusb) | |
1522 | ("nss" ,nss) | |
1523 | ("pixman" ,pixman))) | |
50f02ced | 1524 | (home-page "https://fprint.freedesktop.org/") |
9e3e972d LC |
1525 | (synopsis "D-Bus daemon that exposes fingerprint reader functionality") |
1526 | (description | |
1527 | "fprintd is a D-Bus daemon that offers functionality of libfprint, a | |
1528 | library to access fingerprint readers, over the D-Bus interprocess | |
1529 | communication bus. This daemon layer above libfprint solves problems related | |
1530 | to applications simultaneously competing for fingerprint readers.") | |
1531 | (license license:gpl2+))) | |
324b0040 DM |
1532 | |
1533 | (define-public desktop-file-utils | |
1534 | (package | |
1535 | (name "desktop-file-utils") | |
8b6d893d | 1536 | (version "0.24") |
324b0040 DM |
1537 | (source (origin |
1538 | (method url-fetch) | |
d4c09245 TGR |
1539 | (uri (string-append "https://www.freedesktop.org/software/" |
1540 | "desktop-file-utils/releases/" | |
1541 | "desktop-file-utils-" version ".tar.xz")) | |
324b0040 DM |
1542 | (sha256 |
1543 | (base32 | |
8b6d893d | 1544 | "1nc3bwjdrpcrkbdmzvhckq0yngbcxspwj2n1r7jr3gmx1jk5vpm1")))) |
324b0040 DM |
1545 | (build-system gnu-build-system) |
1546 | (native-inputs | |
1547 | `(("pkg-config" ,pkg-config))) | |
1548 | (inputs | |
1549 | `(("glib" ,glib))) | |
57e7d748 | 1550 | (home-page "https://www.freedesktop.org/wiki/Software/desktop-file-utils/") |
324b0040 DM |
1551 | (synopsis "Utilities for working with desktop entries") |
1552 | (description | |
1553 | "This package contains a few command line utilities for working with | |
1554 | desktop entries: | |
1555 | ||
1556 | desktop-file-validate: validates a desktop file and prints warnings/errors | |
1557 | about desktop entry specification violations. | |
1558 | ||
1559 | desktop-file-install: installs a desktop file to the applications directory, | |
1560 | optionally munging it a bit in transit. | |
1561 | ||
1562 | update-desktop-database: updates the database containing a cache of MIME types | |
1563 | handled by desktop files.") | |
1564 | (license license:gpl2+))) | |
b9bf08f0 AW |
1565 | |
1566 | (define-public xdg-user-dirs | |
1567 | (package | |
1568 | (name "xdg-user-dirs") | |
7c9b7c5c | 1569 | (version "0.17") |
b9bf08f0 AW |
1570 | (source (origin |
1571 | (method url-fetch) | |
1572 | (uri (string-append "http://user-dirs.freedesktop.org/releases/" | |
1573 | name "-" version ".tar.gz")) | |
1574 | (sha256 | |
7c9b7c5c | 1575 | (base32 "13216b8rfkzak5k6bvpx6jvqv3cnbgpijnjwj8a8d3kq4cl0a1ra")))) |
b9bf08f0 AW |
1576 | (build-system gnu-build-system) |
1577 | (native-inputs | |
1578 | `(("gettext" ,gettext-minimal) | |
1579 | ("docbook-xsl" ,docbook-xsl) | |
1580 | ("docbook-xml" ,docbook-xml-4.3) | |
1581 | ("xsltproc" ,libxslt))) | |
1582 | (arguments | |
1583 | `(#:phases | |
1584 | (modify-phases %standard-phases | |
1585 | (add-before 'build 'locate-catalog-files | |
1586 | (lambda* (#:key inputs #:allow-other-keys) | |
1587 | (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml") | |
1588 | "/xml/dtd/docbook")) | |
1589 | (xsldoc (string-append (assoc-ref inputs "docbook-xsl") | |
1590 | "/xml/xsl/docbook-xsl-" | |
1591 | ,(package-version docbook-xsl)))) | |
1592 | (for-each (lambda (file) | |
1593 | (substitute* file | |
1594 | (("http://.*/docbookx\\.dtd") | |
1595 | (string-append xmldoc "/docbookx.dtd")))) | |
1596 | (find-files "man" "\\.xml$")) | |
1597 | (substitute* "man/Makefile" | |
1598 | (("http://.*/docbook\\.xsl") | |
1599 | (string-append xsldoc "/manpages/docbook.xsl"))) | |
1600 | #t)))))) | |
1601 | (home-page "https://www.freedesktop.org/wiki/Software/xdg-user-dirs/") | |
1602 | (synopsis "Tool to help manage \"well known\" user directories") | |
1603 | (description "xdg-user-dirs is a tool to help manage \"well known\" user | |
1604 | directories, such as the desktop folder or the music folder. It also handles | |
1605 | localization (i.e. translation) of the file names. Designed to be | |
1606 | automatically run when a user logs in, xdg-user-dirs can also be run | |
1607 | manually by a user.") | |
1608 | (license license:gpl2))) | |
b32596ec BT |
1609 | |
1610 | (define-public perl-file-basedir | |
1611 | (package | |
1612 | (name "perl-file-basedir") | |
12c069db | 1613 | (version "0.08") |
b32596ec BT |
1614 | (source |
1615 | (origin | |
1616 | (method url-fetch) | |
1617 | (uri (string-append "mirror://cpan/authors/id/K/KI/KIMRYAN/" | |
1618 | "File-BaseDir-" version ".tar.gz")) | |
1619 | (sha256 | |
1620 | (base32 | |
12c069db | 1621 | "1qq5ag9zffx8zc5i9b4z03ar80pqj4drgk3vjdlyfapjwb9zqrf0")))) |
b32596ec BT |
1622 | (build-system perl-build-system) |
1623 | (native-inputs | |
1624 | `(("perl-module-build" ,perl-module-build) | |
1625 | ("perl-file-which" ,perl-file-which) | |
1626 | ("perl-test-pod" ,perl-test-pod) | |
1627 | ("perl-test-pod-coverage" ,perl-test-pod-coverage) | |
1628 | ("xdg-user-dirs" ,xdg-user-dirs))) | |
1629 | (propagated-inputs | |
1630 | `(("perl-ipc-system-simple" ,perl-ipc-system-simple))) | |
9aba9b12 | 1631 | (home-page "https://metacpan.org/release/File-BaseDir") |
b32596ec BT |
1632 | (synopsis "Use the Freedesktop.org base directory specification") |
1633 | (description | |
1634 | "@code{File::Basedir} can be used to find directories and files as | |
1635 | specified by the Freedesktop.org Base Directory Specification. This | |
1636 | specifications gives a mechanism to locate directories for configuration, | |
1637 | application data and cache data.") | |
1638 | (license license:perl-license))) | |
825cebdb BT |
1639 | |
1640 | (define-public perl-file-desktopentry | |
1641 | (package | |
1642 | (name "perl-file-desktopentry") | |
1643 | (version "0.22") | |
1644 | (source | |
1645 | (origin | |
1646 | (method url-fetch) | |
1647 | (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/" | |
1648 | "File-DesktopEntry-" version ".tar.gz")) | |
1649 | (sha256 | |
1650 | (base32 | |
1651 | "1f1maqix2kbfg2rf008m7mqnvv6nvcf9y6pcgdv2kxp2vbih370n")))) | |
1652 | (build-system perl-build-system) | |
1653 | (native-inputs | |
1654 | `(("perl-test-pod" ,perl-test-pod) | |
1655 | ("perl-test-pod-coverage" ,perl-test-pod-coverage))) | |
1656 | (propagated-inputs | |
1657 | `(("perl-file-basedir" ,perl-file-basedir) | |
1658 | ("perl-uri" ,perl-uri))) | |
9aba9b12 | 1659 | (home-page "https://metacpan.org/release/File-DesktopEntry") |
825cebdb BT |
1660 | (synopsis "Handle @file{.desktop} files") |
1661 | (description | |
1662 | "@code{File::DesktopEntry} parses @file{.desktop} files defined by the | |
1663 | Freedesktop.org @dfn{Desktop Entry} specification. It can also run the | |
1664 | applications define in those files.") | |
1665 | (license license:perl-license))) | |
d0ce96bc BT |
1666 | |
1667 | (define-public perl-file-mimeinfo | |
1668 | (package | |
1669 | (name "perl-file-mimeinfo") | |
2f989172 | 1670 | (version "0.29") |
d0ce96bc BT |
1671 | (source |
1672 | (origin | |
1673 | (method url-fetch) | |
1674 | (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/" | |
1675 | "File-MimeInfo-" version ".tar.gz")) | |
1676 | (sha256 | |
1677 | (base32 | |
2f989172 | 1678 | "1sh8r6vczyz08zm8vfsjmkg6a165wch54akjdrd1vbifcmwjg5pi")))) |
d0ce96bc BT |
1679 | (build-system perl-build-system) |
1680 | ;; If the tests are fixed, add perl-test-pod, perl-test-pod-coverage, and | |
1681 | ;; perl-test-tiny as native-inputs. | |
1682 | (propagated-inputs | |
1683 | `(("shared-mime-info" ,shared-mime-info) | |
1684 | ("perl-file-desktopentry" ,perl-file-desktopentry))) | |
1685 | (arguments | |
1686 | ;; Some tests fail due to requiring the mimetype of perl files to be | |
1687 | ;; text/plain when they are actually application/x-perl. | |
1688 | `(#:tests? #f | |
1689 | #:phases | |
1690 | (modify-phases %standard-phases | |
1691 | (add-after 'install 'wrap-programs | |
1692 | (lambda* (#:key outputs #:allow-other-keys) | |
1693 | (let ((out (assoc-ref outputs "out"))) | |
1694 | (for-each (lambda (prog) | |
1695 | (wrap-program (string-append out "/bin/" prog) | |
1696 | `("PERL5LIB" ":" prefix | |
1697 | (,(string-append (getenv "PERL5LIB") ":" out | |
1698 | "/lib/perl5/site_perl"))))) | |
1699 | '("mimeopen" "mimetype"))) | |
1700 | #t))))) | |
9aba9b12 | 1701 | (home-page "https://metacpan.org/release/File-MimeInfo") |
d0ce96bc BT |
1702 | (synopsis "Determine file type from the file name") |
1703 | (description | |
1704 | "@code{File::Mimeinfo} can be used to determine the MIME type of a file. | |
1705 | It tries to implement the Freedesktop specification for a shared MIME | |
1706 | database. | |
1707 | ||
1708 | This package also contains two related utilities: | |
1709 | ||
1710 | @itemize | |
1711 | @item @command{mimetype} determines a file's MIME type; | |
1712 | @item @command{mimeopen} opens files in an appropriate program according to | |
1713 | their MIME type. | |
1714 | @end itemize") | |
1715 | (license license:perl-license))) | |
748ca12f RAM |
1716 | |
1717 | (define-public uchardet | |
1718 | (package | |
1719 | (name "uchardet") | |
e071b0c9 | 1720 | (version "0.0.7") |
748ca12f RAM |
1721 | (source |
1722 | (origin | |
1723 | (method url-fetch) | |
1724 | (uri (string-append "https://www.freedesktop.org/software/" | |
1725 | name "/releases/" name "-" version ".tar.xz")) | |
1726 | (sha256 | |
e071b0c9 | 1727 | (base32 "1ca51sryhryqz82v4d0graaiqqq5w2f33a9gj83b910xmq499irz")))) |
748ca12f RAM |
1728 | (build-system cmake-build-system) |
1729 | (home-page "https://www.freedesktop.org/wiki/Software/uchardet/") | |
1730 | (synopsis "Encoding detector library") | |
1731 | (description "uchardet is an encoding detector library, which takes a | |
1732 | sequence of bytes in an unknown character encoding without any additional | |
1733 | information, and attempts to determine the encoding of the text. Returned | |
1734 | encoding names are iconv-compatible.") | |
1735 | ||
1736 | ;; This combines code under MPL 1.1, LGPL 2.1+, and GPL 2.0+, so the | |
1737 | ;; combination is GPL 2.0+. | |
1738 | (license license:gpl2+))) | |
d29d04c9 GLV |
1739 | |
1740 | (define-public udiskie | |
1741 | (package | |
1742 | (name "udiskie") | |
034d9544 | 1743 | (version "2.1.0") |
d29d04c9 GLV |
1744 | (source |
1745 | (origin | |
1746 | (method url-fetch) | |
1747 | (uri (pypi-uri "udiskie" version)) | |
1748 | (sha256 | |
1749 | (base32 | |
034d9544 | 1750 | "0smib8vbs9q37n7ynhzyw97q16fgdkcdw7fw69lci0xvyq00v1dz")) |
d29d04c9 GLV |
1751 | ;; Remove support for the libappindicator library of the |
1752 | ;; Unity desktop environment which is not in Guix. | |
1753 | (patches (search-patches "udiskie-no-appindicator.patch")))) | |
1754 | (build-system python-build-system) | |
1755 | (native-inputs | |
1756 | `(("asciidoc" ,asciidoc) | |
1757 | ("gettext" ,gettext-minimal) | |
1758 | ("gobject-introspection" ,gobject-introspection))) | |
1759 | (inputs | |
1760 | `(("gobject-introspection" ,gobject-introspection) | |
1761 | ("gtk+" ,gtk+) | |
1762 | ("libnotify" ,libnotify) | |
1763 | ("udisks" ,udisks))) | |
1764 | (propagated-inputs | |
1765 | `(("python-docopt" ,python-docopt) | |
1766 | ("python-pygobject" ,python-pygobject) | |
1767 | ("python-keyutils" ,python-keyutils) | |
1768 | ("python-pyxdg" ,python-pyxdg) | |
1769 | ("python-pyyaml" ,python-pyyaml))) | |
1770 | (arguments | |
1771 | `(#:phases | |
1772 | (modify-phases %standard-phases | |
1773 | (add-after 'install 'wrap-gi-typelib | |
1774 | (lambda* (#:key outputs #:allow-other-keys) | |
1775 | (let ((out (assoc-ref outputs "out")) | |
1776 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) | |
1777 | (wrap-program (string-append out "/bin/udiskie") | |
1778 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) | |
1779 | #t))))) | |
1780 | (home-page "https://github.com/coldfix/udiskie") | |
1781 | (synopsis "Automounter for removable media") | |
1782 | (description | |
bf6c2788 VC |
1783 | "The @command{udiskie} program is a udisks2 front-end that |
1784 | manages removable media such as CDs or flash drives from userspace. | |
d29d04c9 GLV |
1785 | |
1786 | Its features include: | |
1787 | ||
1788 | @itemize | |
1789 | @item automount removable media, | |
1790 | @item notifications, | |
1791 | @item tray icon, | |
1792 | @item command line tools for manual (un)mounting, | |
1793 | @item LUKS encrypted devices, | |
1794 | @item unlocking with keyfiles, | |
1795 | @item loop devices (mounting ISO archives), | |
1796 | @item password caching. | |
1797 | @end itemize | |
1798 | ") | |
1799 | (license license:expat))) | |
5b9bdeb5 RW |
1800 | |
1801 | (define-public plymouth | |
1802 | (package | |
1803 | (name "plymouth") | |
1804 | (version "0.9.4") | |
1805 | (source | |
1806 | (origin | |
1807 | (method url-fetch) | |
1808 | (uri (string-append "https://www.freedesktop.org/software/" | |
1809 | "plymouth/releases/" name "-" version ".tar.xz")) | |
1810 | (sha256 | |
1811 | (base32 | |
1812 | "0l8kg7b2vfxgz9gnrn0v2w4jvysj2cirp0nxads5sy05397pl6aa")))) | |
1813 | (build-system gnu-build-system) | |
1814 | (arguments | |
1815 | `(#:configure-flags | |
1816 | (list (string-append "--with-logo=" | |
1817 | "/etc/plymouth/logo.png") | |
1818 | (string-append "--with-background-color=" | |
1819 | "0x00ff00") | |
1820 | (string-append "--with-background-start-color-stop=" | |
1821 | "0xff0000") | |
1822 | (string-append "--with-background-end-color-stop=" | |
1823 | "0x0000ff") | |
1824 | "--localstatedir=/var" | |
1825 | "--with-boot-tty=/dev/console" | |
1826 | "--without-system-root-install" | |
1827 | "--without-rhgb-compat-link" | |
1828 | "--enable-drm" | |
1829 | "--disable-systemd-integration" | |
1830 | ;; Disable GTK to dramatically reduce the closure | |
1831 | ;; size from ~800 MiB to a little more than 200 MiB | |
1832 | "--disable-gtk") | |
1833 | #:phases | |
1834 | (modify-phases %standard-phases | |
1835 | (add-after 'unpack 'make-reproducible | |
1836 | (lambda _ | |
1837 | (substitute* "src/main.c" | |
1838 | (("__DATE__") "\"guix\"")) | |
1839 | #t)) | |
1840 | (add-before 'configure 'fix-docbook | |
1841 | (lambda* (#:key inputs #:allow-other-keys) | |
1842 | (substitute* "docs/Makefile.in" | |
1843 | (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") | |
1844 | (string-append (assoc-ref inputs "docbook-xsl") | |
1845 | "/xml/xsl/docbook-xsl-" | |
1846 | ,(package-version docbook-xsl) | |
1847 | "/manpages/docbook.xsl"))) | |
1848 | (setenv "XML_CATALOG_FILES" | |
1849 | (string-append (assoc-ref inputs "docbook-xml") | |
1850 | "/xml/dtd/docbook/catalog.xml")) | |
1851 | #t))))) | |
1852 | (inputs | |
1853 | `(("glib" ,glib) | |
1854 | ("pango" ,pango) | |
1855 | ("libdrm" ,libdrm) | |
1856 | ("libpng" ,libpng) | |
1857 | ("eudev" ,eudev))) | |
1858 | (native-inputs | |
1859 | `(("pkg-config" ,pkg-config) | |
1860 | ("libxslt" ,libxslt) | |
1861 | ("docbook-xsl" ,docbook-xsl) | |
1862 | ("docbook-xml" ,docbook-xml))) | |
1863 | (synopsis "Graphical boot animation (splash) and logger") | |
1864 | (home-page "https://www.freedesktop.org/wiki/Software/Plymouth/") | |
1865 | (description | |
1866 | "Plymouth is an application that runs very early in the boot process and | |
1867 | that provides a graphical boot animation while the boot process happens in the | |
1868 | background. You are not supposed to install this on your own, it is only | |
1869 | useful with system integration.") | |
1870 | (license license:gpl2+))) | |
5e2750fb NB |
1871 | |
1872 | (define-public libindicator | |
1873 | (package | |
1874 | (name "libindicator") | |
1875 | (version "12.10.1") | |
1876 | (source | |
1877 | (origin | |
1878 | (method url-fetch) | |
1879 | (uri (string-append | |
1880 | "https://launchpad.net/libindicator/" | |
1881 | (version-major+minor version) "/" version | |
1882 | "/+download/libindicator-" version ".tar.gz")) | |
1883 | (sha256 | |
1884 | (base32 | |
1885 | "0zs4z7l9b57jldwz0ban77f3c2zq43ambd0dssf5qg9i216f9lmj")))) | |
1886 | (build-system gnu-build-system) | |
1887 | (native-inputs | |
1888 | `(("dbus-test-runner" ,dbus-test-runner) | |
1889 | ("glib:bin" ,glib "bin") | |
1890 | ("pkg-config" ,pkg-config) | |
1891 | ("xvfb" ,xorg-server-for-tests))) | |
1892 | (inputs | |
1893 | `(("gtk+" ,gtk+) | |
1894 | ("glib" ,glib))) | |
1895 | (arguments | |
1896 | `(#:make-flags '("CFLAGS=-Wno-error") | |
1897 | #:phases | |
1898 | (modify-phases %standard-phases | |
1899 | (add-before 'configure 'fix-missing-space-for-libm | |
1900 | (lambda* (#:key outputs #:allow-other-keys) | |
1901 | (substitute* "configure" | |
1902 | (("LIBM=\"-lm\"") "LIBM=\" -lm\"")) | |
1903 | #t)) | |
1904 | (add-before 'configure 'fix-test-paths | |
1905 | (lambda* (#:key inputs #:allow-other-keys) | |
1906 | (substitute* "tests/Makefile.in" | |
1907 | (("/bin/sh") (which "sh")) | |
1908 | (("#!/bin/bash") (string-append "#!" (which "bash"))) | |
1909 | (("/usr/share") | |
1910 | (string-append (assoc-ref inputs "dbus-test-runner") "/share"))) | |
1911 | #t))))) | |
1912 | (home-page "https://launchpad.net/libindicator") | |
1913 | (synopsis "Ayatana indicators symbols and functions") | |
1914 | (description "A set of symbols and convenience functions for Ayatana indicators.") | |
1915 | (license license:gpl3))) | |
c7b77713 NB |
1916 | |
1917 | (define-public libappindicator | |
1918 | (package | |
1919 | (name "libappindicator") | |
1920 | (version "12.10.0") | |
1921 | (source | |
1922 | (origin | |
1923 | (method url-fetch) | |
1924 | (uri (string-append | |
1925 | "https://launchpad.net/libappindicator/" | |
1926 | (version-major+minor version) "/" version | |
1927 | "/+download/libappindicator-" version ".tar.gz")) | |
1928 | (sha256 | |
1929 | (base32 | |
1930 | "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m")))) | |
1931 | (build-system gnu-build-system) | |
1932 | (native-inputs | |
1933 | `(("dbus-test-runner" ,dbus-test-runner) | |
1934 | ("glib:bin" ,glib "bin") | |
1935 | ("gobject-introspection" ,gobject-introspection) | |
1936 | ("pkg-config" ,pkg-config) | |
1937 | ("xvfb" ,xorg-server-for-tests))) | |
1938 | (inputs | |
1939 | `(("dbus-glib" ,dbus-glib) | |
1940 | ("gtk+" ,gtk+) | |
1941 | ("libdbusmenu" ,libdbusmenu) | |
1942 | ("libindicator" ,libindicator) | |
1943 | ("python@2" ,python-2) | |
1944 | ("python2-pygtk" ,python2-pygtk) | |
1945 | ("python2-pygobject-2" ,python2-pygobject-2) | |
1946 | ;; ("mono" ,mono) ; requires non-packaged gapi | |
1947 | ("vala" ,vala))) | |
1948 | (arguments | |
1949 | ;; FIXME: do not hardcode gtk version | |
1950 | `(#:configure-flags '("--with-gtk=3") | |
1951 | #:make-flags '("CFLAGS=-Wno-error") | |
1952 | #:tests? #f ; One test does not pass (it succeeds when it should fail). | |
1953 | #:phases | |
1954 | (modify-phases %standard-phases | |
1955 | (add-before 'configure 'fix-paths | |
1956 | (lambda* (#:key inputs #:allow-other-keys) | |
1957 | (substitute* "docs/reference/Makefile.in" | |
1958 | (("/bin/sh") (which "sh"))) | |
1959 | (substitute* "tests/Makefile.in" | |
1960 | (("/bin/sh") (which "sh")) | |
1961 | (("#!/bin/bash") (string-append "#!" (which "bash"))) | |
1962 | (("/usr") (string-append (assoc-ref inputs "dbus-test-runner")))) | |
1963 | (substitute* "bindings/python/Makefile.in" | |
1964 | (("-lappindicator") "-lappindicator3")) | |
1965 | #t)) | |
1966 | (add-after 'unpack 'fix-codegen-path | |
1967 | (lambda _ | |
1968 | (substitute* "configure" | |
1969 | (("PYGTK_CODEGEN=.*") "PYGTK_CODEGEN=pygtk-codegen-2.0\n")) | |
1970 | #t)) | |
1971 | (add-after 'build 'build-bindings | |
1972 | (lambda _ | |
1973 | (invoke "make" "-C" "bindings/python") | |
1974 | #t)) | |
1975 | (add-after 'install 'install-bindings | |
1976 | (lambda _ | |
1977 | (invoke "make" "-C" "bindings/python" "install") | |
1978 | #t))))) | |
1979 | (home-page "https://launchpad.net/libappindicator") | |
1980 | (synopsis "Allow applications to export a menu into the Unity menu bar") | |
1981 | (description "A library to allow applications to export a menu, originally | |
1982 | into the Unity menu bar. Based on KSNI, it also works in KDE and will | |
1983 | fallback to generic Systray support if none of those are available.") | |
1984 | (license license:lgpl2.1+))) | |
ef43f74c AT |
1985 | |
1986 | (define-public libportal | |
1987 | (let ((commit "bff3289") | |
1988 | (revision "1")) | |
1989 | (package | |
1990 | (name "libportal") | |
1991 | (version (git-version "0.3" revision commit)) | |
1992 | (source (origin | |
1993 | (method git-fetch) | |
1994 | (uri (git-reference | |
1995 | (url "https://github.com/flatpak/libportal") | |
1996 | (commit commit))) | |
1997 | (file-name (git-file-name name version)) | |
1998 | (sha256 | |
1999 | (base32 | |
2000 | "104b91qircr1i9jkmm6f725awywky52aimrki303kiaadn2v8b5i")))) | |
2001 | (build-system meson-build-system) | |
2002 | (arguments | |
2003 | `(#:phases | |
2004 | (modify-phases %standard-phases | |
2005 | (add-after 'install 'move-doc | |
2006 | (lambda* (#:key outputs #:allow-other-keys) | |
2007 | (let ((out (assoc-ref outputs "out")) | |
2008 | (doc (assoc-ref outputs "doc")) | |
2009 | (html "/share/gtk-doc")) | |
2010 | (copy-recursively (string-append out html) | |
2011 | (string-append doc html)) | |
2012 | (delete-file-recursively (string-append out html)) | |
2013 | #t)))))) | |
2014 | (native-inputs | |
2015 | `(("pkg-config" ,pkg-config) | |
2016 | ("gtk-doc" ,gtk-doc) | |
2017 | ("docbook-xsl" ,docbook-xsl) | |
2018 | ("docbook-xml" ,docbook-xml) | |
2019 | ("libxml2" ,libxml2) | |
2020 | ("glib:bin" ,glib "bin"))) | |
2021 | (propagated-inputs | |
2022 | `(("glib" ,glib))) | |
2023 | (outputs '("out" "doc")) | |
2024 | (home-page "https://github.com/flatpak/libportal") | |
2025 | (synopsis "Flatpak portal library") | |
2026 | (description | |
2027 | "libportal provides GIO-style async APIs for most Flatpak portals.") | |
2028 | (license license:lgpl2.1+)))) | |
91150437 AT |
2029 | |
2030 | (define-public xdg-desktop-portal | |
2031 | (package | |
2032 | (name "xdg-desktop-portal") | |
2033 | (version "1.7.2") | |
2034 | (source (origin | |
2035 | (method git-fetch) | |
2036 | (uri (git-reference | |
2037 | (url "https://github.com/flatpak/xdg-desktop-portal") | |
2038 | (commit version))) | |
2039 | (file-name (git-file-name name version)) | |
2040 | (sha256 | |
2041 | (base32 | |
2042 | "0rkwpsmbn3d3spkzc2zsd50l2r8pp4la390zcpsawaav8w7ql7xm")))) | |
2043 | (build-system gnu-build-system) | |
2044 | (native-inputs | |
2045 | `(("pkg-config" ,pkg-config) | |
2046 | ("autoconf" ,autoconf) | |
2047 | ("automake" ,automake) | |
2048 | ("libtool" ,libtool) | |
2049 | ("glib:bin" ,glib "bin") | |
2050 | ("which" ,which) | |
2051 | ("gettext" ,gettext-minimal))) | |
2052 | (inputs | |
2053 | `(("glib" ,glib) | |
2054 | ("flatpak" ,flatpak) | |
2055 | ("fontconfig" ,fontconfig) | |
2056 | ("json-glib" ,json-glib) | |
2057 | ("libportal" ,libportal) | |
2058 | ("dbus" ,dbus) | |
2059 | ("geoclue" ,geoclue) | |
2060 | ("pipewire" ,pipewire-0.3) | |
2061 | ("fuse" ,fuse))) | |
2062 | (home-page "https://github.com/flatpak/xdg-desktop-portal") | |
2063 | (synopsis "Desktop integration portal for sandboxed apps") | |
2064 | (description | |
2065 | "xdg-desktop-portal is a @dfn{portal front-end service} for Flatpak and | |
2066 | possibly other desktop containment frameworks. It works by exposing a series | |
2067 | of D-Bus interfaces known as portals under a well-known | |
2068 | name (@code{org.freedesktop.portal.Desktop}) and object | |
2069 | path (@code{/org/freedesktop/portal/desktop}). | |
2070 | ||
2071 | The portal interfaces include APIs for file access, opening URIs, printing | |
2072 | and others.") | |
2073 | (license license:lgpl2.1+))) | |
e4b8feaf AT |
2074 | |
2075 | (define-public xdg-desktop-portal-gtk | |
2076 | (package | |
2077 | (name "xdg-desktop-portal-gtk") | |
2078 | (version "1.7.1") | |
2079 | (source (origin | |
2080 | (method git-fetch) | |
2081 | (uri (git-reference | |
2082 | (url "https://github.com/flatpak/xdg-desktop-portal-gtk") | |
2083 | (commit version))) | |
2084 | (file-name (git-file-name name version)) | |
2085 | (sha256 | |
2086 | (base32 | |
2087 | "183iha9dxmvprn99ymgz17jx1lyn1fj5jyj6ghxl716zn9mxmird")))) | |
2088 | (build-system glib-or-gtk-build-system) | |
2089 | (arguments | |
2090 | `(#:phases | |
2091 | (modify-phases %standard-phases | |
2092 | (add-after 'unpack 'po-chmod | |
2093 | (lambda _ | |
2094 | ;; Make sure 'msgmerge' can modify the PO files. | |
2095 | (for-each (lambda (po) | |
2096 | (chmod po #o666)) | |
2097 | (find-files "po" "\\.po$")) | |
2098 | #t))))) | |
2099 | (native-inputs | |
2100 | `(("pkg-config" ,pkg-config) | |
2101 | ("autoconf" ,autoconf) | |
2102 | ("automake" ,automake) | |
2103 | ("libtool" ,libtool) | |
2104 | ("xdg-desktop-portal" ,xdg-desktop-portal) | |
2105 | ("glib:bin" ,glib "bin") | |
2106 | ("which" ,which) | |
2107 | ("gettext" ,gettext-minimal))) | |
2108 | (inputs | |
2109 | `(("glib" ,glib) | |
2110 | ("gtk" ,gtk+) | |
2111 | ("fontconfig" ,fontconfig) | |
2112 | ("gnome-desktop" ,gnome-desktop) | |
2113 | ("gsettings-desktop-schemas" ,gsettings-desktop-schemas))) | |
2114 | (native-search-paths | |
2115 | (list (search-path-specification | |
2116 | (variable "XDG_DESKTOP_PORTAL_DIR") | |
2117 | (files '("share/xdg-desktop-portal/portals"))))) | |
2118 | (home-page "https://github.com/flatpak/xdg-desktop-portal-gtk") | |
2119 | (synopsis "GTK implementation of xdg-desktop-portal") | |
2120 | (description | |
2121 | "This package provides a backend implementation for xdg-desktop-portal | |
2122 | which uses GTK+ and various pieces of GNOME infrastructure, such as the | |
2123 | @code{org.gnome.Shell.Screenshot} or @code{org.gnome.SessionManager} D-Bus | |
2124 | interfaces.") | |
2125 | (license license:lgpl2.1+))) |