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