1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| | ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Claes Wallin <claes.wallin@greatsinodevelopment.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages skarnet)
#:use-module (gnu packages)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu))
(define-public skalibs
(package
(name "skalibs")
(version "2.3.5.1")
(source
(origin
(method url-fetch)
(uri (string-append "http://skarnet.org/software/skalibs/skalibs-"
version ".tar.gz"))
(sha256
(base32
"1m31wph4qr4mqgv51nzwd9nw0x5vmpkcxr48i216wn3dpy3mvxwy"))))
(build-system gnu-build-system)
(search-paths
(list (search-path-specification
(variable "CPATH")
(files '("include")))
(search-path-specification
(variable "LIBRARY_PATH")
(files '("lib")))))
(arguments
'(#:configure-flags '("--enable-force-devr") ; do not analyze /dev/random
#:tests? #f)) ; no tests exist
(home-page "http://skarnet.org/software/skalibs/")
(synopsis "Common libraries for skarnet.org software")
(description
"General-purpose libraries for minimalist C development, used by all
skarnet.org software.")
(license isc)))
(define-public execline
(package
(name "execline")
(version "2.1.2.2")
(source
(origin
(method url-fetch)
(uri (string-append "http://skarnet.org/software/execline/execline-"
version ".tar.gz"))
(patches
(list (search-patch "execline-fix-gen-deps.patch")))
(sha256
(base32
"01pckac5zijf6icrhwicbmq92yq68gfkf1yl03rr2v4q3cn8r85f"))))
(build-system gnu-build-system)
(inputs `(("skalibs" ,skalibs)))
(arguments
'(#:configure-flags (list
(string-append "--with-sysdeps="
(assoc-ref %build-inputs "skalibs")
"/lib/skalibs/sysdeps"))
#:modules ((guix build utils)
(guix build gnu-build-system)
(ice-9 popen))
#:phases (modify-phases %standard-phases
(add-before
'configure 'gen-deps
(lambda _
(let ((in (open-input-pipe "./tools/gen-deps.sh"))
(out (open-output-file "package/deps.mak")))
(dump-port in out)
(close-pipe in)
(close-port out))))
(add-after
'install 'post-install
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(wrap-program (string-append bin "/execlineb")
`("PATH" ":" prefix (,bin)))))))
#:tests? #f)) ; No tests exist.
(home-page "http://skarnet.org/software/execline/")
(license isc)
(synopsis "Non-interactive shell-like language with minimal overhead")
(description
"Execline is a (non-interactive) scripting language, like sh, but its
syntax is quite different from a traditional shell syntax. The execlineb
program is used strictly as a parser for a text file and generates a single
command execution with the entire script stored in the argument array.
The language is a library of binaries useful for the tail call or
chain execution style that the parser requires.
It is as powerful as a shell: It features conditional loops,
getopt-style option handling, filename globbing, and more. Meanwhile, its
syntax is unambiguous and simple, allowing a minimal parser, which doesn't
even stay in memory when parsing is done and execution starts.")))
|