1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2015 Amirouche Boubekki <amirouche@hypermove.net>
4 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
5 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
6 ;;; Copyright © 2015 Dmitry Bogatov <KAction@gnu.org>
7 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
9 ;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
10 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; This file is part of GNU Guix.
14 ;;; GNU Guix is free software; you can redistribute it and/or modify it
15 ;;; under the terms of the GNU General Public License as published by
16 ;;; the Free Software Foundation; either version 3 of the License, or (at
17 ;;; your option) any later version.
19 ;;; GNU Guix is distributed in the hope that it will be useful, but
20 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;;; GNU General Public License for more details.
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27 (define-module (gnu packages suckless)
28 #:use-module ((guix licenses) #:prefix license:)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system glib-or-gtk)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages gnome)
36 #:use-module (gnu packages image)
37 #:use-module (gnu packages xorg)
38 #:use-module (gnu packages fonts)
39 #:use-module (gnu packages pkg-config)
40 #:use-module (gnu packages webkit)
41 #:use-module (gnu packages fontutils)
42 #:use-module (gnu packages mpd)
43 #:use-module (gnu packages linux)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages cups)
46 #:use-module (gnu packages ncurses)
47 #:use-module (gnu packages gawk)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages libbsd))
57 (uri (string-append "https://dl.suckless.org/tools/blind-"
61 "0nncvzyipvkkd7zlgzwbjygp82frzs2hvbnk71gxf671np607y94"))))
62 (build-system gnu-build-system)
64 '(#:tests? #f ; no check target
67 (string-append "PREFIX=" %output))
69 (modify-phases %standard-phases
70 (delete 'configure)))) ; no configure script
71 (synopsis "Command line video editing utilities")
72 (home-page "https://tools.suckless.org/blind/")
74 "Blind is a collection of command line video editing utilities. It uses
75 a custom raw video format with a simple container.")
76 (license license:isc)))
84 (uri (string-append "https://dl.suckless.org/dwm/dwm-"
87 (base32 "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p"))))
88 (build-system gnu-build-system)
91 #:make-flags (list (string-append "FREETYPEINC="
92 (assoc-ref %build-inputs "freetype")
93 "/include/freetype2"))
95 (modify-phases %standard-phases
98 (substitute* "Makefile" (("\\$\\{CC\\}") "gcc"))
101 (lambda* (#:key outputs #:allow-other-keys)
102 (let ((out (assoc-ref outputs "out")))
103 (invoke "make" "install"
104 (string-append "DESTDIR=" out) "PREFIX="))))
105 (add-after 'build 'install-xsession
106 (lambda* (#:key outputs #:allow-other-keys)
107 ;; Add a .desktop file to xsessions.
108 (let* ((output (assoc-ref outputs "out"))
109 (xsessions (string-append output "/share/xsessions")))
112 (string-append xsessions "/dwm.desktop")
117 Comment=Dynamic Window Manager~@
119 TryExec=~@*~a/bin/dwm~@
125 `(("freetype" ,freetype)
128 ("libxinerama" ,libxinerama)))
129 (home-page "https://dwm.suckless.org/")
130 (synopsis "Dynamic window manager")
132 "dwm is a dynamic window manager for X. It manages windows in tiled,
133 monocle and floating layouts. All of the layouts can be applied dynamically,
134 optimising the environment for the application in use and the task performed.")
135 (license license:x11)))
143 (uri (string-append "https://dl.suckless.org/tools/dmenu-"
147 "0ia9nqr83bv6x247q30bal0v42chcj9qcjgv59xs6xj46m7iz5xk"))))
148 (build-system gnu-build-system)
150 '(#:tests? #f ; no tests
151 #:make-flags (list "CC=gcc"
152 (string-append "PREFIX=" %output)
153 (string-append "FREETYPEINC="
154 (assoc-ref %build-inputs "freetype")
155 "/include/freetype2"))
157 (modify-phases %standard-phases (delete 'configure))))
159 `(("freetype" ,freetype)
162 ("libxinerama" ,libxinerama)))
163 (home-page "https://tools.suckless.org/dmenu/")
164 (synopsis "Dynamic menu")
166 "A dynamic menu for X, originally designed for dwm. It manages large
167 numbers of user-defined menu items efficiently.")
168 (license license:x11)))
177 (uri (string-append "https://dl.2f30.org/releases/"
178 name "-" version ".tar.gz"))
181 "1jpmg9k9f4f3lpz0k3cphqjswlyf8lz2sm8ccifiip93kd4rrdj0"))))
182 (build-system gnu-build-system)
184 `(#:tests? #f ; no tests
185 #:make-flags (list "CC=gcc"
186 (string-append "PREFIX=" %output))))
189 ("libxkbfile" ,libxkbfile)
190 ("alsa-lib" ,alsa-lib) ; tinyalsa (unpackaged) would suffice
191 ("libmpdclient" ,libmpdclient)))
192 (home-page "https://git.2f30.org/spoon/")
193 (synopsis "Set dwm status")
195 "Spoon can be used to set the dwm status.")
196 (license license:isc)))
204 (uri (string-append "https://dl.suckless.org/tools/slock-"
208 "0sif752303dg33f14k6pgwq2jp1hjyhqv6x4sy3sj281qvdljf5m"))))
209 (build-system gnu-build-system)
211 '(#:tests? #f ; no tests
212 #:make-flags (list "CC=gcc"
213 (string-append "PREFIX=" %output))
214 #:phases (modify-phases %standard-phases (delete 'configure))))
218 ("libxinerama" ,libxinerama)
219 ("libxrandr" ,libxrandr)))
220 (home-page "https://tools.suckless.org/slock/")
221 (synopsis "Simple X session lock")
223 "Simple X session lock with trivial feedback on password entry.")
224 (license license:x11)))
233 (uri (string-append "https://dl.suckless.org/st/st-"
236 (base32 "0ddz2mdp1c7q67rd5vrvws9r0493ln0mlqyc3d73dv8im884xdxf"))))
237 (build-system gnu-build-system)
239 '(#:tests? #f ; no tests
240 #:make-flags (list "CC=gcc"
241 (string-append "PREFIX=" %output))
243 (modify-phases %standard-phases
245 (add-after 'unpack 'inhibit-terminfo-install
247 (substitute* "Makefile"
253 ("fontconfig" ,fontconfig)
254 ("freetype" ,freetype)))
256 `(("pkg-config" ,pkg-config)))
257 (home-page "https://st.suckless.org/")
258 (synopsis "Simple terminal emulator")
260 "St implements a simple and lightweight terminal emulator. It
261 implements 256 colors, most VT10X escape sequences, utf8, X11 copy/paste,
262 antialiased fonts (using fontconfig), fallback fonts, resizing, and line
264 (license license:x11)))
273 (uri (string-append "https://dl.suckless.org/surf/surf-"
277 "07cmajyafljigy10d21kkyvv5jf3hxkx06pz3rwwk3y3c9x4rvps"))))
278 (build-system glib-or-gtk-build-system)
280 '(#:tests? #f ; no tests
281 #:make-flags (list "CC=gcc"
282 (string-append "PREFIX=" %output))
284 (modify-phases %standard-phases
286 ;; Use the right file name for dmenu and xprop.
287 (add-before 'build 'set-dmenu-and-xprop-file-name
288 (lambda* (#:key inputs #:allow-other-keys)
289 (substitute* "config.def.h"
290 (("dmenu") (string-append (assoc-ref inputs "dmenu") "/bin/dmenu"))
291 (("xprop") (string-append (assoc-ref inputs "xprop") "/bin/xprop")))
295 ("glib-networking" ,glib-networking)
296 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
297 ("webkitgtk" ,webkitgtk)
300 `(("pkg-config" ,pkg-config)))
301 (home-page "https://surf.suckless.org/")
302 (synopsis "Simple web browser")
304 "Surf is a simple web browser based on WebKit/GTK+. It is able to
305 display websites and follow links. It supports the XEmbed protocol which
306 makes it possible to embed it in another application. Furthermore, one can
307 point surf to another URI by setting its XProperties.")
308 (license license:x11)))
315 (method url-fetch/tarbomb)
316 (uri (string-append "https://dl.suckless.org/tools/sent-"
320 "0cxysz5lp25mgww73jl0mgip68x7iyvialyzdbriyaff269xxwvv"))))
321 (build-system gnu-build-system)
323 `(#:phases (modify-phases %standard-phases
324 (delete 'configure)) ; no configuration
325 #:tests? #f ; no test suite
326 #:make-flags (let ((pkg-config (lambda (flag)
328 "$(shell pkg-config " flag " "
329 "xft fontconfig x11 libpng)"))))
332 (string-append "PREFIX=" %output)
333 (string-append "INCS=-I. " (pkg-config "--cflags"))
334 (string-append "LIBS=" (pkg-config "--libs") " -lm")))))
336 `(("pkg-config" ,pkg-config)))
341 ("fontconfig" ,fontconfig)))
342 (synopsis "Plain-text presentation tool")
343 (description "Sent uses plain-text files and PNG images to create slideshow
344 presentations. Each paragraph represents a slide in the presentation.
345 Especially for presentations using the Takahashi method this is very nice and
346 allows you to write down the presentation for a quick lightning talk within a
348 (home-page "https://tools.suckless.org/sent")
349 (license license:x11)))
351 (define-public xbattmon
358 (uri (string-append "https://dl.2f30.org/releases/"
359 name "-" version ".tar.gz"))
362 "1zr6y8lml9xkx0a3dbbsds2qz1bjxvskp7wsckkf8mlsqrbb3xsg"))))
363 (build-system gnu-build-system)
365 `(#:tests? #f ; No tests
366 #:make-flags (list "CC=gcc"
367 (string-append "PREFIX=" %output))))
369 `(("libx11" ,libx11)))
370 (home-page "https://git.2f30.org/xbattmon/")
371 (synopsis "Simple battery monitor for X")
373 "Xbattmon is a simple battery monitor for X.")
374 (license license:isc)))
376 (define-public wificurse
383 (uri (string-append "https://dl.2f30.org/releases/"
384 name "-" version ".tar.gz"))
387 "067ghr1xly5ca41kc83xila1p5hpq0bxfcmc8jvxi2ggm6wrhavn"))))
388 (build-system gnu-build-system)
390 `(#:tests? #f ; No tests
392 (string-append "PREFIX=" %output))
394 (modify-phases %standard-phases
395 (delete 'configure)))) ; No configure script
396 (home-page "https://git.2f30.org/wificurse/")
397 (synopsis "Wifi DoS attack tool")
399 "Wificurses listens for beacons sent from wireless access points
400 in the range of your wireless station. Once received the program
401 extracts the BSSID of the AP and transmits deauthentication packets
402 using the broadcast MAC address. This results to the disconnection
403 of all clients connected to the AP at the time of the attack. This
404 is essencially a WiFi DoS attack tool created for educational
405 purposes only. It works only in Linux and requires wireless card
406 drivers capable of injecting packets in wireless networks.")
407 (license license:gpl3+)))
409 (define-public skroll
416 (uri (string-append "https://dl.2f30.org/releases/"
417 name "-" version ".tar.gz"))
420 "0km6bjfz4ssb1z0xwld6iiixnn7d255ax8yjs3zkdm42z8q9yl0f"))))
421 (build-system gnu-build-system)
423 `(#:tests? #f ; No tests
424 #:make-flags (list "CC=gcc"
425 (string-append "PREFIX=" %output))
427 (modify-phases %standard-phases
428 (delete 'configure)))) ; No configure script
429 (home-page "https://2f30.org/")
430 (synopsis "Commandline utility which scrolls text")
432 "Skroll is a small utility that you can use to make a text scroll.
433 Pipe text to it, and it will scroll a given number of letters from right to
435 (license license:wtfpl2)))
444 (uri (string-append "https://dl.2f30.org/releases/"
445 name "-" version ".tar.gz"))
448 "1nks5mkh5wn30kyjzlkjlgi31bv1wq52kbp0r6nzbyfnvfdlywik"))))
449 (build-system gnu-build-system)
451 `(#:tests? #f ; No tests
452 #:make-flags (list "CC=gcc"
453 (string-append "PREFIX=" %output))
455 (modify-phases %standard-phases
456 (delete 'configure)))) ; No configure script
457 (home-page "https://git.2f30.org/sbm/")
458 (synopsis "Simple bandwidth monitor")
460 "Sbm is a simple bandwidth monitor.")
461 (license license:isc)))
470 (uri (string-append "https://dl.2f30.org/releases/"
471 name "-" version ".tar.gz"))
474 "1s6c3ygg1h1fyxkh8gd7nzjk6qhnwsb4535d2k780kxnwns5fzas"))))
475 (build-system gnu-build-system)
477 `(#:tests? #f ; No tests
478 #:make-flags (list "CC=gcc"
479 (string-append "PREFIX=" %output))
481 (modify-phases %standard-phases
482 (delete 'configure)))) ; No configure script
484 `(("cups-minimal" ,cups-minimal)
486 (home-page "https://git.2f30.org/prout/")
487 (synopsis "Smaller lp command")
489 "Prout (PRint OUT) is a small utility one can use to send
490 documents to a printer.
491 It has no feature, and does nothing else. Just set your default
492 printer in client.conf(5) and start printing. No need for a local
493 cups server to be installed.")
494 (license license:wtfpl2)))
503 (uri (string-append "https://dl.2f30.org/releases/"
504 "noice-" version ".tar.gz"))
507 "03b0kzngzacfpz4n8lgbvia2s765i5bkw55v482hh4m49dm41gpc"))))
508 (build-system gnu-build-system)
510 `(#:tests? #f ; no tests
511 #:make-flags (list "CC=gcc"
512 (string-append "PREFIX=" %output))
514 (modify-phases %standard-phases
515 (delete 'configure) ; no configure script
516 (add-before 'build 'curses
518 (substitute* "Makefile"
519 (("lcurses") "lncurses")))))))
521 `(("ncurses" ,ncurses)))
522 (home-page "https://git.2f30.org/noice/")
523 (synopsis "Small file browser")
525 "Noice is a small curses-based file browser.")
526 (license license:bsd-2)))
536 (url "git://git.2f30.org/human.git")
538 (file-name (git-file-name name version))
541 "0y0bsmvpwfwb2lwspi6a799y34h1faxc6yfanyw6hygxc8661mga"))))
542 (build-system gnu-build-system)
544 `(#:tests? #f ; no tests
545 #:make-flags (list "CC=gcc"
546 (string-append "PREFIX=" %output))
548 (modify-phases %standard-phases
549 (delete 'configure)))) ; no configure script
550 (home-page "https://git.2f30.org/human/")
551 (synopsis "Convert bytes to human readable formats")
553 "Human is a small program which translate numbers into a
554 human readable format. By default, it tries to detect the best
555 factorisation, but you can force its output.
556 You can adjust the number of decimals with the @code{SCALE}
557 environment variable.")
558 (license license:wtfpl2)))
560 (define-public fortify-headers
562 (name "fortify-headers")
567 (uri (string-append "https://dl.2f30.org/releases/"
568 name "-" version ".tar.gz"))
571 "0nvplfg4y4a10x2j12qwmxzlk2q4j6287j0v5f9bfsdayb04qvh2"))))
572 (build-system gnu-build-system)
574 `(#:tests? #f ; no tests
575 #:make-flags (list "CC=gcc"
576 (string-append "PREFIX=" %output))
578 (modify-phases %standard-phases
579 (delete 'configure)))) ; no configure script
580 (home-page "https://git.2f30.org/fortify-headers/")
581 (synopsis "Standalone fortify-source implementation")
583 "This is a standalone implementation of fortify source. It provides
584 compile time buffer checks. It is libc-agnostic and simply overlays the
585 system headers by using the @code{#include_next} extension found in GCC. It was
586 initially intended to be used on musl-based Linux distributions.
589 @item It is portable, works on *BSD, Linux, Solaris and possibly others.
590 @item It will only trap non-conformant programs. This means that fortify
591 level 2 is treated in the same way as level 1.
592 @item Avoids making function calls when undefined behaviour has already been
593 invoked. This is handled by using @code{__builtin_trap()}.
594 @item Support for out-of-bounds read interfaces, such as @code{send()},
595 @code{write()}, @code{fwrite()}, etc.
596 @item No ABI is enforced. All of the fortify check functions are inlined
597 into the resulting binary.
599 (license license:isc)))
601 (define-public colors
608 (uri (string-append "https://dl.2f30.org/releases/"
609 name "-" version ".tar.gz"))
612 "1lckmqpgj89841splng0sszbls2ag71ggkgr1wsv9y3v6y87589z"))))
613 (build-system gnu-build-system)
615 `(#:tests? #f ; No tests
616 #:make-flags (list "CC=gcc"
617 (string-append "PREFIX=" %output))
619 (modify-phases %standard-phases
620 (delete 'configure)))) ; No configure script
622 `(("libpng" ,libpng)))
623 (home-page "https://git.2f30.org/colors/")
624 (synopsis "Extract colors from pictures")
626 "Extract colors from PNG files. It is similar to
627 strings(1) but for pictures. For a given input file it outputs a
628 colormap to stdout.")
629 (license license:isc)))
631 ;; No new releases were made at github, this repository is more active than
632 ;; the one at http://git.suckless.org/libutf/ and it is
633 ;; done by the same developer.
634 (define-public libutf
636 (commit "ff4c60635e1f455b0a0b4200f8183fbd5a88225b"))
639 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
644 (url "https://github.com/cls/libutf")
646 (file-name (string-append name "-" version "-checkout"))
649 "1ih5vjavilzggyr1j1z6w1z12c2fs5fg77cfnv7ami5ivsy3kg3d"))))
650 (build-system gnu-build-system)
652 `(#:tests? #f ; No tests
653 #:make-flags (list "CC=gcc"
654 (string-append "PREFIX=" %output))
656 (modify-phases %standard-phases
657 (delete 'configure)))) ; No configure script
660 (home-page "https://github.com/cls/libutf")
661 (synopsis "Plan 9 compatible UTF-8 library")
663 "This is a C89 UTF-8 library, with an API compatible with that of
664 Plan 9's libutf, but with a number of improvements:
667 @item Support for runes beyond the Basic Multilingual Plane.
668 @item utflen and utfnlen cannot overflow on 32- or 64-bit machines.
669 @item chartorune treats all invalid codepoints as though Runeerror.
670 @item fullrune, utfecpy, and utfnlen do not overestimate the length
672 @item An extra function, charntorune(p,s,n), equivalent to
673 fullrune(s,n) ? chartorune(p,s): 0.
674 @item Runeerror may be set to an alternative replacement value, such
675 as -1, to be used instead of U+FFFD.
677 (license license:expat))))
679 ;; No release tarballs so far.
682 (commit "f95191970fd59c52a8b09cff32bd8d2135cbfc6b"))
685 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
690 (url "https://github.com/younix/lchat")
692 (file-name (string-append name "-" version "-checkout"))
695 "07pxzziczhzprmjy61k7nl9i1kxpgnad37qkjf5fn4wf06nqdxpl"))))
696 (build-system gnu-build-system)
698 `(#:test-target "test"
699 #:make-flags (list "CC=gcc"
700 (string-append "PREFIX=" %output))
702 (modify-phases %standard-phases
703 (delete 'configure) ; no configure script
704 (add-before 'build 'libbsd
706 (substitute* "Makefile"
707 (("-lutf") "-lutf -lbsd"))))
709 (lambda* (#:key outputs #:allow-other-keys)
710 (let* ((out (assoc-ref outputs "out"))
711 (bin (string-append out "/bin"))
712 (man1 (string-append out "/share/man/man1")))
713 (install-file "lchat" bin)
714 (install-file "lchat.1" man1)
721 (home-page "https://github.com/younix/lchat")
722 (synopsis "Line chat is a frontend for the irc client ii from suckless")
724 "Lchat (line chat) is the little and small brother of cii.
725 It is a front end for ii-like chat programs. It uses @code{tail -f} to get the
726 chat output in the background.")
727 (license license:isc))))