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 ng0 <ng0@we.make.ritual.n0.is>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages suckless)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu)
27 #:use-module (guix build-system glib-or-gtk)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages gnome)
30 #:use-module (gnu packages xorg)
31 #:use-module (gnu packages fonts)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages webkit)
34 #:use-module (gnu packages fontutils))
42 (uri (string-append "http://dl.suckless.org/dwm/dwm-"
45 (base32 "0mpbivy9j80l1jqq4bd4g4z8s5c54fxrjj44avmfwncjwqylifdj"))))
46 (build-system gnu-build-system)
53 (substitute* "Makefile" (("\\$\\{CC\\}") "gcc"))
57 (lambda* (#:key outputs #:allow-other-keys)
58 (let ((out (assoc-ref outputs "out")))
60 (system* "make" "install"
61 (string-append "DESTDIR=" out) "PREFIX="))))
65 ("libxinerama" ,libxinerama)))
66 (home-page "http://dwm.suckless.org/")
67 (synopsis "Dynamic window manager")
69 "dwm is a dynamic window manager for X. It manages windows in tiled,
70 monocle and floating layouts. All of the layouts can be applied dynamically,
71 optimising the environment for the application in use and the task performed.
73 In tiled layout windows are managed in a master and stacking area. The master
74 area contains the window which currently needs most attention, whereas the
75 stacking area contains all other windows. In monocle layout all windows are
76 maximised to the screen size. In floating layout windows can be resized and
77 moved freely. Dialog windows are always managed floating, regardless of the
80 Windows are grouped by tags. Each window can be tagged with one or multiple
81 tags. Selecting certain tags displays all windows with these tags.
83 Each screen contains a small status bar which displays all available tags, the
84 layout, the number of visible windows, the title of the focused window, and the
85 text read from the root window name property, if the screen is focused. A
86 floating window is indicated with an empty square and a maximised floating
87 window is indicated with a filled square before the windows title. The selected
88 tags are indicated with a different color. The tags of the focused window are
89 indicated with a filled square in the top left corner. The tags which are
90 applied to one or more windows are indicated with an empty square in the top
93 dwm draws a small customizable border around windows to indicate the focus
95 (license license:x11)))
103 (uri (string-append "http://dl.suckless.org/tools/dmenu-"
107 "0l58jpxrr80fmyw5pgw5alm5qry49aw6y049745wl991v2cdcb08"))))
108 (build-system gnu-build-system)
110 '(#:tests? #f ; no tests
111 #:make-flags (list "CC=gcc"
112 (string-append "PREFIX=" %output))
114 (alist-delete 'configure %standard-phases)))
117 ("libxinerama" ,libxinerama)))
118 (home-page "http://tools.suckless.org/dmenu/")
119 (synopsis "Dynamic menu")
121 "A dynamic menu for X, originally designed for dwm. It manages large
122 numbers of user-defined menu items efficiently.")
123 (license license:x11)))
131 (uri (string-append "http://dl.suckless.org/tools/slock-"
135 "1crkyr4vblhciy6vnbjwwjnlkm9yg2hzq16v6hzxm20ai67na0il"))))
136 (build-system gnu-build-system)
138 '(#:tests? #f ; no tests
139 #:make-flags (list "CC=gcc"
140 (string-append "PREFIX=" %output))
141 #:phases (alist-delete 'configure %standard-phases)))
145 ("libxinerama" ,libxinerama)))
146 (home-page "http://tools.suckless.org/slock/")
147 (synopsis "Simple X session lock")
149 "Simple X session lock with trivial feedback on password entry.")
150 (license license:x11)))
159 (uri (string-append "http://dl.suckless.org/st/st-"
163 "0avsfc1qp8zvshsfjwwrkvk411jlqy58z225bsdhjkl1qc40qcc5"))))
164 (build-system gnu-build-system)
166 '(#:tests? #f ; no tests
167 #:make-flags (list "CC=gcc"
168 (string-append "PREFIX=" %output))
170 (modify-phases %standard-phases
172 (add-after 'unpack 'inhibit-terminfo-install
174 (substitute* "Makefile"
175 (("\t@tic -s st.info") ""))
180 ("libxcomposite" ,libxcomposite)
181 ("compositeproto" ,compositeproto)
183 ("xextproto" ,xextproto)
184 ("libxrender" ,libxrender)
185 ("fontconfig" ,fontconfig)
186 ("freetype" ,freetype)
187 ("font-liberation" ,font-liberation)))
188 (native-inputs `(("pkg-config" ,pkg-config)))
189 (home-page "http://st.suckless.org/")
190 (synopsis "Simple terminal emulator")
192 "St implements a simple and lightweight terminal emulator. It
193 implements 256 colors, most VT10X escape sequences, utf8, X11 copy/paste,
194 antialiased fonts (using fontconfig), fallback fonts, resizing, and line
196 (license license:x11)))
205 (uri (string-append "http://dl.suckless.org/surf/surf-"
209 "0jj93izd8fizxfa6ln9w1h9bwki81sz5dhskh5x1rl34zd38aq4m"))))
210 (build-system glib-or-gtk-build-system)
212 '(#:tests? #f ; no tests
213 #:make-flags (list "CC=gcc"
214 (string-append "PREFIX=" %output))
216 (modify-phases %standard-phases
217 (delete 'configure))))
219 `(("glib-networking" ,glib-networking)
220 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
221 ("webkitgtk" ,webkitgtk/gtk+-2)))
223 `(("pkg-config" ,pkg-config)))
224 (home-page "http://surf.suckless.org/")
225 (synopsis "Simple web browser")
227 "Surf is a simple web browser based on WebKit/GTK+. It is able to
228 display websites and follow links. It supports the XEmbed protocol which
229 makes it possible to embed it in another application. Furthermore, one can
230 point surf to another URI by setting its XProperties.")
231 (license license:x11)))