1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Claes Wallin <claes.wallin@greatsinodevelopment.com>
3 ;;; Copyright © 2016 Eric Le Bihan <eric.le.bihan.dev@free.fr>
4 ;;; Copyright © 2017 Z. Ren <zren@dlut.edu.cn>
5 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
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 skarnet)
23 #:use-module (gnu packages)
24 #:use-module (guix licenses)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
29 (define-public skalibs
36 (uri (string-append "http://skarnet.org/software/skalibs/skalibs-"
40 "108c4vslsfy57892ybbksscrjd4bx444hzzcq2g5wdg2sh0cl245"))))
41 (build-system gnu-build-system)
43 '(#:tests? #f ; no tests exist
44 #:phases (modify-phases %standard-phases
45 (add-after 'unpack 'reproducible
47 ;; Sort source files deterministically so that the *.a
48 ;; and *.so files are reproducible.
49 (substitute* "Makefile"
50 (("\\$\\(wildcard src/lib\\*/\\*.c\\)")
51 "$(sort $(wildcard src/lib*/*.c))"))
53 (home-page "https://skarnet.org/software/skalibs/")
54 (synopsis "Platform abstraction libraries for skarnet.org software")
56 "This package provides lightweight C libraries isolating the developer
57 from portability issues, providing a unified systems API on all platforms,
58 including primitive data types, cryptography, and POSIX concepts like sockets
59 and file system operations. It is used by all skarnet.org software.")
62 (define-public execline
69 (uri (string-append "http://skarnet.org/software/execline/execline-"
73 "0jx60wjz3yj3r1wircbvd15in275pi7ggw69pbs9djhcyb48zfz4"))))
74 (build-system gnu-build-system)
75 (inputs `(("skalibs" ,skalibs)))
77 '(#:configure-flags (list
78 (string-append "--with-lib="
79 (assoc-ref %build-inputs "skalibs")
81 (string-append "--with-sysdeps="
82 (assoc-ref %build-inputs "skalibs")
83 "/lib/skalibs/sysdeps"))
84 #:phases (modify-phases %standard-phases
86 'install 'post-install
87 (lambda* (#:key inputs outputs #:allow-other-keys)
88 (let* ((out (assoc-ref outputs "out"))
89 (bin (string-append out "/bin")))
90 (wrap-program (string-append bin "/execlineb")
91 `("PATH" ":" prefix (,bin)))))))
92 #:tests? #f)) ; No tests exist.
93 (home-page "https://skarnet.org/software/execline/")
95 (synopsis "Non-interactive shell-like language with minimal overhead")
97 "Execline is a (non-interactive) scripting language, separated into a
98 parser (execlineb) and a set of commands meant to execute one another in a
99 chain-execution fashion, storing the whole script in the argument array.
100 It features conditional loops, getopt-style option handling, file name
101 globbing, redirection and other shell concepts, expressed as discrete commands
102 rather than in special syntax, minimizing runtime footprint and
112 (uri (string-append "http://skarnet.org/software/s6/s6-"
116 "04vfviw00zvvb1mdpl78zdgzd7j491f1lahhqrkkq9vk5kwcn5v6"))))
117 (build-system gnu-build-system)
118 (inputs `(("skalibs" ,skalibs)
119 ("execline" ,execline)))
121 '(#:configure-flags (list
122 (string-append "--with-lib="
123 (assoc-ref %build-inputs "skalibs")
125 (string-append "--with-lib="
126 (assoc-ref %build-inputs "execline")
128 (string-append "--with-sysdeps="
129 (assoc-ref %build-inputs "skalibs")
130 "/lib/skalibs/sysdeps"))
132 (home-page "https://skarnet.org/software/s6")
134 (synopsis "Small suite of programs for process supervision")
136 "s6 is a small suite of programs for UNIX, designed to allow process
137 supervision (a.k.a. service supervision), in the line of daemontools and
138 runit, as well as various operations on processes and daemons. It is meant to
139 be a toolbox for low-level process and service administration, providing
140 different sets of independent tools that can be used within or without the
141 framework, and that can be assembled together to achieve powerful
142 functionality with a very small amount of code.")))
144 (define-public s6-dns
151 (uri (string-append "http://skarnet.org/software/s6-dns/s6-dns-"
155 "0h47ldxvh9cny91r0pjxq7zr5iqpqf1j50p3ip42f6bl90z5ha58"))))
156 (build-system gnu-build-system)
157 (inputs `(("skalibs" ,skalibs)))
159 '(#:configure-flags (list
160 (string-append "--with-lib="
161 (assoc-ref %build-inputs "skalibs")
163 (string-append "--with-sysdeps="
164 (assoc-ref %build-inputs "skalibs")
165 "/lib/skalibs/sysdeps"))
167 (home-page "https://skarnet.org/software/s6-dns")
169 (synopsis "Suite of DNS client programs")
171 "s6-dns is a suite of DNS client programs and libraries for Unix systems,
172 as an alternative to the BIND, djbdns or other DNS clients.")))
174 (define-public s6-networking
176 (name "s6-networking")
181 (uri (string-append "http://skarnet.org/software/s6-networking/s6-networking-"
185 "06j8fpldn187cmbjqp191hd65ka3ys19vj3jm3kcvkmvd9snh6fq"))))
186 (build-system gnu-build-system)
187 (inputs `(("skalibs" ,skalibs)
188 ("execline" ,execline)
192 '(#:configure-flags (list
193 (string-append "--with-lib="
194 (assoc-ref %build-inputs "skalibs")
196 (string-append "--with-lib="
197 (assoc-ref %build-inputs "execline")
199 (string-append "--with-lib="
200 (assoc-ref %build-inputs "s6")
202 (string-append "--with-lib="
203 (assoc-ref %build-inputs "s6-dns")
205 (string-append "--with-sysdeps="
206 (assoc-ref %build-inputs "skalibs")
207 "/lib/skalibs/sysdeps"))
209 (home-page "https://skarnet.org/software/s6-networking")
211 (synopsis "Suite of network utilities for Unix systems")
213 "s6-networking is a suite of small networking utilities for Unix systems.
214 It includes command-line client and server management, TCP access control,
215 privilege escalation across UNIX domain sockets, IDENT protocol management and
216 clock synchronization.")))
225 (uri (string-append "http://skarnet.org/software/s6-rc/s6-rc-"
229 "1fkg9635cvrf6gw055y346a3n634dy2xiwbypawi68flfprfgf4n"))))
230 (build-system gnu-build-system)
231 (inputs `(("skalibs" ,skalibs)
232 ("execline" ,execline)
235 '(#:configure-flags (list
236 (string-append "--with-lib="
237 (assoc-ref %build-inputs "skalibs")
239 (string-append "--with-lib="
240 (assoc-ref %build-inputs "execline")
242 (string-append "--with-lib="
243 (assoc-ref %build-inputs "s6")
245 (string-append "--with-sysdeps="
246 (assoc-ref %build-inputs "skalibs")
247 "/lib/skalibs/sysdeps"))
249 (home-page "https://skarnet.org/software/s6-rc")
251 (synopsis "Service manager for s6-based systems")
253 "s6-rc is a service manager for s6-based systems, i.e. a suite of
254 programs that can start and stop services, both long-running daemons and
255 one-time initialization scripts, in the proper order according to a dependency
256 tree. It ensures that long-running daemons are supervised by the s6
257 infrastructure, and that one-time scripts are also run in a controlled
260 (define-public s6-portable-utils
262 (name "s6-portable-utils")
268 "http://skarnet.org/software/s6-portable-utils/s6-portable-utils-"
272 "0ca5iiq3n6isj64jb81xpwjzjx1q8jg145nnnn91ra2qqk93kqka"))))
273 (build-system gnu-build-system)
274 (inputs `(("skalibs" ,skalibs)))
276 '(#:configure-flags (list
277 (string-append "--with-lib="
278 (assoc-ref %build-inputs "skalibs")
280 (string-append "--with-sysdeps="
281 (assoc-ref %build-inputs "skalibs")
282 "/lib/skalibs/sysdeps"))
284 (home-page "https://skarnet.org/software/s6-portable-utils")
286 (synopsis "Tiny command-line Unix utilities")
288 "s6-portable-utils is a set of tiny general Unix utilities, often
289 performing well-known tasks such as @command{cut} and @command{grep}, but
290 optimized for simplicity and small size. They were designed for embedded
291 systems and other constrained environments, but they work everywhere.")))
293 (define-public s6-linux-init
295 (name "s6-linux-init")
301 "http://skarnet.org/software/s6-linux-init/s6-linux-init-"
305 "0yfxrjqlbb6kac4gcn78phxbwp5sj9jmc1vxpsrbql62mfjyiqly"))))
306 (build-system gnu-build-system)
308 `(("skalibs" ,skalibs)))
312 (string-append "--with-lib="
313 (assoc-ref %build-inputs "skalibs")
315 (string-append "--with-sysdeps="
316 (assoc-ref %build-inputs "skalibs")
317 "/lib/skalibs/sysdeps"))
319 (home-page "https://skarnet.org/software/s6-linux-init")
321 (synopsis "Minimalistic tools to create an s6-based init system on Linux")
323 " s6-linux-init is a set of minimalistic tools to create a s6-based init
324 system, including an @command{/sbin/init} binary, on a Linux kernel.
326 It is meant to automate creation of scripts revolving around the use of other
327 skarnet.org tools, especially s6, in order to provide a complete booting
328 environment with integrated supervision and logging without having to hand-craft
329 all the details. ")))
331 (define-public s6-linux-utils
333 (name "s6-linux-utils")
339 "http://skarnet.org/software/s6-linux-utils/s6-linux-utils-"
343 "0245rmk7wfyyfsi4g7f0niprwlvqlwkbyjxflb8kkbvhwfdavqip"))))
344 (build-system gnu-build-system)
345 (inputs `(("skalibs" ,skalibs)))
347 '(#:configure-flags (list
348 (string-append "--with-lib="
349 (assoc-ref %build-inputs "skalibs")
351 (string-append "--with-sysdeps="
352 (assoc-ref %build-inputs "skalibs")
353 "/lib/skalibs/sysdeps"))
355 (home-page "https://skarnet.org/software/s6-linux-utils")
357 (synopsis "Set of minimalistic Linux-specific system utilities")
359 "s6-linux-utils is a set of minimalistic Linux-specific system utilities,
360 such as @command{mount}, @command{umount}, and @command{chroot} commands,
361 Linux uevent listeners, a @command{devd} device hotplug daemon, and more.")))