Commit | Line | Data |
---|---|---|
3c156c8a JD |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> | |
56ac2bf4 | 3 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
3c156c8a | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
9f1d33be | 5 | ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com> |
04fa4cdf | 6 | ;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
751f6871 | 7 | ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org> |
42f2c2b9 | 8 | ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com> |
f1f7049e | 9 | ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com> |
998b8c07 | 10 | ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com> |
6645753b | 11 | ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net> |
6f74aecd | 12 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
b951e26f | 13 | ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> |
1f42989e | 14 | ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
71ca0539 | 15 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
6cfd1a68 | 16 | ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> |
b2193c35 | 17 | ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com> |
01278f16 | 18 | ;;; Copyright © 2016 Petter <petter@mykolab.ch> |
37447422 | 19 | ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com> |
4a78fd46 | 20 | ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is> |
89be33f7 | 21 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
f021382b | 22 | ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com> |
1d752e43 | 23 | ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org> |
3c156c8a JD |
24 | ;;; |
25 | ;;; This file is part of GNU Guix. | |
26 | ;;; | |
27 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
28 | ;;; under the terms of the GNU General Public License as published by | |
29 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
30 | ;;; your option) any later version. | |
31 | ;;; | |
32 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
33 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | ;;; GNU General Public License for more details. | |
36 | ;;; | |
37 | ;;; You should have received a copy of the GNU General Public License | |
38 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
39 | ||
40 | (define-module (gnu packages xdisorg) | |
41 | #:use-module ((guix licenses) #:prefix license:) | |
42 | #:use-module (guix packages) | |
43 | #:use-module (guix download) | |
37447422 | 44 | #:use-module (guix git-download) |
18ad5bff | 45 | #:use-module (guix utils) |
9f1d33be | 46 | #:use-module (guix build-system cmake) |
3c156c8a | 47 | #:use-module (guix build-system gnu) |
f1f7049e | 48 | #:use-module (guix build-system glib-or-gtk) |
ae05b185 | 49 | #:use-module (guix build-system python) |
3c156c8a | 50 | #:use-module (gnu packages) |
99828fa7 | 51 | #:use-module (gnu packages documentation) |
b4c400a7 | 52 | #:use-module (gnu packages algebra) |
b2193c35 | 53 | #:use-module (gnu packages autotools) |
23e12d9d | 54 | #:use-module (gnu packages check) |
3c156c8a JD |
55 | #:use-module (gnu packages compression) |
56 | #:use-module (gnu packages image) | |
57 | #:use-module (gnu packages pkg-config) | |
23e12d9d | 58 | #:use-module (gnu packages flex) |
ae05b185 | 59 | #:use-module (gnu packages gettext) |
9f1d33be | 60 | #:use-module (gnu packages gl) |
2e88e089 | 61 | #:use-module (gnu packages glib) |
751f6871 | 62 | #:use-module (gnu packages gnome) |
01614de1 | 63 | #:use-module (gnu packages icu4c) |
937b71df | 64 | #:use-module (gnu packages maths) |
4493a3c2 | 65 | #:use-module (gnu packages m4) |
1ef3f91a | 66 | #:use-module (gnu packages ncurses) |
de51bf58 | 67 | #:use-module (gnu packages perl) |
ae05b185 | 68 | #:use-module (gnu packages python) |
ab69d9ac | 69 | #:use-module (gnu packages linux) |
b4c400a7 | 70 | #:use-module (gnu packages gl) |
76212b57 | 71 | #:use-module (gnu packages guile) |
f1f7049e AW |
72 | #:use-module (gnu packages xml) |
73 | #:use-module (gnu packages gtk) | |
cf60e76a | 74 | #:use-module (gnu packages xorg) |
1f42989e EF |
75 | #:use-module (gnu packages bison) |
76 | #:use-module (ice-9 match)) | |
3c156c8a | 77 | |
3c156c8a JD |
78 | ;; packages outside the x.org system proper |
79 | ||
ae05b185 ML |
80 | (define-public arandr |
81 | (package | |
82 | (name "arandr") | |
16d8f9be | 83 | (version "0.1.9") |
ae05b185 ML |
84 | (source (origin |
85 | (method url-fetch) | |
86 | (uri (string-append "http://christian.amsuess.com/tools/" name | |
87 | "/files/" name "-" version ".tar.gz")) | |
88 | (sha256 | |
89 | (base32 | |
04fa4cdf LC |
90 | "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv")) |
91 | (modules '((guix build utils))) | |
92 | (snippet | |
93 | ;; Do not record a timestamp and file name in gzipped man | |
94 | ;; pages (this is equivalent to 'gzip --no-name'.) | |
95 | '(substitute* "setup.py" | |
96 | (("gzip\\.open\\(gzfile, 'w', 9\\)") | |
97 | "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))))) | |
ae05b185 | 98 | (build-system python-build-system) |
b951e26f RW |
99 | (arguments |
100 | `(#:python ,python-2 ;incompatible with python 3 | |
28fd275c AI |
101 | #:phases |
102 | (modify-phases %standard-phases | |
103 | (add-before 'build 'configure | |
104 | (lambda* (#:key inputs #:allow-other-keys) | |
105 | (substitute* "screenlayout/xrandr.py" | |
106 | (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr") | |
107 | "/bin/xrandr\""))) | |
108 | #t))) | |
b5244fcb | 109 | #:tests? #f)) ;no tests |
b951e26f RW |
110 | (inputs `(("pygtk" ,python2-pygtk) |
111 | ("xrandr" ,xrandr))) | |
b94a6ca0 | 112 | (native-inputs `(("gettext" ,gettext-minimal) |
f3b98f4f | 113 | ("python-docutils" ,python2-docutils))) |
ae05b185 ML |
114 | (home-page "https://christian.amsuess.com/tools/arandr/") |
115 | (synopsis "Another RandR graphical user interface") | |
116 | ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated. | |
117 | (description "ARandR is designed to provide a simple visual front end for | |
118 | the X11 resize-and-rotate (RandR) extension. Relative monitor positions are | |
119 | shown graphically and can be changed in a drag-and-drop way. Configurations | |
120 | are saved as executable shell scripts which can be loaded without using this | |
121 | program.") | |
122 | (license license:gpl3+))) | |
123 | ||
de878f1b JD |
124 | (define-public xclip |
125 | (package | |
126 | (name "xclip") | |
b2193c35 | 127 | (version "0.13") |
de878f1b JD |
128 | (source |
129 | (origin | |
130 | (method url-fetch) | |
b2193c35 MB |
131 | (uri (string-append "https://github.com/astrand/xclip" |
132 | "/archive/" version ".tar.gz")) | |
e3baf59c | 133 | (file-name (string-append name "-" version ".tar.gz")) |
de878f1b JD |
134 | (sha256 |
135 | (base32 | |
b2193c35 | 136 | "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya")))) |
de878f1b JD |
137 | (build-system gnu-build-system) |
138 | (arguments | |
b2193c35 MB |
139 | '(#:tests? #f ; There is no test suite |
140 | #:phases | |
141 | (modify-phases %standard-phases | |
142 | ;; Since version 0.13, bootstrapped releases are no longer available. | |
143 | (add-after 'unpack 'bootstrap | |
144 | (lambda _ (zero? (system* "autoreconf" "-v"))))))) | |
145 | (native-inputs | |
146 | `(("autoconf" ,autoconf) | |
147 | ("automake" ,automake))) | |
de878f1b JD |
148 | (inputs `(("libxmu" ,libxmu) |
149 | ("libxt" ,libxt))) | |
b2193c35 | 150 | (home-page "https://github.com/astrand/xclip") |
de878f1b JD |
151 | (synopsis "Command line interface to X11 clipboard") |
152 | (description "Xclip is a command line interface to the X11 clipboard. It | |
153 | can also be used for copying files, as an alternative to sftp/scp, thus | |
154 | avoiding password prompts when X11 forwarding has already been setup.") | |
155 | (license license:gpl2+))) | |
156 | ||
cf60e76a DM |
157 | (define-public libxkbcommon |
158 | (package | |
159 | (name "libxkbcommon") | |
fbb4755c | 160 | (version "0.7.1") |
cf60e76a DM |
161 | (source (origin |
162 | (method url-fetch) | |
fbb4755c | 163 | (uri (string-append "https://xkbcommon.org/download/" name "-" |
cf60e76a DM |
164 | version ".tar.xz")) |
165 | (sha256 | |
166 | (base32 | |
fbb4755c | 167 | "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds")))) |
cf60e76a DM |
168 | (build-system gnu-build-system) |
169 | (inputs | |
170 | `(("libx11" ,libx11) | |
171 | ("libxcb" ,libxcb) | |
172 | ("xkeyboard-config" ,xkeyboard-config))) | |
173 | (native-inputs | |
174 | `(("bison" ,bison) | |
175 | ("pkg-config" ,pkg-config))) | |
176 | (arguments | |
177 | `(#:configure-flags | |
178 | (list (string-append "--with-xkb-config-root=" | |
179 | (assoc-ref %build-inputs "xkeyboard-config") | |
180 | "/share/X11/xkb") | |
181 | (string-append "--with-x-locale-root=" | |
182 | (assoc-ref %build-inputs "libx11") | |
183 | "/share/X11/locale")))) | |
fbb4755c | 184 | (home-page "https://xkbcommon.org/") |
cf60e76a DM |
185 | (synopsis "Library to handle keyboard descriptions") |
186 | (description "Xkbcommon is a library to handle keyboard descriptions, | |
187 | including loading them from disk, parsing them and handling their | |
188 | state. It is mainly meant for client toolkits, window systems, and other | |
189 | system applications; currently that includes Wayland, kmscon, GTK+, Qt, | |
190 | Clutter, and more. Despite the name, it is not currently used by anything | |
191 | X11 (yet).") | |
192 | (license (license:x11-style "file://COPYING" | |
193 | "See 'COPYING' in the distribution.")))) | |
194 | ||
e91f9d40 | 195 | (define-public libfakekey |
196 | (package | |
197 | (name "libfakekey") | |
198 | (version "0.1") | |
199 | (source | |
200 | (origin | |
201 | (method url-fetch) | |
202 | (uri (string-append "https://downloads.yoctoproject.org/releases" | |
203 | "/matchbox/libfakekey/" version "/libfakekey-" | |
204 | version ".tar.bz2")) | |
205 | (sha256 | |
206 | (base32 | |
207 | "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464")))) | |
208 | (build-system gnu-build-system) | |
209 | (arguments | |
210 | `(#:make-flags (list "AM_LDFLAGS=-lX11"))) | |
211 | (native-inputs | |
212 | `(("pkg-config" ,pkg-config))) | |
213 | (inputs | |
214 | `(("libxtst" ,libxtst) | |
215 | ("libx11" ,libx11))) | |
216 | (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox") | |
217 | (synopsis "X virtual keyboard library") | |
218 | (description | |
219 | "Libfakekey is a virtual keyboard library for X.") | |
220 | (license license:gpl2))) | |
221 | ||
de51bf58 JD |
222 | (define-public xdotool |
223 | (package | |
224 | (name "xdotool") | |
6f74aecd | 225 | (version "3.20150503.1") |
de51bf58 JD |
226 | (source |
227 | (origin | |
228 | (method url-fetch) | |
229 | (uri (string-append | |
6f74aecd CAW |
230 | "https://github.com/jordansissel/xdotool/releases/download/v" |
231 | version "/xdotool-" version ".tar.gz")) | |
de51bf58 JD |
232 | (sha256 |
233 | (base32 | |
6f74aecd | 234 | "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8")) |
fc1adab1 | 235 | (patches (search-patches "xdotool-fix-makefile.patch")))) |
de51bf58 JD |
236 | (build-system gnu-build-system) |
237 | (arguments | |
238 | '(#:tests? #f ; Test suite requires a lot of black magic | |
ca0d2a63 | 239 | #:phases |
c237480b EF |
240 | (modify-phases %standard-phases |
241 | (replace 'configure | |
242 | (lambda* (#:key outputs #:allow-other-keys #:rest args) | |
243 | (setenv "PREFIX" (assoc-ref outputs "out")) | |
244 | (setenv "LDFLAGS" | |
245 | (string-append "-Wl,-rpath=" | |
246 | (assoc-ref %outputs "out") "/lib")) | |
247 | (setenv "CC" "gcc")))))) | |
de51bf58 JD |
248 | (native-inputs `(("perl" ,perl))) ; for pod2man |
249 | (inputs `(("libx11" ,libx11) | |
250 | ("libxext" ,libxext) | |
251 | ("libxi" ,libxi) | |
252 | ("libxinerama" ,libxinerama) | |
6f74aecd CAW |
253 | ("libxtst" ,libxtst) |
254 | ("libxkbcommon" ,libxkbcommon))) | |
de51bf58 JD |
255 | (home-page "http://www.semicomplete.com/projects/xdotool") |
256 | (synopsis "Fake keyboard/mouse input, window management, and more") | |
257 | (description "Xdotool lets you simulate keyboard input and mouse activity, | |
258 | move and resize windows, etc. It does this using X11's XTEST extension and | |
259 | other Xlib functions. Additionally, you can search for windows and move, | |
260 | resize, hide, and modify window properties like the title. If your window | |
261 | manager supports it, you can use xdotool to switch desktops, move windows | |
262 | between desktops, and change the number of desktops.") | |
263 | (license license:bsd-3))) | |
264 | ||
3c156c8a JD |
265 | (define-public xeyes |
266 | (package | |
267 | (name "xeyes") | |
268 | (version "1.0.1") | |
269 | (source | |
270 | (origin | |
271 | (method url-fetch) | |
272 | (uri (string-append | |
273 | "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_" | |
274 | version | |
275 | ".orig.tar.gz")) | |
276 | (sha256 | |
277 | (base32 | |
278 | "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9")))) | |
279 | (build-system gnu-build-system) | |
280 | (inputs | |
281 | `(("libxext" ,libxext) | |
282 | ("libxmu" ,libxmu) | |
283 | ("libxt" ,libxt))) | |
284 | (native-inputs | |
285 | `(("pkg-config" ,pkg-config))) | |
286 | (home-page "http://xeyes.sourcearchive.com/") | |
287 | (synopsis "Follow-the-mouse X demo") | |
288 | (description "Xeyes is a demo program for x.org. It shows eyes | |
289 | following the mouse.") | |
290 | (license license:x11))) | |
291 | ||
292 | ||
293 | (define-public pixman | |
294 | (package | |
295 | (name "pixman") | |
6983ba56 | 296 | (version "0.34.0") |
997f86e9 LC |
297 | (source (origin |
298 | (method url-fetch) | |
299 | (uri (string-append | |
300 | "http://cairographics.org/releases/pixman-" | |
301 | version ".tar.gz")) | |
302 | (sha256 | |
303 | (base32 | |
35bbe88b MB |
304 | "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1")) |
305 | (patches (search-patches "pixman-CVE-2016-5296.patch")))) | |
3c156c8a JD |
306 | (build-system gnu-build-system) |
307 | (inputs | |
997f86e9 LC |
308 | `(("libpng" ,libpng) |
309 | ("zlib" ,zlib))) | |
3c156c8a | 310 | (native-inputs |
997f86e9 | 311 | `(("pkg-config" ,pkg-config))) |
3c156c8a JD |
312 | (home-page "http://www.pixman.org/") |
313 | (synopsis "Low-level pixel manipulation library") | |
314 | (description "Pixman is a low-level software library for pixel | |
315 | manipulation, providing features such as image compositing and trapezoid | |
316 | rasterisation.") | |
317 | (license license:x11))) | |
318 | ||
3c156c8a JD |
319 | (define-public libdrm |
320 | (package | |
321 | (name "libdrm") | |
f3b97f47 | 322 | (version "2.4.91") |
3c156c8a JD |
323 | (source |
324 | (origin | |
325 | (method url-fetch) | |
326 | (uri (string-append | |
5cc3096c | 327 | "https://dri.freedesktop.org/libdrm/libdrm-" |
3c156c8a JD |
328 | version |
329 | ".tar.bz2")) | |
330 | (sha256 | |
0b684f49 | 331 | (base32 |
f3b97f47 | 332 | "0068dn47c478vm1lyyhy02gilrpsma0xmcblhvs0dzqyrk80wjk3")) |
fc1adab1 | 333 | (patches (search-patches "libdrm-symbol-check.patch")))) |
3c156c8a | 334 | (build-system gnu-build-system) |
1f42989e EF |
335 | (arguments |
336 | `(#:configure-flags | |
337 | '(,@(match (%current-system) | |
338 | ("armhf-linux" | |
339 | '("--enable-exynos-experimental-api" | |
340 | "--enable-omap-experimental-api" | |
68932812 MB |
341 | ;; XXX: This fails a symbol check on a build machine: |
342 | ;; <https://hydra.gnu.org/build/2270314/nixlog/4/raw> | |
343 | ;; TODO: Update the list of symbols. | |
344 | ;;"--enable-etnaviv-experimental-api" | |
1f42989e EF |
345 | "--enable-tegra-experimental-api" |
346 | "--enable-freedreno-kgsl")) | |
347 | ("aarch64-linux" | |
348 | '("--enable-tegra-experimental-api" | |
349 | "--enable-freedreno-kgsl")) | |
350 | (_ '()))))) | |
3c156c8a | 351 | (inputs |
53e16a5a | 352 | `(("libpciaccess" ,libpciaccess))) |
3c156c8a | 353 | (native-inputs |
53e16a5a MB |
354 | `(("pkg-config" ,pkg-config))) |
355 | (home-page "https://dri.freedesktop.org/wiki/") | |
3c156c8a JD |
356 | (synopsis "Direct rendering userspace library") |
357 | (description "The Direct Rendering Infrastructure, also known as the DRI, | |
358 | is a framework for allowing direct access to graphics hardware under the | |
359 | X Window System in a safe and efficient manner. It includes changes to the | |
360 | X server, to several client libraries, and to the kernel (DRM, Direct | |
361 | Rendering Manager). The most important use for the DRI is to create fast | |
362 | OpenGL implementations providing hardware acceleration for Mesa. | |
363 | Several 3D accelerated drivers have been written to the DRI specification, | |
364 | including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel | |
365 | and Matrox.") | |
366 | (license license:x11))) | |
367 | ||
368 | ||
3c156c8a JD |
369 | (define-public mtdev |
370 | (package | |
371 | (name "mtdev") | |
1f1e620f | 372 | (version "1.1.5") |
3c156c8a JD |
373 | (source |
374 | (origin | |
375 | (method url-fetch) | |
376 | (uri (string-append | |
377 | "http://bitmath.org/code/mtdev/mtdev-" | |
378 | version ".tar.bz2")) | |
379 | (sha256 | |
1f1e620f EF |
380 | (base32 |
381 | "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6")))) | |
3c156c8a JD |
382 | (build-system gnu-build-system) |
383 | (home-page "http://bitmath.org/code/mtdev/") | |
384 | (synopsis "Multitouch protocol translation library") | |
385 | (description "Mtdev is a stand-alone library which transforms all | |
386 | variants of kernel MT events to the slotted type B protocol. The events | |
387 | put into mtdev may be from any MT device, specifically type A without | |
388 | contact tracking, type A with contact tracking, or type B with contact | |
389 | tracking.") | |
390 | (license license:x11))) | |
a693bba1 SB |
391 | |
392 | (define-public startup-notification | |
393 | (package | |
394 | (name "startup-notification") | |
395 | (version "0.12") | |
396 | (source | |
397 | (origin | |
398 | (method url-fetch) | |
5cc3096c | 399 | (uri (string-append "https://www.freedesktop.org/software/" name |
a693bba1 SB |
400 | "/releases/" name "-" version ".tar.gz")) |
401 | (sha256 | |
402 | (base32 | |
403 | "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w")))) | |
404 | (build-system gnu-build-system) | |
405 | (native-inputs `(("pkg-config" ,pkg-config))) | |
406 | (inputs | |
407 | `(("libx11" ,libx11) | |
408 | ("xcb-util" ,xcb-util))) | |
57e7d748 | 409 | (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/") |
a693bba1 SB |
410 | (synopsis "Application startup notification and feedback library") |
411 | (description | |
412 | "Startup-notification contains a reference implementation of the startup | |
413 | notification protocol. The reference implementation is mostly under an X Window | |
414 | System style license, and has no special dependencies.") | |
415 | ;; Most of the code is provided under x11 license. | |
416 | (license license:lgpl2.0+))) | |
2e88e089 AK |
417 | |
418 | (define-public wmctrl | |
419 | (package | |
420 | (name "wmctrl") | |
421 | (version "1.07") | |
422 | (source (origin | |
423 | (method url-fetch) | |
424 | (uri (string-append | |
d6420533 | 425 | "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-" |
2e88e089 AK |
426 | version ".tar.gz")) |
427 | (sha256 | |
428 | (base32 | |
429 | "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np")) | |
fc1adab1 | 430 | (patches (search-patches "wmctrl-64-fix.patch")))) |
2e88e089 AK |
431 | (build-system gnu-build-system) |
432 | (arguments | |
433 | '(#:configure-flags | |
434 | (list (string-append "--mandir=" | |
435 | (assoc-ref %outputs "out") | |
436 | "/share/man")))) | |
437 | (native-inputs | |
438 | `(("pkg-config" ,pkg-config))) | |
439 | (inputs | |
440 | `(("libx11" ,libx11) | |
441 | ("libxmu" ,libxmu) | |
442 | ("glib" ,glib))) | |
443 | (home-page "http://tomas.styblo.name/wmctrl/") | |
444 | (synopsis "Command-line tool to control X window managers") | |
445 | (description | |
446 | "Wmctrl allows to interact with an X window manager that is compatible | |
447 | with the EWMH/NetWM specification. It can query the window manager for | |
448 | information, and request for certain window management actions (resize and | |
e881752c | 449 | move windows, switch between desktops, etc.).") |
2e88e089 | 450 | (license license:gpl2+))) |
1410f342 AK |
451 | |
452 | (define-public scrot | |
453 | (package | |
454 | (name "scrot") | |
455 | (version "0.8") | |
456 | (source (origin | |
457 | (method url-fetch) | |
9da459f3 EF |
458 | (uri (list (string-append |
459 | "http://linuxbrit.co.uk/downloads/scrot-" | |
460 | version ".tar.gz") | |
461 | (string-append | |
462 | "https://fossies.org/linux/privat/old/scrot-" | |
c5d15d41 | 463 | version ".tar.gz"))) |
1410f342 AK |
464 | (sha256 |
465 | (base32 | |
466 | "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1")))) | |
467 | (build-system gnu-build-system) | |
468 | (arguments | |
469 | ;; By default, man and doc are put in PREFIX/{man,doc} instead of | |
470 | ;; PREFIX/share/{man,doc}. | |
471 | '(#:configure-flags | |
472 | (list (string-append "--mandir=" | |
473 | (assoc-ref %outputs "out") | |
474 | "/share/man")) | |
d5047266 EF |
475 | #:phases |
476 | (modify-phases %standard-phases | |
477 | (replace 'install | |
478 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
479 | (let* ((out (assoc-ref outputs "out")) | |
480 | (doc (string-append out "/share/doc/scrot"))) | |
481 | (mkdir-p doc) | |
482 | (zero? | |
483 | (system* "make" "install" | |
484 | (string-append "docsdir=" doc))))))))) | |
1410f342 AK |
485 | (inputs |
486 | `(("libx11" ,libx11) | |
487 | ("giblib" ,giblib))) | |
488 | (home-page "http://linuxbrit.co.uk/software/") | |
489 | (synopsis "Command-line screen capture utility for X Window System") | |
490 | (description | |
491 | "Scrot allows to save a screenshot of a full screen, a window or a part | |
492 | of the screen selected by mouse.") | |
493 | ;; This license removes a clause about X Consortium from the original | |
494 | ;; X11 license. | |
495 | (license (license:x11-style "file://COPYING" | |
496 | "See 'COPYING' in the distribution.")))) | |
4a01b30b | 497 | |
9f1d33be AK |
498 | (define-public slop |
499 | (package | |
500 | (name "slop") | |
8752fa6c | 501 | (version "7.3.49") |
9f1d33be AK |
502 | (source (origin |
503 | (method url-fetch) | |
504 | (uri (string-append | |
505 | "https://github.com/naelstrof/slop/archive/v" | |
506 | version ".tar.gz")) | |
507 | (file-name (string-append name "-" version ".tar.gz")) | |
508 | (sha256 | |
509 | (base32 | |
8752fa6c | 510 | "0gxi174vi13ldjaf776s2jcdyy379lnwwml29nk1bkzj5d5gpghm")))) |
9f1d33be | 511 | (build-system cmake-build-system) |
937b71df | 512 | (arguments |
e1c014d7 | 513 | '(#:tests? #f)) ; no "check" target |
9f1d33be | 514 | (inputs |
eb2b5f9d MB |
515 | `(("glew" ,glew) |
516 | ("glm" ,glm) | |
01614de1 | 517 | ("icu4c" ,icu4c) |
9f1d33be | 518 | ("libxext" ,libxext) |
e1c014d7 | 519 | ("libxrender" ,libxrender) |
9f1d33be AK |
520 | ("mesa" ,mesa))) |
521 | (home-page "https://github.com/naelstrof/slop") | |
522 | (synopsis "Select a region and print its bounds to stdout") | |
523 | (description | |
524 | "slop (Select Operation) is a tool that queries for a selection from a | |
525 | user and prints the region to stdout. It grabs the mouse and turns it into a | |
526 | crosshair, lets the user click and drag to make a selection (or click on a | |
527 | window) while drawing a pretty box around it, then finally prints the | |
528 | selection's dimensions to stdout.") | |
529 | (license license:gpl3+))) | |
530 | ||
5c93de73 AK |
531 | (define-public maim |
532 | (package | |
533 | (name "maim") | |
a251838d | 534 | (version "5.4.68") |
5c93de73 AK |
535 | (source (origin |
536 | (method url-fetch) | |
537 | (uri (string-append | |
538 | "https://github.com/naelstrof/maim/archive/v" | |
539 | version ".tar.gz")) | |
540 | (file-name (string-append name "-" version ".tar.gz")) | |
541 | (sha256 | |
542 | (base32 | |
a251838d | 543 | "0f54s7csrxjd5r9anqqa92diwmzdplpws3llmbr6g3c0l6bp8815")))) |
5c93de73 AK |
544 | (build-system cmake-build-system) |
545 | (arguments | |
2b7d10d2 | 546 | '(#:tests? #f)) ; no "check" target |
5c93de73 | 547 | (inputs |
2b7d10d2 MB |
548 | `(("glm" ,glm) |
549 | ("libjpeg" ,libjpeg-turbo) | |
550 | ("libpng" ,libpng) | |
551 | ("libxcomposite" ,libxcomposite) | |
5c93de73 | 552 | ("libxfixes" ,libxfixes) |
2b7d10d2 MB |
553 | ("libxrandr" ,libxrandr) |
554 | ("mesa" ,mesa) | |
555 | ("slop" ,slop) | |
556 | ("zlib" ,zlib))) | |
5c93de73 AK |
557 | (home-page "https://github.com/naelstrof/maim") |
558 | (synopsis "Screenshot utility for X Window System") | |
559 | (description | |
560 | "maim (Make Image) is a tool that takes screenshots of your desktop and | |
561 | saves it in any format. Along with a full screen, it allows you to capture a | |
562 | predefined region or a particular window. Also, it makes it possible to | |
563 | include cursor in the resulting image.") | |
564 | (license license:gpl3+))) | |
565 | ||
4a01b30b AK |
566 | (define-public unclutter |
567 | (package | |
568 | (name "unclutter") | |
569 | (version "8") | |
570 | (source (origin | |
571 | (method url-fetch) | |
572 | (uri (string-append | |
573 | "http://ftp.x.org/contrib/utilities/unclutter-" | |
574 | version ".tar.Z")) | |
575 | (sha256 | |
576 | (base32 | |
577 | "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq")))) | |
578 | (build-system gnu-build-system) | |
579 | (arguments | |
580 | '(#:tests? #f ; no check target | |
ea0836cd EF |
581 | #:phases |
582 | (modify-phases %standard-phases | |
583 | (delete 'configure) | |
584 | (replace 'install | |
585 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
586 | (let* ((out (assoc-ref outputs "out")) | |
587 | (bin (string-append out "/bin")) | |
588 | (man1 (string-append out "/share/man/man1"))) | |
589 | (mkdir-p bin) | |
590 | (mkdir-p man1) | |
591 | (zero? | |
592 | (system* "make" "install" "install.man" | |
593 | (string-append "BINDIR=" bin) | |
594 | (string-append "MANDIR=" man1))))))))) | |
4a01b30b AK |
595 | (inputs `(("libx11" ,libx11))) |
596 | (home-page "http://ftp.x.org/contrib/utilities/") | |
597 | (synopsis "Hide idle mouse cursor") | |
598 | (description | |
599 | "Unclutter is a program which runs permanently in the background of an | |
600 | X11 session. It checks on the X11 pointer (cursor) position every few | |
601 | seconds, and when it finds it has not moved (and no buttons are pressed | |
602 | on the mouse, and the cursor is not in the root window) it creates a | |
603 | small sub-window as a child of the window the cursor is in. The new | |
604 | window installs a cursor of size 1x1 but a mask of all 0, i.e. an | |
605 | invisible cursor. This allows you to see all the text in an xterm or | |
606 | xedit, for example. The human factors crowd would agree it should make | |
607 | things less distracting.") | |
608 | (license license:public-domain))) | |
ab69d9ac | 609 | |
6e79949f | 610 | (define-public xautomation |
611 | (package | |
612 | (name "xautomation") | |
613 | (version "1.09") | |
614 | (source | |
615 | (origin | |
616 | (method url-fetch) | |
617 | (uri (string-append "https://www.hoopajoo.net/static/projects/" | |
618 | "xautomation-" version ".tar.gz")) | |
619 | ||
620 | (sha256 | |
621 | (base32 | |
622 | "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf")))) | |
623 | (build-system gnu-build-system) | |
624 | (inputs | |
625 | `(("libpng" ,libpng) | |
626 | ("libx11" ,libx11) | |
627 | ("libxi" ,libxi) | |
628 | ("libxtst" ,libxtst))) | |
629 | (native-inputs | |
630 | `(("inputproto" ,inputproto) | |
631 | ("xextproto" ,xextproto) | |
632 | ("xproto" ,xproto))) | |
633 | (synopsis "Tools to automate tasks in X such as detecting on screen images") | |
634 | (description | |
635 | "Xautomation can control X from the command line for scripts, and | |
636 | do visual scraping to find things on the screen. The control interface | |
637 | allows mouse movement, clicking, button up/down, key up/down, etc, and | |
638 | uses the XTest extension so you don't have the annoying problems that | |
639 | xse has when apps ignore sent events. The visgrep program can find | |
640 | images inside of images and reports the coordinates, allowing progams | |
641 | to find buttons, etc, on the screen to click on.") | |
642 | (home-page "https://www.hoopajoo.net/projects/xautomation.html") | |
643 | (license license:gpl2+))) | |
644 | ||
ab69d9ac LC |
645 | (define-public xlockmore |
646 | (package | |
647 | (name "xlockmore") | |
e6f6d765 | 648 | (version "5.55") |
ab69d9ac LC |
649 | (source (origin |
650 | (method url-fetch) | |
2ec42868 TGR |
651 | (uri (list (string-append "http://sillycycle.com/xlock/" |
652 | name "-" version ".tar.xz") | |
653 | ;; Previous releases are moved to a subdirectory. | |
654 | (string-append "http://sillycycle.com/xlock/" | |
655 | "recent-releases/" | |
656 | name "-" version ".tar.xz"))) | |
ab69d9ac LC |
657 | (sha256 |
658 | (base32 | |
e6f6d765 | 659 | "1y3f76rq2nd10fgi2rx81aj6pijglmm661vjsxi05hpg35dzmwfl")))) |
ab69d9ac LC |
660 | (build-system gnu-build-system) |
661 | (arguments | |
662 | '(#:configure-flags (list (string-append "--enable-appdefaultdir=" | |
663 | (assoc-ref %outputs "out") | |
664 | "/lib/X11/app-defaults")) | |
665 | #:tests? #f)) ;no such thing as a test suite | |
666 | (inputs | |
667 | `(("libX11" ,libx11) | |
668 | ("libXext" ,libxext) | |
669 | ("libXt" ,libxt) | |
670 | ("linux-pam" ,linux-pam))) | |
2ec42868 | 671 | (home-page "http://sillycycle.com/xlockmore.html") |
ab69d9ac LC |
672 | (synopsis "Screen locker for the X Window System") |
673 | (description | |
674 | "XLockMore is a classic screen locker and screen saver for the | |
675 | X Window System.") | |
166191b3 | 676 | (license (license:non-copyleft #f "See xlock.c.") |
e4ddf924 | 677 | ))) ; + GPLv2 in modes/glx/biof.c. |
11447a79 AK |
678 | |
679 | (define-public xosd | |
680 | (package | |
681 | (name "xosd") | |
682 | (version "2.2.14") | |
683 | (source (origin | |
684 | (method url-fetch) | |
685 | (uri (string-append | |
de67e922 LF |
686 | "mirror://sourceforge/libxosd/libxosd/xosd-" version "/" |
687 | name "-" version ".tar.gz")) | |
11447a79 AK |
688 | (sha256 |
689 | (base32 | |
690 | "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg")))) | |
691 | (build-system gnu-build-system) | |
692 | (arguments | |
693 | '(#:configure-flags | |
694 | (list (string-append "--mandir=" %output "/share/man")))) | |
695 | (inputs | |
696 | `(("libx11" ,libx11) | |
697 | ("libxt" ,libxt) | |
698 | ("libxext" ,libxext) | |
699 | ("libxinerama" ,libxinerama))) | |
3b3b60d0 | 700 | (home-page "https://sourceforge.net/projects/libxosd/") |
11447a79 AK |
701 | (synopsis "X On Screen Display") |
702 | (description | |
703 | "XOSD provides a C library and a simple utility (osd_cat) for displaying | |
704 | transparent text on your screen.") | |
705 | (license license:gpl2+))) | |
76212b57 ML |
706 | |
707 | (define-public xbindkeys | |
708 | (package | |
709 | (name "xbindkeys") | |
710 | (version "1.8.6") | |
711 | (source (origin | |
712 | (method url-fetch) | |
713 | ;; Download from the savannah mirror list fails | |
714 | (uri (string-append | |
715 | "http://www.nongnu.org/xbindkeys/xbindkeys-" | |
716 | version | |
717 | ".tar.gz")) | |
718 | (sha256 | |
719 | (base32 | |
720 | "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc")))) | |
721 | (build-system gnu-build-system) | |
722 | (inputs | |
723 | `(("libx11" ,libx11) | |
724 | ("guile" ,guile-2.0))) | |
340978d7 | 725 | (home-page "https://www.nongnu.org/xbindkeys/") |
76212b57 ML |
726 | (synopsis "Associate a combination of keys with a shell command") |
727 | (description | |
728 | "XBindKeys is a program that allows you to launch shell commands with | |
729 | your keyboard or your mouse under the X Window System. It links commands to | |
730 | keys or mouse buttons, using a configuration file. It's independent of the | |
731 | window manager and can capture all keyboard keys (ex: Power, Wake...). It | |
732 | optionally supports a Guile-based configuration file layout, which enables you | |
733 | to access all XBindKeys internals, so you can have key combinations, double | |
734 | clicks or timed double clicks take actions. Also all functions that work in | |
735 | Guile will work for XBindKeys.") | |
736 | (license license:gpl2+))) | |
42f2c2b9 | 737 | |
998b8c07 | 738 | (define-public sxhkd |
739 | (package | |
740 | (name "sxhkd") | |
46cd684e | 741 | (version "0.5.6") |
998b8c07 | 742 | (source |
743 | (origin | |
744 | (file-name (string-append name "-" version ".tar.gz")) | |
745 | (method url-fetch) | |
746 | (uri (string-append | |
747 | "https://github.com/baskerville/sxhkd/archive/" | |
748 | version ".tar.gz")) | |
749 | (sha256 | |
750 | (base32 | |
46cd684e | 751 | "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj")))) |
998b8c07 | 752 | (build-system gnu-build-system) |
753 | (inputs | |
754 | `(("asciidoc" ,asciidoc) | |
755 | ("libxcb" ,libxcb) | |
756 | ("xcb-util" ,xcb-util) | |
757 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
758 | ("xcb-util-wm" ,xcb-util-wm))) | |
759 | (arguments | |
dc1d3cde | 760 | '(#:phases (modify-phases %standard-phases (delete 'configure)) |
998b8c07 | 761 | #:tests? #f ; no check target |
762 | #:make-flags (list "CC=gcc" | |
763 | (string-append "PREFIX=" %output)))) | |
764 | (home-page "https://github.com/baskerville/sxhkd") | |
765 | (synopsis "Simple X hotkey daemon") | |
766 | (description "sxhkd is a simple X hotkey daemon with a powerful and | |
767 | compact configuration syntax.") | |
768 | (license license:bsd-2))) | |
769 | ||
42f2c2b9 AG |
770 | (define-public rxvt-unicode |
771 | (package | |
772 | (name "rxvt-unicode") | |
71ca0539 | 773 | (version "9.22") |
1ef3f91a ML |
774 | (source (origin |
775 | (method url-fetch) | |
63999415 | 776 | (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/" |
1ef3f91a | 777 | name "-" version ".tar.bz2")) |
0fd0bb56 | 778 | (patches (search-patches "rxvt-unicode-escape-sequences.patch")) |
1ef3f91a ML |
779 | (sha256 |
780 | (base32 | |
71ca0539 | 781 | "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9")))) |
42f2c2b9 | 782 | (build-system gnu-build-system) |
1ef3f91a ML |
783 | (arguments |
784 | ;; This sets the destination when installing the necessary terminal | |
785 | ;; capability data, which are not provided by 'ncurses'. See | |
786 | ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html | |
33c93ea3 | 787 | `(#:make-flags (list (string-append "TERMINFO=" |
1ef3f91a | 788 | (assoc-ref %outputs "out") |
33c93ea3 | 789 | "/share/terminfo")) |
790 | #:phases | |
791 | (modify-phases %standard-phases | |
792 | (add-after 'install 'install-desktop-urxvt | |
793 | (lambda* (#:key outputs #:allow-other-keys) | |
794 | (let* ((output (assoc-ref outputs "out")) | |
795 | (desktop (string-append output "/share/applications"))) | |
796 | (mkdir-p desktop) | |
797 | (with-output-to-file | |
798 | (string-append desktop "/urxvt.desktop") | |
799 | (lambda _ | |
800 | (format #t | |
801 | "[Desktop Entry]~@ | |
802 | Name=rxvt-unicode~@ | |
803 | Comment=~@ | |
804 | Exec=~a/bin/urxvt~@ | |
805 | TryExec=~@*~a/bin/urxvt~@ | |
806 | Icon=~@ | |
807 | Type=Application~%" | |
808 | output))) | |
809 | #t))) | |
810 | (add-after 'install 'install-desktop-urxvtc | |
811 | (lambda* (#:key outputs #:allow-other-keys) | |
812 | (let* ((output (assoc-ref outputs "out")) | |
813 | (desktop (string-append output "/share/applications"))) | |
814 | (mkdir-p desktop) | |
815 | (with-output-to-file | |
816 | (string-append desktop "/urxvtc.desktop") | |
817 | (lambda _ | |
818 | (format #t | |
819 | "[Desktop Entry]~@ | |
120349bf | 820 | Name=rxvt-unicode (client)~@ |
33c93ea3 | 821 | Comment=Rxvt clone with XFT and unicode support~@ |
822 | Exec=~a/bin/urxvtc~@ | |
823 | TryExec=~@*~a/bin/urxvtc~@ | |
824 | Icon=~@ | |
825 | Type=Application~%" | |
826 | output))) | |
827 | #t)))))) | |
42f2c2b9 AG |
828 | (inputs |
829 | `(("libXft" ,libxft) | |
830 | ("libX11" ,libx11))) | |
831 | (native-inputs | |
1ef3f91a ML |
832 | `(("ncurses" ,ncurses) ;trigger the installation of terminfo data |
833 | ("perl" ,perl) | |
42f2c2b9 | 834 | ("pkg-config" ,pkg-config))) |
1ef3f91a ML |
835 | ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is |
836 | ;; provided for usability reasons. See <https://bugs.gnu.org/22138>. | |
837 | (native-search-paths | |
838 | (list (search-path-specification | |
839 | (variable "TERMINFO_DIRS") | |
840 | (files '("share/terminfo"))))) | |
42f2c2b9 AG |
841 | (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html") |
842 | (synopsis "Rxvt clone with XFT and unicode support") | |
843 | (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator | |
844 | intended as an xterm replacement for users who do not require features such as | |
845 | Tektronix 4014 emulation and toolkit-style configurability. It supports | |
846 | unicode, XFT and may be extended with Perl plugins. It also comes with a | |
847 | client/daemon pair that lets you open any number of terminal windows from | |
848 | within a single process.") | |
849 | (license license:gpl3+))) | |
ca0d2a63 AG |
850 | |
851 | (define-public xcape | |
852 | (package | |
853 | (name "xcape") | |
82f44a36 | 854 | (version "1.2") |
ca0d2a63 AG |
855 | (source |
856 | (origin | |
857 | (method url-fetch) | |
858 | (uri (string-append "https://github.com/alols/" name | |
859 | "/archive/v" version ".tar.gz")) | |
860 | (file-name (string-append name "-" version ".tar.gz")) | |
861 | (sha256 | |
862 | (base32 | |
82f44a36 | 863 | "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2")))) |
ca0d2a63 AG |
864 | (build-system gnu-build-system) |
865 | (arguments | |
866 | `(#:tests? #f ; no check target | |
dc1d3cde KK |
867 | ;; no configure script |
868 | #:phases (modify-phases %standard-phases (delete 'configure)) | |
ca0d2a63 AG |
869 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
870 | "MANDIR=/share/man/man1" | |
871 | "CC=gcc"))) | |
872 | (inputs | |
873 | `(("libxtst" ,libxtst) | |
874 | ("libx11" ,libx11))) | |
875 | (native-inputs | |
876 | `(("pkg-config" ,pkg-config))) | |
7bf837fd | 877 | (home-page "https://github.com/alols/xcape") |
ca0d2a63 AG |
878 | (synopsis "Use a modifier key in X.org as another key") |
879 | (description | |
880 | "This utility for X.org allows to use modifier key as another key when | |
881 | pressed and released on its own. The default behaviour is to generate the | |
882 | Escape key when Left Control is pressed and released on its own.") | |
883 | (license license:gpl3+))) | |
f1f7049e AW |
884 | |
885 | (define-public libwacom | |
886 | (package | |
887 | (name "libwacom") | |
f4f69c51 | 888 | (version "0.29") |
f1f7049e AW |
889 | (source (origin |
890 | (method url-fetch) | |
891 | (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/" | |
892 | name "-" version ".tar.bz2")) | |
893 | (sha256 | |
894 | (base32 | |
f4f69c51 | 895 | "1diklgcjhmvcxi9p1ifp6wcnyr6k7z9jhrlzfhzjqd6zipk01slw")))) |
f1f7049e AW |
896 | (build-system glib-or-gtk-build-system) |
897 | (native-inputs | |
898 | `(("pkg-config" ,pkg-config))) | |
899 | (inputs | |
34efce4f | 900 | `(("gtk+" ,gtk+) |
b9cbe316 | 901 | ("libgudev" ,libgudev) |
f1f7049e AW |
902 | ("eudev" ,eudev) |
903 | ("libxml2" ,libxml2))) | |
34efce4f AW |
904 | (propagated-inputs |
905 | ;; libwacom includes header files that include GLib, and libinput uses | |
906 | ;; those header files. | |
907 | `(("glib" ,glib))) | |
f1f7049e AW |
908 | (home-page "http://linuxwacom.sourceforge.net/") |
909 | (synopsis "Helper library for Wacom tablet settings") | |
910 | (description | |
34efce4f AW |
911 | "Libwacom is a library to help implement Wacom tablet settings. It is |
912 | intended to be used by client-programs that need model identification. It is | |
913 | already being used by the gnome-settings-daemon and the GNOME Control Center | |
914 | Wacom tablet applet.") | |
f1f7049e | 915 | (license license:x11))) |
ab42a2a7 AW |
916 | |
917 | (define-public xf86-input-wacom | |
918 | (package | |
919 | (name "xf86-input-wacom") | |
ee9c7156 | 920 | (version "0.36.0") |
ab42a2a7 AW |
921 | (source (origin |
922 | (method url-fetch) | |
923 | (uri (string-append | |
924 | "mirror://sourceforge/linuxwacom/xf86-input-wacom/" | |
925 | name "-" version ".tar.bz2")) | |
926 | (sha256 | |
927 | (base32 | |
ee9c7156 | 928 | "1xi39hl8ddgj9m7m2k2ll2r3wh0k0aq45fvrsv43651bhz9cbrza")))) |
ab42a2a7 AW |
929 | (arguments |
930 | `(#:configure-flags | |
931 | (list (string-append "--with-sdkdir=" | |
932 | (assoc-ref %outputs "out") | |
933 | "/include/xorg") | |
934 | (string-append "--with-xorg-conf-dir=" | |
935 | (assoc-ref %outputs "out") | |
936 | "/share/X11/xorg.conf.d")))) | |
937 | (build-system gnu-build-system) | |
938 | (native-inputs | |
939 | `(("pkg-config" ,pkg-config))) | |
940 | (inputs | |
941 | `(("xorg-server" ,xorg-server) | |
942 | ("libxrandr" ,libxrandr) | |
943 | ("libxinerama" ,libxinerama) | |
944 | ("libxi" ,libxi) | |
945 | ("eudev" ,eudev))) | |
946 | (home-page "http://linuxwacom.sourceforge.net/") | |
947 | (synopsis "Wacom input driver for X") | |
948 | (description | |
949 | "The xf86-input-wacom driver is the wacom-specific X11 input driver for | |
950 | the X.Org X Server version 1.7 and later (X11R7.5 or later).") | |
951 | (license license:x11))) | |
6645753b FPS |
952 | |
953 | (define-public redshift | |
954 | (package | |
955 | (name "redshift") | |
85a94d29 | 956 | (version "1.11") |
6645753b FPS |
957 | (source |
958 | (origin | |
959 | (method url-fetch) | |
960 | (uri | |
961 | (string-append "https://github.com/jonls/redshift/" | |
962 | "releases/download/v" version | |
963 | "/redshift-" version ".tar.xz")) | |
964 | (sha256 | |
965 | (base32 | |
85a94d29 | 966 | "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh")))) |
6645753b FPS |
967 | (build-system gnu-build-system) |
968 | (native-inputs | |
969 | `(("pkg-config" ,pkg-config) | |
970 | ("intltool" ,intltool))) | |
971 | (inputs | |
972 | `(("libdrm" ,libdrm) | |
973 | ("libx11" ,libx11) | |
974 | ("libxcb" ,libxcb) | |
b3546174 | 975 | ("libxxf86vm" ,libxxf86vm) |
6645753b FPS |
976 | ("glib" ,glib))) ;for Geoclue2 support |
977 | (home-page "https://github.com/jonls/redshift") | |
978 | (synopsis "Adjust the color temperature of your screen") | |
979 | (description | |
980 | "Redshift adjusts the color temperature according to the position of the | |
981 | sun. A different color temperature is set during night and daytime. During | |
982 | twilight and early morning, the color temperature transitions smoothly from | |
983 | night to daytime temperature to allow your eyes to slowly adapt. At night the | |
984 | color temperature should be set to match the lamps in your room.") | |
985 | (license license:gpl3+))) | |
b4c400a7 CAW |
986 | |
987 | (define-public xscreensaver | |
988 | (package | |
989 | (name "xscreensaver") | |
0379e362 | 990 | (version "5.38") |
b4c400a7 CAW |
991 | (source |
992 | (origin | |
993 | (method url-fetch) | |
994 | (uri | |
995 | (string-append "https://www.jwz.org/xscreensaver/xscreensaver-" | |
996 | version ".tar.gz")) | |
997 | (sha256 | |
998 | (base32 | |
0379e362 | 999 | "1f58h5rgjbxr4hh40m6zkpkzbzg68l7nqzjwal0b17yysafbmsf6")))) |
b4c400a7 CAW |
1000 | (build-system gnu-build-system) |
1001 | (arguments | |
1002 | `(#:tests? #f ; no check target | |
1003 | #:phases | |
1004 | (modify-phases %standard-phases | |
1005 | (add-before 'configure 'adjust-gtk-resource-paths | |
1006 | (lambda _ | |
1007 | (substitute* '("driver/Makefile.in" "po/Makefile.in.in") | |
1008 | (("@GTK_DATADIR@") "@datadir@") | |
1009 | (("@PO_DATADIR@") "@datadir@"))))) | |
1010 | #:configure-flags '("--with-pam" "--with-proc-interrupts" | |
1011 | "--without-readdisplay") | |
1012 | #:make-flags (list (string-append "AD_DIR=" | |
1013 | (assoc-ref %outputs "out") | |
1014 | "/usr/lib/X11/app-defaults")))) | |
1015 | (native-inputs | |
1016 | `(("pkg-config" ,pkg-config) | |
1017 | ("intltool" ,intltool))) | |
1018 | (inputs | |
1019 | `(("libx11" ,libx11) | |
1020 | ("libxext" ,libxext) | |
1021 | ("libxi" ,libxi) | |
1022 | ("libxt" ,libxt) | |
1023 | ("libxft" ,libxft) | |
1024 | ("libxmu" ,libxmu) | |
1025 | ("libxpm" ,libxpm) | |
1026 | ("libglade" ,libglade) | |
1027 | ("libxml2" ,libxml2) | |
1028 | ("libsm" ,libsm) | |
1029 | ("libjpeg" ,libjpeg) | |
1030 | ("linux-pam" ,linux-pam) | |
1031 | ("pango" ,pango) | |
1032 | ("gtk+" ,gtk+) | |
1033 | ("perl" ,perl) | |
1034 | ("cairo" ,cairo) | |
1035 | ("bc" ,bc) | |
1036 | ("libxrandr" ,libxrandr) | |
1037 | ("glu" ,glu) | |
1038 | ("glib" ,glib))) | |
1039 | (home-page "https://www.jwz.org/xscreensaver/") | |
1040 | (synopsis "Classic screen saver suite supporting screen locking") | |
1041 | (description | |
1042 | "xscreensaver is a popular screen saver collection with many entertaining | |
1043 | demos. It also acts as a nice screen locker.") | |
1044 | ;; xscreensaver doesn't have a single copyright file and instead relies on | |
1045 | ;; source comment headers, though most files have the same lax | |
1046 | ;; permissions. To reduce complexity, we're pointing at Debian's | |
1047 | ;; breakdown of the copyright information. | |
1048 | (license (license:non-copyleft | |
1049 | (string-append | |
1050 | "http://metadata.ftp-master.debian.org/changelogs/" | |
706998e7 | 1051 | "/main/x/xscreensaver/xscreensaver_5.36-1_copyright"))))) |
f40dfcd0 | 1052 | |
cab1c117 MB |
1053 | (define-public xsel |
1054 | (package | |
1055 | (name "xsel") | |
1056 | (version "1.2.0") | |
1057 | (source (origin | |
1058 | (method url-fetch) | |
1059 | (uri (string-append "http://www.vergenet.net/~conrad/software" | |
1060 | "/xsel/download/xsel-" version ".tar.gz")) | |
1061 | (sha256 | |
1062 | (base32 | |
1063 | "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr")))) | |
1064 | (build-system gnu-build-system) | |
1065 | (inputs | |
1066 | `(("libxt" ,libxt))) | |
1067 | (home-page "http://www.vergenet.net/~conrad/software/xsel/") | |
1068 | (synopsis "Manipulate X selection") | |
1069 | (description | |
1070 | "XSel is a command-line program for getting and setting the contents of | |
1071 | the X selection. Normally this is only accessible by manually highlighting | |
1072 | information and pasting it with the middle mouse button. | |
1073 | ||
1074 | XSel reads from standard input and writes to standard output by default, | |
1075 | but can also follow a growing file, display contents, delete entries and more.") | |
1076 | (license (license:x11-style "file://COPYING" | |
1077 | "See COPYING in the distribution.")))) | |
1078 | ||
6cfd1a68 AK |
1079 | (define-public xdpyprobe |
1080 | (package | |
1081 | (name "xdpyprobe") | |
1082 | (version "0.1") | |
1083 | (source (origin | |
1084 | (method url-fetch) | |
1085 | (uri (string-append "https://github.com/alezost/" name | |
1086 | "/releases/download/v" version | |
1087 | "/" name "-" version ".tar.gz")) | |
1088 | (sha256 | |
1089 | (base32 | |
1090 | "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8")))) | |
1091 | (build-system gnu-build-system) | |
1092 | (inputs | |
1093 | `(("libx11" ,libx11))) | |
1094 | (home-page "https://github.com/alezost/xdpyprobe") | |
1095 | (synopsis "Probe X server for connectivity") | |
1096 | (description | |
1097 | "Xdpyprobe is a tiny C program whose only purpose is to probe a | |
1098 | connectivity of the X server running on a particular @code{DISPLAY}.") | |
1099 | (license license:gpl3+))) | |
1100 | ||
f40dfcd0 DM |
1101 | (define-public rofi |
1102 | (package | |
1103 | (name "rofi") | |
712be306 | 1104 | (version "1.5.1") |
f40dfcd0 DM |
1105 | (source (origin |
1106 | (method url-fetch) | |
1107 | (uri (string-append "https://github.com/DaveDavenport/rofi/" | |
1108 | "releases/download/" | |
1109 | version "/rofi-" version ".tar.xz")) | |
1110 | (sha256 | |
1111 | (base32 | |
576e0ae4 | 1112 | "0wx118banbwfqdwc5y44fkp3hxg97gj3vma16528slhy408hkg7i")))) |
f40dfcd0 DM |
1113 | (build-system gnu-build-system) |
1114 | (inputs | |
68c35ba9 | 1115 | `(("pango" ,pango) |
f40dfcd0 DM |
1116 | ("cairo" ,cairo) |
1117 | ("glib" ,glib) | |
1118 | ("startup-notification" ,startup-notification) | |
23e12d9d | 1119 | ("librsvg" ,librsvg) |
f40dfcd0 DM |
1120 | ("libxkbcommon" ,libxkbcommon) |
1121 | ("libxcb" ,libxcb) | |
1122 | ("xcb-util" ,xcb-util) | |
68c35ba9 | 1123 | ("xcb-util-xrm" ,xcb-util-xrm) |
f40dfcd0 DM |
1124 | ("xcb-util-wm" ,xcb-util-wm))) |
1125 | (native-inputs | |
23e12d9d | 1126 | `(("bison" ,bison) |
dfdf8d74 | 1127 | ("check" ,check) |
23e12d9d | 1128 | ("flex" ,flex) |
a3a7eb2f | 1129 | ("glib:bin" ,glib "bin") |
23e12d9d | 1130 | ("pkg-config" ,pkg-config))) |
f40dfcd0 | 1131 | (arguments |
46d6219d MB |
1132 | `(#:parallel-tests? #f ; May fail in some circumstances. |
1133 | #:phases | |
f40dfcd0 DM |
1134 | (modify-phases %standard-phases |
1135 | (add-before 'configure 'adjust-tests | |
1136 | (lambda _ | |
1137 | (substitute* '("test/helper-expand.c") | |
1138 | (("~root") "/root") | |
1139 | (("~") "") | |
a3a7eb2f | 1140 | (("g_get_home_dir \\(\\)") "\"/\"")) |
576e0ae4 | 1141 | #t))))) |
06229f18 | 1142 | (home-page "https://github.com/DaveDavenport/rofi") |
89be33f7 TGR |
1143 | (synopsis "Application launcher") |
1144 | (description "Rofi is a minimalist application launcher. It memorizes which | |
1145 | applications you regularly use and also allows you to search for an application | |
f40dfcd0 DM |
1146 | by name.") |
1147 | (license license:expat))) | |
751f6871 ML |
1148 | |
1149 | (define-public tint2 | |
1150 | (package | |
1151 | (name "tint2") | |
1ffe4171 | 1152 | (version "0.14.6") |
751f6871 ML |
1153 | (source (origin |
1154 | (method url-fetch) | |
1155 | (uri (string-append "https://gitlab.com/o9000/" name | |
1156 | "/repository/archive.tar.gz?ref=" version)) | |
1157 | (file-name (string-append name "-" version ".tar.gz")) | |
1158 | (sha256 | |
1159 | (base32 | |
1ffe4171 | 1160 | "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda")))) |
751f6871 ML |
1161 | (build-system cmake-build-system) |
1162 | (arguments | |
1163 | '(#:tests? #f ;no test target | |
1164 | #:phases | |
1165 | (modify-phases %standard-phases | |
1166 | (add-after 'unpack 'fix-installation-prefix | |
1167 | (lambda _ | |
1168 | (substitute* "CMakeLists.txt" | |
1169 | (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))))))) | |
1170 | (inputs | |
1171 | `(("gtk+" ,gtk+-2) | |
1172 | ("imlib2" ,imlib2) | |
1173 | ("librsvg" ,librsvg) | |
1174 | ("libxcomposite" ,libxcomposite) | |
1175 | ("libxdamage" ,libxdamage) | |
1176 | ("libxft" ,libxft) | |
1177 | ("libxinerama" ,libxinerama) | |
1178 | ("libxrandr" ,libxrandr) | |
1179 | ("startup-notification" ,startup-notification))) | |
1180 | (native-inputs | |
b94a6ca0 | 1181 | `(("gettext" ,gettext-minimal) |
751f6871 ML |
1182 | ("pkg-config" ,pkg-config))) |
1183 | (home-page "https://gitlab.com/o9000/tint2") | |
1184 | (synopsis "Lightweight task bar") | |
1185 | (description | |
1186 | "Tint2 is a simple task bar made for modern X window managers. It was | |
1187 | specifically made for Openbox but it should also work with other window | |
1188 | managers (GNOME, KDE, XFCE etc.). | |
1189 | ||
1190 | The taskbar includes transparency and color settings for the font, icons, | |
1191 | border, and background. It also supports multihead setups, customized mouse | |
1192 | actions, a built-in clock, a battery monitor and a system tray.") | |
1193 | (license license:gpl2))) | |
4493a3c2 | 1194 | |
37447422 MM |
1195 | (define-public dzen |
1196 | (let ((commit "488ab66019f475e35e067646621827c18a879ba1") | |
1197 | (revision "1")) | |
1198 | (package | |
1199 | (name "dzen") | |
1200 | (version (string-append "0.9.5-" ; Taken from `config.mk`. | |
1201 | revision "." (string-take commit 7))) | |
1202 | (source (origin | |
1203 | (method git-fetch) | |
1204 | (uri (git-reference | |
1205 | (url "https://github.com/robm/dzen.git") | |
1206 | (commit commit))) | |
1207 | (file-name (string-append name "-" version)) | |
1208 | (sha256 | |
1209 | (base32 | |
1210 | "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw")))) | |
1211 | (build-system gnu-build-system) | |
1212 | (arguments | |
1213 | `(#:tests? #f ; No test suite. | |
1214 | #:make-flags ; Replacement for `config.mk`. | |
1215 | (list | |
1216 | (string-append "VERSION = " ,version) | |
1217 | (string-append "PREFIX = " %output) | |
1218 | "MANPREFIX = ${PREFIX}/share/man" | |
1219 | "INCS = -I." | |
1220 | "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)" | |
1221 | "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\ | |
1222 | -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)" | |
1223 | "LDFLAGS = ${LIBS}" | |
1224 | "CC = gcc" | |
1225 | "LD = ${CC}") | |
1226 | #:phases | |
1227 | (modify-phases %standard-phases | |
1228 | (delete 'configure) ; No configuration script. | |
1229 | ;; Use own make-flags instead of `config.mk`. | |
1230 | (add-before 'build 'dont-include-config-mk | |
1231 | (lambda _ | |
1232 | (substitute* "Makefile" (("include config.mk") "")) | |
1233 | #t))))) | |
1234 | (inputs | |
1235 | `(("libx11" ,libx11) | |
1236 | ("libxft" ,libxft) | |
1237 | ("libxpm" ,libxpm) | |
1238 | ("libxinerama" ,libxinerama))) | |
1239 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1240 | (synopsis "General purpose messaging, notification and menuing program for X11") | |
1241 | (description "Dzen is a general purpose messaging, notification and menuing | |
1242 | program for X11. It was designed to be fast, tiny and scriptable in any language.") | |
1243 | (home-page "https://github.com/robm/dzen") | |
1244 | (license license:expat)))) | |
1245 | ||
4493a3c2 MB |
1246 | (define-public xcb-util-xrm |
1247 | (package | |
1248 | (name "xcb-util-xrm") | |
7aef9930 | 1249 | (version "1.2") |
4493a3c2 MB |
1250 | (source (origin |
1251 | (method url-fetch) | |
1252 | (uri (string-append | |
1253 | "https://github.com/Airblader/xcb-util-xrm/releases" | |
1254 | "/download/v" version "/xcb-util-xrm-" version ".tar.bz2")) | |
1255 | (sha256 | |
1256 | (base32 | |
7aef9930 | 1257 | "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp")) |
4493a3c2 MB |
1258 | (modules '((guix build utils))) |
1259 | (snippet | |
1260 | ;; Drop bundled m4. | |
1261 | '(delete-file-recursively "m4")))) | |
1262 | (build-system gnu-build-system) | |
1263 | (native-inputs | |
1264 | `(("pkg-config" ,pkg-config) | |
1265 | ("m4" ,m4) | |
1266 | ("libx11" ,libx11))) ; for tests | |
1267 | (inputs | |
1268 | `(("libxcb" ,libxcb) | |
1269 | ("xcb-util" ,xcb-util))) | |
1270 | (home-page "https://github.com/Airblader/xcb-util-xrm") | |
1271 | (synopsis "XCB utility functions for the X resource manager") | |
1272 | (description | |
1273 | "The XCB util module provides a number of libraries which sit on | |
1274 | top of libxcb, the core X protocol library, and some of the extension | |
1275 | libraries. These experimental libraries provide convenience functions | |
1276 | and interfaces which make the raw X protocol more usable. Some of the | |
1277 | libraries also provide client-side code which is not strictly part of | |
1278 | the X protocol but which has traditionally been provided by Xlib. | |
1279 | ||
1280 | XCB util-xrm module provides the following libraries: | |
1281 | ||
1282 | - xrm: utility functions for the X resource manager.") | |
1283 | (license license:x11))) | |
01278f16 P |
1284 | |
1285 | (define-public xcalib | |
1286 | (package | |
1287 | (name "xcalib") | |
1288 | (version "0.8") | |
1289 | (source (origin | |
1290 | (method url-fetch) | |
1291 | (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version | |
1292 | "/xcalib-source-" version ".tar.gz")) | |
1293 | (sha256 | |
1294 | (base32 | |
1295 | "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca")))) | |
1296 | (build-system gnu-build-system) | |
1297 | (arguments | |
1298 | '(#:make-flags '("CC=gcc") | |
1299 | #:tests? #f ; No test suite | |
1300 | #:phases (modify-phases %standard-phases | |
1301 | (delete 'configure) | |
1302 | (replace 'install | |
1303 | (lambda* (#:key outputs #:allow-other-keys) | |
1304 | (let* ((out (assoc-ref outputs "out")) | |
1305 | (bin (string-append out "/bin"))) | |
1306 | (install-file "xcalib" bin)))) | |
1307 | (add-after 'install 'install-doc | |
1308 | (lambda* (#:key outputs #:allow-other-keys) | |
1309 | (let ((doc (string-append(assoc-ref outputs "out") | |
1310 | "/share/doc/xcalib"))) | |
1311 | (install-file "README" doc) | |
1312 | ;; Avoid unspecified return value. | |
1313 | #t)))))) | |
c695fb76 TGR |
1314 | (inputs `(("libx11" ,libx11) |
1315 | ("libxext" ,libxext) | |
1316 | ("libxxf86vm" ,libxxf86vm))) | |
01278f16 P |
1317 | (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)") |
1318 | (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC | |
1319 | profiles to the video card's gamma ramp. It does work with most video card | |
1320 | drivers except the generic VESA driver. Alter brightness, contrast, RGB, and | |
1321 | invert colors on a specific display/screen.") | |
1322 | (home-page "http://xcalib.sourceforge.net/") | |
1323 | (license license:gpl2))) | |
f021382b MB |
1324 | |
1325 | (define-public nxbelld | |
1326 | (package | |
1327 | (name "nxbelld") | |
1328 | (version "0.1.2") | |
1329 | (source (origin | |
1330 | (method git-fetch) | |
1331 | (uri (git-reference | |
1332 | (url "https://github.com/dusxmt/nxbelld.git") | |
1333 | (commit version))) | |
1334 | (sha256 | |
1335 | (base32 | |
1336 | "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z")) | |
1337 | (file-name (git-file-name name version)))) | |
1338 | (build-system gnu-build-system) | |
1339 | (arguments '(#:configure-flags `("--enable-sound" | |
1340 | "--enable-wave" | |
1341 | "--enable-alsa") | |
1342 | #:phases (modify-phases %standard-phases | |
1343 | (add-before 'configure 'autoreconf | |
1344 | (lambda _ | |
1345 | (zero? (system* "autoreconf" "-vfi"))))))) | |
1346 | (native-inputs `(("autoconf" ,autoconf) | |
1347 | ("automake" ,automake) | |
1348 | ("pkg-config" ,pkg-config) | |
1349 | ("perl" ,perl))) | |
1350 | (inputs `(("libx11" ,libx11) | |
1351 | ("alsa-lib" ,alsa-lib))) | |
1352 | (synopsis "Daemon that performs an action every time the X11 bell is rung") | |
1353 | (description "nxbelld is a tiny utility to aid people who either don't | |
1354 | like the default PC speaker beep, or use a sound driver that doesn't have | |
1355 | support for the PC speaker. The utility performs a given action every time | |
1356 | the X bell is rung. The actions nxbelld can currently perform include running | |
1357 | a specified program, emulating the PC speaker beep using the sound card (default), | |
1358 | or playing a PCM encoded WAVE file.") | |
1359 | (home-page "https://github.com/dusxmt/nxbelld") | |
1360 | (license license:gpl3+))) | |
1d752e43 MG |
1361 | |
1362 | (define-public xautolock | |
1363 | (package | |
1364 | (name "xautolock") | |
1365 | (version "2.2") | |
1366 | (source (origin | |
1367 | (method url-fetch) | |
1368 | (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/" | |
1369 | name "-" version ".tgz")) | |
1370 | (sha256 | |
1371 | (base32 | |
1372 | "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i")))) | |
1373 | (build-system gnu-build-system) | |
1374 | (native-inputs | |
1375 | `(("imake" ,imake))) | |
1376 | (inputs | |
1377 | `(("libx11" ,libx11) | |
1378 | ("libxext" ,libxext) | |
1379 | ("libxscrnsaver" ,libxscrnsaver))) | |
1380 | (arguments | |
1381 | `(#:tests? #f | |
1382 | #:phases | |
1383 | (modify-phases %standard-phases | |
1384 | (replace 'configure | |
1385 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1386 | (let ((imake (assoc-ref inputs "imake")) | |
1387 | (out (assoc-ref outputs "out"))) | |
1388 | ;; Generate Makefile | |
1389 | (invoke "xmkmf") | |
1390 | (substitute* "Makefile" | |
1391 | ;; These imake variables somehow remain undefined | |
1392 | (("DefaultGcc2[[:graph:]]*Opt") "-O2") | |
1393 | ;; Reset a few variable defaults that are set in imake templates | |
1394 | ((imake) out) | |
1395 | (("(MANPATH = )[[:graph:]]*" _ front) | |
1396 | (string-append front out "/share/man"))) | |
1397 | ;; Old BSD-style 'union wait' is unneeded (defining | |
1398 | ;; _USE_BSD did not seem to fix it) | |
1399 | (substitute* "src/engine.c" | |
1400 | (("union wait status") "int status = 0")) | |
1401 | #t))) | |
1402 | (add-after 'install 'install/man | |
1403 | (lambda _ | |
1404 | (zero? (system* "make" "install.man"))))))) | |
1405 | (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/") | |
1406 | (synopsis "Program launcher for idle X sessions") | |
1407 | (description "Xautolock monitors input devices under the X Window | |
1408 | System, and launches a program of your choice if there is no activity after | |
1409 | a user-configurable period of time.") | |
1410 | (license license:gpl2))) |