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 Nils Gillmann <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 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 "1zkmwb6df6m254shx06ly90c0q4jl70skk1pvkixpb7hcxhwbxn2"))))
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")))
104 (system* "make" "install"
105 (string-append "DESTDIR=" out) "PREFIX=")))))
106 (add-after 'build 'install-xsession
107 (lambda* (#:key outputs #:allow-other-keys)
108 ;; Add a .desktop file to xsessions.
109 (let* ((output (assoc-ref outputs "out"))
110 (xsessions (string-append output "/share/xsessions")))
113 (string-append xsessions "/dwm.desktop")
118 Comment=Dynamic Window Manager~@
120 TryExec=~@*~a/bin/dwm~@
126 `(("freetype" ,freetype)
129 ("libxinerama" ,libxinerama)))
130 (home-page "https://dwm.suckless.org/")
131 (synopsis "Dynamic window manager")
133 "dwm is a dynamic window manager for X. It manages windows in tiled,
134 monocle and floating layouts. All of the layouts can be applied dynamically,
135 optimising the environment for the application in use and the task performed.")
136 (license license:x11)))
144 (uri (string-append "https://dl.suckless.org/tools/dmenu-"
148 "0qfvfrj10xlwd9hkvb57wshryan65bl6423h0qhiw1h76rf5lqgy"))))
149 (build-system gnu-build-system)
151 '(#:tests? #f ; no tests
152 #:make-flags (list "CC=gcc"
153 (string-append "PREFIX=" %output)
154 (string-append "FREETYPEINC="
155 (assoc-ref %build-inputs "freetype")
156 "/include/freetype2"))
158 (modify-phases %standard-phases (delete 'configure))))
160 `(("freetype" ,freetype)
163 ("libxinerama" ,libxinerama)))
164 (home-page "https://tools.suckless.org/dmenu/")
165 (synopsis "Dynamic menu")
167 "A dynamic menu for X, originally designed for dwm. It manages large
168 numbers of user-defined menu items efficiently.")
169 (license license:x11)))
178 (uri (string-append "https://dl.2f30.org/releases/"
179 name "-" version ".tar.gz"))
182 "10c5i7ykpy7inzzfiw1dh0srpkljycr3blxhvd8160wsvplbws48"))))
183 (build-system gnu-build-system)
185 `(#:tests? #f ; No tests
186 #:make-flags (list "CC=gcc"
187 (string-append "PREFIX=" %output))))
190 ("libxkbfile" ,libxkbfile)
191 ("alsa-lib" ,alsa-lib)
192 ("libmpdclient" ,libmpdclient)))
193 (home-page "https://git.2f30.org/spoon/")
194 (synopsis "Set dwm status")
196 "Spoon can be used to set the dwm status.")
197 (license license:isc)))
205 (uri (string-append "https://dl.suckless.org/tools/slock-"
209 "0sif752303dg33f14k6pgwq2jp1hjyhqv6x4sy3sj281qvdljf5m"))))
210 (build-system gnu-build-system)
212 '(#:tests? #f ; no tests
213 #:make-flags (list "CC=gcc"
214 (string-append "PREFIX=" %output))
215 #:phases (modify-phases %standard-phases (delete 'configure))))
219 ("libxinerama" ,libxinerama)
220 ("libxrandr" ,libxrandr)))
221 (home-page "https://tools.suckless.org/slock/")
222 (synopsis "Simple X session lock")
224 "Simple X session lock with trivial feedback on password entry.")
225 (license license:x11)))
234 (uri (string-append "https://dl.suckless.org/st/st-"
238 "00309qiw20rc89696pk8bdr7ik4r1aarik7jxqk8k66cdj80v1zp"))))
239 (build-system gnu-build-system)
241 '(#:tests? #f ; no tests
242 #:make-flags (list "CC=gcc"
243 (string-append "PREFIX=" %output))
245 (modify-phases %standard-phases
247 (add-after 'unpack 'inhibit-terminfo-install
249 (substitute* "Makefile"
250 (("\t@tic -s st.info") ""))
255 ("fontconfig" ,fontconfig)
256 ("freetype" ,freetype)))
257 (native-inputs `(("pkg-config" ,pkg-config)))
258 (home-page "https://st.suckless.org/")
259 (synopsis "Simple terminal emulator")
261 "St implements a simple and lightweight terminal emulator. It
262 implements 256 colors, most VT10X escape sequences, utf8, X11 copy/paste,
263 antialiased fonts (using fontconfig), fallback fonts, resizing, and line
265 (license license:x11)))
274 (uri (string-append "https://dl.suckless.org/surf/surf-"
278 "07cmajyafljigy10d21kkyvv5jf3hxkx06pz3rwwk3y3c9x4rvps"))))
279 (build-system glib-or-gtk-build-system)
281 '(#:tests? #f ; no tests
282 #:make-flags (list "CC=gcc"
283 (string-append "PREFIX=" %output))
285 (modify-phases %standard-phases
287 ;; Use the right file name for dmenu and xprop.
288 (add-before 'build 'set-dmenu-and-xprop-file-name
289 (lambda* (#:key inputs #:allow-other-keys)
290 (substitute* "config.def.h"
291 (("dmenu") (string-append (assoc-ref inputs "dmenu") "/bin/dmenu"))
292 (("xprop") (string-append (assoc-ref inputs "xprop") "/bin/xprop")))
296 ("glib-networking" ,glib-networking)
297 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
298 ("webkitgtk" ,webkitgtk)
301 `(("pkg-config" ,pkg-config)))
302 (home-page "https://surf.suckless.org/")
303 (synopsis "Simple web browser")
305 "Surf is a simple web browser based on WebKit/GTK+. It is able to
306 display websites and follow links. It supports the XEmbed protocol which
307 makes it possible to embed it in another application. Furthermore, one can
308 point surf to another URI by setting its XProperties.")
309 (license license:x11)))
317 (uri (string-append "https://dl.suckless.org/tools/sent-"
321 "0xhh752hwaa26k4q6wvrb9jnpbnylss2aw6z11j7l9rav7wn3fak"))))
322 (build-system gnu-build-system)
324 `(#:phases (modify-phases %standard-phases
325 (delete 'configure)) ;no configuration
326 #:tests? #f ;no test suite
327 #:make-flags (let ((pkg-config (lambda (flag)
329 "$(shell pkg-config " flag " "
330 "xft fontconfig x11 libpng)"))))
333 (string-append "PREFIX=" %output)
334 (string-append "INCS=-I. " (pkg-config "--cflags"))
335 (string-append "LIBS=" (pkg-config "--libs") " -lm")))))
337 `(("pkg-config" ,pkg-config)))
342 ("fontconfig" ,fontconfig)))
343 (synopsis "Plaintext presentation tool")
344 (description "Sent uses plaintext files and PNG images to create slideshow
345 presentations. Each paragraph represents a slide in the presentation.
346 Especially for presentations using the Takahashi method this is very nice and
347 allows you to write down the presentation for a quick lightning talk within a
349 (home-page "https://tools.suckless.org/sent")
350 (license license:x11)))
352 (define-public xbattmon
359 (uri (string-append "https://dl.2f30.org/releases/"
360 name "-" version ".tar.gz"))
363 "1zr6y8lml9xkx0a3dbbsds2qz1bjxvskp7wsckkf8mlsqrbb3xsg"))))
364 (build-system gnu-build-system)
366 `(#:tests? #f ; No tests
367 #:make-flags (list "CC=gcc"
368 (string-append "PREFIX=" %output))))
370 `(("libx11" ,libx11)))
371 (home-page "https://git.2f30.org/xbattmon/")
372 (synopsis "Simple battery monitor for X")
374 "Xbattmon is a simple battery monitor for X.")
375 (license license:isc)))
377 (define-public wificurse
384 (uri (string-append "https://dl.2f30.org/releases/"
385 name "-" version ".tar.gz"))
388 "067ghr1xly5ca41kc83xila1p5hpq0bxfcmc8jvxi2ggm6wrhavn"))))
389 (build-system gnu-build-system)
391 `(#:tests? #f ; No tests
393 (string-append "PREFIX=" %output))
395 (modify-phases %standard-phases
396 (delete 'configure)))) ; No configure script
397 (home-page "https://git.2f30.org/wificurse/")
398 (synopsis "Wifi DoS attack tool")
400 "Wificurses listens for beacons sent from wireless access points
401 in the range of your wireless station. Once received the program
402 extracts the BSSID of the AP and transmits deauthentication packets
403 using the broadcast MAC address. This results to the disconnection
404 of all clients connected to the AP at the time of the attack. This
405 is essencially a WiFi DoS attack tool created for educational
406 purposes only. It works only in Linux and requires wireless card
407 drivers capable of injecting packets in wireless networks.")
408 (license license:gpl3+)))
410 (define-public skroll
417 (uri (string-append "https://dl.2f30.org/releases/"
418 name "-" version ".tar.gz"))
421 "0km6bjfz4ssb1z0xwld6iiixnn7d255ax8yjs3zkdm42z8q9yl0f"))))
422 (build-system gnu-build-system)
424 `(#:tests? #f ; No tests
425 #:make-flags (list "CC=gcc"
426 (string-append "PREFIX=" %output))
428 (modify-phases %standard-phases
429 (delete 'configure)))) ; No configure script
430 (home-page "https://2f30.org/")
431 (synopsis "Commandline utility which scrolls text")
433 "Skroll is a small utility that you can use to make a text scroll.
434 Pipe text to it, and it will scroll a given number of letters from right to
436 (license license:wtfpl2)))
445 (uri (string-append "https://dl.2f30.org/releases/"
446 name "-" version ".tar.gz"))
449 "1nks5mkh5wn30kyjzlkjlgi31bv1wq52kbp0r6nzbyfnvfdlywik"))))
450 (build-system gnu-build-system)
452 `(#:tests? #f ; No tests
453 #:make-flags (list "CC=gcc"
454 (string-append "PREFIX=" %output))
456 (modify-phases %standard-phases
457 (delete 'configure)))) ; No configure script
458 (home-page "https://git.2f30.org/sbm/")
459 (synopsis "Simple bandwidth monitor")
461 "Sbm is a simple bandwidth monitor.")
462 (license license:isc)))
471 (uri (string-append "https://dl.2f30.org/releases/"
472 name "-" version ".tar.gz"))
475 "1s6c3ygg1h1fyxkh8gd7nzjk6qhnwsb4535d2k780kxnwns5fzas"))))
476 (build-system gnu-build-system)
478 `(#:tests? #f ; No tests
479 #:make-flags (list "CC=gcc"
480 (string-append "PREFIX=" %output))
482 (modify-phases %standard-phases
483 (delete 'configure)))) ; No configure script
485 `(("cups-minimal" ,cups-minimal)
487 (home-page "https://git.2f30.org/prout/")
488 (synopsis "Smaller lp command")
490 "Prout (PRint OUT) is a small utility one can use to send
491 documents to a printer.
492 It has no feature, and does nothing else. Just set your default
493 printer in client.conf(5) and start printing. No need for a local
494 cups server to be installed.")
495 (license license:wtfpl2)))
504 (uri (string-append "https://dl.2f30.org/releases/"
505 name "-" version ".tar.gz"))
508 "0ldkbb71z6k4yzj4kpg3s94ijj1c1kx9dfcjz393py09scfyg5hr"))))
509 (build-system gnu-build-system)
511 `(#:tests? #f ; No tests
512 #:make-flags (list "CC=gcc"
513 (string-append "PREFIX=" %output))
515 (modify-phases %standard-phases
516 (delete 'configure) ; No configure script
517 (add-before 'build 'curses
519 (substitute* "Makefile"
520 (("lcurses") "lncurses")))))))
522 `(("ncurses" ,ncurses)))
523 (home-page "https://git.2f30.org/noice/")
524 (synopsis "Small file browser")
526 "Noice is a small curses-based file browser.")
527 (license license:bsd-2)))
529 ;;; We want some commits that are more recent than the latest release, 0.2
531 (let ((commit "50c80e6ba12823184b6866e06b955dbd2ccdc5d7")
535 (version (string-append "0.2-" revision "." (string-take commit 7)))
540 (url "git://git.2f30.org/human.git")
542 (file-name (string-append name "-" version "-checkout"))
545 "18xngm4h9vsyip52zwd79rrp1irzg6rs462lpbp61amf7hj955gn"))))
546 (build-system gnu-build-system)
548 `(#:tests? #f ; No tests
549 #:make-flags (list "CC=gcc"
550 (string-append "PREFIX=" %output))
552 (modify-phases %standard-phases
553 (delete 'configure)))) ; No configure script
554 (home-page "https://git.2f30.org/human/")
555 (synopsis "Convert bytes to human readable formats")
557 "Human is a small program which translate numbers into a
558 human readable format. By default, it tries to detect the best
559 factorisation, but you can force its output.
560 You can adjust the number of decimals with the @code{SCALE}
561 environment variable.")
562 (license license:wtfpl2))))
564 (define-public fortify-headers
566 (name "fortify-headers")
571 (uri (string-append "https://dl.2f30.org/releases/"
572 name "-" version ".tar.gz"))
575 "1z517ajy34l2k5lz2gvhbmia9xjgagffi4s22azqxnlmgb1g2xfg"))))
576 (build-system gnu-build-system)
578 `(#:tests? #f ; No tests
579 #:make-flags (list "CC=gcc"
580 (string-append "PREFIX=" %output))
582 (modify-phases %standard-phases
583 (delete 'configure)))) ; No configure script
584 (home-page "https://git.2f30.org/fortify-headers/")
585 (synopsis "Standalone fortify-source implementation")
587 "This is a standalone implementation of fortify source. It provides
588 compile time buffer checks. It is libc-agnostic and simply overlays the
589 system headers by using the @code{#include_next} extension found in GCC. It was
590 initially intended to be used on musl-based Linux distributions.
593 @item It is portable, works on *BSD, Linux, Solaris and possibly others.
594 @item It will only trap non-conformant programs. This means that fortify
595 level 2 is treated in the same way as level 1.
596 @item Avoids making function calls when undefined behaviour has already been
597 invoked. This is handled by using @code{__builtin_trap()}.
598 @item Support for out-of-bounds read interfaces, such as @code{send()},
599 @code{write()}, @code{fwrite()}, etc.
600 @item No ABI is enforced. All of the fortify check functions are inlined
601 into the resulting binary.
603 (license license:isc)))
605 (define-public colors
612 (uri (string-append "https://dl.2f30.org/releases/"
613 name "-" version ".tar.gz"))
616 "1lckmqpgj89841splng0sszbls2ag71ggkgr1wsv9y3v6y87589z"))))
617 (build-system gnu-build-system)
619 `(#:tests? #f ; No tests
620 #:make-flags (list "CC=gcc"
621 (string-append "PREFIX=" %output))
623 (modify-phases %standard-phases
624 (delete 'configure)))) ; No configure script
626 `(("libpng" ,libpng)))
627 (home-page "https://git.2f30.org/colors/")
628 (synopsis "Extract colors from pictures")
630 "Extract colors from PNG files. It is similar to
631 strings(1) but for pictures. For a given input file it outputs a
632 colormap to stdout.")
633 (license license:isc)))
635 ;; No new releases were made at github, this repository is more active than
636 ;; the one at http://git.suckless.org/libutf/ and it is
637 ;; done by the same developer.
638 (define-public libutf
640 (commit "ff4c60635e1f455b0a0b4200f8183fbd5a88225b"))
643 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
648 (url "https://github.com/cls/libutf")
650 (file-name (string-append name "-" version "-checkout"))
653 "1ih5vjavilzggyr1j1z6w1z12c2fs5fg77cfnv7ami5ivsy3kg3d"))))
654 (build-system gnu-build-system)
656 `(#:tests? #f ; No tests
657 #:make-flags (list "CC=gcc"
658 (string-append "PREFIX=" %output))
660 (modify-phases %standard-phases
661 (delete 'configure)))) ; No configure script
664 (home-page "https://github.com/cls/libutf")
665 (synopsis "Plan 9 compatible UTF-8 library")
667 "This is a C89 UTF-8 library, with an API compatible with that of
668 Plan 9's libutf, but with a number of improvements:
671 @item Support for runes beyond the Basic Multilingual Plane.
672 @item utflen and utfnlen cannot overflow on 32- or 64-bit machines.
673 @item chartorune treats all invalid codepoints as though Runeerror.
674 @item fullrune, utfecpy, and utfnlen do not overestimate the length
676 @item An extra function, charntorune(p,s,n), equivalent to
677 fullrune(s,n) ? chartorune(p,s): 0.
678 @item Runeerror may be set to an alternative replacement value, such
679 as -1, to be used instead of U+FFFD.
681 (license license:expat))))
683 ;; No release tarballs so far.
686 (commit "25d90f4630b45e2b609d2e3daecb32cf5ff065fd"))
689 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
694 (url "https://github.com/younix/lchat")
696 (file-name (string-append name "-" version "-checkout"))
699 "0dvljyq3m7rxxkqv7rkmijak6vj8i4db3iq2z988bvf76chz268b"))))
700 (build-system gnu-build-system)
702 `(#:tests? #f ; No tests
703 #:make-flags (list "CC=gcc"
704 (string-append "PREFIX=" %output))
706 (modify-phases %standard-phases
707 (delete 'configure) ; No configure script
708 (add-before 'build 'libbsd
710 (substitute* "Makefile"
711 (("-lutf") "-lutf -lbsd"))))
713 (lambda* (#:key outputs #:allow-other-keys)
714 (let* ((out (assoc-ref outputs "out"))
715 (bin (string-append out "/bin")))
716 (install-file "lchat" bin)
723 (home-page "https://github.com/younix/lchat")
724 (synopsis "Line chat is a frontend for the irc client ii from suckless")
726 "Lchat (line chat) is the little and small brother of cii.
727 It is a front end for ii-like chat programs. It uses tail(1) -f to get the
728 chat output in background.")
729 (license license:isc))))