Commit | Line | Data |
---|---|---|
889e57f4 ML |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org> | |
2c2a9ef7 | 3 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
47956fa0 | 4 | ;;; Copyright © 2017 ng0 <ng0@n0.is> |
8b1e572d | 5 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
dcfa0acd | 6 | ;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot> |
70a8ccb7 | 7 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
3e859090 | 8 | ;;; Copyright © 2018 ison <ison@airmail.cc> |
9a0bc7b5 | 9 | ;;; Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org> |
a49b5322 | 10 | ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> |
a436a491 | 11 | ;;; Copyright © 2019 Meiyo Peng <meiyo@riseup.net> |
889e57f4 ML |
12 | ;;; |
13 | ;;; This file is part of GNU Guix. | |
14 | ;;; | |
15 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
16 | ;;; under the terms of the GNU General Public License as published by | |
17 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
18 | ;;; your option) any later version. | |
19 | ;;; | |
20 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
21 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | ;;; GNU General Public License for more details. | |
24 | ;;; | |
25 | ;;; You should have received a copy of the GNU General Public License | |
26 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
27 | ||
28 | (define-module (gnu packages lxde) | |
d3897349 | 29 | #:use-module (gnu packages) |
83365461 | 30 | #:use-module (gnu packages autotools) |
d2434b69 | 31 | #:use-module (gnu packages bash) |
bf37b49c | 32 | #:use-module (gnu packages disk) |
d3897349 | 33 | #:use-module (gnu packages docbook) |
bf37b49c | 34 | #:use-module (gnu packages file-systems) |
d2434b69 | 35 | #:use-module (gnu packages freedesktop) |
50042505 | 36 | #:use-module (gnu packages gettext) |
889e57f4 | 37 | #:use-module (gnu packages glib) |
19dd9983 | 38 | #:use-module (gnu packages gnome) |
889e57f4 | 39 | #:use-module (gnu packages gtk) |
ed3a9ec5 | 40 | #:use-module (gnu packages image-viewers) |
bf37b49c | 41 | #:use-module (gnu packages libusb) |
50042505 | 42 | #:use-module (gnu packages linux) |
d2434b69 | 43 | #:use-module (gnu packages lsof) |
812c1819 | 44 | #:use-module (gnu packages openbox) |
889e57f4 | 45 | #:use-module (gnu packages pkg-config) |
d3897349 | 46 | #:use-module (gnu packages polkit) |
8b1e572d | 47 | #:use-module (gnu packages text-editors) |
d2434b69 | 48 | #:use-module (gnu packages video) |
bf37b49c | 49 | #:use-module (gnu packages wget) |
50042505 | 50 | #:use-module (gnu packages wm) |
bf37b49c | 51 | #:use-module (gnu packages xdisorg) |
50042505 | 52 | #:use-module (gnu packages xml) |
b3527d5d | 53 | #:use-module (gnu packages xorg) |
bf37b49c | 54 | #:use-module (guix build-system glib-or-gtk) |
889e57f4 | 55 | #:use-module (guix build-system gnu) |
812c1819 | 56 | #:use-module (guix build-system trivial) |
889e57f4 ML |
57 | #:use-module (guix download) |
58 | #:use-module ((guix licenses) #:prefix license:) | |
6e6b5344 ML |
59 | #:use-module (guix packages) |
60 | #:use-module (guix utils)) | |
889e57f4 | 61 | |
19dd9983 | 62 | (define-public libfm |
83365461 | 63 | (package |
19dd9983 | 64 | (name "libfm") |
d1d8235e | 65 | (version "1.3.1") |
83365461 ML |
66 | (source (origin |
67 | (method url-fetch) | |
0f971a04 | 68 | (uri (string-append "mirror://sourceforge/pcmanfm/" |
19dd9983 ML |
69 | "PCManFM%20%2B%20Libfm%20%28tarball%20release" |
70 | "%29/LibFM/" name "-" version ".tar.xz")) | |
83365461 ML |
71 | (sha256 |
72 | (base32 | |
d1d8235e | 73 | "1r6gl49xrykldwz8y4h2s7gjarxigg3bbkrj0gphxjj1vr5j9ccn")))) |
83365461 | 74 | (build-system gnu-build-system) |
19dd9983 ML |
75 | (inputs `(("glib" ,glib) |
76 | ("gtk+" ,gtk+-2))) | |
77 | (native-inputs `(("intltool" ,intltool) | |
78 | ("glib" ,glib "bin") ; for gtester | |
79 | ("libtool" ,libtool) | |
80 | ("menu-cache" ,menu-cache) | |
81 | ("pkg-config" ,pkg-config) | |
82 | ("vala" ,vala))) | |
83 | (synopsis "File management support (core library)") | |
84 | (description "LibFM provides file management functions built on top of | |
85 | Glib/GIO giving a higher-level API.") | |
7ea7eb22 | 86 | (home-page "https://lxde.org") |
19dd9983 ML |
87 | (license license:gpl2+))) |
88 | ||
89 | (define-public libfm-extra | |
90 | (package (inherit libfm) | |
91 | (name "libfm-extra") | |
83365461 ML |
92 | (arguments '(#:configure-flags '("--with-extra-only"))) |
93 | (inputs `(("glib" ,glib))) | |
94 | (native-inputs `(("intltool" ,intltool) | |
95 | ("libtool" ,libtool) | |
96 | ("pkg-config" ,pkg-config))) | |
97 | (synopsis "File management support (extra library)") | |
19dd9983 ML |
98 | (description "This package contains standalone library which extends the |
99 | libFM file management library."))) | |
83365461 | 100 | |
889e57f4 ML |
101 | (define-public lxappearance |
102 | (package | |
103 | (name "lxappearance") | |
2c2a9ef7 | 104 | (version "0.6.2") |
889e57f4 ML |
105 | (source (origin |
106 | (method url-fetch) | |
0f971a04 | 107 | (uri (string-append "mirror://sourceforge/lxde/" |
889e57f4 ML |
108 | "LXAppearance/" name "-" version ".tar.xz")) |
109 | (sha256 | |
110 | (base32 | |
2c2a9ef7 | 111 | "07r0xbi6504zjnbpan7zrn7gi4j0kbsqqfpj8v2x94gr05p16qj4")))) |
889e57f4 ML |
112 | (build-system gnu-build-system) |
113 | (inputs `(("gtk+" ,gtk+-2))) | |
114 | (native-inputs `(("intltool" ,intltool) | |
115 | ("pkg-config" ,pkg-config))) | |
116 | (synopsis "LXDE GTK+ theme switcher") | |
117 | (description "LXAppearance is a desktop-independent GTK+ theme switcher | |
118 | able to change themes, icons, and fonts used by GTK+ applications.") | |
7ea7eb22 | 119 | (home-page "https://lxde.org") |
753dc7d3 ML |
120 | (license license:gpl2+))) |
121 | ||
729b44e3 ML |
122 | (define-public lxrandr |
123 | (package | |
124 | (name "lxrandr") | |
d7ec759a | 125 | (version "0.3.1") |
729b44e3 ML |
126 | (source (origin |
127 | (method url-fetch) | |
0f971a04 | 128 | (uri (string-append "mirror://sourceforge/lxde/LXRandR" |
729b44e3 ML |
129 | "%20%28monitor%20config%20tool%29/LXRandR%20" |
130 | (version-major+minor version) ".x/" | |
131 | name "-" version ".tar.xz")) | |
132 | (sha256 | |
133 | (base32 | |
d7ec759a | 134 | "0khqi42paqg82jllb2kza4arf3fafzgq90fhyr3rw3d9hn23763d")))) |
729b44e3 ML |
135 | (build-system gnu-build-system) |
136 | (inputs `(("gtk+" ,gtk+-2))) | |
137 | (native-inputs `(("intltool" ,intltool) | |
138 | ("pkg-config" ,pkg-config))) | |
139 | (synopsis "LXDE monitor configuration tool") | |
140 | (description "LXRandR is a very basic monitor configuration tool. It | |
141 | relies on the X11 resize-and-rotate (RandR) extension but doesn't aim to be a | |
142 | full frontend of it. LXRandR only gives you some easy and quick options which | |
143 | are intuitive. It's suitable for laptop users who frequently uses projectors | |
144 | or external monitor.") | |
7ea7eb22 | 145 | (home-page "https://lxde.org") |
729b44e3 ML |
146 | (license license:gpl2+))) |
147 | ||
6f92ad5a ML |
148 | (define-public lxtask |
149 | (package | |
150 | (name "lxtask") | |
fd71c6f4 | 151 | (version "0.1.9") |
6f92ad5a ML |
152 | (source (origin |
153 | (method url-fetch) | |
0f971a04 | 154 | (uri (string-append "mirror://sourceforge/lxde/LXTask" |
6f92ad5a ML |
155 | "%20%28task%20manager%29/LXTask%20" |
156 | (version-major+minor version) ".x/" | |
450cd92f | 157 | "lxtask-" version ".tar.xz")) |
6f92ad5a ML |
158 | (sha256 |
159 | (base32 | |
fd71c6f4 | 160 | "0cv4hx5dg01hbyi5p10pl78n0a40xajpq4wx9c7886pkmpq8isj1")))) |
6f92ad5a ML |
161 | (build-system gnu-build-system) |
162 | (inputs `(("gtk+" ,gtk+-2))) | |
163 | (native-inputs `(("intltool" ,intltool) | |
164 | ("pkg-config" ,pkg-config))) | |
165 | (synopsis "LXDE task manager") | |
166 | (description "LXTask is a lightweight task manager derived from Xfce task | |
167 | manager with all dependencies on Xfce removed. LXTask is based on the GTK+ | |
168 | toolkit. It allows users to monitor and control of running processes.") | |
7ea7eb22 | 169 | (home-page "https://lxde.org") |
6f92ad5a ML |
170 | (license license:gpl2+))) |
171 | ||
753dc7d3 ML |
172 | (define-public lxterminal |
173 | (package | |
174 | (name "lxterminal") | |
4cb4af79 | 175 | (version "0.3.2") |
753dc7d3 ML |
176 | (source (origin |
177 | (method url-fetch) | |
0f971a04 | 178 | (uri (string-append "mirror://sourceforge/lxde/LXTerminal" |
753dc7d3 | 179 | "%20%28terminal%20emulator%29/LXTerminal%20" |
dc29cc77 | 180 | version "/" name "-" version ".tar.xz")) |
753dc7d3 ML |
181 | (sha256 |
182 | (base32 | |
4cb4af79 | 183 | "1124pghrhnx6q4391ri8nvi6bsmvbj1dx81an08mird8jf2b2rii")))) |
753dc7d3 ML |
184 | (build-system gnu-build-system) |
185 | (inputs `(("gtk+" ,gtk+-2) | |
186 | ("vte" ,vte/gtk+-2))) | |
187 | (native-inputs `(("intltool" ,intltool) | |
188 | ("pkg-config" ,pkg-config))) | |
189 | (synopsis "LXDE terminal emulator") | |
190 | (description "LXTerminal is a VTE-based terminal emulator. It supports | |
191 | multiple tabs and has only minimal dependencies thus being completely | |
192 | desktop-independent. In order to reduce memory usage and increase the | |
193 | performance, all instances of the terminal are sharing a single process.") | |
7ea7eb22 | 194 | (home-page "https://lxde.org") |
889e57f4 ML |
195 | (license license:gpl2+))) |
196 | ||
6e6b5344 ML |
197 | (define-public menu-cache |
198 | (package | |
199 | (name "menu-cache") | |
a436a491 | 200 | (version "1.1.0") |
6e6b5344 ML |
201 | (source (origin |
202 | (method url-fetch) | |
0f971a04 | 203 | (uri (string-append "mirror://sourceforge/lxde/" name "/" |
6e6b5344 ML |
204 | (version-major+minor version) "/" |
205 | name "-" version ".tar.xz")) | |
206 | (sha256 | |
207 | (base32 | |
a436a491 | 208 | "1iry4zlpppww8qai2cw4zid4081hh7fz8nzsp5lqyffbkm2yn0pd")))) |
6e6b5344 ML |
209 | (build-system gnu-build-system) |
210 | (inputs `(("glib" ,glib) | |
211 | ("libfm" ,libfm-extra))) | |
212 | (native-inputs `(("pkg-config" ,pkg-config))) | |
213 | (synopsis "LXDE implementation of the freedesktop menu's cache") | |
214 | (description "Menu-cache is a library creating and utilizing caches to | |
215 | speed up the access to freedesktop.org defined application menus.") | |
7ea7eb22 | 216 | (home-page "https://lxde.org") |
6e6b5344 ML |
217 | (license license:lgpl2.1+))) |
218 | ||
b3527d5d ML |
219 | (define-public pcmanfm |
220 | (package | |
221 | (name "pcmanfm") | |
70a8ccb7 | 222 | (version "1.3.1") |
b3527d5d ML |
223 | (source (origin |
224 | (method url-fetch) | |
b07d5932 | 225 | (uri (string-append "mirror://sourceforge/pcmanfm/" |
b3527d5d | 226 | "PCManFM%20%2B%20Libfm%20%28tarball%20release" |
b07d5932 | 227 | "%29/PCManFM/pcmanfm-" version ".tar.xz")) |
b3527d5d ML |
228 | (sha256 |
229 | (base32 | |
70a8ccb7 | 230 | "0mb8hg76x1z0szdyl0w7jpz0bdblc6a29is1vvnh79z37qxh8138")))) |
b3527d5d | 231 | (build-system gnu-build-system) |
b3527d5d | 232 | (inputs `(("gtk+" ,gtk+-2) |
ca2158bb | 233 | ("gvfs" ,gvfs) ; for trash and mount support |
b3527d5d ML |
234 | ("libfm" ,libfm) |
235 | ("libx11" ,libx11))) | |
236 | (native-inputs `(("intltool" ,intltool) | |
237 | ("libtool" ,libtool) | |
238 | ("pkg-config" ,pkg-config))) | |
0dcad042 | 239 | (propagated-inputs |
ca2158bb | 240 | `(("lxmenu-data" ,lxmenu-data))) ; for "Open With..." application list |
b3527d5d ML |
241 | (synopsis "LXDE file manager") |
242 | (description "PCMan is a lightweight GTK+ based file manager, compliant | |
243 | with freedesktop.org standard.") | |
7ea7eb22 | 244 | (home-page "https://lxde.org") |
b3527d5d ML |
245 | (license license:gpl2+))) |
246 | ||
d2434b69 | 247 | (define-public spacefm |
248 | ;; SpaceFM is based on PCManFM. | |
249 | (package | |
250 | (name "spacefm") | |
251 | (version "1.0.6") | |
252 | (source (origin | |
253 | (method url-fetch) | |
254 | (uri (string-append | |
255 | "https://github.com/IgnorantGuru/spacefm/archive/" | |
256 | version ".tar.gz")) | |
257 | (sha256 | |
bf37b49c RG |
258 | (base32 |
259 | "1jg7xfyr7kihjnalxp8wxyb9qjk8hqf5l36rp3s0lvkpmpyakppy")) | |
9a0bc7b5 LC |
260 | (modules '((guix build utils))) |
261 | (snippet | |
262 | '(begin | |
263 | (substitute* "src/main.c" | |
264 | (("#include <sys/types\\.h>" all) | |
265 | ;; Add missing include for 'major' and 'minor' with glibc | |
266 | ;; >= 2.28. | |
267 | (string-append all "\n" | |
268 | "#include <sys/sysmacros.h>\n"))) | |
269 | #t)) | |
d2434b69 | 270 | (file-name (string-append name "-" version ".tar.gz")))) |
bf37b49c RG |
271 | (build-system glib-or-gtk-build-system) |
272 | (native-inputs | |
273 | `(("desktop-file-utils" ,desktop-file-utils) | |
274 | ("glib:bin" ,glib "bin") | |
275 | ("gtk+:bin" ,gtk+ "bin") | |
276 | ("intltool" ,intltool) | |
277 | ("pkg-config" ,pkg-config))) | |
278 | (inputs | |
279 | `(("bash" ,bash) | |
280 | ("cairo" ,cairo) | |
281 | ("curlftpfs" ,curlftpfs) | |
282 | ("dbus" ,dbus) | |
283 | ("eudev" ,eudev) | |
284 | ("fakeroot" ,fakeroot) | |
285 | ("ffmpegthumbnailer" ,ffmpegthumbnailer) | |
286 | ("fuseiso" ,fuseiso) | |
287 | ("glib" ,glib) | |
288 | ("gtk+" ,gtk+) | |
289 | ("ifuse" ,ifuse) | |
290 | ("jmtpfs" ,jmtpfs) | |
291 | ("libx11" ,libx11) | |
292 | ("lsof" ,lsof) | |
293 | ("pango" ,pango) | |
294 | ("shared-mime-info" ,shared-mime-info) | |
295 | ("startup-notification" ,startup-notification) | |
296 | ("udevil" ,udevil) | |
297 | ("util-linux" ,util-linux) | |
298 | ("wget" ,wget))) | |
d2434b69 | 299 | (arguments |
300 | `(#:configure-flags (list (string-append "--with-bash-path=" | |
301 | (assoc-ref %build-inputs "bash") | |
302 | "/bin/bash") | |
303 | (string-append "--sysconfdir=" | |
304 | (assoc-ref %outputs "out") | |
305 | "/etc")))) | |
28ee7111 | 306 | (home-page "https://ignorantguru.github.io/spacefm/") |
d2434b69 | 307 | (synopsis "Multi-panel tabbed file manager") |
308 | (description "SpaceFM is a graphical, multi-panel, tabbed file manager | |
309 | based on PCManFM with built-in virtual file system, udev-based device manager, | |
310 | customizable menu system, and Bash integration.") | |
311 | ||
312 | ;; The combination is GPLv3+ but src/exo is under LGPLv3+. | |
313 | (license license:gpl3+))) | |
314 | ||
7f7d52cc | 315 | (define-public lxmenu-data |
316 | (package | |
317 | (name "lxmenu-data") | |
318 | (version "0.1.5") | |
319 | (source | |
320 | (origin | |
321 | (method url-fetch) | |
322 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
323 | name "-" version ".tar.xz")) | |
324 | (sha256 | |
325 | (base32 | |
326 | "1f5sh2dvb3pdnjlcsyzq9543ck2jsqizkx3204cr22zm5s6j3qwz")))) | |
327 | (build-system gnu-build-system) | |
328 | (native-inputs | |
329 | `(("pkg-config" ,pkg-config) | |
330 | ("intltool" ,intltool))) | |
331 | (synopsis "Freedesktop.org desktop menus for LXDE") | |
332 | (description | |
333 | "Lxmenu-data provides files required to build freedesktop.org | |
334 | menu spec-compliant desktop menus for LXDE.") | |
7ea7eb22 | 335 | (home-page "https://lxde.org") |
7f7d52cc | 336 | (license license:lgpl2.1+))) |
337 | ||
4dcbed57 | 338 | (define-public lxde-icon-theme |
339 | (package | |
340 | (name "lxde-icon-theme") | |
341 | (version "0.5.1") | |
342 | (source | |
343 | (origin | |
344 | (method url-fetch) | |
345 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
346 | name "-" version ".tar.xz")) | |
347 | (sha256 | |
348 | (base32 | |
349 | "0v4i6x86fr2hbx4fb2si7y2qzmj7h6hcjwaifnin18r8kwwvgl73")))) | |
350 | (build-system gnu-build-system) | |
351 | (native-inputs | |
352 | `(("pkg-config" ,pkg-config))) | |
353 | (synopsis "LXDE default icon theme based on nuoveXT2") | |
354 | (description | |
355 | "Lxde-icon-theme provides an default icon theme for LXDE.") | |
7ea7eb22 | 356 | (home-page "https://lxde.org") |
4dcbed57 | 357 | (license license:lgpl3))) |
358 | ||
169274d5 | 359 | (define-public lxde-common |
360 | (package | |
361 | (name "lxde-common") | |
362 | (version "0.99.2") | |
363 | (source | |
364 | (origin | |
365 | (method url-fetch) | |
366 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
367 | name "-" version ".tar.xz")) | |
368 | (sha256 | |
369 | (base32 | |
370 | "0mj84fa3f4ak1jjslrwc2q3ci9zxrxpciggviza9bjb0168brn8w")))) | |
371 | (build-system gnu-build-system) | |
d5e7d014 LC |
372 | (arguments |
373 | '(#:phases (modify-phases %standard-phases | |
374 | (add-before 'configure 'set-lxsession | |
375 | (lambda* (#:key inputs #:allow-other-keys) | |
376 | ;; Set the right file name for 'lxsession'. | |
377 | (let ((lxsession (assoc-ref inputs "lxsession"))) | |
378 | (substitute* "startlxde.in" | |
379 | (("^exec .*/bin/lxsession") | |
380 | (string-append "exec " lxsession | |
381 | "/bin/lxsession"))) | |
382 | #t)))))) | |
169274d5 | 383 | (native-inputs |
384 | `(("pkg-config" ,pkg-config) | |
385 | ("intltool" ,intltool) | |
386 | ("lxmenu-data" ,lxmenu-data) | |
387 | ("lxde-icon-theme" ,lxde-icon-theme))) | |
d5e7d014 LC |
388 | (inputs |
389 | `(("lxsession" ,lxsession) | |
390 | ;; ("lxlock" ,lxlock) ;for 'lxde-screenlock.desktop' | |
391 | )) | |
169274d5 | 392 | (synopsis "Common files of the LXDE Desktop") |
393 | (description | |
394 | "Lxde-common provides common files of the LXDE Desktop.") | |
7ea7eb22 | 395 | (home-page "https://lxde.org") |
169274d5 | 396 | (license license:gpl2+))) |
397 | ||
f3b3af37 | 398 | (define-public lxinput |
399 | (package | |
400 | (name "lxinput") | |
401 | (version "0.3.5") | |
402 | (source | |
403 | (origin | |
404 | (method url-fetch) | |
405 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
406 | name "-" version ".tar.xz")) | |
407 | (sha256 | |
408 | (base32 | |
409 | "123f3yn4rp1w5b3n5aj3ad9snkxab29qkrs7bcvf5bx4cn57g3sf")))) | |
410 | (build-system gnu-build-system) | |
411 | (inputs | |
412 | `(("gtk+-2" ,gtk+-2))) | |
413 | (native-inputs | |
414 | `(("pkg-config" ,pkg-config) | |
415 | ("intltool" ,intltool))) | |
416 | (synopsis "Tool for mouse and keyboard configuration in LXDE") | |
417 | (description | |
418 | "Lxinput provides a small program to configure keyboard and mouse | |
419 | in LXDE.") | |
7ea7eb22 | 420 | (home-page "https://lxde.org") |
f3b3af37 | 421 | (license license:gpl2+))) |
422 | ||
d3897349 | 423 | (define-public lxsession |
424 | (package | |
425 | (name "lxsession") | |
426 | (version "0.5.3") | |
427 | (source | |
428 | (origin | |
429 | (method url-fetch) | |
430 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
431 | name "-" version ".tar.xz")) | |
432 | (patches (search-patches "lxsession-use-gapplication.patch")) | |
433 | (sha256 | |
434 | (base32 | |
a4cdcffb LC |
435 | "1a0zmyywwzdh59nc0l94cir18vhp633z4q2xfhn5zx11ajj45gwh")) |
436 | (modules '((guix build utils))) | |
437 | (snippet | |
438 | ;; Remove C files generated by Vala so we can build from source. | |
439 | '(let* ((c->vala | |
440 | (lambda (file) | |
441 | (string-append (string-drop-right file 2) | |
442 | ".vala"))) | |
443 | (generated-c-file? | |
444 | (lambda (file stat) | |
445 | (and (string-suffix? ".c" file) | |
446 | (file-exists? (c->vala file)))))) | |
447 | (for-each delete-file | |
6cbee49d MW |
448 | (find-files "." generated-c-file?)) |
449 | #t)))) | |
d3897349 | 450 | (build-system gnu-build-system) |
451 | (arguments | |
452 | `(#:phases | |
453 | (modify-phases %standard-phases | |
454 | (add-after 'unpack 'rm-stamp | |
455 | (lambda _ | |
a49b5322 RW |
456 | (for-each delete-file (find-files "." "\\.stamp$")) |
457 | ;; Force regeneration of configure script. | |
458 | (delete-file "configure") | |
459 | #t))))) | |
d3897349 | 460 | (inputs |
461 | `(("gtk+-2" ,gtk+-2) | |
462 | ("polkit" ,polkit))) | |
463 | (native-inputs | |
464 | `(("pkg-config" ,pkg-config) | |
465 | ("intltool" ,intltool) | |
466 | ("docbook-xsl" ,docbook-xsl) | |
467 | ("vala" ,vala) | |
468 | ("autoconf" ,autoconf) | |
469 | ("automake" ,automake))) | |
470 | (synopsis "Lightweight X11 session manager") | |
471 | (description | |
472 | "Lxsession provides an lightweight X11 session manager.") | |
7ea7eb22 | 473 | (home-page "https://lxde.org") |
d3897349 | 474 | (license license:gpl2+))) |
475 | ||
50042505 | 476 | (define-public lxpanel |
477 | (package | |
478 | (name "lxpanel") | |
479 | (version "0.9.3") | |
480 | (source | |
481 | (origin | |
482 | (method url-fetch) | |
483 | (uri (string-append "https://downloads.sourceforge.net/lxde/" | |
484 | name "-" version ".tar.xz")) | |
485 | (sha256 | |
486 | (base32 | |
487 | "1ccgv7jgl3y865cpb6w7baaz7468fxncm83bqxlwyni5bwhglb1l")))) | |
488 | (build-system gnu-build-system) | |
489 | (arguments | |
490 | `(#:phases | |
491 | (modify-phases %standard-phases | |
492 | (add-after 'install 'wrap | |
493 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
494 | (let ((out (assoc-ref outputs "out")) | |
495 | (menu (assoc-ref inputs "lxmenu-data"))) | |
496 | (wrap-program (string-append out "/bin/lxpanel") | |
497 | `("XDG_DATA_DIRS" ":" prefix | |
498 | (,(string-append menu "/share")))) | |
499 | #t)))))) | |
500 | (inputs | |
501 | ;; TODO: libindicator-0.3.0 | |
502 | `(("gtk+-2" ,gtk+-2) | |
503 | ("alsa-lib" ,alsa-lib) | |
504 | ("libwnck-2" ,libwnck-2) | |
505 | ("keybinder" ,keybinder) | |
506 | ("libxmu" ,libxmu) | |
507 | ("libxpm" ,libxpm) | |
508 | ("libxml2" ,libxml2) | |
509 | ("cairo" ,cairo) | |
510 | ("libx11" ,libx11) | |
511 | ("wireless-tools" ,wireless-tools))) | |
512 | (native-inputs | |
513 | `(("pkg-config" ,pkg-config) | |
514 | ("intltool" ,intltool) | |
515 | ("docbook-xml" ,docbook-xml) | |
516 | ("gettext-minimal" ,gettext-minimal))) | |
517 | (propagated-inputs | |
518 | `(("lxmenu-data" ,lxmenu-data) | |
519 | ("libfm" ,libfm) | |
520 | ("menu-cache" ,menu-cache))) | |
521 | (synopsis "X11 Desktop panel for LXDE") | |
522 | (description | |
523 | "Lxpanel provides an X11 desktop panel for LXDE.") | |
7ea7eb22 | 524 | (home-page "https://lxde.org") |
50042505 | 525 | (license license:gpl2+))) |
526 | ||
812c1819 | 527 | (define-public lxde |
528 | (package | |
529 | (name "lxde") | |
530 | (version (package-version lxde-common)) | |
531 | (source #f) | |
532 | (build-system trivial-build-system) | |
e3cfef22 | 533 | (arguments '(#:builder (begin (mkdir %output) #t))) |
812c1819 | 534 | (propagated-inputs |
535 | ;; TODO: | |
ed3a9ec5 | 536 | ;; lxshortcut, lxsession-edit |
812c1819 | 537 | ;; lxappearance-obconf |
538 | `(("menu-cache" ,menu-cache) | |
ed3a9ec5 | 539 | ("gpicview" ,gpicview) |
8b1e572d | 540 | ("leafpad" ,leafpad) |
812c1819 | 541 | ("lxappearance" ,lxappearance) |
542 | ("lxde-icon-theme" ,lxde-icon-theme) | |
543 | ("lxde-common" ,lxde-common) | |
544 | ("lxmenu-data" ,lxmenu-data) | |
545 | ("lxpanel" ,lxpanel) | |
546 | ("lxrandr" ,lxrandr) | |
547 | ("lxsession" ,lxsession) | |
548 | ("libfm" ,libfm) | |
549 | ("libfm-extra" ,libfm-extra) | |
550 | ("lxtask" ,lxtask) | |
551 | ("lxterminal" ,lxterminal) | |
552 | ("pcmanfm" ,pcmanfm) | |
553 | ("openbox" ,openbox) | |
554 | ("obconf" ,obconf))) | |
555 | (synopsis "Lightweight X11 Desktop Environment") | |
556 | (description | |
557 | "LXDE, which stands for Lightweight X11 Desktop Environment, is a | |
558 | desktop environment which is lightweight and fast. It is designed to be | |
559 | user friendly and slim, while keeping the resource usage low. LXDE uses | |
560 | less RAM and less CPU while being a feature rich desktop environment. Unlike | |
561 | other tightly integrated desktops LXDE strives to be modular, so each | |
562 | component can be used independently with few dependencies.") | |
563 | (home-page "https://lxde.org") | |
564 | (license license:gpl2+))) ; And others. | |
565 | ||
889e57f4 | 566 | ;;; lxde.scm ends here |