Commit | Line | Data |
---|---|---|
7a2941a8 | 1 | ;;; GNU Guix --- Functional package management for GNU |
1009e6e7 | 2 | ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
7a2941a8 MJ |
3 | ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com> |
4 | ;;; Copyright © 2016 Andy Wingo <wingo@igalia.com> | |
ec91bcb5 | 5 | ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org> |
c04ef86e | 6 | ;;; Copyright © 2016, 2017 Petter <petter@mykolab.ch> |
9c1b4316 | 7 | ;;; Copyright © 2016, 2017, 2019 Leo Famulari <leo@famulari.name> |
c04ef86e | 8 | ;;; Copyright © 2017 Sergei Trofimovich <slyfox@inbox.ru> |
eaca9ff0 | 9 | ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com> |
247064c3 | 10 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
c4d2cffa | 11 | ;;; Copyright © 2018 Christopher Baines <mail@cbaines.net> |
e60352e4 | 12 | ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org> |
fb50664f | 13 | ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr> |
4715f92e | 14 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
18199da4 | 15 | ;;; Copyright @ 2018, 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com> |
4ddf067f | 16 | ;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu> |
521d736a | 17 | ;;; Copyright @ 2019 Alex Griffin <a@ajgrf.com> |
e30bdd49 | 18 | ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net> |
7a2941a8 | 19 | ;;; |
8a610eb6 | 20 | ;;; This file is part of GNU Guix. |
7a2941a8 MJ |
21 | ;;; |
22 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
23 | ;;; under the terms of the GNU General Public License as published by | |
24 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
25 | ;;; your option) any later version. | |
26 | ;;; | |
27 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
28 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
29 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
30 | ;;; GNU General Public License for more details. | |
31 | ;;; | |
32 | ;;; You should have received a copy of the GNU General Public License | |
33 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
34 | ||
35 | (define-module (gnu packages golang) | |
36 | #:use-module ((guix licenses) #:prefix license:) | |
37 | #:use-module (guix utils) | |
38 | #:use-module (guix download) | |
d3878e88 | 39 | #:use-module (guix git-download) |
7a2941a8 MJ |
40 | #:use-module (guix packages) |
41 | #:use-module (guix build-system gnu) | |
830dc251 | 42 | #:use-module (guix build-system trivial) |
d3878e88 | 43 | #:use-module (guix build-system go) |
7a2941a8 MJ |
44 | #:use-module (gnu packages admin) |
45 | #:use-module (gnu packages gcc) | |
46 | #:use-module (gnu packages base) | |
47 | #:use-module (gnu packages perl) | |
48 | #:use-module (gnu packages pkg-config) | |
49 | #:use-module (gnu packages pcre) | |
e25ddef5 | 50 | #:use-module (gnu packages lua) |
53182924 | 51 | #:use-module (gnu packages mp3) |
06c2d0e6 | 52 | #:use-module (gnu packages textutils) |
8ffc727e | 53 | #:use-module (gnu packages tls) |
7a2941a8 | 54 | #:use-module (ice-9 match) |
9c359ff4 | 55 | #:use-module (srfi srfi-1)) |
7a2941a8 MJ |
56 | |
57 | ;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a | |
58 | ;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2 | |
59 | ;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately | |
60 | ;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of | |
61 | ;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or | |
62 | ;; gccgo-5. Mips is not officially supported, but it should work if it is | |
63 | ;; bootstrapped. | |
64 | ||
65 | (define-public go-1.4 | |
66 | (package | |
67 | (name "go") | |
9bc1de31 | 68 | ;; The C-language bootstrap of Go: |
521d736a AG |
69 | ;; https://golang.org/doc/install/source#go14 |
70 | (version "1.4-bootstrap-20171003") | |
7a2941a8 MJ |
71 | (source (origin |
72 | (method url-fetch) | |
73 | (uri (string-append "https://storage.googleapis.com/golang/" | |
521d736a | 74 | name version ".tar.gz")) |
7a2941a8 MJ |
75 | (sha256 |
76 | (base32 | |
521d736a | 77 | "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl")))) |
7a2941a8 MJ |
78 | (build-system gnu-build-system) |
79 | (outputs '("out" | |
80 | "doc" | |
81 | "tests")) | |
82 | (arguments | |
83 | `(#:modules ((ice-9 match) | |
84 | (guix build gnu-build-system) | |
1d698a8b ST |
85 | (guix build utils) |
86 | (srfi srfi-1)) | |
7a2941a8 | 87 | #:tests? #f ; Tests are run by the all.bash script. |
2ab321ca EF |
88 | ,@(if (string-prefix? "aarch64-linux" (or (%current-system) |
89 | (%current-target-system))) | |
90 | '(#:system "armhf-linux") | |
91 | '()) | |
7a2941a8 MJ |
92 | #:phases |
93 | (modify-phases %standard-phases | |
94 | (delete 'configure) | |
95 | (add-after 'patch-generated-file-shebangs 'chdir | |
96 | (lambda _ | |
2a49f7ad TGR |
97 | (chdir "src") |
98 | #t)) | |
7a2941a8 MJ |
99 | (add-before 'build 'prebuild |
100 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
101 | (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) | |
102 | (ld (string-append (assoc-ref inputs "libc") "/lib")) | |
103 | (loader (car (find-files ld "^ld-linux.+"))) | |
104 | (net-base (assoc-ref inputs "net-base")) | |
105 | (tzdata-path | |
106 | (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) | |
107 | (output (assoc-ref outputs "out"))) | |
108 | ||
109 | ;; Removing net/ tests, which fail when attempting to access | |
110 | ;; network resources not present in the build container. | |
111 | (for-each delete-file | |
112 | '("net/multicast_test.go" "net/parse_test.go" | |
113 | "net/port_test.go")) | |
114 | ||
115 | ;; Add libgcc to the RUNPATH. | |
116 | (substitute* "cmd/go/build.go" | |
117 | (("cgoldflags := \\[\\]string\\{\\}") | |
118 | (string-append "cgoldflags := []string{" | |
119 | "\"-rpath=" gcclib "\"}")) | |
120 | (("ldflags := buildLdflags") | |
121 | (string-append | |
122 | "ldflags := buildLdflags\n" | |
123 | "ldflags = append(ldflags, \"-r\")\n" | |
124 | "ldflags = append(ldflags, \"" gcclib "\")\n"))) | |
125 | ||
126 | (substitute* "os/os_test.go" | |
127 | (("/usr/bin") (getcwd)) | |
128 | (("/bin/pwd") (which "pwd"))) | |
129 | ||
130 | ;; Disable failing tests: these tests attempt to access | |
131 | ;; commands or network resources which are neither available or | |
132 | ;; necessary for the build to succeed. | |
133 | (for-each | |
134 | (match-lambda | |
135 | ((file regex) | |
136 | (substitute* file | |
137 | ((regex all before test_name) | |
138 | (string-append before "Disabled" test_name))))) | |
139 | '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") | |
140 | ("net/dial_test.go" "(.+)(TestDialTimeout.+)") | |
141 | ("os/os_test.go" "(.+)(TestHostname.+)") | |
142 | ("time/format_test.go" "(.+)(TestParseInSydney.+)") | |
4b0bac4b | 143 | |
7a2941a8 MJ |
144 | ("os/exec/exec_test.go" "(.+)(TestEcho.+)") |
145 | ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") | |
146 | ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") | |
147 | ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") | |
148 | ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") | |
149 | ("os/exec/exec_test.go" "(.+)(TestPipes.+)") | |
150 | ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") | |
151 | ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") | |
152 | ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)"))) | |
153 | ||
154 | (substitute* "net/lookup_unix.go" | |
155 | (("/etc/protocols") (string-append net-base "/etc/protocols"))) | |
156 | (substitute* "time/zoneinfo_unix.go" | |
157 | (("/usr/share/zoneinfo/") tzdata-path)) | |
158 | (substitute* (find-files "cmd" "asm.c") | |
159 | (("/lib/ld-linux.*\\.so\\.[0-9]") loader)) | |
160 | #t))) | |
161 | ||
162 | (replace 'build | |
163 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
164 | ;; FIXME: Some of the .a files are not bit-reproducible. | |
165 | (let* ((output (assoc-ref outputs "out"))) | |
166 | (setenv "CC" (which "gcc")) | |
167 | (setenv "GOOS" "linux") | |
168 | (setenv "GOROOT" (dirname (getcwd))) | |
169 | (setenv "GOROOT_FINAL" output) | |
521d736a | 170 | (setenv "GO14TESTS" "1") |
2a49f7ad | 171 | (invoke "sh" "all.bash")))) |
7a2941a8 MJ |
172 | |
173 | (replace 'install | |
174 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
175 | (let* ((output (assoc-ref outputs "out")) | |
176 | (doc_out (assoc-ref outputs "doc")) | |
177 | (bash (string-append (assoc-ref inputs "bash") "bin/bash")) | |
178 | (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) | |
179 | (tests (string-append | |
180 | (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) | |
181 | (mkdir-p tests) | |
182 | (copy-recursively "../test" (string-append tests "/test")) | |
183 | (delete-file-recursively "../test") | |
184 | (mkdir-p docs) | |
185 | (copy-recursively "../api" (string-append docs "/api")) | |
186 | (delete-file-recursively "../api") | |
187 | (copy-recursively "../doc" (string-append docs "/doc")) | |
188 | (delete-file-recursively "../doc") | |
189 | ||
190 | (for-each (lambda (file) | |
191 | (let ((file (string-append "../" file))) | |
192 | (install-file file docs) | |
193 | (delete-file file))) | |
194 | '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS" | |
195 | "LICENSE" "VERSION" "robots.txt")) | |
196 | (copy-recursively "../" output) | |
197 | #t)))))) | |
198 | (inputs | |
199 | `(("tzdata" ,tzdata) | |
200 | ("pcre" ,pcre) | |
4f615131 | 201 | ("gcc:lib" ,gcc "lib"))) |
7a2941a8 | 202 | (native-inputs |
3f0ec617 | 203 | `(("pkg-config" ,pkg-config) |
7a2941a8 MJ |
204 | ("which" ,which) |
205 | ("net-base" ,net-base) | |
206 | ("perl" ,perl))) | |
207 | ||
208 | (home-page "https://golang.org/") | |
209 | (synopsis "Compiler and libraries for Go, a statically-typed language") | |
210 | (description "Go, also commonly referred to as golang, is an imperative | |
247064c3 TGR |
211 | programming language designed primarily for systems programming. Go is a |
212 | compiled, statically typed language in the tradition of C and C++, but adds | |
213 | garbage collection, various safety features, and concurrent programming features | |
214 | in the style of communicating sequential processes (@dfn{CSP}).") | |
2ab321ca | 215 | (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux")) |
7a2941a8 | 216 | (license license:bsd-3))) |
ec91bcb5 | 217 | |
5a14b913 | 218 | (define-public go-1.11 |
ec91bcb5 MJ |
219 | (package |
220 | (inherit go-1.4) | |
221 | (name "go") | |
ec8c1681 | 222 | (version "1.11.12") |
ec91bcb5 MJ |
223 | (source |
224 | (origin | |
225 | (method url-fetch) | |
226 | (uri (string-append "https://storage.googleapis.com/golang/" | |
227 | name version ".src.tar.gz")) | |
228 | (sha256 | |
229 | (base32 | |
ec8c1681 | 230 | "09k9zmq7hhgg0bf1y7rwa0kn7q1vkkr94cmg2iv9lq3najh5nykd")))) |
ec91bcb5 MJ |
231 | (arguments |
232 | (substitute-keyword-arguments (package-arguments go-1.4) | |
233 | ((#:phases phases) | |
234 | `(modify-phases ,phases | |
235 | (replace 'prebuild | |
ec91bcb5 MJ |
236 | (lambda* (#:key inputs outputs #:allow-other-keys) |
237 | (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) | |
238 | (ld (string-append (assoc-ref inputs "libc") "/lib")) | |
239 | (loader (car (find-files ld "^ld-linux.+"))) | |
240 | (net-base (assoc-ref inputs "net-base")) | |
241 | (tzdata-path | |
242 | (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) | |
243 | (output (assoc-ref outputs "out"))) | |
244 | ||
ec91bcb5 | 245 | (for-each delete-file |
5a14b913 LF |
246 | ;; Removing net/ tests, which fail when attempting to access |
247 | ;; network resources not present in the build container. | |
a6169621 P |
248 | '("net/listen_test.go" |
249 | "net/parse_test.go" | |
5a14b913 LF |
250 | "net/cgo_unix_test.go" |
251 | ;; A side effect of these test scripts is testing | |
252 | ;; cgo. Attempts at using cgo flags and | |
253 | ;; directives with these scripts as specified | |
254 | ;; here (https://golang.org/cmd/cgo/) have not | |
255 | ;; worked. The tests continue to state that they | |
256 | ;; can not find crt1.o despite being present. | |
257 | "cmd/go/testdata/script/list_compiled_imports.txt" | |
258 | "cmd/go/testdata/script/mod_case_cgo.txt" | |
259 | ;; https://github.com/golang/go/issues/24884 | |
260 | "os/user/user_test.go")) | |
ec91bcb5 MJ |
261 | |
262 | (substitute* "os/os_test.go" | |
263 | (("/usr/bin") (getcwd)) | |
a6169621 P |
264 | (("/bin/pwd") (which "pwd")) |
265 | (("/bin/sh") (which "sh"))) | |
ec91bcb5 | 266 | |
5a14b913 LF |
267 | (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go" |
268 | (("/usr/bin") "/tmp")) | |
269 | ||
ec91bcb5 MJ |
270 | ;; Add libgcc to runpath |
271 | (substitute* "cmd/link/internal/ld/lib.go" | |
272 | (("!rpath.set") "true")) | |
5a14b913 | 273 | (substitute* "cmd/go/internal/work/gccgo.go" |
ec91bcb5 MJ |
274 | (("cgoldflags := \\[\\]string\\{\\}") |
275 | (string-append "cgoldflags := []string{" | |
276 | "\"-rpath=" gcclib "\"" | |
277 | "}")) | |
5a14b913 LF |
278 | (("\"-lgcc_s\", ") |
279 | (string-append | |
280 | "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) | |
281 | (substitute* "cmd/go/internal/work/gc.go" | |
ec91bcb5 MJ |
282 | (("ldflags = setextld\\(ldflags, compiler\\)") |
283 | (string-append | |
284 | "ldflags = setextld(ldflags, compiler)\n" | |
285 | "ldflags = append(ldflags, \"-r\")\n" | |
5a14b913 | 286 | "ldflags = append(ldflags, \"" gcclib "\")\n"))) |
0a3e9bf6 | 287 | |
ec91bcb5 | 288 | ;; Disable failing tests: these tests attempt to access |
1c797d4b LF |
289 | ;; commands or network resources which are neither available |
290 | ;; nor necessary for the build to succeed. | |
ec91bcb5 MJ |
291 | (for-each |
292 | (match-lambda | |
293 | ((file regex) | |
294 | (substitute* file | |
295 | ((regex all before test_name) | |
296 | (string-append before "Disabled" test_name))))) | |
297 | '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") | |
298 | ("net/dial_test.go" "(.+)(TestDialTimeout.+)") | |
299 | ("os/os_test.go" "(.+)(TestHostname.+)") | |
300 | ("time/format_test.go" "(.+)(TestParseInSydney.+)") | |
f826c8c7 | 301 | ("time/format_test.go" "(.+)(TestParseInLocation.+)") |
ec91bcb5 MJ |
302 | ("os/exec/exec_test.go" "(.+)(TestEcho.+)") |
303 | ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") | |
18199da4 KCB |
304 | ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") |
305 | ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") | |
306 | ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") | |
307 | ("os/exec/exec_test.go" "(.+)(TestPipes.+)") | |
308 | ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") | |
309 | ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") | |
310 | ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") | |
311 | ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") | |
312 | ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") | |
313 | ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") | |
314 | ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") | |
315 | ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") | |
316 | ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") | |
317 | ("net/lookup_test.go" "(.+)(TestLookupPort.+)") | |
318 | ("syscall/exec_linux_test.go" | |
319 | "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) | |
320 | ||
321 | ;; fix shebang for testar script | |
322 | ;; note the target script is generated at build time. | |
323 | (substitute* "../misc/cgo/testcarchive/carchive_test.go" | |
324 | (("#!/usr/bin/env") (string-append "#!" (which "env")))) | |
325 | ||
326 | (substitute* "net/lookup_unix.go" | |
327 | (("/etc/protocols") (string-append net-base "/etc/protocols"))) | |
328 | (substitute* "net/port_unix.go" | |
329 | (("/etc/services") (string-append net-base "/etc/services"))) | |
330 | (substitute* "time/zoneinfo_unix.go" | |
331 | (("/usr/share/zoneinfo/") tzdata-path)) | |
332 | (substitute* (find-files "cmd" "\\.go") | |
333 | (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader)) | |
334 | #t))) | |
335 | (add-before 'build 'set-bootstrap-variables | |
336 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
337 | ;; Tell the build system where to find the bootstrap Go. | |
338 | (let ((go (assoc-ref inputs "go"))) | |
339 | (setenv "GOROOT_BOOTSTRAP" go) | |
340 | (setenv "GOGC" "400") | |
341 | #t))) | |
342 | (replace 'build | |
343 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
344 | ;; FIXME: Some of the .a files are not bit-reproducible. | |
345 | (let* ((output (assoc-ref outputs "out"))) | |
346 | (setenv "CC" (which "gcc")) | |
347 | (setenv "GOOS" "linux") | |
348 | (setenv "GOROOT" (dirname (getcwd))) | |
349 | (setenv "GOROOT_FINAL" output) | |
350 | (setenv "CGO_ENABLED" "1") | |
351 | (invoke "sh" "all.bash")))) | |
352 | ||
353 | (replace 'install | |
354 | ;; TODO: Most of this could be factorized with Go 1.4. | |
355 | (lambda* (#:key outputs #:allow-other-keys) | |
356 | (let* ((output (assoc-ref outputs "out")) | |
357 | (doc_out (assoc-ref outputs "doc")) | |
358 | (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) | |
359 | (src (string-append | |
360 | (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) | |
361 | (delete-file-recursively "../pkg/bootstrap") | |
362 | ;; Prevent installation of the build cache, which contains | |
363 | ;; store references to most of the tools used to build Go and | |
364 | ;; would unnecessarily increase the size of Go's closure if it | |
365 | ;; was installed. | |
366 | (delete-file-recursively "../pkg/obj") | |
367 | ||
368 | (mkdir-p src) | |
369 | (copy-recursively "../test" (string-append src "/test")) | |
370 | (delete-file-recursively "../test") | |
371 | (mkdir-p docs) | |
372 | (copy-recursively "../api" (string-append docs "/api")) | |
373 | (delete-file-recursively "../api") | |
374 | (copy-recursively "../doc" (string-append docs "/doc")) | |
375 | (delete-file-recursively "../doc") | |
376 | ||
377 | (for-each | |
378 | (lambda (file) | |
379 | (let* ((filein (string-append "../" file)) | |
380 | (fileout (string-append docs "/" file))) | |
381 | (copy-file filein fileout) | |
382 | (delete-file filein))) | |
383 | ;; Note the slightly different file names compared to 1.4. | |
384 | '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS" | |
385 | "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) | |
386 | ||
387 | (copy-recursively "../" output) | |
388 | #t))))))) | |
389 | (native-inputs | |
390 | `(("go" ,go-1.4) | |
391 | ,@(match (%current-system) | |
392 | ((or "armhf-linux" "aarch64-linux") | |
393 | `(("gold" ,binutils-gold))) | |
394 | (_ `())) | |
395 | ,@(package-native-inputs go-1.4))) | |
396 | (supported-systems %supported-systems))) | |
397 | ||
398 | ||
399 | (define-public go-1.12 | |
400 | (package | |
401 | (inherit go-1.4) | |
402 | (name "go") | |
1074b370 | 403 | (version "1.12.7") |
18199da4 KCB |
404 | (source |
405 | (origin | |
406 | (method url-fetch) | |
407 | (uri (string-append "https://storage.googleapis.com/golang/" | |
408 | name version ".src.tar.gz")) | |
409 | (sha256 | |
410 | (base32 | |
1074b370 | 411 | "04rvwj69gmw3bz8pw5pf10r21ar0pgpnswp15nkddf04dxyl9s4m")))) |
18199da4 KCB |
412 | (arguments |
413 | (substitute-keyword-arguments (package-arguments go-1.4) | |
414 | ((#:phases phases) | |
415 | `(modify-phases ,phases | |
416 | (replace 'prebuild | |
417 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
418 | (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) | |
419 | (ld (string-append (assoc-ref inputs "libc") "/lib")) | |
420 | (loader (car (find-files ld "^ld-linux.+"))) | |
421 | (net-base (assoc-ref inputs "net-base")) | |
422 | (tzdata-path | |
423 | (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) | |
424 | (output (assoc-ref outputs "out"))) | |
425 | ||
426 | ;; A side effect of these test scripts is testing | |
427 | ;; cgo. Attempts at using cgo flags and directives with these | |
428 | ;; scripts as specified here (https://golang.org/cmd/cgo/) | |
429 | ;; have not worked. The tests continue to state that they can | |
430 | ;; not find object files/headers despite being present. | |
431 | (for-each | |
432 | delete-file | |
433 | '("cmd/go/testdata/script/mod_case_cgo.txt" | |
434 | "cmd/go/testdata/script/list_find.txt" | |
435 | "cmd/go/testdata/script/list_compiled_imports.txt" | |
436 | "cmd/go/testdata/script/cgo_syso_issue29253.txt")) | |
437 | ||
438 | (substitute* "os/os_test.go" | |
439 | (("/usr/bin") (getcwd)) | |
440 | (("/bin/pwd") (which "pwd")) | |
441 | (("/bin/sh") (which "sh"))) | |
442 | ||
443 | (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go" | |
444 | (("/usr/bin") "/tmp")) | |
445 | ||
446 | ;; Add libgcc to runpath | |
447 | (substitute* "cmd/link/internal/ld/lib.go" | |
448 | (("!rpath.set") "true")) | |
449 | (substitute* "cmd/go/internal/work/gccgo.go" | |
450 | (("cgoldflags := \\[\\]string\\{\\}") | |
451 | (string-append "cgoldflags := []string{" | |
452 | "\"-rpath=" gcclib "\"" | |
453 | "}")) | |
454 | (("\"-lgcc_s\", ") | |
455 | (string-append | |
456 | "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) | |
457 | (substitute* "cmd/go/internal/work/gc.go" | |
458 | (("ldflags = setextld\\(ldflags, compiler\\)") | |
459 | (string-append | |
460 | "ldflags = setextld(ldflags, compiler)\n" | |
461 | "ldflags = append(ldflags, \"-r\")\n" | |
462 | "ldflags = append(ldflags, \"" gcclib "\")\n"))) | |
463 | ||
464 | ;; Disable failing tests: these tests attempt to access | |
465 | ;; commands or network resources which are neither available | |
466 | ;; nor necessary for the build to succeed. | |
467 | (for-each | |
468 | (match-lambda | |
469 | ((file regex) | |
470 | (substitute* file | |
471 | ((regex all before test_name) | |
472 | (string-append before "Disabled" test_name))))) | |
473 | '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") | |
474 | ("net/dial_test.go" "(.+)(TestDialTimeout.+)") | |
475 | ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") | |
476 | ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") | |
477 | ;; 127.0.0.1 doesn't exist | |
478 | ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") | |
479 | ;; 127.0.0.1 doesn't exist | |
480 | ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") | |
481 | ;; /etc/services doesn't exist | |
482 | ("net/parse_test.go" "(.+)(TestReadLine.+)") | |
483 | ("os/os_test.go" "(.+)(TestHostname.+)") | |
484 | ;; The user's directory doesn't exist | |
485 | ("os/os_test.go" "(.+)(TestUserHomeDir.+)") | |
486 | ("time/format_test.go" "(.+)(TestParseInSydney.+)") | |
487 | ("time/format_test.go" "(.+)(TestParseInLocation.+)") | |
488 | ("os/exec/exec_test.go" "(.+)(TestEcho.+)") | |
489 | ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") | |
ec91bcb5 MJ |
490 | ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") |
491 | ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") | |
492 | ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") | |
493 | ("os/exec/exec_test.go" "(.+)(TestPipes.+)") | |
494 | ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") | |
495 | ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") | |
496 | ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") | |
497 | ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") | |
498 | ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") | |
3f157443 | 499 | ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") |
ec91bcb5 MJ |
500 | ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") |
501 | ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") | |
502 | ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") | |
503 | ("net/lookup_test.go" "(.+)(TestLookupPort.+)") | |
504 | ("syscall/exec_linux_test.go" | |
17399545 | 505 | "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) |
ec91bcb5 | 506 | |
ec91bcb5 MJ |
507 | ;; fix shebang for testar script |
508 | ;; note the target script is generated at build time. | |
a6169621 | 509 | (substitute* "../misc/cgo/testcarchive/carchive_test.go" |
ec91bcb5 MJ |
510 | (("#!/usr/bin/env") (string-append "#!" (which "env")))) |
511 | ||
512 | (substitute* "net/lookup_unix.go" | |
513 | (("/etc/protocols") (string-append net-base "/etc/protocols"))) | |
514 | (substitute* "net/port_unix.go" | |
515 | (("/etc/services") (string-append net-base "/etc/services"))) | |
516 | (substitute* "time/zoneinfo_unix.go" | |
517 | (("/usr/share/zoneinfo/") tzdata-path)) | |
c04ef86e P |
518 | (substitute* (find-files "cmd" "\\.go") |
519 | (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader)) | |
ec91bcb5 MJ |
520 | #t))) |
521 | (add-before 'build 'set-bootstrap-variables | |
522 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
523 | ;; Tell the build system where to find the bootstrap Go. | |
5a14b913 | 524 | (let ((go (assoc-ref inputs "go"))) |
ec91bcb5 | 525 | (setenv "GOROOT_BOOTSTRAP" go) |
ec91bcb5 | 526 | (setenv "GOGC" "400") |
ec91bcb5 | 527 | #t))) |
04a95a4f LF |
528 | (replace 'build |
529 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
530 | ;; FIXME: Some of the .a files are not bit-reproducible. | |
531 | (let* ((output (assoc-ref outputs "out"))) | |
532 | (setenv "CC" (which "gcc")) | |
533 | (setenv "GOOS" "linux") | |
534 | (setenv "GOROOT" (dirname (getcwd))) | |
535 | (setenv "GOROOT_FINAL" output) | |
536 | (setenv "CGO_ENABLED" "1") | |
188b88e2 | 537 | (invoke "sh" "all.bash")))) |
04a95a4f | 538 | |
ec91bcb5 MJ |
539 | (replace 'install |
540 | ;; TODO: Most of this could be factorized with Go 1.4. | |
541 | (lambda* (#:key outputs #:allow-other-keys) | |
542 | (let* ((output (assoc-ref outputs "out")) | |
543 | (doc_out (assoc-ref outputs "doc")) | |
544 | (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) | |
545 | (src (string-append | |
546 | (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) | |
547 | (delete-file-recursively "../pkg/bootstrap") | |
5a14b913 LF |
548 | ;; Prevent installation of the build cache, which contains |
549 | ;; store references to most of the tools used to build Go and | |
550 | ;; would unnecessarily increase the size of Go's closure if it | |
551 | ;; was installed. | |
552 | (delete-file-recursively "../pkg/obj") | |
ec91bcb5 MJ |
553 | |
554 | (mkdir-p src) | |
555 | (copy-recursively "../test" (string-append src "/test")) | |
556 | (delete-file-recursively "../test") | |
557 | (mkdir-p docs) | |
558 | (copy-recursively "../api" (string-append docs "/api")) | |
559 | (delete-file-recursively "../api") | |
560 | (copy-recursively "../doc" (string-append docs "/doc")) | |
561 | (delete-file-recursively "../doc") | |
562 | ||
563 | (for-each | |
564 | (lambda (file) | |
565 | (let* ((filein (string-append "../" file)) | |
566 | (fileout (string-append docs "/" file))) | |
567 | (copy-file filein fileout) | |
568 | (delete-file filein))) | |
569 | ;; Note the slightly different file names compared to 1.4. | |
570 | '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS" | |
571 | "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) | |
572 | ||
188b88e2 TGR |
573 | (copy-recursively "../" output) |
574 | #t))))))) | |
ec91bcb5 MJ |
575 | (native-inputs |
576 | `(("go" ,go-1.4) | |
1009e6e7 EF |
577 | ,@(match (%current-system) |
578 | ((or "armhf-linux" "aarch64-linux") | |
579 | `(("gold" ,binutils-gold))) | |
580 | (_ `())) | |
dda785f6 EF |
581 | ,@(package-native-inputs go-1.4))) |
582 | (supported-systems %supported-systems))) | |
ec91bcb5 | 583 | |
0c3c597d | 584 | (define-public go go-1.12) |
d3878e88 LF |
585 | |
586 | (define-public go-github-com-alsm-ioprogress | |
587 | (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5") | |
588 | (revision "0")) | |
589 | (package | |
590 | (name "go-github-com-alsm-ioprogress") | |
591 | (version (git-version "0.0.0" revision commit)) | |
592 | (source (origin | |
593 | (method git-fetch) | |
594 | (uri (git-reference | |
595 | (url "https://github.com/alsm/ioprogress.git") | |
596 | (commit commit))) | |
fdbece74 | 597 | (file-name (git-file-name name version)) |
d3878e88 LF |
598 | (sha256 |
599 | (base32 | |
600 | "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh")))) | |
601 | (build-system go-build-system) | |
602 | (arguments | |
603 | '(#:import-path "github.com/alsm/ioprogress")) | |
604 | (synopsis "Textual progress bars in Go") | |
605 | (description "@code{ioprogress} is a Go library with implementations of | |
606 | @code{io.Reader} and @code{io.Writer} that draws progress bars. The primary use | |
607 | case for these are for command-line applications but alternate progress bar | |
608 | writers can be supplied for alternate environments.") | |
609 | (home-page "https://github.com/alsm/ioprogress") | |
610 | (license license:expat)))) | |
11b12655 LF |
611 | |
612 | (define-public go-github-com-aki237-nscjar | |
613 | (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06") | |
614 | (revision "0")) | |
615 | (package | |
616 | (name "go-github-com-aki237-nscjar") | |
617 | (version (git-version "0.0.0" revision commit)) | |
618 | (source (origin | |
619 | (method git-fetch) | |
620 | (uri (git-reference | |
621 | (url "https://github.com/aki237/nscjar.git") | |
622 | (commit commit))) | |
82f09c0e | 623 | (file-name (git-file-name name version)) |
11b12655 LF |
624 | (sha256 |
625 | (base32 | |
626 | "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96")))) | |
627 | (build-system go-build-system) | |
628 | (arguments | |
629 | '(#:import-path "github.com/aki237/nscjar")) | |
630 | (synopsis "Handle Netscape / Mozilla cookies") | |
631 | (description "@code{nscjar} is a Go library used to parse and output | |
632 | Netscape/Mozilla's old-style cookie files. It also implements a simple cookie | |
633 | jar struct to manage the cookies added to the cookie jar.") | |
634 | (home-page "https://github.com/aki237/nscjar") | |
635 | (license license:expat)))) | |
12f496ba | 636 | |
60a8cbc4 CB |
637 | (define-public go-github.com-jessevdk-go-flags |
638 | (package | |
639 | (name "go-github.com-jessevdk-go-flags") | |
640 | (version "1.3.0") | |
641 | (source (origin | |
642 | (method git-fetch) | |
643 | (uri (git-reference | |
644 | (url "https://github.com/jessevdk/go-flags") | |
645 | (commit (string-append "v" version)))) | |
646 | (file-name (git-file-name name version)) | |
647 | (sha256 | |
648 | (base32 | |
649 | "1jk2k2l10lwrn1r3nxdvbs0yz656830j4khzirw8p4ahs7c5zz36")))) | |
650 | (build-system go-build-system) | |
651 | (arguments | |
652 | '(#:import-path "github.com/jessevdk/go-flags")) | |
653 | (synopsis "Go library for parsing command line arguments") | |
654 | (description | |
655 | "The @code{flags} package provides a command line option parser. The | |
656 | functionality is similar to the go builtin @code{flag} package, but | |
657 | @code{flags} provides more options and uses reflection to provide a succinct | |
658 | way of specifying command line options.") | |
659 | (home-page "https://github.com/jessevdk/go-flags") | |
660 | (license license:bsd-3))) | |
210c6d95 CB |
661 | |
662 | (define-public go-gopkg.in-tomb.v2 | |
663 | (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") | |
664 | (revision "0")) | |
665 | (package | |
666 | (name "go-gopkg.in-tomb.v2") | |
667 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
668 | (source (origin | |
669 | (method git-fetch) | |
670 | (uri (git-reference | |
671 | (url "https://github.com/go-tomb/tomb.git") | |
672 | (commit commit))) | |
673 | (file-name (string-append name "-" version ".tar.gz")) | |
674 | (sha256 | |
675 | (base32 | |
676 | "1sv15sri99szkdz1bkh0ir46w9n8prrwx5hfai13nrhkawfyfy10")))) | |
677 | (build-system go-build-system) | |
678 | (arguments | |
69a64ecd CB |
679 | '(#:import-path "gopkg.in/tomb.v2" |
680 | #:phases | |
681 | (modify-phases %standard-phases | |
682 | (add-after 'unpack 'patch-source | |
683 | (lambda _ | |
684 | ;; Add a missing % to fix the compilation of this test | |
685 | (substitute* "src/gopkg.in/tomb.v2/tomb_test.go" | |
686 | (("t.Fatalf\\(`Killf\\(\"BO%s") | |
687 | "t.Fatalf(`Killf(\"BO%%s")) | |
688 | #t))))) | |
210c6d95 CB |
689 | (synopsis "@code{tomb} handles clean goroutine tracking and termination") |
690 | (description | |
691 | "The @code{tomb} package handles clean goroutine tracking and | |
692 | termination.") | |
693 | (home-page "https://gopkg.in/tomb.v2") | |
694 | (license license:bsd-3)))) | |
da6f9d41 CB |
695 | |
696 | (define-public go-github.com-jtolds-gls | |
697 | (package | |
698 | (name "go-github.com-jtolds-gls") | |
f0736d47 | 699 | (version "4.20") |
da6f9d41 CB |
700 | (source (origin |
701 | (method git-fetch) | |
702 | (uri (git-reference | |
703 | (url "https://github.com/jtolds/gls") | |
704 | (commit (string-append "v" version)))) | |
705 | (file-name (git-file-name name version)) | |
706 | (sha256 | |
707 | (base32 | |
f0736d47 | 708 | "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6")))) |
da6f9d41 CB |
709 | (build-system go-build-system) |
710 | (arguments | |
711 | '(#:import-path "github.com/jtolds/gls")) | |
712 | (synopsis "@code{gls} provides Goroutine local storage") | |
713 | (description | |
714 | "The @code{gls} package provides a way to store a retrieve values | |
715 | per-goroutine.") | |
716 | (home-page "https://github.com/jtolds/gls") | |
717 | (license license:expat))) | |
c4d2cffa CB |
718 | |
719 | (define-public go-github-com-tj-docopt | |
720 | (package | |
721 | (name "go-github-com-tj-docopt") | |
722 | (version "1.0.0") | |
723 | (source (origin | |
724 | (method git-fetch) | |
725 | (uri (git-reference | |
726 | (url "https://github.com/tj/docopt") | |
727 | (commit (string-append "v" version)))) | |
728 | (file-name (git-file-name name version)) | |
729 | (sha256 | |
730 | (base32 | |
731 | "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080")))) | |
732 | (build-system go-build-system) | |
733 | (arguments | |
734 | '(#:import-path "github.com/tj/docopt")) | |
735 | (synopsis "Go implementation of docopt") | |
736 | (description | |
737 | "This library allows the user to define a command-line interface from a | |
5c6b576a | 738 | program's help message rather than specifying it programmatically with |
c4d2cffa CB |
739 | command-line parsers.") |
740 | (home-page "https://github.com/tj/docopt") | |
741 | (license license:expat))) | |
ed0c6a76 CB |
742 | |
743 | (define-public go-github-com-hashicorp-hcl | |
744 | (let ((commit "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8") | |
745 | (revision "0")) | |
746 | (package | |
747 | (name "go-github-com-hashicorp-hcl") | |
748 | (version (git-version "0.0.0" revision commit)) | |
749 | (source (origin | |
750 | (method git-fetch) | |
751 | (uri (git-reference | |
752 | (url "https://github.com/hashicorp/hcl") | |
753 | (commit commit))) | |
754 | (file-name (git-file-name name version)) | |
755 | (sha256 | |
756 | (base32 | |
757 | "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc")))) | |
758 | (build-system go-build-system) | |
759 | (arguments | |
760 | '(#:tests? #f | |
761 | #:import-path "github.com/hashicorp/hcl")) | |
762 | (synopsis "Go implementation of HashiCorp Configuration Language") | |
763 | (description | |
764 | "This package contains the main implementation of the @acronym{HCL, | |
765 | HashiCorp Configuration Language}. HCL is designed to be a language for | |
766 | expressing configuration which is easy for both humans and machines to read.") | |
767 | (home-page "https://github.com/hashicorp/hcl") | |
768 | (license license:mpl2.0)))) | |
269d0858 | 769 | |
33b67efe LF |
770 | (define-public go-golang-org-x-tools |
771 | (let ((commit "8b927904ee0dec805c89aaf9172f4459296ed6e8") | |
772 | (revision "0")) | |
773 | (package | |
774 | (name "go-golang-org-x-tools") | |
775 | (version (git-version "0.1.3" revision commit)) | |
776 | (source (origin | |
777 | (method git-fetch) | |
778 | (uri (git-reference | |
779 | (url "https://go.googlesource.com/tools") | |
780 | (commit commit))) | |
781 | (file-name (string-append "go.googlesource.com-tools-" | |
782 | version "-checkout")) | |
783 | (sha256 | |
784 | (base32 | |
785 | "0iinb70xhcjsddgi42ia1n745lx2ibnjdm6m2v666qrk3876vpck")))) | |
786 | (build-system go-build-system) | |
787 | (arguments | |
788 | `(#:import-path "golang.org/x/tools" | |
789 | ;; Source-only package | |
790 | #:tests? #f | |
791 | #:phases | |
792 | (modify-phases %standard-phases | |
793 | ;; Source-only package | |
794 | (delete 'build)))) | |
795 | (synopsis "Tools that support the Go programming language") | |
796 | (description "This package provides miscellaneous tools that support the | |
797 | Go programming language.") | |
798 | (home-page "https://go.googlesource.com/tools/") | |
799 | (license license:bsd-3)))) | |
5bbf203c LF |
800 | |
801 | (define-public go-golang-org-x-crypto | |
802 | (let ((commit "b7391e95e576cacdcdd422573063bc057239113d") | |
803 | (revision "3")) | |
804 | (package | |
805 | (name "go-golang-org-x-crypto") | |
806 | (version (git-version "0.0.0" revision commit)) | |
807 | (source (origin | |
808 | (method git-fetch) | |
809 | (uri (git-reference | |
810 | (url "https://go.googlesource.com/crypto") | |
811 | (commit commit))) | |
812 | (file-name (string-append "go.googlesource.com-crypto-" | |
813 | version "-checkout")) | |
814 | (sha256 | |
815 | (base32 | |
816 | "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm")))) | |
817 | (build-system go-build-system) | |
818 | (arguments | |
819 | '(#:import-path "golang.org/x/crypto" | |
820 | ;; Source-only package | |
821 | #:tests? #f | |
822 | #:phases | |
823 | (modify-phases %standard-phases | |
824 | ;; Source-only package | |
825 | (delete 'build) | |
826 | (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable | |
827 | (lambda* (#:key outputs #:allow-other-keys) | |
828 | (map (lambda (file) | |
829 | (make-file-writable file)) | |
830 | (find-files | |
831 | (string-append (assoc-ref outputs "out") | |
832 | "/src/golang.org/x/crypto/ed25519/testdata") | |
833 | ".*\\.gz$")) | |
834 | #t))))) | |
835 | (propagated-inputs | |
836 | `(("go-golang-org-x-sys-cpu" ,go-golang-org-x-sys-cpu))) | |
837 | (synopsis "Supplementary cryptographic libraries in Go") | |
838 | (description "This package provides supplementary cryptographic libraries | |
839 | for the Go language.") | |
840 | (home-page "https://go.googlesource.com/crypto/") | |
841 | (license license:bsd-3)))) | |
33b67efe | 842 | |
269d0858 | 843 | (define-public go-golang-org-x-crypto-bcrypt |
9c1b4316 LF |
844 | (let ((commit "b7391e95e576cacdcdd422573063bc057239113d") |
845 | (revision "3")) | |
269d0858 LF |
846 | (package |
847 | (name "go-golang-org-x-crypto-bcrypt") | |
848 | (version (git-version "0.0.0" revision commit)) | |
849 | (source (origin | |
850 | (method git-fetch) | |
851 | (uri (git-reference | |
852 | (url "https://go.googlesource.com/crypto") | |
853 | (commit commit))) | |
854 | (file-name (string-append "go.googlesource.com-crypto-" | |
855 | version "-checkout")) | |
856 | (sha256 | |
857 | (base32 | |
9c1b4316 | 858 | "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm")))) |
269d0858 LF |
859 | (build-system go-build-system) |
860 | (arguments | |
861 | `(#:import-path "golang.org/x/crypto/bcrypt" | |
9c359ff4 | 862 | #:unpack-path "golang.org/x/crypto")) |
269d0858 LF |
863 | (synopsis "Bcrypt in Go") |
864 | (description "This package provides a Go implementation of the bcrypt | |
865 | password hashing function.") | |
866 | (home-page "https://go.googlesource.com/crypto/") | |
867 | (license license:bsd-3)))) | |
868 | ||
869 | (define-public go-golang-org-x-crypto-blowfish | |
9c1b4316 LF |
870 | (package |
871 | (inherit go-golang-org-x-crypto-bcrypt) | |
872 | (name "go-golang-org-x-crypto-blowfish") | |
873 | (arguments | |
874 | `(#:import-path "golang.org/x/crypto/blowfish" | |
875 | #:unpack-path "golang.org/x/crypto")) | |
876 | (synopsis "Blowfish in Go") | |
877 | (description "This package provides a Go implementation of the Blowfish | |
878 | symmetric-key block cipher."))) | |
269d0858 LF |
879 | |
880 | (define-public go-golang-org-x-crypto-pbkdf2 | |
9c1b4316 LF |
881 | (package |
882 | (inherit go-golang-org-x-crypto-bcrypt) | |
883 | (name "go-golang-org-x-crypto-pbkdf2") | |
884 | (arguments | |
885 | `(#:import-path "golang.org/x/crypto/pbkdf2" | |
886 | #:unpack-path "golang.org/x/crypto")) | |
887 | (synopsis "PBKDF2 in Go") | |
888 | (description "This package provides a Go implementation of the PBKDF2 key | |
889 | derivation function."))) | |
269d0858 LF |
890 | |
891 | (define-public go-golang-org-x-crypto-tea | |
9c1b4316 LF |
892 | (package |
893 | (inherit go-golang-org-x-crypto-bcrypt) | |
894 | (name "go-golang-org-x-crypto-tea") | |
895 | (arguments | |
896 | `(#:import-path "golang.org/x/crypto/tea" | |
897 | #:unpack-path "golang.org/x/crypto")) | |
898 | (synopsis "Tiny Encryption Algorithm (TEA) in Go") | |
575fa9b3 | 899 | (description "This package provides a Go implementation of the Tiny Encryption |
9c1b4316 | 900 | Algorithm (TEA) block cipher."))) |
269d0858 LF |
901 | |
902 | (define-public go-golang-org-x-crypto-salsa20 | |
9c1b4316 LF |
903 | (package |
904 | (inherit go-golang-org-x-crypto-bcrypt) | |
905 | (name "go-golang-org-x-crypto-salsa20") | |
906 | (arguments | |
907 | `(#:import-path "golang.org/x/crypto/salsa20" | |
908 | #:unpack-path "golang.org/x/crypto")) | |
909 | (synopsis "Salsa20 in Go") | |
8374bbe2 | 910 | (description "This package provides a Go implementation of the Salsa20 |
9c1b4316 | 911 | stream cipher."))) |
269d0858 LF |
912 | |
913 | (define-public go-golang-org-x-crypto-cast5 | |
9c1b4316 LF |
914 | (package |
915 | (inherit go-golang-org-x-crypto-bcrypt) | |
916 | (name "go-golang-org-x-crypto-cast5") | |
917 | (arguments | |
918 | `(#:import-path "golang.org/x/crypto/cast5" | |
919 | #:unpack-path "golang.org/x/crypto")) | |
920 | (synopsis "Cast5 in Go") | |
46e8da97 | 921 | (description "This package provides a Go implementation of the Cast5 |
9c1b4316 | 922 | symmetric-key block cipher."))) |
269d0858 LF |
923 | |
924 | (define-public go-golang-org-x-crypto-twofish | |
9c1b4316 LF |
925 | (package |
926 | (inherit go-golang-org-x-crypto-bcrypt) | |
927 | (name "go-golang-org-x-crypto-twofish") | |
928 | (arguments | |
929 | `(#:import-path "golang.org/x/crypto/twofish" | |
930 | #:unpack-path "golang.org/x/crypto")) | |
931 | (synopsis "Twofish in Go") | |
b0447547 | 932 | (description "This package provides a Go implementation of the Twofish |
9c1b4316 | 933 | symmetric-key block cipher."))) |
269d0858 LF |
934 | |
935 | (define-public go-golang-org-x-crypto-xtea | |
9c1b4316 LF |
936 | (package |
937 | (inherit go-golang-org-x-crypto-bcrypt) | |
938 | (name "go-golang-org-x-crypto-xtea") | |
939 | (arguments | |
940 | `(#:import-path "golang.org/x/crypto/xtea" | |
941 | #:unpack-path "golang.org/x/crypto")) | |
942 | (synopsis "eXtended Tiny Encryption Algorithm (XTEA) in Go") | |
943 | (description "This package provides a Go implementation of the eXtended | |
944 | Tiny Encryption Algorithm (XTEA) block cipher."))) | |
269d0858 | 945 | |
7eb0ad38 PN |
946 | (define-public go-golang-org-x-crypto-ed25519 |
947 | (package | |
948 | (inherit go-golang-org-x-crypto-bcrypt) | |
949 | (name "go-golang-org-x-crypto-ed25519") | |
950 | (arguments | |
9c359ff4 LF |
951 | `(#:import-path "golang.org/x/crypto/ed25519" |
952 | #:unpack-path "golang.org/x/crypto" | |
953 | #:phases | |
954 | (modify-phases %standard-phases | |
955 | (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable | |
956 | (lambda* (#:key outputs #:allow-other-keys) | |
957 | (map (lambda (file) | |
958 | (make-file-writable file)) | |
959 | (find-files | |
960 | (string-append (assoc-ref outputs "out") | |
961 | "/src/golang.org/x/crypto/ed25519/testdata") | |
962 | ".*\\.gz$")) | |
963 | #t))))) | |
7eb0ad38 PN |
964 | (synopsis "ED25519 in Go") |
965 | (description "This package provides a Go implementation of the ED25519 | |
966 | signature algorithm."))) | |
967 | ||
a9010ead PN |
968 | (define-public go-golang-org-x-crypto-ripemd160 |
969 | (package | |
970 | (inherit go-golang-org-x-crypto-bcrypt) | |
971 | (name "go-golang-org-x-crypto-ripemd160") | |
972 | (arguments | |
973 | (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt) | |
974 | ((#:import-path _) | |
975 | "golang.org/x/crypto/ripemd160"))) | |
976 | (synopsis "RIPEMD-160 in Go") | |
977 | (description "This package provides a Go implementation of the RIPEMD-160 | |
978 | hash algorithm."))) | |
979 | ||
6fa257cc PN |
980 | (define-public go-golang-org-x-crypto-blake2s |
981 | (package | |
982 | (inherit go-golang-org-x-crypto-bcrypt) | |
983 | (name "go-golang-org-x-crypto-blake2s") | |
984 | (arguments | |
985 | (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt) | |
986 | ((#:import-path _) | |
987 | "golang.org/x/crypto/blake2s"))) | |
9c1b4316 LF |
988 | (propagated-inputs |
989 | `(("go-golang-org-x-sys-cpu" ,go-golang-org-x-sys-cpu))) | |
6fa257cc PN |
990 | (synopsis "BLAKE2s in Go") |
991 | (description "This package provides a Go implementation of the BLAKE2s | |
992 | hash algorithm."))) | |
993 | ||
19789c8b PN |
994 | (define-public go-golang-org-x-crypto-sha3 |
995 | (package | |
996 | (inherit go-golang-org-x-crypto-bcrypt) | |
997 | (name "go-golang-org-x-crypto-sha3") | |
998 | (arguments | |
999 | (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt) | |
1000 | ((#:import-path _) | |
1001 | "golang.org/x/crypto/sha3"))) | |
1002 | (synopsis "SHA-3 in Go") | |
1003 | (description "This package provides a Go implementation of the SHA-3 | |
1004 | fixed-output-length hash functions and the SHAKE variable-output-length hash | |
1005 | functions defined by FIPS-202."))) | |
1006 | ||
269d0858 | 1007 | (define-public go-golang-org-x-net-ipv4 |
307f2c44 LF |
1008 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1009 | (revision "3")) | |
269d0858 LF |
1010 | (package |
1011 | (name "go-golang-org-x-net-ipv4") | |
1012 | (version (git-version "0.0.0" revision commit)) | |
1013 | (source (origin | |
1014 | (method git-fetch) | |
1015 | (uri (git-reference | |
1016 | (url "https://go.googlesource.com/net") | |
1017 | (commit commit))) | |
1018 | (file-name (git-file-name name version)) | |
1019 | (sha256 | |
1020 | (base32 | |
307f2c44 | 1021 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1022 | (build-system go-build-system) |
1023 | (arguments | |
1024 | `(#:import-path "golang.org/x/net/ipv4" | |
1025 | #:unpack-path "golang.org/x/net")) | |
307f2c44 LF |
1026 | (propagated-inputs |
1027 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
269d0858 LF |
1028 | (synopsis "Go IPv4 support") |
1029 | (description "This package provides @code{ipv4}, which implements IP-level | |
1030 | socket options for the Internet Protocol version 4.") | |
1031 | (home-page "https://go.googlesource.com/net") | |
1032 | (license license:bsd-3)))) | |
1033 | ||
1034 | (define-public go-golang-org-x-net-bpf | |
307f2c44 LF |
1035 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1036 | (revision "3")) | |
269d0858 LF |
1037 | (package |
1038 | (name "go-golang-org-x-net-bpf") | |
1039 | (version (git-version "0.0.0" revision commit)) | |
1040 | (source (origin | |
1041 | (method git-fetch) | |
1042 | (uri (git-reference | |
1043 | (url "https://go.googlesource.com/net") | |
1044 | (commit commit))) | |
1045 | (file-name (string-append "go.googlesource.com-net-" | |
1046 | version "-checkout")) | |
1047 | (sha256 | |
1048 | (base32 | |
307f2c44 | 1049 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1050 | (build-system go-build-system) |
1051 | (arguments | |
1052 | `(#:import-path "golang.org/x/net/bpf" | |
1053 | #:unpack-path "golang.org/x/net")) | |
307f2c44 LF |
1054 | (propagated-inputs |
1055 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
269d0858 | 1056 | (synopsis "Berkeley Packet Filters (BPF) in Go") |
383bd29d | 1057 | (description "This package provides a Go implementation of the Berkeley |
269d0858 LF |
1058 | Packet Filter (BPF) virtual machine.") |
1059 | (home-page "https://go.googlesource.com/net/") | |
1060 | (license license:bsd-3)))) | |
1061 | ||
1062 | (define-public go-golang-org-x-net-context | |
307f2c44 LF |
1063 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1064 | (revision "3")) | |
269d0858 LF |
1065 | (package |
1066 | (name "go-golang-org-x-net-context") | |
1067 | (version (git-version "0.0.0" revision commit)) | |
1068 | (source (origin | |
1069 | (method git-fetch) | |
1070 | (uri (git-reference | |
1071 | (url "https://go.googlesource.com/net") | |
1072 | (commit commit))) | |
1073 | (file-name (string-append "go.googlesource.com-net-" | |
1074 | version "-checkout")) | |
1075 | (sha256 | |
1076 | (base32 | |
307f2c44 | 1077 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1078 | (build-system go-build-system) |
1079 | (arguments | |
1080 | `(#:import-path "golang.org/x/net/context" | |
1081 | #:unpack-path "golang.org/x/net")) | |
1082 | (synopsis "Golang Context type") | |
98bad28a | 1083 | (description "This package provides @code{context}, which defines the |
ce97f336 | 1084 | Context type, which carries deadlines, cancellation signals, and other |
269d0858 LF |
1085 | request-scoped values across API boundaries and between processes.") |
1086 | (home-page "https://go.googlesource.com/net/") | |
1087 | (license license:bsd-3)))) | |
1088 | ||
3034d1a1 | 1089 | (define-public go-golang-org-x-net-internal-socks |
307f2c44 LF |
1090 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1091 | (revision "3")) | |
3034d1a1 LF |
1092 | (package |
1093 | (name "go-golang-org-x-net-internal-socks") | |
1094 | (version (git-version "0.0.0" revision commit)) | |
1095 | (source (origin | |
1096 | (method git-fetch) | |
1097 | (uri (git-reference | |
1098 | (url "https://go.googlesource.com/net") | |
1099 | (commit commit))) | |
1100 | (file-name (string-append "go.googlesource.com-net-" | |
1101 | version "-checkout")) | |
1102 | (sha256 | |
1103 | (base32 | |
307f2c44 | 1104 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
3034d1a1 LF |
1105 | (build-system go-build-system) |
1106 | (arguments | |
1107 | `(#:import-path "golang.org/x/net/internal/socks" | |
1108 | #:unpack-path "golang.org/x/net")) | |
1109 | (synopsis "") | |
1110 | (description "") | |
1111 | (home-page "https://go.googlesource.com/net/") | |
1112 | (license license:bsd-3)))) | |
1113 | ||
1114 | (define-public go-golang-org-x-net-internal-socket | |
307f2c44 LF |
1115 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1116 | (revision "3")) | |
3034d1a1 LF |
1117 | (package |
1118 | (name "go-golang-org-x-net-internal-socket") | |
1119 | (version (git-version "0.0.0" revision commit)) | |
1120 | (source (origin | |
1121 | (method git-fetch) | |
1122 | (uri (git-reference | |
1123 | (url "https://go.googlesource.com/net") | |
1124 | (commit commit))) | |
1125 | (file-name (string-append "go.googlesource.com-net-" | |
1126 | version "-checkout")) | |
1127 | (sha256 | |
1128 | (base32 | |
307f2c44 | 1129 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
3034d1a1 LF |
1130 | (build-system go-build-system) |
1131 | (arguments | |
1132 | `(#:import-path "golang.org/x/net/internal/socket" | |
1133 | #:unpack-path "golang.org/x/net")) | |
307f2c44 LF |
1134 | (propagated-inputs |
1135 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
3034d1a1 LF |
1136 | (synopsis "") |
1137 | (description "") | |
1138 | (home-page "https://go.googlesource.com/net/") | |
1139 | (license license:bsd-3)))) | |
1140 | ||
269d0858 | 1141 | (define-public go-golang-org-x-net-internal-iana |
307f2c44 LF |
1142 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1143 | (revision "3")) | |
269d0858 LF |
1144 | (package |
1145 | (name "go-golang-org-x-net-internal-iana") | |
1146 | (version (git-version "0.0.0" revision commit)) | |
1147 | (source (origin | |
1148 | (method git-fetch) | |
1149 | (uri (git-reference | |
1150 | (url "https://go.googlesource.com/net") | |
1151 | (commit commit))) | |
1152 | (file-name (string-append "go.googlesource.com-net-" | |
1153 | version "-checkout")) | |
1154 | (sha256 | |
1155 | (base32 | |
307f2c44 | 1156 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1157 | (build-system go-build-system) |
1158 | (arguments | |
1159 | `(#:import-path "golang.org/x/net/internal/iana" | |
1160 | #:unpack-path "golang.org/x/net")) | |
1161 | (synopsis "Go support for assigned numbers (IANA)") | |
9fea29c4 | 1162 | (description "This package provides @code{iana}, which provides protocol |
269d0858 LF |
1163 | number resources managed by the Internet Assigned Numbers Authority (IANA).") |
1164 | (home-page "https://go.googlesource.com/net/") | |
1165 | (license license:bsd-3)))) | |
1166 | ||
1167 | (define-public go-golang-org-x-net-ipv6 | |
307f2c44 LF |
1168 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1169 | (revision "3")) | |
269d0858 LF |
1170 | (package |
1171 | (name "go-golang-org-x-net-ipv6") | |
1172 | (version (git-version "0.0.0" revision commit)) | |
1173 | (source (origin | |
1174 | (method git-fetch) | |
1175 | (uri (git-reference | |
1176 | (url "https://go.googlesource.com/net") | |
1177 | (commit commit))) | |
1178 | (file-name (string-append "go.googlesource.com-net-" | |
1179 | version "-checkout")) | |
1180 | (sha256 | |
1181 | (base32 | |
307f2c44 | 1182 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1183 | (build-system go-build-system) |
1184 | (arguments | |
1185 | `(#:import-path "golang.org/x/net/ipv6" | |
1186 | #:unpack-path "golang.org/x/net")) | |
307f2c44 LF |
1187 | (propagated-inputs |
1188 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
269d0858 | 1189 | (synopsis "Go IPv6 support") |
79254f31 | 1190 | (description "This package provides @code{ipv6}, which implements |
269d0858 LF |
1191 | IP-level socket options for the Internet Protocol version 6.") |
1192 | (home-page "https://go.googlesource.com/net") | |
1193 | (license license:bsd-3)))) | |
1194 | ||
1195 | (define-public go-golang-org-x-net-proxy | |
307f2c44 LF |
1196 | (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99") |
1197 | (revision "3")) | |
269d0858 LF |
1198 | (package |
1199 | (name "go-golang-org-x-net-proxy") | |
1200 | (version (git-version "0.0.0" revision commit)) | |
1201 | (source (origin | |
1202 | (method git-fetch) | |
1203 | (uri (git-reference | |
1204 | (url "https://go.googlesource.com/net") | |
1205 | (commit commit))) | |
1206 | (file-name (string-append "go.googlesource.com-net-" | |
1207 | version "-checkout")) | |
1208 | (sha256 | |
1209 | (base32 | |
307f2c44 | 1210 | "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf")))) |
269d0858 LF |
1211 | (build-system go-build-system) |
1212 | (arguments | |
1213 | `(#:import-path "golang.org/x/net/proxy" | |
1214 | #:unpack-path "golang.org/x/net/")) | |
1215 | (synopsis "Go support for network proxies") | |
4cc055cb | 1216 | (description "This package provides @code{proxy}, which provides support |
269d0858 LF |
1217 | for a variety of protocols to proxy network data.") |
1218 | (home-page "https://go.googlesource.com/net") | |
1219 | (license license:bsd-3)))) | |
1220 | ||
1221 | (define-public go-golang-org-x-sys-unix | |
8a507346 LF |
1222 | (let ((commit "04f50cda93cbb67f2afa353c52f342100e80e625") |
1223 | (revision "4")) | |
269d0858 LF |
1224 | (package |
1225 | (name "go-golang-org-x-sys-unix") | |
1226 | (version (git-version "0.0.0" revision commit)) | |
1227 | (source (origin | |
1228 | (method git-fetch) | |
1229 | (uri (git-reference | |
1230 | (url "https://go.googlesource.com/sys") | |
1231 | (commit commit))) | |
1232 | (file-name (git-file-name name version)) | |
1233 | (sha256 | |
1234 | (base32 | |
8a507346 | 1235 | "0hmfsz9y1ingwsn482hlzzmzs7kr3cklm0ana0mbdk70isw2bxnw")))) |
269d0858 LF |
1236 | (build-system go-build-system) |
1237 | (arguments | |
1238 | `(#:import-path "golang.org/x/sys/unix" | |
b3f0f8a6 | 1239 | #:unpack-path "golang.org/x/sys")) |
269d0858 LF |
1240 | (synopsis "Go support for low-level system interaction") |
1241 | (description "This package provides @code{unix}, which offers Go support | |
1242 | for low-level interaction with the operating system.") | |
1243 | (home-page "https://go.googlesource.com/sys") | |
1244 | (license license:bsd-3)))) | |
1245 | ||
4a136536 LF |
1246 | (define-public go-golang-org-x-sys-cpu |
1247 | (package | |
1248 | (inherit go-golang-org-x-sys-unix) | |
1249 | (name "go-golang-org-x-sys-cpu") | |
1250 | (arguments | |
1251 | '(#:import-path "golang.org/x/sys/cpu" | |
1252 | #:unpack-path "golang.org/x/sys")) | |
1253 | (synopsis "CPU feature detection") | |
1254 | (description "Thi spackage provides @code{cpu}, which offers tools for CPU | |
1255 | feature detection in Go."))) | |
1256 | ||
06c2d0e6 BL |
1257 | (define-public go-golang-org-x-text-encoding |
1258 | (package | |
1259 | (name "go-golang-org-x-text-encoding") | |
1260 | (version "0.3.2") | |
1261 | (source (origin | |
1262 | (method git-fetch) | |
1263 | (uri (git-reference | |
1264 | (url "https://go.googlesource.com/text") | |
1265 | (commit (string-append "v" version)))) | |
1266 | (file-name (string-append "go.googlesource.com-text-" | |
1267 | version "-checkout")) | |
1268 | (sha256 | |
1269 | (base32 | |
1270 | "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh")))) | |
1271 | (build-system go-build-system) | |
1272 | (arguments | |
1273 | `(#:import-path "golang.org/x/text/encoding" | |
1274 | #:unpack-path "golang.org/x/text")) | |
1275 | (synopsis "Interface for character encodings for conversion to and from | |
1276 | UTF-8") | |
1277 | (description "This package defines an interface for character encodings. | |
1278 | Specific implementations of encoding for CJK text as well as simple character | |
1279 | encodings are provided in subpackages.") | |
1280 | (home-page "https://go.googlesource.com/text") | |
1281 | (license license:bsd-3))) | |
1282 | ||
269d0858 | 1283 | (define-public go-golang-org-x-text-transform |
7e6da91f BL |
1284 | (package |
1285 | (inherit go-golang-org-x-text-encoding) | |
1286 | (name "go-golang-org-x-text-transform") | |
1287 | (arguments | |
1288 | `(#:import-path "golang.org/x/text/transform" | |
1289 | #:unpack-path "golang.org/x/text")) | |
1290 | (synopsis "Go text transformation") | |
1291 | (description "This package provides @code{transform}, which provides | |
269d0858 LF |
1292 | reader and writer wrappers that transform the bytes passing through. Example |
1293 | transformations provided by other packages include normalization and conversion | |
7e6da91f | 1294 | between character sets."))) |
269d0858 LF |
1295 | |
1296 | (define-public go-golang-org-x-text-unicode-norm | |
bd184dc6 BL |
1297 | (package |
1298 | (inherit go-golang-org-x-text-encoding) | |
1299 | (name "go-golang-org-x-text-unicode-norm") | |
1300 | (arguments | |
1301 | `(#:import-path "golang.org/x/text/unicode/norm" | |
1302 | #:unpack-path "golang.org/x/text")) | |
1303 | (synopsis "Unicode normalization in Go") | |
1304 | (description "This package provides @code{norm}, which contains types and | |
1305 | functions for normalizing Unicode strings."))) | |
269d0858 LF |
1306 | |
1307 | (define-public go-golang-org-x-time-rate | |
1308 | (let ((commit "6dc17368e09b0e8634d71cac8168d853e869a0c7") | |
1309 | (revision "1")) | |
1310 | (package | |
1311 | (name "go-golang-org-x-time-rate") | |
1312 | (version (git-version "0.0.0" revision commit)) | |
1313 | (source (origin | |
1314 | (method git-fetch) | |
1315 | (uri (git-reference | |
1316 | (url "https://go.googlesource.com/time") | |
1317 | (commit commit))) | |
1318 | (file-name (git-file-name name version)) | |
1319 | (sha256 | |
1320 | (base32 | |
1321 | "1fx4cf5fpdz00g3c7vxzy92hdcg0vh4yqw00qp5s52j72qixynbk")))) | |
1322 | (build-system go-build-system) | |
1323 | (arguments | |
1324 | `(#:import-path "golang.org/x/time/rate" | |
1325 | #:unpack-path "golang.org/x/time")) | |
1326 | (propagated-inputs | |
1327 | `(("go-golang-org-x-net-context" ,go-golang-org-x-net-context))) | |
1328 | (synopsis "Rate limiting in Go") | |
1329 | (description "This package provides @{rate}, which implements rate | |
1330 | limiting in Go.") | |
1331 | (home-page "https://godoc.org/golang.org/x/time/rate") | |
1332 | (license license:bsd-3)))) | |
e60352e4 TČ |
1333 | |
1334 | (define-public go-golang-org-x-crypto-ssh-terminal | |
9c1b4316 LF |
1335 | (package |
1336 | (inherit go-golang-org-x-crypto-bcrypt) | |
1337 | (name "go-golang-org-x-crypto-ssh-terminal") | |
1338 | (inputs | |
1339 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
1340 | (arguments | |
1341 | `(#:import-path "golang.org/x/crypto/ssh/terminal" | |
1342 | #:unpack-path "golang.org/x/crypto")) | |
1343 | (synopsis "Terminal functions for Go") | |
1344 | (description "This package provides @{terminal}, which implements support | |
1345 | functions for dealing with terminals, as commonly found on UNIX systems."))) | |
fb50664f PAR |
1346 | |
1347 | (define-public go-github-com-burntsushi-toml | |
0e558640 LF |
1348 | (package |
1349 | (name "go-github-com-burntsushi-toml") | |
1350 | (version "0.3.1") | |
1351 | (source | |
1352 | (origin | |
1353 | (method git-fetch) | |
1354 | (uri (git-reference | |
1355 | (url "https://github.com/BurntSushi/toml.git") | |
1356 | (commit (string-append "v" version)))) | |
1357 | (file-name (git-file-name name version)) | |
1358 | (sha256 | |
1359 | (base32 | |
1360 | "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6")))) | |
1361 | (build-system go-build-system) | |
1362 | (arguments | |
1363 | '(#:import-path "github.com/BurntSushi/toml")) | |
1364 | (home-page "https://github.com/BurntSushi/toml") | |
1365 | (synopsis "Toml parser and encoder for Go") | |
1366 | (description "This package is toml parser and encoder for Go. The interface | |
1367 | is similar to Go's standard library @code{json} and @code{xml} package.") | |
1368 | (license license:expat))) | |
8c5a69aa PAR |
1369 | |
1370 | (define-public go-github-com-getsentry-raven-go | |
8ffc727e | 1371 | (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92") |
8c5a69aa PAR |
1372 | (revision "0")) |
1373 | (package | |
1374 | (name "go-github-com-getsentry-raven-go") | |
8ffc727e | 1375 | (version (git-version "0.2.0" revision commit)) |
8c5a69aa PAR |
1376 | (source |
1377 | (origin | |
1378 | (method git-fetch) | |
1379 | (uri (git-reference | |
1380 | (url "https://github.com/getsentry/raven-go.git") | |
1381 | (commit commit))) | |
1382 | (file-name (git-file-name name version)) | |
1383 | (sha256 | |
1384 | (base32 | |
8ffc727e | 1385 | "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7")))) |
8c5a69aa PAR |
1386 | (build-system go-build-system) |
1387 | (arguments | |
1388 | '(#:import-path "github.com/getsentry/raven-go")) | |
8ffc727e LF |
1389 | (propagated-inputs |
1390 | `(("go-github-com-certifi-gocertifi" ,go-github-com-certifi-gocertifi) | |
1391 | ("go-github-com-pkg-errors" ,go-github-com-pkg-errors))) | |
1392 | (home-page "https://github.com/getsentry/raven-go") | |
8c5a69aa | 1393 | (synopsis "Sentry client in Go") |
8ffc727e | 1394 | (description "This package is a Go client API for the Sentry event/error |
8c5a69aa PAR |
1395 | logging system.") |
1396 | (license license:bsd-3)))) | |
0972411a PAR |
1397 | |
1398 | (define-public go-github-com-hashicorp-go-version | |
1399 | (let ((commit | |
1400 | "03c5bf6be031b6dd45afec16b1cf94fc8938bc77") | |
1401 | (revision "0")) | |
1402 | (package | |
1403 | (name "go-github-com-hashicorp-go-version") | |
1404 | (version (git-version "0.0.0" revision commit)) | |
1405 | (source | |
1406 | (origin | |
1407 | (method git-fetch) | |
1408 | (uri (git-reference | |
1409 | (url "https://github.com/hashicorp/go-version.git") | |
1410 | (commit commit))) | |
1411 | (file-name (git-file-name name version)) | |
1412 | (sha256 | |
1413 | (base32 | |
1414 | "0sjq57gpfznaqdrbyb2p0bn90g9h661cvr0jrk6ngags4pbw14ik")))) | |
1415 | (build-system go-build-system) | |
1416 | (arguments | |
1417 | '(#:import-path "github.com/hashicorp/go-version")) | |
1418 | (home-page | |
1419 | "https://github.com/hashicorp/go-version") | |
1420 | (synopsis "Go library for parsing and verifying versions and version | |
1421 | constraints") | |
1422 | (description "This package is a library for parsing versions and version | |
1423 | constraints, and verifying versions against a set of constraints. It can sort | |
1424 | a collection of versions properly, handles prerelease/beta versions, can | |
1425 | increment versions.") | |
1426 | (license license:mpl2.0)))) | |
c4230cda PAR |
1427 | |
1428 | (define-public go-github-com-jpillora-backoff | |
1429 | (let ((commit | |
1430 | "06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d") | |
1431 | (revision "0")) | |
1432 | (package | |
1433 | (name "go-github-com-jpillora-backoff") | |
1434 | (version (git-version "0.0.0" revision commit)) | |
1435 | (source | |
1436 | (origin | |
1437 | (method git-fetch) | |
1438 | (uri (git-reference | |
1439 | (url "https://github.com/jpillora/backoff.git") | |
1440 | (commit commit))) | |
1441 | (file-name (git-file-name name version)) | |
1442 | (sha256 | |
1443 | (base32 | |
1444 | "0xhvxr7bm47czdc5hy3kl508z3y4j91i2jm7vg774i52zych6k4l")))) | |
1445 | (build-system go-build-system) | |
1446 | (arguments | |
1447 | '(#:import-path "github.com/jpillora/backoff")) | |
1448 | (home-page "https://github.com/jpillora/backoff") | |
1449 | (synopsis "Simple exponential backoff counter in Go") | |
1450 | (description "This package is a simple exponential backoff counter in | |
1451 | Go.") | |
1452 | (license license:expat)))) | |
28380e0e PAR |
1453 | |
1454 | (define-public go-github-com-stretchr-testify | |
1455 | (let ((commit | |
1456 | "b1f989447a57594c728884458a39abf3a73447f7") | |
1457 | (revision "0")) | |
1458 | (package | |
1459 | (name "go-github-com-stretchr-testify") | |
1460 | (version (git-version "1.1.4" revision commit)) | |
1461 | (source | |
1462 | (origin | |
1463 | (method git-fetch) | |
1464 | (uri (git-reference | |
1465 | (url "https://github.com/stretchr/testify.git") | |
1466 | (commit commit))) | |
1467 | (file-name (git-file-name name version)) | |
1468 | (sha256 | |
1469 | (base32 | |
1470 | "0p0gkqzh2p8r5g0rxm885ljl7ghih7h7hx9w562imx5ka0vdgixv")))) | |
1471 | (build-system go-build-system) | |
1472 | (arguments | |
1473 | '(#:import-path "github.com/stretchr/testify")) | |
1474 | (home-page "https://github.com/stretchr/testify") | |
1475 | (synopsis "Go helper library for tests and invariant checking") | |
1476 | (description "This package provide many tools for testifying that your | |
1477 | code will behave as you intend. | |
1478 | ||
1479 | Features include: | |
1480 | @itemize | |
1481 | @item Easy assertions | |
1482 | @item Mocking | |
1483 | @item HTTP response trapping | |
1484 | @item Testing suite interfaces and functions. | |
1485 | @end itemize") | |
1486 | (license license:expat)))) | |
21290c35 PAR |
1487 | |
1488 | (define-public go-github-com-tevino-abool | |
1489 | (let ((commit | |
1490 | "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12") | |
1491 | (revision "0")) | |
1492 | (package | |
1493 | (name "go-github-com-tevino-abool") | |
1494 | (version (git-version "0.0.0" revision commit)) | |
1495 | (source | |
1496 | (origin | |
1497 | (method git-fetch) | |
1498 | (uri (git-reference | |
1499 | (url "https://github.com/tevino/abool.git") | |
1500 | (commit commit))) | |
1501 | (file-name (git-file-name name version)) | |
1502 | (sha256 | |
1503 | (base32 | |
1504 | "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm")))) | |
1505 | (build-system go-build-system) | |
1506 | (arguments | |
1507 | '(#:import-path "github.com/tevino/abool")) | |
1508 | (home-page "https://github.com/tevino/abool") | |
1509 | (synopsis "Atomic boolean library for Go code") | |
1510 | (description "This package is atomic boolean library for Go code, | |
1511 | optimized for performance yet simple to use.") | |
1512 | (license license:expat)))) | |
7c2ebbd4 | 1513 | |
67836c59 PAR |
1514 | (define-public go-github-com-blang-semver |
1515 | (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9") | |
1516 | (revision "0")) | |
1517 | (package | |
1518 | (name "go-github-com-blang-semver") | |
1519 | (version (git-version "0.0.0" revision commit)) | |
1520 | (source | |
1521 | (origin | |
1522 | (method git-fetch) | |
1523 | (uri (git-reference | |
1524 | (url "https://github.com/blang/semver.git") | |
1525 | (commit commit))) | |
1526 | (file-name (git-file-name name version)) | |
1527 | (sha256 | |
1528 | (base32 | |
1529 | "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2")))) | |
1530 | (build-system go-build-system) | |
1531 | (arguments | |
1532 | '(#:import-path "github.com/blang/semver")) | |
1533 | (home-page "https://github.com/blang/semver") | |
1534 | (synopsis "Semantic versioning library written in Go") | |
1535 | (description "Semver is a library for Semantic versioning written in Go.") | |
1536 | (license license:expat)))) | |
1537 | ||
7979f7df PAR |
1538 | (define-public go-github-com-emicklei-go-restful |
1539 | (let ((commit "89ef8af493ab468a45a42bb0d89a06fccdd2fb22") | |
1540 | (revision "0")) | |
1541 | (package | |
1542 | (name "go-github-com-emicklei-go-restful") | |
1543 | (version (git-version "0.0.0" revision commit)) | |
1544 | (source | |
1545 | (origin | |
1546 | (method git-fetch) | |
1547 | (uri (git-reference | |
1548 | (url "https://github.com/emicklei/go-restful.git") | |
1549 | (commit commit))) | |
1550 | (file-name (git-file-name name version)) | |
1551 | (sha256 | |
1552 | (base32 | |
1553 | "0rrlfcfq80fkxifpih6bq31vavb5mf4530xz51pp9pq1mn2fzjfh")))) | |
1554 | (build-system go-build-system) | |
1555 | (arguments | |
1556 | '(#:import-path "github.com/emicklei/go-restful")) | |
1557 | (home-page "https://github.com/emicklei/go-restful") | |
1558 | (synopsis "Build REST-style web services using Go") | |
1559 | (description "This package provides @code{go-restful}, which helps | |
1560 | developers to use @code{http} methods explicitly and in a way that's consistent | |
1561 | with the HTTP protocol definition.") | |
1562 | (license license:expat)))) | |
73fe19ef PAR |
1563 | |
1564 | (define-public go-github-com-google-cadvisor | |
1565 | (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") | |
1566 | (revision "0")) | |
1567 | (package | |
1568 | (name "go-github-com-google-cadvisor") | |
1569 | (version (git-version "0.0.0" revision commit)) | |
1570 | (source | |
1571 | (origin | |
1572 | (method git-fetch) | |
1573 | (uri (git-reference | |
1574 | (url "https://github.com/google/cadvisor.git") | |
1575 | (commit commit))) | |
1576 | (file-name (git-file-name name version)) | |
1577 | (sha256 | |
1578 | (base32 | |
1579 | "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55")))) | |
1580 | (build-system go-build-system) | |
1581 | (arguments | |
1582 | '(#:import-path "github.com/google/cadvisor")) | |
1583 | (home-page "https://github.com/google/cadvisor") | |
1584 | (synopsis "Analyze resource usage of running containers") | |
1585 | (description "The package provides @code{cadvisor}, which provides | |
ae03ce0f | 1586 | information about the resource usage and performance characteristics of running |
73fe19ef PAR |
1587 | containers.") |
1588 | (license license:asl2.0)))) | |
daed2c5e PAR |
1589 | |
1590 | (define-public go-github-com-google-gofuzz | |
1591 | (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382") | |
1592 | (revision "0")) | |
1593 | (package | |
1594 | (name "go-github-com-google-gofuzz") | |
1595 | (version (git-version "0.0.0" revision commit)) | |
1596 | (source | |
1597 | (origin | |
1598 | (method git-fetch) | |
1599 | (uri (git-reference | |
1600 | (url "https://github.com/google/gofuzz.git") | |
1601 | (commit commit))) | |
1602 | (file-name (git-file-name name version)) | |
1603 | (sha256 | |
1604 | (base32 | |
1605 | "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8")))) | |
1606 | (build-system go-build-system) | |
1607 | (arguments | |
1608 | '(#:import-path "github.com/google/gofuzz")) | |
1609 | (home-page "https://github.com/google/gofuzz") | |
1610 | (synopsis "Fuzz testing library for Go") | |
1611 | (description "Gofuzz is a library for populationg Go objects with random | |
1612 | values for the purpose of fuzz testing.") | |
1613 | (license license:asl2.0)))) | |
9cf879a5 PAR |
1614 | |
1615 | (define-public go-github-com-gorilla-context | |
1616 | (let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42") | |
1617 | (revision "0")) | |
1618 | (package | |
1619 | (name "go-github-com-gorilla-context") | |
1620 | (version (git-version "0.0.0" revision commit)) | |
1621 | (source | |
1622 | (origin | |
1623 | (method git-fetch) | |
1624 | (uri (git-reference | |
1625 | (url "https://github.com/gorilla/context.git") | |
1626 | (commit commit))) | |
1627 | (file-name (git-file-name name version)) | |
1628 | (sha256 | |
1629 | (base32 | |
1630 | "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4")))) | |
1631 | (build-system go-build-system) | |
1632 | (arguments | |
1633 | '(#:import-path "github.com/gorilla/context")) | |
1634 | (home-page "https://github.com/gorilla/context") | |
1635 | (synopsis "Go registry for request variables") | |
1636 | (description "This package provides @code{gorilla/context}, which is a general purpose registry for global request variables in the Go programming language.") | |
1637 | (license license:bsd-3)))) | |
e8cdf560 PAR |
1638 | |
1639 | (define-public go-github-com-gorilla-mux | |
1640 | (let ((commit "599cba5e7b6137d46ddf58fb1765f5d928e69604") | |
1641 | (revision "0")) | |
1642 | (package | |
1643 | (name "go-github-com-gorilla-mux") | |
1644 | (version (git-version "0.0.0" revision commit)) | |
1645 | (source | |
1646 | (origin | |
1647 | (method git-fetch) | |
1648 | (uri (git-reference | |
1649 | (url "https://github.com/gorilla/mux.git") | |
1650 | (commit commit))) | |
1651 | (file-name (git-file-name name version)) | |
1652 | (sha256 | |
1653 | (base32 | |
1654 | "0wd6jjii1kg5s0nk3ri6gqriz6hbd6bbcn6x4jf8n7ncrb8qsxyz")))) | |
1655 | (build-system go-build-system) | |
1656 | (arguments | |
1657 | '(#:import-path "github.com/gorilla/mux")) | |
1658 | (home-page "https://github.com/gorilla/mux") | |
1659 | (synopsis "URL router and dispatcher for Go") | |
1660 | (description | |
1661 | "Gorilla/Mux implements a request router and dispatcher for matching | |
1662 | incoming requests with their respective handler.") | |
1663 | (license license:bsd-3)))) | |
bcb21790 PAR |
1664 | |
1665 | (define-public go-github-com-jonboulle-clockwork | |
1666 | (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d") | |
1667 | (revision "0")) | |
1668 | (package | |
1669 | (name "go-github-com-jonboulle-clockwork") | |
1670 | (version (git-version "0.0.0" revision commit)) | |
1671 | (source | |
1672 | (origin | |
1673 | (method git-fetch) | |
1674 | (uri (git-reference | |
1675 | (url "https://github.com/jonboulle/clockwork.git") | |
1676 | (commit commit))) | |
1677 | (file-name (git-file-name name version)) | |
1678 | (sha256 | |
1679 | (base32 | |
1680 | "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc")))) | |
1681 | (build-system go-build-system) | |
1682 | (arguments | |
1683 | '(#:import-path "github.com/jonboulle/clockwork")) | |
1684 | (home-page "https://github.com/jonboulle/clockwork") | |
1685 | (synopsis "Fake clock library for Go") | |
1686 | (description | |
1687 | "Replace uses of the @code{time} package with the | |
1688 | @code{clockwork.Clock} interface instead.") | |
1689 | (license license:asl2.0)))) | |
76a2b278 PAR |
1690 | |
1691 | (define-public go-github-com-spf13-pflag | |
1692 | (let ((commit "4f9190456aed1c2113ca51ea9b89219747458dc1") | |
1693 | (revision "0")) | |
1694 | (package | |
1695 | (name "go-github-com-spf13-pflag") | |
1696 | (version (git-version "0.0.0" revision commit)) | |
1697 | (source | |
1698 | (origin | |
1699 | (method git-fetch) | |
1700 | (uri (git-reference | |
1701 | (url "https://github.com/spf13/pflag.git") | |
1702 | (commit commit))) | |
1703 | (file-name (git-file-name name version)) | |
1704 | (sha256 | |
1705 | (base32 | |
1706 | "12vrlcsbwjqlfc49rwky45mbcj74c0kb6z54354pzas6fwzyi1kc")))) | |
1707 | (build-system go-build-system) | |
1708 | (arguments | |
1709 | '(#:import-path "github.com/spf13/pflag")) | |
1710 | (home-page "https://github.com/spf13/pflag") | |
1711 | (synopsis "Replacement for Go's @code{flag} package") | |
1712 | (description | |
1713 | "Pflag is library to replace Go's @code{flag} package. It implements | |
1714 | POSIX/GNU-style command-line options with double hyphens. It is is compatible | |
1715 | with the | |
1716 | @uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html, | |
1717 | GNU extensions} to the POSIX recommendations for command-line options.") | |
1718 | (license license:bsd-3)))) | |
7427b2c6 PAR |
1719 | |
1720 | (define-public go-github-com-sirupsen-logrus | |
1721 | (package | |
1722 | (name "go-github-com-sirupsen-logrus") | |
1723 | (version "1.0.5") | |
1724 | (source | |
1725 | (origin | |
1726 | (method git-fetch) | |
1727 | (uri (git-reference | |
1728 | (url "https://github.com/sirupsen/logrus.git") | |
1729 | (commit (string-append "v" version)))) | |
1730 | (sha256 | |
1731 | (base32 | |
1732 | "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz")))) | |
1733 | (build-system go-build-system) | |
1734 | (native-inputs | |
1735 | `(("go-golang-org-x-crypto-ssh-terminal" | |
1736 | ,go-golang-org-x-crypto-ssh-terminal) | |
1737 | ("go-github-com-stretchr-testify" | |
1738 | ,go-github-com-stretchr-testify) | |
1739 | ("go-golang-org-x-sys-unix" | |
1740 | ,go-golang-org-x-sys-unix))) | |
1741 | (arguments | |
1742 | '(#:tests? #f ;FIXME missing dependencies | |
1743 | #:import-path "github.com/sirupsen/logrus")) | |
1744 | (home-page "https://github.com/sirupsen/logrus") | |
1745 | (synopsis "Structured, pluggable logging for Go") | |
1746 | (description "Logrus is a structured logger for Go, completely API | |
1747 | compatible with the standard library logger.") | |
1748 | (license license:expat))) | |
5cc2b845 LF |
1749 | |
1750 | (define-public go-github-com-kardianos-osext | |
1751 | (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14") | |
1752 | (revision "1")) | |
1753 | (package | |
1754 | (name "go-github-com-kardianos-osext") | |
1755 | (version (git-version "0.0.0" revision commit)) | |
1756 | (source (origin | |
1757 | (method git-fetch) | |
1758 | (uri (git-reference | |
1759 | (url "https://github.com/kardianos/osext") | |
1760 | (commit commit))) | |
1761 | (file-name (git-file-name name version)) | |
1762 | (sha256 | |
1763 | (base32 | |
1764 | "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz")))) | |
1765 | (build-system go-build-system) | |
1766 | (arguments | |
1767 | `(#:import-path "github.com/kardianos/osext" | |
1768 | ;; The tests are flaky: | |
1769 | ;; <https://github.com/kardianos/osext/issues/21> | |
1770 | #:tests? #f)) | |
1771 | (synopsis "Find the running executable") | |
1772 | (description "Osext provides a method for finding the current executable | |
1773 | file that is running. This can be used for upgrading the current executable or | |
1774 | finding resources located relative to the executable file.") | |
1775 | (home-page "https://github.com/kardianos/osext") | |
1776 | (license license:bsd-3)))) | |
aed4944d PAR |
1777 | |
1778 | (define-public go-github-com-ayufan-golang-kardianos-service | |
1779 | (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3") | |
1780 | (revision "0")) | |
1781 | (package | |
1782 | (name "go-github-com-ayufan-golang-kardianos-service") | |
1783 | (version (git-version "0.0.0" revision commit)) | |
1784 | (source | |
1785 | (origin | |
1786 | (method git-fetch) | |
1787 | (uri (git-reference | |
1788 | (url | |
1789 | "https://github.com/ayufan/golang-kardianos-service.git") | |
1790 | (commit commit))) | |
1791 | (file-name (git-file-name name version)) | |
1792 | (sha256 | |
1793 | (base32 | |
1794 | "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5")))) | |
1795 | (build-system go-build-system) | |
1796 | (native-inputs | |
1797 | `(("go-github-com-kardianos-osext" | |
1798 | ,go-github-com-kardianos-osext))) | |
1799 | (arguments | |
1800 | '(#:tests? #f ;FIXME tests fail: Service is not running. | |
1801 | #:import-path "github.com/ayufan/golang-kardianos-service")) | |
1802 | (home-page "https://github.com/ayufan/golang-kardianos-service") | |
1803 | (synopsis "Go interface to a variety of service supervisors") | |
1804 | (description "This package provides @code{service}, a Go module that can | |
1805 | run programs as a service using a variety of supervisors, including systemd, | |
1806 | SysVinit, and more.") | |
1807 | (license license:zlib)))) | |
e2826118 PAR |
1808 | |
1809 | (define-public go-github-com-docker-distribution | |
1810 | (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329") | |
1811 | (revision "0")) | |
1812 | (package | |
1813 | (name "go-github-com-docker-distribution") | |
1814 | (version (git-version "0.0.0" revision commit)) | |
1815 | (source | |
1816 | ;; FIXME: This bundles many things, see | |
1817 | ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>. | |
1818 | (origin | |
1819 | (method git-fetch) | |
1820 | (uri (git-reference | |
1821 | (url "https://github.com/docker/distribution") | |
1822 | (commit commit))) | |
1823 | (file-name (git-file-name name version)) | |
1824 | (sha256 | |
1825 | (base32 | |
1826 | "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6")))) | |
1827 | (build-system go-build-system) | |
1828 | (native-inputs | |
1829 | `(("go-golang-org-x-sys-unix" | |
1830 | ,go-golang-org-x-sys-unix) | |
1831 | ("go-github-com-sirupsen-logrus" | |
1832 | ,go-github-com-sirupsen-logrus) | |
1833 | ("go-golang-org-x-crypto-ssh-terminal" | |
1834 | ,go-golang-org-x-crypto-ssh-terminal))) | |
1835 | (arguments | |
1836 | '(#:import-path "github.com/docker/distribution" | |
1837 | #:phases | |
1838 | (modify-phases %standard-phases | |
1839 | (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable | |
1840 | (lambda* (#:key outputs #:allow-other-keys) | |
1841 | (map (lambda (file) | |
1842 | (make-file-writable file)) | |
1843 | (find-files | |
1844 | (assoc-ref outputs "out") | |
1845 | ".*\\.gz$")) | |
1846 | #t))))) | |
1847 | (home-page | |
1848 | "https://github.com/docker/distribution") | |
a95b6436 | 1849 | (synopsis "This package is a Docker toolset to pack, ship, store, and |
e2826118 | 1850 | deliver content") |
a95b6436 VC |
1851 | (description "Docker Distribution is a Docker toolset to pack, ship, |
1852 | store, and deliver content. It contains Docker Registry 2.0 and libraries | |
1853 | to interact with distribution components.") | |
e2826118 | 1854 | (license license:asl2.0)))) |
01bcc94c PAR |
1855 | |
1856 | (define-public go-github-com-docker-go-connections | |
1857 | (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d") | |
1858 | (revision "0")) | |
1859 | (package | |
1860 | (name "go-github-com-docker-go-connections") | |
1861 | (version (git-version "0.0.0" revision commit)) | |
1862 | (source | |
1863 | (origin | |
1864 | (method git-fetch) | |
1865 | (uri (git-reference | |
1866 | (url "https://github.com/docker/go-connections.git") | |
1867 | (commit commit))) | |
1868 | (file-name (git-file-name name version)) | |
1869 | (sha256 | |
1870 | (base32 | |
1871 | "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0")))) | |
1872 | (build-system go-build-system) | |
1873 | (arguments | |
1874 | '(#:import-path "github.com/docker/go-connections")) | |
1875 | (home-page "https://github.com/docker/go-connections") | |
1876 | (synopsis "Networking library for Go") | |
1877 | (description | |
f0b32cea | 1878 | "This package provides a library to work with network connections in |
01bcc94c PAR |
1879 | the Go language. In particular it provides tools to deal with network address |
1880 | translation (NAT), proxies, sockets, and transport layer security (TLS).") | |
1881 | (license license:asl2.0)))) | |
af132bcc PAR |
1882 | |
1883 | (define-public go-github-com-docker-machine | |
1884 | (let ((commit "7b7a141da84480342357c51838be142bf183b095") | |
1885 | (revision "0")) | |
1886 | (package | |
1887 | (name "go-github-com-docker-machine") | |
1888 | (version (git-version "0.0.0" revision commit)) | |
1889 | (source | |
1890 | (origin | |
1891 | (method git-fetch) | |
1892 | (uri (git-reference | |
1893 | (url "https://github.com/docker/machine.git") | |
1894 | (commit commit))) | |
1895 | (file-name (git-file-name name version)) | |
1896 | (sha256 | |
1897 | (base32 | |
1898 | "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s")))) | |
1899 | (build-system go-build-system) | |
1900 | (arguments | |
1901 | '(#:import-path "github.com/docker/machine")) | |
1902 | (home-page "https://github.com/docker/machine") | |
1903 | (synopsis "Machine management for a container-centric world") | |
1904 | (description | |
1905 | "@dfn{Machine} lets you create Docker hosts on your computer, on | |
1906 | hosting providers, and inside your data center. It creates servers, installs | |
1907 | Docker on them, then configures the Docker client to talk to them.") | |
1908 | (license license:asl2.0)))) | |
d850e7a0 PAR |
1909 | |
1910 | (define-public go-github-com-gorhill-cronexpr | |
1911 | (let ((commit "f0984319b44273e83de132089ae42b1810f4933b") | |
1912 | (revision "0")) | |
1913 | (package | |
1914 | (name "go-github-com-gorhill-cronexpr") | |
1915 | (version (git-version "0.0.0" revision commit)) | |
1916 | (source | |
1917 | (origin | |
1918 | (method git-fetch) | |
1919 | (uri (git-reference | |
1920 | (url "https://github.com/gorhill/cronexpr.git") | |
1921 | (commit commit))) | |
1922 | (file-name (git-file-name name version)) | |
1923 | (sha256 | |
1924 | (base32 | |
1925 | "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2")))) | |
1926 | (build-system go-build-system) | |
1927 | (arguments | |
1928 | '(#:import-path "github.com/gorhill/cronexpr")) | |
1929 | (home-page "https://github.com/gorhill/cronexpr") | |
1930 | (synopsis "Cron expression parser in the Go language") | |
1931 | (description | |
1932 | "This package provides a cron expression parser in the Go language. | |
1933 | Given a cron expression and a time stamp, you can get the next time stamp | |
1934 | which satisfies the cron expression.") | |
1935 | (license (list license:gpl3+ | |
1936 | license:asl2.0))))) | |
abd47216 PAR |
1937 | |
1938 | (define-public go-gopkg-in-check-v1 | |
a2dbcfdd LF |
1939 | (let ((commit "788fd78401277ebd861206a03c884797c6ec5541") |
1940 | (revision "1")) | |
abd47216 PAR |
1941 | (package |
1942 | (name "go-gopkg-in-check-v1") | |
a2dbcfdd | 1943 | (version (git-version "1.0.0" revision commit)) |
abd47216 PAR |
1944 | (source |
1945 | (origin | |
1946 | (method git-fetch) | |
1947 | (uri (git-reference | |
1948 | (url "https://github.com/go-check/check") | |
1949 | (commit commit))) | |
1950 | (file-name (git-file-name name version)) | |
1951 | (sha256 | |
1952 | (base32 | |
a2dbcfdd | 1953 | "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a")))) |
abd47216 PAR |
1954 | (build-system go-build-system) |
1955 | (arguments | |
1956 | '(#:import-path "gopkg.in/check.v1")) | |
a2dbcfdd LF |
1957 | (propagated-inputs |
1958 | `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty))) | |
abd47216 PAR |
1959 | (home-page "https://gopkg.in/check.v1") |
1960 | (synopsis "Test framework for the Go language") | |
a2dbcfdd | 1961 | (description "This package provides a test library for the Go language.") |
abd47216 | 1962 | (license license:asl2.0)))) |
d2c5e912 PAR |
1963 | |
1964 | (define-public go-gopkg-in-yaml-v2 | |
c17e69b3 LF |
1965 | (package |
1966 | (name "go-gopkg-in-yaml-v2") | |
1967 | (version "2.2.2") | |
1968 | (source | |
1969 | (origin | |
1970 | (method git-fetch) | |
1971 | (uri (git-reference | |
1972 | (url "https://gopkg.in/yaml.v2.git") | |
1973 | (commit (string-append "v" version)))) | |
1974 | (file-name (git-file-name name version)) | |
1975 | (sha256 | |
1976 | (base32 | |
1977 | "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa")))) | |
1978 | (build-system go-build-system) | |
1979 | (arguments | |
1980 | '(#:import-path "gopkg.in/yaml.v2")) | |
1981 | (native-inputs | |
1982 | `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1))) | |
1983 | (home-page "https://gopkg.in/yaml.v2") | |
1984 | (synopsis "YAML reader and writer for the Go language") | |
1985 | (description | |
1986 | "This package provides a Go library for encode and decode YAML | |
d2c5e912 | 1987 | values.") |
c17e69b3 | 1988 | (license license:asl2.0))) |
3291be81 PN |
1989 | |
1990 | (define-public go-github-com-mattn-go-isatty | |
24e3520d LF |
1991 | (package |
1992 | (name "go-github-com-mattn-go-isatty") | |
36bb1d5a | 1993 | (version "0.0.7") |
24e3520d LF |
1994 | (source |
1995 | (origin | |
1996 | (method git-fetch) | |
1997 | (uri (git-reference | |
1998 | (url "https://github.com/mattn/go-isatty") | |
1999 | (commit (string-append "v" version)))) | |
2000 | (file-name (git-file-name name version)) | |
2001 | (sha256 | |
2002 | (base32 | |
36bb1d5a | 2003 | "1i77aq4gf9as03m8fpfh8fq49n4z9j7548blrcsidm1xhslzk5xd")))) |
24e3520d | 2004 | (build-system go-build-system) |
36bb1d5a LF |
2005 | (propagated-inputs |
2006 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
24e3520d LF |
2007 | (arguments |
2008 | '(#:import-path "github.com/mattn/go-isatty")) | |
2009 | (home-page "https://github.com/mattn/go-isatty") | |
2010 | (synopsis "Provide @code{isatty} for Golang") | |
2011 | (description "This package provides @code{isatty}, a Go module that can | |
3291be81 PN |
2012 | tell you whether a file descriptor points to a terminal and the type of the |
2013 | terminal.") | |
24e3520d | 2014 | (license license:expat))) |
7601b4e4 PN |
2015 | |
2016 | (define-public go-github-com-mattn-go-colorable | |
2017 | (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade") | |
2018 | (revision "0")) | |
2019 | (package | |
2020 | (name "go-github-com-mattn-go-colorable") | |
2021 | (version (git-version "0.0.0" revision commit)) | |
2022 | (source | |
2023 | (origin | |
2024 | (method git-fetch) | |
2025 | (uri (git-reference | |
2026 | (url "https://github.com/mattn/go-colorable") | |
2027 | (commit commit))) | |
2028 | (file-name (git-file-name name version)) | |
2029 | (sha256 | |
2030 | (base32 | |
2031 | "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r")))) | |
2032 | (build-system go-build-system) | |
2033 | (native-inputs | |
2034 | `(("go-github-com-mattn-go-isatty" | |
2035 | ,go-github-com-mattn-go-isatty))) | |
2036 | (arguments | |
2037 | '(#:import-path "github.com/mattn/go-colorable")) | |
2038 | (home-page "https://github.com/mattn/go-colorable") | |
2039 | (synopsis "Handle ANSI color escapes on Windows") | |
2040 | (description "This package provides @code{colorable}, a module that | |
2041 | makes it possible to handle ANSI color escapes on Windows.") | |
2042 | (license license:expat)))) | |
32cb1af6 PN |
2043 | |
2044 | (define-public go-github-com-mgutz-ansi | |
2045 | (let ((commit "9520e82c474b0a04dd04f8a40959027271bab992") | |
2046 | (revision "0")) | |
2047 | (package | |
2048 | (name "go-github-com-mgutz-ansi") | |
2049 | (version (git-version "0.0.0" revision commit)) | |
2050 | (source | |
2051 | (origin | |
2052 | (method git-fetch) | |
2053 | (uri (git-reference | |
2054 | (url | |
2055 | "https://github.com/mgutz/ansi") | |
2056 | (commit commit))) | |
2057 | (file-name (git-file-name name version)) | |
2058 | (sha256 | |
2059 | (base32 | |
2060 | "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j")))) | |
2061 | (build-system go-build-system) | |
2062 | (native-inputs | |
2063 | `(("go-github-com-mattn-go-isatty" | |
2064 | ,go-github-com-mattn-go-isatty) | |
2065 | ("go-github-com-mattn-go-colorable" | |
2066 | ,go-github-com-mattn-go-colorable))) | |
2067 | (arguments | |
2068 | '(#:import-path "github.com/mgutz/ansi")) | |
2069 | (home-page "https://github.com/mgutz/ansi") | |
2070 | (synopsis "Small, fast library to create ANSI colored strings and codes") | |
2071 | (description "This package provides @code{ansi}, a Go module that can | |
2072 | generate ANSI colored strings.") | |
2073 | (license license:expat)))) | |
e25ddef5 PN |
2074 | |
2075 | (define-public go-github-com-aarzilli-golua | |
2076 | (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") | |
2077 | (revision "0")) | |
2078 | (package | |
2079 | (name "go-github-com-aarzilli-golua") | |
2080 | (version (git-version "0.0.0" revision commit)) | |
2081 | (source | |
2082 | (origin | |
2083 | (method git-fetch) | |
2084 | (uri (git-reference | |
2085 | (url | |
2086 | "https://github.com/aarzilli/golua") | |
2087 | (commit commit))) | |
2088 | (file-name (git-file-name name version)) | |
2089 | (sha256 | |
2090 | (base32 | |
2091 | "1d9hr29i36cza98afj3g6rs3l7xbkprwzz0blcxsr9dd7nak20di")))) | |
2092 | (build-system go-build-system) | |
5c475841 PN |
2093 | ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so |
2094 | ;; when this package required as input for another one, it will have to | |
2095 | ;; be built again. Thus its CGO requirements must be made available in | |
2096 | ;; the environment, that is, they must be propagated. | |
2097 | (propagated-inputs | |
e25ddef5 PN |
2098 | `(("lua" ,lua))) |
2099 | (arguments | |
2100 | `(#:unpack-path "github.com/aarzilli/golua" | |
2101 | #:import-path "github.com/aarzilli/golua/lua" | |
2102 | #:phases | |
2103 | (modify-phases %standard-phases | |
5c475841 PN |
2104 | ;; While it's possible to fix the CGO_LDFLAGS with the "-tags" |
2105 | ;; command line argument, go-1.10+ does not re-use the produced pkg | |
2106 | ;; for dependencies, which means we would need to propagate the | |
2107 | ;; same "-tags" argument to all golua referrers. A substitution is | |
2108 | ;; more convenient here. We also need to propagate the lua | |
2109 | ;; dependency to make it available to referrers. | |
2110 | (add-after 'unpack 'fix-lua-ldflags | |
2111 | (lambda _ | |
2112 | (substitute* "src/github.com/aarzilli/golua/lua/lua.go" | |
2113 | (("#cgo linux,!llua,!luaa LDFLAGS: -llua5.3") | |
2114 | "#cgo linux,!llua,!luaa LDFLAGS: -llua"))))))) | |
e25ddef5 PN |
2115 | (home-page "https://github.com/aarzilli/golua") |
2116 | (synopsis "Go Bindings for the Lua C API") | |
2117 | (description "This package provides @code{lua}, a Go module that can | |
2118 | run a Lua virtual machine.") | |
2119 | (license license:expat)))) | |
f25e3b39 PN |
2120 | |
2121 | (define-public go-gitlab-com-ambrevar-golua-unicode | |
2122 | (let ((commit "97ce517e7a1fe2407a90c317a9c74b173d396144") | |
2123 | (revision "0")) | |
2124 | (package | |
2125 | (name "go-gitlab-com-ambrevar-golua-unicode") | |
2126 | (version (git-version "0.0.0" revision commit)) | |
2127 | (source | |
2128 | (origin | |
2129 | (method git-fetch) | |
2130 | (uri (git-reference | |
2131 | (url | |
2132 | "https://gitlab.com/ambrevar/golua") | |
2133 | (commit commit))) | |
2134 | (file-name (git-file-name name version)) | |
2135 | (sha256 | |
2136 | (base32 | |
2137 | "1izcp7p8nagjwqd13shb0020w7xhppib1a3glw2d1468bflhksnm")))) | |
2138 | (build-system go-build-system) | |
2139 | (native-inputs | |
2140 | `(("lua" ,lua) | |
2141 | ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua))) | |
2142 | (arguments | |
2143 | `(#:unpack-path "gitlab.com/ambrevar/golua" | |
2144 | #:import-path "gitlab.com/ambrevar/golua/unicode" | |
2145 | #:phases | |
2146 | (modify-phases %standard-phases | |
2147 | (replace 'check | |
2148 | (lambda* (#:key import-path #:allow-other-keys) | |
2149 | (setenv "USER" "homeless-dude") | |
2150 | (invoke "go" "test" import-path)))))) | |
2151 | (home-page "https://gitlab.com/ambrevar/golua") | |
2152 | (synopsis "Add Unicode support to Golua") | |
2153 | (description "This extension to Arzilli's Golua adds Unicode support to | |
2154 | all functions from the Lua string library. Lua patterns are replaced by Go | |
2155 | regexps. This breaks compatibility with Lua, but Unicode support breaks it | |
2156 | anyways and Go regexps are more powerful.") | |
2157 | (license license:expat)))) | |
b4d1440f PN |
2158 | |
2159 | (define-public go-github-com-yookoala-realpath | |
2160 | (let ((commit "d19ef9c409d9817c1e685775e53d361b03eabbc8") | |
2161 | (revision "0")) | |
2162 | (package | |
2163 | (name "go-github-com-yookoala-realpath") | |
2164 | (version (git-version "0.0.0" revision commit)) | |
2165 | (source | |
2166 | (origin | |
2167 | (method git-fetch) | |
2168 | (uri (git-reference | |
2169 | (url | |
2170 | "https://github.com/yookoala/realpath") | |
2171 | (commit commit))) | |
2172 | (file-name (git-file-name name version)) | |
2173 | (sha256 | |
2174 | (base32 | |
2175 | "0qvz1dcdldf53rq69fli76z5k1vr7prx9ds1d5rpzgs68kwn40nw")))) | |
2176 | (build-system go-build-system) | |
2177 | (arguments | |
2178 | `(#:import-path "github.com/yookoala/realpath")) | |
2179 | (home-page "https://github.com/yookoala/realpath") | |
2180 | (synopsis "@code{realpath} for Golang") | |
2181 | (description "This package provides @code{realpath}, a Go module that | |
2182 | when provided with a valid relative path / alias path, it will return you with | |
2183 | a string of its real absolute path in the system.") | |
0e11f5da | 2184 | (license license:expat)))) |
54b83f0e PN |
2185 | |
2186 | (define-public go-gitlab-com-ambrevar-damerau | |
2187 | (let ((commit "883829e1f25fad54015772ea663e69017cf22352") | |
2188 | (revision "0")) | |
2189 | (package | |
2190 | (name "go-gitlab-com-ambrevar-damerau") | |
2191 | (version (git-version "0.0.0" revision commit)) | |
2192 | (source | |
2193 | (origin | |
2194 | (method git-fetch) | |
2195 | (uri (git-reference | |
2196 | (url | |
2197 | "https://gitlab.com/ambrevar/damerau") | |
2198 | (commit commit))) | |
2199 | (file-name (git-file-name name version)) | |
2200 | (sha256 | |
2201 | (base32 | |
2202 | "1b9p8fypc914ij1afn6ir346zsgfqrc5mqc1k3d53n4snypq27qv")))) | |
2203 | (build-system go-build-system) | |
2204 | (arguments | |
2205 | `(#:import-path "gitlab.com/ambrevar/damerau")) | |
2206 | (home-page "https://gitlab.com/ambrevar/damerau") | |
2207 | (synopsis "Damerau-Levenshtein distance for Golang") | |
2208 | (description "This is a spelling corrector implementing the | |
2209 | Damerau-Levenshtein distance. Takes a string value input from the user. | |
2210 | Looks for an identical word on a list of words, if none is found, look for a | |
2211 | similar word.") | |
2212 | (license license:expat)))) | |
c4962817 PN |
2213 | |
2214 | (define-public go-github-com-stevedonovan-luar | |
2215 | (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead") | |
2216 | (revision "0")) | |
2217 | (package | |
2218 | (name "go-github-com-stevedonovan-luar") | |
2219 | (version (git-version "0.0.0" revision commit)) | |
2220 | (source | |
2221 | (origin | |
2222 | (method git-fetch) | |
2223 | (uri (git-reference | |
2224 | (url | |
2225 | "https://github.com/stevedonovan/luar") | |
2226 | (commit commit))) | |
2227 | (file-name (git-file-name name version)) | |
2228 | (sha256 | |
2229 | (base32 | |
2230 | "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c")))) | |
2231 | (build-system go-build-system) | |
2232 | (native-inputs | |
2233 | `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua))) | |
2234 | (arguments | |
2235 | `(#:tests? #f ; Upstream tests are broken. | |
2236 | #:import-path "github.com/stevedonovan/luar")) | |
2237 | (home-page "https://github.com/stevedonovan/luar") | |
2238 | (synopsis "Lua reflection bindings for Go") | |
2239 | (description "Luar is designed to make using Lua from Go more | |
2240 | convenient. Go structs, slices and maps can be automatically converted to Lua | |
2241 | tables and vice-versa. The resulting conversion can either be a copy or a | |
2242 | proxy. In the latter case, any change made to the result will reflect on the | |
2243 | source. | |
2244 | ||
2245 | Any Go function can be made available to Lua scripts, without having to write | |
2246 | C-style wrappers. | |
2247 | ||
2248 | Luar support cyclic structures (lists, etc.). | |
2249 | ||
2250 | User-defined types can be made available to Lua as well: their exported | |
2251 | methods can be called and usual operations such as indexing or arithmetic can | |
2252 | be performed.") | |
2253 | (license license:expat)))) | |
bc3138d2 | 2254 | |
9630ae34 PN |
2255 | (define-public go-github-com-michiwend-golang-pretty |
2256 | (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4") | |
2257 | (revision "0")) | |
2258 | (package | |
2259 | (name "go-github-com-michiwend-golang-pretty") | |
2260 | (version (git-version "0.0.0" revision commit)) | |
2261 | (source | |
2262 | (origin | |
2263 | (method git-fetch) | |
2264 | (uri (git-reference | |
2265 | (url | |
2266 | "https://github.com/michiwend/golang-pretty") | |
2267 | (commit commit))) | |
2268 | (file-name (git-file-name name version)) | |
2269 | (sha256 | |
2270 | (base32 | |
2271 | "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4")))) | |
2272 | (build-system go-build-system) | |
2273 | (native-inputs | |
2274 | `(("go-github-com-kr-text" ,go-github-com-kr-text))) | |
2275 | (arguments | |
2276 | `(#:tests? #f ; Upstream tests seem to be broken. | |
2277 | #:import-path "github.com/michiwend/golang-pretty")) | |
2278 | (home-page "https://github.com/michiwend/golang-pretty") | |
2279 | (synopsis "Pretty printing for Go values") | |
2280 | (description "Package @code{pretty} provides pretty-printing for Go | |
2281 | values. This is useful during debugging, to avoid wrapping long output lines | |
2282 | in the terminal. | |
2283 | ||
2284 | It provides a function, @code{Formatter}, that can be used with any function | |
2285 | that accepts a format string. It also provides convenience wrappers for | |
2286 | functions in packages @code{fmt} and @code{log}.") | |
2287 | (license license:expat)))) | |
62879d22 PN |
2288 | |
2289 | (define-public go-github-com-michiwend-gomusicbrainz | |
2290 | (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d") | |
2291 | (revision "0")) | |
2292 | (package | |
2293 | (name "go-github-com-michiwend-gomusicbrainz") | |
2294 | (version (git-version "0.0.0" revision commit)) | |
2295 | (source | |
2296 | (origin | |
2297 | (method git-fetch) | |
2298 | (uri (git-reference | |
2299 | (url | |
2300 | "https://github.com/michiwend/gomusicbrainz") | |
2301 | (commit commit))) | |
2302 | (file-name (git-file-name name version)) | |
2303 | (sha256 | |
2304 | (base32 | |
2305 | "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn")))) | |
2306 | (build-system go-build-system) | |
2307 | (native-inputs | |
2308 | `(("go-github-com-michiwend-golang-pretty" ,go-github-com-michiwend-golang-pretty) | |
2309 | ("go-github-com-kr-text" ,go-github-com-kr-text))) | |
2310 | (arguments | |
2311 | `(#:import-path "github.com/michiwend/gomusicbrainz")) | |
2312 | (home-page "https://github.com/michiwend/gomusicbrainz") | |
2313 | (synopsis "MusicBrainz WS2 client library for Golang") | |
2314 | (description "Currently GoMusicBrainz provides methods to perform search | |
2315 | and lookup requests. Browse requests are not supported yet.") | |
2316 | (license license:expat)))) | |
53182924 PN |
2317 | |
2318 | (define-public go-github-com-wtolson-go-taglib | |
2319 | (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777") | |
2320 | (revision "0")) | |
2321 | (package | |
2322 | (name "go-github-com-wtolson-go-taglib") | |
2323 | (version (git-version "0.0.0" revision commit)) | |
2324 | (source | |
2325 | (origin | |
2326 | (method git-fetch) | |
2327 | (uri (git-reference | |
2328 | (url | |
2329 | "https://github.com/wtolson/go-taglib") | |
2330 | (commit commit))) | |
2331 | (file-name (git-file-name name version)) | |
2332 | (sha256 | |
2333 | (base32 | |
2334 | "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2")))) | |
2335 | (build-system go-build-system) | |
46a4ae22 PN |
2336 | ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so |
2337 | ;; when this package required as input for another one, it will have to | |
2338 | ;; be built again. Thus its CGO requirements must be made available in | |
2339 | ;; the environment, that is, they must be propagated. | |
2340 | (propagated-inputs | |
53182924 PN |
2341 | `(("pkg-config" ,pkg-config) |
2342 | ("taglib" ,taglib))) | |
2343 | (arguments | |
46a4ae22 PN |
2344 | `(#:import-path "github.com/wtolson/go-taglib" |
2345 | ;; Tests don't pass "vet" on go-1.11. See | |
2346 | ;; https://github.com/wtolson/go-taglib/issues/12. | |
2347 | #:phases | |
2348 | (modify-phases %standard-phases | |
2349 | (replace 'check | |
2350 | (lambda* (#:key import-path #:allow-other-keys) | |
2351 | (invoke "go" "test" | |
2352 | "-vet=off" | |
2353 | import-path)))))) | |
53182924 PN |
2354 | (home-page "https://github.com/wtolson/go-taglib") |
2355 | (synopsis "Go wrapper for taglib") | |
2356 | (description "Go wrapper for taglib") | |
2357 | (license license:unlicense)))) | |
5787e152 | 2358 | |
5787e152 | 2359 | (define-public go-github-com-gogo-protobuf |
2f9bbd8e LF |
2360 | (package |
2361 | (name "go-github-com-gogo-protobuf") | |
2362 | (version "1.2.1") | |
2363 | (source (origin | |
2364 | (method git-fetch) | |
2365 | (uri (git-reference | |
2366 | (url "https://github.com/gogo/protobuf") | |
2367 | (commit (string-append "v" version)))) | |
2368 | (file-name (git-file-name name version)) | |
2369 | (sha256 | |
2370 | (base32 | |
2371 | "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m")))) | |
2372 | (build-system go-build-system) | |
2373 | (arguments | |
2374 | `(#:import-path "github.com/gogo/protobuf/proto" | |
2375 | #:unpack-path "github.com/gogo/protobuf")) | |
2376 | (synopsis "Protocol Buffers for Go with Gadgets") | |
2377 | (description "Gogoprotobuf is a fork of golang/protobuf with extra code | |
5787e152 PN |
2378 | generation features. This code generation is used to achieve: |
2379 | @itemize | |
2380 | @item fast marshalling and unmarshalling | |
2381 | @item more canonical Go structures | |
2382 | @item goprotobuf compatibility | |
2383 | @item less typing by optionally generating extra helper code | |
2384 | @item peace of mind by optionally generating test and benchmark code | |
2385 | @item other serialization formats | |
2386 | @end itemize") | |
2f9bbd8e LF |
2387 | (home-page "https://github.com/gogo/protobuf") |
2388 | (license license:bsd-3))) | |
5787e152 PN |
2389 | |
2390 | (define-public go-github-com-gogo-protobuf-protoc-gen-gogo | |
2f9bbd8e LF |
2391 | (package |
2392 | (name "go-github-com-gogo-protobuf-protoc-gen-gogo") | |
2393 | (version "1.2.1") | |
2394 | (source (origin | |
2395 | (method git-fetch) | |
2396 | (uri (git-reference | |
2397 | (url "https://github.com/gogo/protobuf") | |
2398 | (commit (string-append "v" version)))) | |
2399 | (file-name (git-file-name name version)) | |
2400 | (sha256 | |
2401 | (base32 | |
2402 | "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m")))) | |
2403 | (build-system go-build-system) | |
2404 | (arguments | |
2405 | `(#:import-path "github.com/gogo/protobuf/protoc-gen-gogo" | |
2406 | #:unpack-path "github.com/gogo/protobuf" | |
2407 | #:tests? #f)) ; Requires the unpackaged 'protoc-min-version' | |
2408 | (synopsis "Protocol Buffers for Go with Gadgets") | |
2409 | (description "Gogoprotobuf is a fork of golang/protobuf with extra code | |
5787e152 PN |
2410 | generation features. This code generation is used to achieve: |
2411 | @itemize | |
2412 | @item fast marshalling and unmarshalling | |
2413 | @item more canonical Go structures | |
2414 | @item goprotobuf compatibility | |
2415 | @item less typing by optionally generating extra helper code | |
2416 | @item peace of mind by optionally generating test and benchmark code | |
2417 | @item other serialization formats | |
2418 | @end itemize") | |
2f9bbd8e LF |
2419 | (home-page "https://github.com/gogo/protobuf") |
2420 | (license license:bsd-3))) | |
5787e152 | 2421 | |
e3f14f47 LF |
2422 | (define-public go-github-com-gogo-protobuf-gogoproto |
2423 | (package | |
2424 | (name "go-github-com-gogo-protobuf-gogoproto") | |
2425 | (version "1.2.1") | |
2426 | (source | |
2427 | (origin | |
2428 | (method git-fetch) | |
2429 | (uri (git-reference | |
2430 | (url "https://github.com/gogo/protobuf.git") | |
2431 | (commit (string-append "v" version)))) | |
2432 | (file-name (git-file-name name version)) | |
2433 | (sha256 | |
2434 | (base32 | |
2435 | "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m")))) | |
2436 | (build-system go-build-system) | |
2437 | (arguments | |
2438 | '(#:unpack-path "github.com/gogo/protobuf" | |
2439 | #:import-path "github.com/gogo/protobuf/gogoproto")) | |
2440 | (home-page "https://github.com/gogo/protobuf") | |
2441 | (synopsis "Extensions to protocol buffers") | |
2442 | (description "This package provides extensions to the Gogo protocol buffers | |
2443 | implementation.") | |
2444 | (license license:bsd-3))) | |
2445 | ||
5787e152 | 2446 | (define-public go-github-com-gogo-protobuf-proto |
2f9bbd8e LF |
2447 | (package |
2448 | (name "go-github-com-gogo-protobuf-proto") | |
2449 | (version "1.2.1") | |
2450 | (source | |
2451 | (origin | |
2452 | (method git-fetch) | |
2453 | (uri (git-reference | |
2454 | (url "https://github.com/gogo/protobuf.git") | |
2455 | (commit (string-append "v" version)))) | |
2456 | (file-name (git-file-name name version)) | |
2457 | (sha256 | |
2458 | (base32 | |
2459 | "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m")))) | |
2460 | (build-system go-build-system) | |
2461 | (arguments | |
2462 | '(#:unpack-path "github.com/gogo/protobuf" | |
2463 | #:import-path "github.com/gogo/protobuf/proto")) | |
2464 | (home-page "https://github.com/gogo/protobuf") | |
2465 | (synopsis "Protocol buffers component") | |
2466 | (description "This is a component of the Gogo protocol buffers | |
2467 | implementation.") | |
2468 | (license license:bsd-3))) | |
386bd7ba PN |
2469 | |
2470 | (define-public go-github-com-libp2p-go-flow-metrics | |
2471 | (let ((commit "7e5a55af485341567f98d6847a373eb5ddcdcd43") | |
2472 | (revision "0")) | |
2473 | (package | |
2474 | (name "go-github-com-libp2p-go-flow-metrics") | |
2475 | (version (git-version "0.2.0" revision commit)) | |
2476 | (source | |
2477 | (origin | |
2478 | (method git-fetch) | |
2479 | (uri (git-reference | |
2480 | (url "https://github.com/libp2p/go-flow-metrics.git") | |
2481 | (commit commit))) | |
2482 | (file-name (git-file-name name version)) | |
2483 | (sha256 | |
2484 | (base32 | |
2485 | "1p87iyk6q6f3g3xkncssx400qlld8f2z93qiz8m1f97grfyhjif1")))) | |
2486 | (build-system go-build-system) | |
2487 | (arguments | |
2488 | `(#:import-path "github.com/libp2p/go-flow-metrics" | |
2489 | ;; TODO: Tests hang. | |
2490 | #:tests? #f)) | |
2491 | (home-page | |
2492 | "https://github.com/libp2p/go-flow-metrics") | |
2493 | (synopsis "Simple library for tracking flow metrics") | |
2494 | (description "A simple alternative to rcrowley's @command{go-metrics} | |
2495 | that's a lot faster (and only does simple bandwidth metrics).") | |
2496 | (license license:expat)))) | |
6a95e3a3 PN |
2497 | |
2498 | (define-public go-github-com-davecgh-go-spew | |
2499 | (let ((commit "d8f796af33cc11cb798c1aaeb27a4ebc5099927d") | |
2500 | (revision "0")) | |
2501 | (package | |
2502 | (name "go-github-com-davecgh-go-spew") | |
2503 | (version (git-version "0.0.0" revision commit)) | |
2504 | (source | |
2505 | (origin | |
2506 | (method git-fetch) | |
2507 | (uri (git-reference | |
2508 | (url "https://github.com/davecgh/go-spew.git") | |
2509 | (commit commit))) | |
2510 | (file-name (git-file-name name version)) | |
2511 | (sha256 | |
2512 | (base32 | |
2513 | "19z27f306fpsrjdvkzd61w1bdazcdbczjyjck177g33iklinhpvx")))) | |
2514 | (build-system go-build-system) | |
2515 | (arguments | |
2516 | '(#:unpack-path "github.com/davecgh/go-spew" | |
2517 | #:import-path "github.com/davecgh/go-spew/spew")) | |
2518 | (home-page "https://github.com/davecgh/go-spew") | |
2519 | (synopsis "Deep pretty printer for Go data structures to aid in debugging") | |
2520 | (description "Package @command{spew} implements a deep pretty printer | |
2521 | for Go data structures to aid in debugging. | |
2522 | ||
2523 | A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows: | |
2524 | ||
2525 | @itemize | |
2526 | @item Pointers are dereferenced and followed. | |
2527 | @item Circular data structures are detected and handled properly. | |
2528 | @item Custom Stringer/error interfaces are optionally invoked, including on | |
2529 | unexported types. | |
2530 | @item Custom types which only implement the Stringer/error interfaces via a | |
2531 | pointer receiver are optionally invoked when passing non-pointer variables. | |
2532 | @item Byte arrays and slices are dumped like the hexdump -C command which | |
2533 | includes offsets, byte values in hex, and ASCII output (only when using Dump | |
2534 | style). | |
2535 | @end itemize\n") | |
2536 | (license license:isc)))) | |
171c3259 PN |
2537 | |
2538 | (define-public go-github-com-btcsuite-btclog | |
2539 | (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a") | |
2540 | (revision "0")) | |
2541 | (package | |
2542 | (name "go-github-com-btcsuite-btclog") | |
2543 | (version (git-version "0.0.3" revision commit)) | |
2544 | (source | |
2545 | (origin | |
2546 | (method git-fetch) | |
2547 | (uri (git-reference | |
2548 | (url "https://github.com/btcsuite/btclog.git") | |
2549 | (commit commit))) | |
2550 | (file-name (git-file-name name version)) | |
2551 | (sha256 | |
2552 | (base32 | |
2553 | "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk")))) | |
2554 | (build-system go-build-system) | |
2555 | (arguments | |
2556 | '(#:import-path "github.com/btcsuite/btclog")) | |
2557 | (home-page "https://github.com/btcsuite/btclog") | |
2558 | (synopsis "Subsystem aware logger for Go") | |
2559 | (description "Package @command{btclog} defines a logger interface and | |
2560 | provides a default implementation of a subsystem-aware leveled logger | |
2561 | implementing the same interface.") | |
2562 | (license license:isc)))) | |
d5599afa PN |
2563 | |
2564 | (define-public go-github-com-btcsuite-btcd-btcec | |
2565 | (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0") | |
2566 | (revision "0")) | |
2567 | (package | |
2568 | (name "go-github-com-btcsuite-btcd-btcec") | |
2569 | (version (git-version "0.12.0-beta" revision commit)) | |
2570 | (source | |
2571 | (origin | |
2572 | (method git-fetch) | |
2573 | (uri (git-reference | |
2574 | (url "https://github.com/btcsuite/btcd.git") | |
2575 | (commit commit))) | |
2576 | (file-name (git-file-name name version)) | |
2577 | (sha256 | |
2578 | (base32 | |
2579 | "04s92gsy71w1jirlr5lkk9y6r5cparbas7nmf6ywbp7kq7fn8ajn")))) | |
2580 | (build-system go-build-system) | |
2581 | (arguments | |
2582 | '(#:unpack-path "github.com/btcsuite/btcd" | |
2583 | #:import-path "github.com/btcsuite/btcd/btcec")) | |
2584 | (native-inputs | |
2585 | `(("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew))) | |
2586 | (home-page "https://github.com/btcsuite/btcd") | |
2587 | (synopsis "Elliptic curve cryptography to work with Bitcoin") | |
2588 | (description "Package @command{btcec} implements elliptic curve | |
2589 | cryptography needed for working with Bitcoin (secp256k1 only for now). It is | |
2590 | designed so that it may be used with the standard crypto/ecdsa packages | |
2591 | provided with Go. A comprehensive suite of test is provided to ensure proper | |
2592 | functionality. Package @command{btcec} was originally based on work from | |
2593 | ThePiachu which is licensed under the same terms as Go, but it has | |
2ec41781 | 2594 | significantly diverged since then. The @command{btcsuite} developers original |
d5599afa PN |
2595 | is licensed under the liberal ISC license. |
2596 | ||
2597 | Although this package was primarily written for btcd, it has intentionally | |
2598 | been designed so it can be used as a standalone package for any projects | |
2599 | needing to use secp256k1 elliptic curve cryptography.") | |
2600 | (license license:isc)))) | |
ff2d11c3 PN |
2601 | |
2602 | (define-public go-github-com-minio-sha256-simd | |
0c28ee8c LF |
2603 | (let ((commit "cc1980cb03383b1d46f518232672584432d7532d") |
2604 | (revision "3")) | |
ff2d11c3 PN |
2605 | (package |
2606 | (name "go-github-com-minio-sha256-simd") | |
2607 | (version (git-version "0.0.0" revision commit)) | |
2608 | (source | |
2609 | (origin | |
2610 | (method git-fetch) | |
2611 | (uri (git-reference | |
2612 | (url "https://github.com/minio/sha256-simd.git") | |
2613 | (commit commit))) | |
2614 | (file-name (git-file-name name version)) | |
2615 | (sha256 | |
2616 | (base32 | |
0c28ee8c | 2617 | "04fp98nal0wsb26zwhw82spn5camxslc68g3xp8g4af9w6k9g31j")))) |
ff2d11c3 PN |
2618 | (build-system go-build-system) |
2619 | (arguments | |
2620 | '(#:import-path "github.com/minio/sha256-simd")) | |
2621 | (home-page "https://github.com/minio/sha256-simd") | |
2622 | (synopsis "Accelerate SHA256 computations in pure Go") | |
2623 | (description "Accelerate SHA256 computations in pure Go using AVX512 and | |
2624 | AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x | |
2625 | improvement (over 3 GB/s per core) in comparison to AVX2. | |
2626 | ||
2627 | This package is designed as a replacement for @command{crypto/sha256}. For | |
2628 | Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also | |
2629 | supported). For ARM CPUs with the Cryptography Extensions, advantage is taken | |
2630 | of the SHA2 instructions resulting in a massive performance improvement. | |
2631 | ||
2632 | This package uses Golang assembly. The AVX512 version is based on the Intel's | |
2633 | \"multi-buffer crypto library for IPSec\" whereas the other Intel | |
2634 | implementations are described in \"Fast SHA-256 Implementations on Intel | |
2635 | Architecture Processors\" by J. Guilford et al.") | |
2636 | (license license:asl2.0)))) | |
71f36804 PN |
2637 | |
2638 | (define-public go-github-com-libp2p-go-libp2p-crypto | |
2639 | (let ((commit "7240b40a3ddc47c4d17c15baabcbe45e5219171b") | |
2640 | (revision "0")) | |
2641 | (package | |
2642 | (name "go-github-com-libp2p-go-libp2p-crypto") | |
2643 | (version (git-version "2.0.1" revision commit)) | |
2644 | (source | |
2645 | (origin | |
2646 | (method git-fetch) | |
2647 | (uri (git-reference | |
2648 | (url "https://github.com/libp2p/go-libp2p-crypto.git") | |
2649 | (commit commit))) | |
2650 | (file-name (git-file-name name version)) | |
2651 | (sha256 | |
2652 | (base32 | |
2653 | "0qwpy57qv5143l9dlfwfvpqsxdd2i4zwnawx1w4pmgxxim3nw1wb")))) | |
2654 | (build-system go-build-system) | |
2655 | (arguments | |
2656 | '(#:import-path "github.com/libp2p/go-libp2p-crypto")) | |
2657 | (native-inputs | |
2658 | `(("go-golang-org-x-crypto-ed25519" ,go-golang-org-x-crypto-ed25519) | |
2659 | ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec) | |
2660 | ("go-github-com-gogo-protobuf-proto" ,go-github-com-gogo-protobuf-proto) | |
2661 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd))) | |
2662 | (home-page | |
2663 | "https://github.com/libp2p/go-libp2p-crypto") | |
2664 | (synopsis "Various cryptographic utilities used by IPFS") | |
2665 | (description "Various cryptographic utilities used by IPFS") | |
2666 | (license license:expat)))) | |
15272a50 PN |
2667 | |
2668 | (define-public go-github-com-mr-tron-base58 | |
2669 | (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312") | |
2670 | (revision "0")) | |
2671 | (package | |
2672 | (name "go-github-com-mr-tron-base58") | |
2673 | (version (git-version "1.1.0" revision commit)) | |
2674 | (source | |
2675 | (origin | |
2676 | (method git-fetch) | |
2677 | (uri (git-reference | |
2678 | (url "https://github.com/mr-tron/base58.git") | |
2679 | (commit commit))) | |
2680 | (file-name (git-file-name name version)) | |
2681 | (sha256 | |
2682 | (base32 | |
2683 | "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa")))) | |
2684 | (build-system go-build-system) | |
2685 | (arguments | |
2686 | `(#:unpack-path "github.com/mr-tron/base58" | |
2687 | #:import-path "github.com/mr-tron/base58/base58")) | |
2688 | (home-page "https://github.com/mr-tron/base58") | |
2689 | (synopsis "Fast implementation of base58 encoding on Golang") | |
2690 | (description "Fast implementation of base58 encoding on Golang. A | |
2691 | trivial @command{big.Int} encoding benchmark results in 6 times faster | |
2692 | encoding and 8 times faster decoding.") | |
2693 | (license license:expat)))) | |
27d59d8b PN |
2694 | |
2695 | (define-public go-github-com-gxed-hashland-keccakpg | |
2696 | (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8") | |
2697 | (revision "0")) | |
2698 | (package | |
2699 | (name "go-github-com-gxed-hashland-keccakpg") | |
2700 | (version (git-version "0.0.0" revision commit)) | |
2701 | (source | |
2702 | (origin | |
2703 | (method git-fetch) | |
2704 | (uri (git-reference | |
2705 | (url "https://github.com/gxed/hashland.git") | |
2706 | (commit commit))) | |
2707 | (file-name (git-file-name name version)) | |
2708 | (sha256 | |
2709 | (base32 | |
2710 | "1q23y4lacsz46k9gmgfw4iwwydw36j2601rbidmmswl94grpc386")))) | |
2711 | (build-system go-build-system) | |
2712 | (arguments | |
2713 | '(#:unpack-path "github.com/gxed/hashland" | |
2714 | #:import-path "github.com/gxed/hashland/keccakpg")) | |
2715 | (home-page "https://github.com/gxed/hashland") | |
2716 | (synopsis "Implements the Keccak (SHA-3) hash algorithm in Go") | |
2717 | (description "Package @command{keccak} implements the Keccak (SHA-3) | |
2718 | hash algorithm. See http://keccak.noekeon.org.") | |
2719 | (license license:expat)))) | |
90f2a848 PN |
2720 | |
2721 | (define-public go-github-com-minio-blake2b-simd | |
2722 | (let ((commit "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4") | |
2723 | (revision "0")) | |
2724 | (package | |
2725 | (name "go-github-com-minio-blake2b-simd") | |
2726 | (version (git-version "0.0.0" revision commit)) | |
2727 | (source | |
2728 | (origin | |
2729 | (method git-fetch) | |
2730 | (uri (git-reference | |
2731 | (url "https://github.com/minio/blake2b-simd.git") | |
2732 | (commit commit))) | |
2733 | (file-name (git-file-name name version)) | |
2734 | (sha256 | |
2735 | (base32 | |
2736 | "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd")))) | |
2737 | (build-system go-build-system) | |
2738 | (arguments | |
2739 | '(#:import-path "github.com/minio/blake2b-simd")) | |
2740 | (home-page "https://github.com/minio/blake2b-simd") | |
2741 | (synopsis "Fast hashing in pure Go of BLAKE2b with SIMD instructions") | |
2742 | (description "This package was initially based on the pure go BLAKE2b | |
2743 | implementation of Dmitry Chestnykh and merged with the (cgo dependent) AVX | |
2744 | optimized BLAKE2 implementation (which in turn is based on the official | |
2745 | implementation. It does so by using Go's Assembler for amd64 architectures | |
2746 | with a golang only fallback for other architectures. | |
2747 | ||
2748 | In addition to AVX there is also support for AVX2 as well as SSE. Best | |
2749 | performance is obtained with AVX2 which gives roughly a 4X performance | |
2750 | increase approaching hashing speeds of 1GB/sec on a single core.") | |
2751 | (license license:asl2.0)))) | |
9a7f1575 PN |
2752 | |
2753 | (define-public go-github-com-spaolacci-murmur3 | |
2754 | (let ((commit "f09979ecbc725b9e6d41a297405f65e7e8804acc") | |
2755 | (revision "0")) | |
2756 | (package | |
2757 | (name "go-github-com-spaolacci-murmur3") | |
2758 | (version (git-version "1.1" revision commit)) | |
2759 | (source | |
2760 | (origin | |
2761 | (method git-fetch) | |
2762 | (uri (git-reference | |
2763 | (url "https://github.com/spaolacci/murmur3.git") | |
2764 | (commit commit))) | |
2765 | (file-name (git-file-name name version)) | |
2766 | (sha256 | |
2767 | (base32 | |
2768 | "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25")))) | |
2769 | (build-system go-build-system) | |
2770 | (arguments | |
2771 | '(#:import-path "github.com/spaolacci/murmur3")) | |
2772 | (home-page "https://github.com/spaolacci/murmur3") | |
2773 | (synopsis "Native MurmurHash3 Go implementation") | |
2774 | (description "Native Go implementation of Austin Appleby's third | |
2775 | MurmurHash revision (aka MurmurHash3). | |
2776 | ||
2777 | Reference algorithm has been slightly hacked as to support the streaming mode | |
2778 | required by Go's standard Hash interface.") | |
2779 | (license license:bsd-3)))) | |
2e42e587 PN |
2780 | |
2781 | (define-public go-github-com-multiformats-go-multihash | |
2782 | (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6") | |
2783 | (revision "0")) | |
2784 | (package | |
2785 | (name "go-github-com-multiformats-go-multihash") | |
2786 | (version (git-version "1.0.8" revision commit)) | |
2787 | (source | |
2788 | (origin | |
2789 | (method git-fetch) | |
2790 | (uri (git-reference | |
2791 | (url "https://github.com/multiformats/go-multihash.git") | |
2792 | (commit commit))) | |
2793 | (file-name (git-file-name name version)) | |
2794 | (sha256 | |
2795 | (base32 | |
2796 | "02wd9akrwy4y5m0nig9m24p14bjjgb4n1djydrq8cm4yhbvjrrk0")))) | |
2797 | (build-system go-build-system) | |
2798 | (arguments | |
2799 | '(#:import-path "github.com/multiformats/go-multihash")) | |
2800 | (native-inputs | |
2801 | `(("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58) | |
2802 | ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg) | |
2803 | ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd) | |
2804 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
2805 | ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) | |
9c359ff4 LF |
2806 | ("go-golang-org-x-crypto-blake2s" ,go-golang-org-x-crypto-blake2s) |
2807 | ("go-golang-org-x-crypto-sha3" ,go-golang-org-x-crypto-sha3))) | |
2e42e587 PN |
2808 | (home-page "https://github.com/multiformats/go-multihash") |
2809 | (synopsis "Multihash implementation in Go") | |
2810 | (description "Multihash implementation in Go.") | |
2811 | (license license:expat)))) | |
1db1e3c7 PN |
2812 | |
2813 | (define-public go-github-com-libp2p-go-libp2p-peer | |
2814 | (let ((commit "993d742bc29dcf4894b7730ba610fd78900be76c") | |
2815 | (revision "0")) | |
2816 | (package | |
2817 | (name "go-github-com-libp2p-go-libp2p-peer") | |
2818 | (version (git-version "2.3.8" revision commit)) | |
2819 | (source | |
2820 | (origin | |
2821 | (method git-fetch) | |
2822 | (uri (git-reference | |
2823 | (url "https://github.com/libp2p/go-libp2p-peer.git") | |
2824 | (commit commit))) | |
2825 | (file-name (git-file-name name version)) | |
2826 | (sha256 | |
2827 | (base32 | |
2828 | "1h96qjdi0i1wbr0jliap2903mycphas3ny0zdrm77yca9plcnphh")))) | |
2829 | (build-system go-build-system) | |
2830 | (arguments | |
2831 | '(#:import-path "github.com/libp2p/go-libp2p-peer")) | |
2832 | (native-inputs | |
2833 | `(("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto) | |
2834 | ("go-github-com-gogo-protobuf-proto" ,go-github-com-gogo-protobuf-proto) | |
2835 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
2836 | ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd) | |
2837 | ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec) | |
2838 | ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58) | |
2839 | ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash) | |
2840 | ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg) | |
2841 | ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) | |
9c359ff4 LF |
2842 | ("go-golang-org-x-crypto-blake2s" ,go-golang-org-x-crypto-blake2s) |
2843 | ("go-golang-org-x-crypto-ed25519" ,go-golang-org-x-crypto-ed25519) | |
2844 | ("go-golang-org-x-crypto-sha3" ,go-golang-org-x-crypto-sha3))) | |
1db1e3c7 PN |
2845 | (home-page "https://github.com/libp2p/go-libp2p-peer") |
2846 | (synopsis "PKI based identities for use in go-libp2p") | |
2847 | (description "PKI based identities for use in @command{go-libp2p}.") | |
2848 | (license license:expat)))) | |
43a5c177 PN |
2849 | |
2850 | (define-public go-github-com-libp2p-go-libp2p-protocol | |
2851 | (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b") | |
2852 | (revision "0")) | |
2853 | (package | |
2854 | (name "go-github-com-libp2p-go-libp2p-protocol") | |
2855 | (version (git-version "1.0.0" revision commit)) | |
2856 | (source | |
2857 | (origin | |
2858 | (method git-fetch) | |
2859 | (uri (git-reference | |
2860 | (url "https://github.com/libp2p/go-libp2p-protocol.git") | |
2861 | (commit commit))) | |
2862 | (file-name (git-file-name name version)) | |
2863 | (sha256 | |
2864 | (base32 | |
2865 | "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld")))) | |
2866 | (build-system go-build-system) | |
2867 | (arguments | |
2868 | '(#:import-path | |
2869 | "github.com/libp2p/go-libp2p-protocol")) | |
2870 | (home-page "https://github.com/libp2p/go-libp2p-protocol") | |
2871 | (synopsis "Type for protocol strings in Golang") | |
2872 | (description "Just a type for protocol strings. Nothing more.") | |
2873 | (license license:expat)))) | |
77d8a917 PN |
2874 | |
2875 | (define-public go-github-com-libp2p-go-libp2p-metrics | |
2876 | (let ((commit "a10ff6e75dae3c868023867e8caa534a04bdc624") | |
2877 | (revision "0")) | |
2878 | (package | |
2879 | (name "go-github-com-libp2p-go-libp2p-metrics") | |
2880 | (version (git-version "2.1.6" revision commit)) | |
2881 | (source | |
2882 | (origin | |
2883 | (method git-fetch) | |
2884 | (uri (git-reference | |
2885 | (url "https://github.com/libp2p/go-libp2p-metrics.git") | |
2886 | (commit commit))) | |
2887 | (file-name (git-file-name name version)) | |
2888 | (sha256 | |
2889 | (base32 | |
2890 | "05wy0cq4h6yg9bzgapcvm2criwriicbswx80ma82gyn4a9fdrk8m")))) | |
2891 | (build-system go-build-system) | |
2892 | (arguments | |
2893 | '(#:import-path "github.com/libp2p/go-libp2p-metrics")) | |
2894 | (native-inputs | |
2895 | `(("go-github-com-libp2p-go-flow-metrics" ,go-github-com-libp2p-go-flow-metrics) | |
2896 | ("go-github-com-libp2p-go-libp2p-peer" ,go-github-com-libp2p-go-libp2p-peer) | |
2897 | ("go-github-com-libp2p-go-libp2p-protocol" ,go-github-com-libp2p-go-libp2p-protocol) | |
2898 | ("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto) | |
2899 | ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58) | |
2900 | ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash) | |
2901 | ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec) | |
2902 | ("go-github-com-gogo-protobuf-proto" ,go-github-com-gogo-protobuf-proto) | |
2903 | ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg) | |
2904 | ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd) | |
2905 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
2906 | ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) | |
9c359ff4 LF |
2907 | ("go-golang-org-x-crypto-sha3" ,go-golang-org-x-crypto-sha3) |
2908 | ("go-golang-org-x-crypto-ed25519" ,go-golang-org-x-crypto-ed25519) | |
2909 | ("go-golang-org-x-crypto-blake2s" ,go-golang-org-x-crypto-blake2s))) | |
77d8a917 PN |
2910 | (home-page "https://github.com/libp2p/go-libp2p-metrics") |
2911 | (synopsis "Connection wrapper for go-libp2p that provides bandwidth metrics") | |
2912 | (description "A connection wrapper for @command{go-libp2p} that provides bandwidth | |
2913 | statistics for wrapped connections.") | |
2914 | (license license:expat)))) | |
8cb91281 PN |
2915 | |
2916 | (define-public go-github-com-mitchellh-go-homedir | |
2917 | (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4") | |
2918 | (revision "0")) | |
2919 | (package | |
2920 | (name "go-github-com-mitchellh-go-homedir") | |
2921 | (version (git-version "1.0.0" revision commit)) | |
2922 | (source | |
2923 | (origin | |
2924 | (method git-fetch) | |
2925 | (uri (git-reference | |
2926 | (url "https://github.com/mitchellh/go-homedir.git") | |
2927 | (commit commit))) | |
2928 | (file-name (git-file-name name version)) | |
2929 | (sha256 | |
2930 | (base32 | |
2931 | "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq")))) | |
2932 | (build-system go-build-system) | |
2933 | (arguments | |
2934 | (quote (#:import-path "github.com/mitchellh/go-homedir" | |
2935 | ;; TODO: Tests fail because it tries to access home. | |
2936 | #:tests? #f))) | |
2937 | (home-page "https://github.com/mitchellh/go-homedir") | |
2938 | (synopsis "Go library for detecting and expanding the user's home directory without cgo") | |
2939 | (description "This is a Go library for detecting the user's home | |
2940 | directory without the use of @command{cgo}, so the library can be used in | |
2941 | cross-compilation environments. | |
2942 | ||
2943 | Usage is simple, just call homedir.Dir() to get the home directory for a user, | |
2944 | and homedir.Expand() to expand the @command{~} in a path to the home | |
2945 | directory. | |
2946 | ||
2947 | Why not just use @command{os/user}? The built-in @command{os/user} package | |
2948 | requires cgo on Darwin systems. This means that any Go code that uses that | |
2949 | package cannot cross compile. But 99% of the time the use for | |
2950 | @command{os/user} is just to retrieve the home directory, which we can do for | |
2951 | the current user without cgo. This library does that, enabling | |
2952 | cross-compilation.") | |
2953 | (license license:expat)))) | |
e53121b3 PN |
2954 | |
2955 | (define-public go-github-com-multiformats-go-multiaddr | |
2956 | (let ((commit "fe1c46f8be5af4aff4db286e08839295bd922efb") | |
2957 | (revision "0")) | |
2958 | (package | |
2959 | (name "go-github-com-multiformats-go-multiaddr") | |
2960 | (version (git-version "1.3.0" revision commit)) | |
2961 | (source | |
2962 | (origin | |
2963 | (method git-fetch) | |
2964 | (uri (git-reference | |
2965 | (url "https://github.com/multiformats/go-multiaddr.git") | |
2966 | (commit commit))) | |
2967 | (file-name (git-file-name name version)) | |
2968 | (sha256 | |
2969 | (base32 | |
2970 | "0p5f8h098a4yjjmzsgqs7vhx1iqifb8izwg3559cr4h7clkpzznh")))) | |
2971 | (build-system go-build-system) | |
2972 | (arguments | |
2973 | '(#:import-path | |
2974 | "github.com/multiformats/go-multiaddr")) | |
2975 | (native-inputs | |
2976 | `(("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash) | |
2977 | ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg) | |
2978 | ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd) | |
2979 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
2980 | ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58) | |
2981 | ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) | |
9c359ff4 LF |
2982 | ("go-golang-org-x-crypto-sha3" ,go-golang-org-x-crypto-sha3) |
2983 | ("go-golang-org-x-crypto-blake2s" ,go-golang-org-x-crypto-blake2s))) | |
e53121b3 PN |
2984 | (home-page "https://github.com/multiformats/go-multiaddr") |
2985 | (synopsis "Composable and future-proof network addresses") | |
2986 | (description "Multiaddr is a standard way to represent addresses that | |
2987 | does the following: | |
2988 | ||
2989 | @itemize | |
2990 | @item Support any standard network protocols. | |
2991 | @item Self-describe (include protocols). | |
2992 | @item Have a binary packed format. | |
2993 | @item Have a nice string representation. | |
2994 | @item Encapsulate well. | |
2995 | @end itemize\n") | |
2996 | (license license:expat)))) | |
66fb6e29 PN |
2997 | |
2998 | (define-public go-github-com-multiformats-go-multiaddr-net | |
2999 | (let ((commit "1cb9a0e8a6de3c8a10f6cee60d01d793603c4f7e") | |
3000 | (revision "0")) | |
3001 | (package | |
3002 | (name "go-github-com-multiformats-go-multiaddr-net") | |
3003 | (version (git-version "1.6.3" revision commit)) | |
3004 | (source | |
3005 | (origin | |
3006 | (method git-fetch) | |
3007 | (uri (git-reference | |
3008 | (url "https://github.com/multiformats/go-multiaddr-net.git") | |
3009 | (commit commit))) | |
3010 | (file-name (git-file-name name version)) | |
3011 | (sha256 | |
3012 | (base32 | |
3013 | "1ypgi47xdz3bh8lh7f8cmk7w3ql9g4izx5l3kzdg9gda1xn5zxq3")))) | |
3014 | (build-system go-build-system) | |
3015 | (arguments | |
3016 | (quote (#:import-path "github.com/multiformats/go-multiaddr-net" | |
3017 | ;; TODO: Tests fail because they try to access the network. | |
3018 | #:tests? #f))) | |
3019 | (native-inputs | |
3020 | `(("go-github-com-multiformats-go-multiaddr" ,go-github-com-multiformats-go-multiaddr) | |
3021 | ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash) | |
3022 | ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg) | |
3023 | ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd) | |
3024 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
3025 | ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58) | |
3026 | ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) | |
9c359ff4 LF |
3027 | ("go-golang-org-x-crypto-sha3" ,go-golang-org-x-crypto-sha3) |
3028 | ("go-golang-org-x-crypto-blake2s" ,go-golang-org-x-crypto-blake2s))) | |
66fb6e29 PN |
3029 | (home-page "https://github.com/multiformats/go-multiaddr-net") |
3030 | (synopsis "Multiaddress net tools") | |
3031 | (description "This package provides Multiaddr specific versions of | |
3032 | common functions in stdlib's @command{net} package. This means wrappers of | |
3033 | standard net symbols like @command{net.Dial} and @command{net.Listen}, as well | |
3034 | as conversion to and from @command{net.Addr}.") | |
3035 | (license license:expat)))) | |
38d346dc PN |
3036 | |
3037 | (define-public go-github-com-whyrusleeping-tar-utils | |
3038 | (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc") | |
3039 | (revision "0")) | |
3040 | (package | |
3041 | (name "go-github-com-whyrusleeping-tar-utils") | |
3042 | (version (git-version "0.0.0" revision commit)) | |
3043 | (source | |
3044 | (origin | |
3045 | (method git-fetch) | |
3046 | (uri (git-reference | |
3047 | (url "https://github.com/whyrusleeping/tar-utils.git") | |
3048 | (commit commit))) | |
3049 | (file-name (git-file-name name version)) | |
3050 | (sha256 | |
3051 | (base32 | |
3052 | "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s")))) | |
3053 | (build-system go-build-system) | |
3054 | (arguments | |
3055 | '(#:import-path | |
3056 | "github.com/whyrusleeping/tar-utils")) | |
3057 | (home-page "https://github.com/whyrusleeping/tar-utils") | |
3058 | (synopsis "Tar utilities extracted from go-ipfs codebase") | |
3059 | (description "Tar utilities extracted from @command{go-ipfs} codebase.") | |
3060 | (license license:expat)))) | |
ad8d4637 PN |
3061 | |
3062 | (define-public go-github-com-cheekybits-is | |
3063 | (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9") | |
3064 | (revision "0")) | |
3065 | (package | |
3066 | (name "go-github-com-cheekybits-is") | |
3067 | (version (git-version "0.0.0" revision commit)) | |
3068 | (source | |
3069 | (origin | |
3070 | (method git-fetch) | |
3071 | (uri (git-reference | |
3072 | (url "https://github.com/cheekybits/is.git") | |
3073 | (commit commit))) | |
3074 | (file-name (git-file-name name version)) | |
3075 | (sha256 | |
3076 | (base32 | |
3077 | "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d")))) | |
3078 | (build-system go-build-system) | |
3079 | (arguments | |
3080 | '(#:import-path "github.com/cheekybits/is")) | |
3081 | (home-page "https://github.com/cheekybits/is") | |
3082 | (synopsis "Mini testing helper for Go") | |
3083 | (description "A mini testing helper for Go. | |
3084 | ||
3085 | @itemize | |
3086 | @item It has a simple interface (@command{is.OK} and @command{is.Equal}). | |
3087 | @item It plugs into existing Go toolchain (uses @command{testing.T}). | |
3088 | @item It's obvious for newcomers. | |
3089 | @item It also gives you @command{is.Panic} and @command{is.PanicWith} helpers | |
3090 | - because testing panics is ugly. | |
3091 | @end itemize\n") | |
3092 | (license license:expat)))) | |
20f48e4b PN |
3093 | |
3094 | (define-public go-github-com-sabhiram-go-gitignore | |
3095 | (let ((commit "d3107576ba9425fc1c85f4b3569c4631b805a02e") | |
3096 | (revision "0")) | |
3097 | (package | |
3098 | (name "go-github-com-sabhiram-go-gitignore") | |
3099 | (version (git-version "1.0.2" revision commit)) | |
3100 | (source | |
3101 | (origin | |
3102 | (method git-fetch) | |
3103 | (uri (git-reference | |
3104 | (url "https://github.com/sabhiram/go-gitignore.git") | |
3105 | (commit commit))) | |
3106 | (file-name (git-file-name name version)) | |
3107 | (sha256 | |
3108 | (base32 | |
3109 | "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l")))) | |
3110 | (build-system go-build-system) | |
3111 | (arguments | |
3112 | '(#:import-path | |
3113 | "github.com/sabhiram/go-gitignore")) | |
3114 | (native-inputs | |
3115 | `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify))) | |
3116 | (home-page "https://github.com/sabhiram/go-gitignore") | |
3117 | (synopsis "Gitignore parser for Go") | |
3118 | (description "A @command{.gitignore} parser for Go.") | |
3119 | (license license:expat)))) | |
b5bb0b50 PN |
3120 | |
3121 | (define-public go-github-com-urfave-cli | |
a8ad05d4 LF |
3122 | (package |
3123 | (name "go-github-com-urfave-cli") | |
3124 | (version "1.21.0") | |
3125 | (source | |
3126 | (origin | |
3127 | (method git-fetch) | |
3128 | (uri (git-reference | |
3129 | (url "https://github.com/urfave/cli.git") | |
3130 | (commit (string-append "v" version)))) | |
3131 | (file-name (git-file-name name version)) | |
3132 | (sha256 | |
3133 | (base32 | |
3134 | "104jldhxn6d97l5vsbsl0q8hgy1bxrahbr6dbfqrlppva51jmydd")))) | |
3135 | (build-system go-build-system) | |
3136 | (arguments | |
3137 | '(#:import-path "github.com/urfave/cli")) | |
3138 | (home-page "https://github.com/urfave/cli") | |
3139 | (synopsis "Simple, fast, and fun package for building command line apps in Go") | |
3140 | (description "@command{cli} is a simple, fast, and fun package for | |
b5bb0b50 PN |
3141 | building command line apps in Go. The goal is to enable developers to write |
3142 | fast and distributable command line applications in an expressive way.") | |
a8ad05d4 | 3143 | (license license:expat))) |
7bd9020e PN |
3144 | |
3145 | (define-public go-github-com-whyrusleeping-json-filter | |
3146 | (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b") | |
3147 | (revision "0")) | |
3148 | (package | |
3149 | (name "go-github-com-whyrusleeping-json-filter") | |
3150 | (version (git-version "0.0.0" revision commit)) | |
3151 | (source | |
3152 | (origin | |
3153 | (method git-fetch) | |
3154 | (uri (git-reference | |
3155 | (url "https://github.com/whyrusleeping/json-filter.git") | |
3156 | (commit commit))) | |
3157 | (file-name (git-file-name name version)) | |
3158 | (sha256 | |
3159 | (base32 | |
3160 | "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7")))) | |
3161 | (build-system go-build-system) | |
3162 | (arguments | |
3163 | '(#:import-path | |
3164 | "github.com/whyrusleeping/json-filter")) | |
3165 | (home-page "https://github.com/whyrusleeping/json-filter") | |
3166 | (synopsis "Library to query JSON objects marshalled into map[string]interface") | |
3167 | (description "A library to query JSON objects marshalled into | |
3168 | @command{map[string]interface{}}.") | |
3169 | (license license:expat)))) | |
38566e97 PN |
3170 | |
3171 | (define-public go-github-com-whyrusleeping-progmeter | |
3172 | (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04") | |
3173 | (revision "0")) | |
3174 | (package | |
3175 | (name "go-github-com-whyrusleeping-progmeter") | |
3176 | (version (git-version "0.0.0" revision commit)) | |
3177 | (source | |
3178 | (origin | |
3179 | (method git-fetch) | |
3180 | (uri (git-reference | |
3181 | (url "https://github.com/whyrusleeping/progmeter.git") | |
3182 | (commit commit))) | |
3183 | (file-name (git-file-name name version)) | |
3184 | (sha256 | |
3185 | (base32 | |
3186 | "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb")))) | |
3187 | (build-system go-build-system) | |
3188 | (arguments | |
3189 | '(#:import-path | |
3190 | "github.com/whyrusleeping/progmeter")) | |
3191 | (home-page "https://github.com/whyrusleeping/progmeter") | |
3192 | (synopsis "Progress meter for Go") | |
3193 | (description "Progress meter for Go.") | |
3194 | (license license:expat)))) | |
56eb7bd3 PN |
3195 | |
3196 | (define-public go-github-com-whyrusleeping-stump | |
3197 | (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5") | |
3198 | (revision "0")) | |
3199 | (package | |
3200 | (name "go-github-com-whyrusleeping-stump") | |
3201 | (version (git-version "0.0.0" revision commit)) | |
3202 | (source | |
3203 | (origin | |
3204 | (method git-fetch) | |
3205 | (uri (git-reference | |
3206 | (url "https://github.com/whyrusleeping/stump.git") | |
3207 | (commit commit))) | |
3208 | (file-name (git-file-name name version)) | |
3209 | (sha256 | |
3210 | (base32 | |
3211 | "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n")))) | |
3212 | (build-system go-build-system) | |
3213 | (arguments | |
3214 | '(#:import-path "github.com/whyrusleeping/stump")) | |
3215 | (home-page "https://github.com/whyrusleeping/stump") | |
3216 | (synopsis "Very basic logging package for Go") | |
3217 | (description "A simple log library, for when you don't really care to | |
3218 | have super fancy logs.") | |
3219 | (license license:expat)))) | |
5b6c3ad0 PN |
3220 | |
3221 | (define-public go-github-com-kr-fs | |
3222 | (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba") | |
3223 | (revision "0")) | |
3224 | (package | |
3225 | (name "go-github-com-kr-fs") | |
3226 | (version (git-version "0.1.0" revision commit)) | |
3227 | (source | |
3228 | (origin | |
3229 | (method git-fetch) | |
3230 | (uri (git-reference | |
3231 | (url "https://github.com/kr/fs.git") | |
3232 | (commit commit))) | |
3233 | (file-name (git-file-name name version)) | |
3234 | (sha256 | |
3235 | (base32 | |
3236 | "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q")))) | |
3237 | (build-system go-build-system) | |
3238 | (arguments | |
3239 | '(#:import-path "github.com/kr/fs")) | |
3240 | (home-page "https://github.com/kr/fs") | |
52beae7b TGR |
3241 | (synopsis "File-system-related functions for Go") |
3242 | (description | |
3243 | "The fs package provides file-system-related Go functions.") | |
5b6c3ad0 | 3244 | (license license:bsd-3)))) |
bc58bb9b LF |
3245 | |
3246 | (define-public go-github-com-direnv-go-dotenv | |
3247 | (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed") | |
3248 | (revision "0")) | |
3249 | (package | |
3250 | (name "go-github-com-direnv-go-dotenv") | |
3251 | (version (git-version "0.0.0" revision commit)) | |
3252 | (source | |
3253 | (origin | |
3254 | (method git-fetch) | |
3255 | (uri (git-reference | |
3256 | (url "https://github.com/direnv/go-dotenv") | |
3257 | (commit commit))) | |
3258 | (file-name (git-file-name name version)) | |
3259 | (sha256 | |
3260 | (base32 | |
3261 | "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6")))) | |
3262 | (build-system go-build-system) | |
3263 | (arguments | |
3264 | '(#:import-path "github.com/direnv/go-dotenv")) | |
3265 | (home-page "https://github.com/direnv/go-dotenv") | |
3266 | (synopsis "Go dotenv parsing library") | |
3267 | (description "This package provides a library for parsing the dotenv | |
3268 | format in Go.") | |
3269 | (license license:expat)))) | |
56f610f5 | 3270 | |
aa413ff8 LF |
3271 | (define-public go-github-com-kr-pretty |
3272 | (package | |
3273 | (name "go-github-com-kr-pretty") | |
3274 | (version "0.1.0") | |
3275 | (source (origin | |
3276 | (method git-fetch) | |
3277 | (uri (git-reference | |
3278 | (url "https://github.com/kr/pretty.git") | |
3279 | (commit (string-append "v" version)))) | |
3280 | (file-name (git-file-name name version)) | |
3281 | (sha256 | |
3282 | (base32 | |
3283 | "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp")))) | |
3284 | (build-system go-build-system) | |
3285 | (propagated-inputs | |
3286 | `(("go-github-com-kr-text" ,go-github-com-kr-text))) | |
3287 | (arguments | |
3288 | '(#:import-path "github.com/kr/pretty")) | |
3289 | (synopsis "A pretty printer for Go values") | |
3290 | (description "This package provides a pretty printer for Go values.") | |
3291 | (home-page "https://github.com/kr/pretty") | |
3292 | (license license:expat))) | |
3293 | ||
56f610f5 LF |
3294 | (define-public go-github-com-kr-text |
3295 | (package | |
3296 | (name "go-github-com-kr-text") | |
3297 | (version "0.1.0") | |
3298 | (source (origin | |
3299 | (method git-fetch) | |
3300 | (uri (git-reference | |
3301 | (url "https://github.com/kr/text.git") | |
3302 | (commit (string-append "v" version)))) | |
3303 | (file-name (git-file-name name version)) | |
3304 | (sha256 | |
3305 | (base32 | |
3306 | "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1")))) | |
3307 | (build-system go-build-system) | |
3308 | (arguments | |
3309 | '(#:import-path "github.com/kr/text")) | |
3310 | (synopsis "Text formatting in Go") | |
3311 | (description "This package provides a text formatting functions in Go.") | |
3312 | (home-page "https://github.com/kr/text") | |
3313 | (license license:expat))) | |
4ddf067f | 3314 | |
be42a38a BL |
3315 | (define-public go-golang-org-sql-mock |
3316 | (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b") | |
3317 | (version "1.3.3") | |
3318 | (revision "1")) | |
3319 | (package | |
3320 | (name "go-golang-org-sql-mock") | |
3321 | (version (git-version version revision commit)) | |
3322 | (source (origin | |
3323 | (method git-fetch) | |
3324 | (uri (git-reference | |
3325 | (url "https://github.com/DATA-DOG/go-sqlmock") | |
3326 | (commit commit))) | |
3327 | (file-name (git-file-name name version)) | |
3328 | (sha256 | |
3329 | (base32 | |
3330 | "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs")))) | |
3331 | (build-system go-build-system) | |
3332 | (arguments | |
3333 | '(#:import-path "github.com/DATA-DOG/go-sqlmock")) | |
3334 | (synopsis "Mock library implementing @code{sql/driver}") | |
3335 | (description "This library simulates SQL-driver behavior in tests | |
3336 | without requiring a real database connection.") | |
3337 | (home-page "https://github.com/DATA-DOG/go-sqlmock") | |
3338 | (license license:expat)))) | |
3339 | ||
a881a087 BL |
3340 | (define-public go-golang-org-colorful |
3341 | (package | |
3342 | (name "go-golang-org-colorful") | |
3343 | (version "1.0.2") | |
3344 | (source (origin | |
3345 | (method git-fetch) | |
3346 | (uri (git-reference | |
3347 | (url "https://github.com/lucasb-eyer/go-colorful") | |
3348 | (commit (string-append "v" version)))) | |
3349 | (file-name (git-file-name name version)) | |
3350 | (sha256 | |
3351 | (base32 | |
3352 | "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2")))) | |
3353 | (build-system go-build-system) | |
3354 | (arguments | |
3355 | '(#:import-path "github.com/lucasb-eyer/go-colorful")) | |
3356 | (native-inputs | |
3357 | `(("go-golang-org-sql-mock" ,go-golang-org-sql-mock))) | |
3358 | (synopsis "Convert between colorspaces and generate colors") | |
3359 | (description "This package implements Go's @code{color.Color} interface | |
3360 | and provides a means of converting colors stored as RGB to various | |
3361 | colorspaces.") | |
3362 | (home-page "https://github.com/lucasb-eyer/go-colorful") | |
3363 | (license license:expat))) | |
3364 | ||
42a0cfee BL |
3365 | (define-public go-github-com-gdamore-encoding |
3366 | (package | |
3367 | (name "go-github-com-gdamore-encoding") | |
3368 | (version "1.0.0") | |
3369 | (source | |
3370 | (origin | |
3371 | (method git-fetch) | |
3372 | (uri (git-reference | |
3373 | (url "https://github.com/gdamore/encoding") | |
3374 | (commit (string-append "v" version)))) | |
3375 | (file-name (git-file-name name version)) | |
3376 | (sha256 | |
3377 | (base32 | |
3378 | "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9")))) | |
3379 | (build-system go-build-system) | |
3380 | (arguments | |
3381 | '(#:import-path "github.com/gdamore/encoding")) | |
3382 | (inputs | |
3383 | `(("go-golang-org-x-text-encoding" ,go-golang-org-x-text-encoding) | |
3384 | ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform))) | |
3385 | (home-page "https://github.com/gdamore/encoding") | |
3386 | (synopsis "Provide encodings missing from Go") | |
3387 | (description "This package provides useful encodings not included in the | |
3388 | standard @code{Text} package, including some for dealing with I/O streams from | |
3389 | non-UTF-friendly sources.") | |
3390 | (license license:expat))) | |
3391 | ||
a6689b99 BL |
3392 | (define-public go-github-com-gdamore-tcell |
3393 | (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e") | |
3394 | (version "1.1.2") | |
3395 | (revision "1")) | |
3396 | (package | |
3397 | (name "go-github-com-gdamore-tcell") | |
3398 | (version (git-version version revision commit)) | |
3399 | (source | |
3400 | (origin | |
3401 | (method git-fetch) | |
3402 | (uri (git-reference | |
3403 | (url "https://github.com/gdamore/tcell") | |
3404 | (commit commit))) | |
3405 | (file-name (git-file-name name version)) | |
3406 | (sha256 | |
3407 | (base32 | |
3408 | "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d")))) | |
3409 | (build-system go-build-system) | |
3410 | (arguments | |
3411 | `(#:import-path "github.com/gdamore/tcell" | |
3412 | #:phases | |
3413 | (modify-phases %standard-phases | |
3414 | (add-before 'reset-gzip-timestamps 'make-files-writable | |
3415 | (lambda* (#:key outputs #:allow-other-keys) | |
3416 | ;; Make sure .gz files are writable so that the | |
3417 | ;; 'reset-gzip-timestamps' phase can do its work. | |
3418 | (let ((out (assoc-ref outputs "out"))) | |
3419 | (for-each make-file-writable | |
3420 | (find-files out "\\.gz$")) | |
3421 | #t)))))) | |
3422 | (inputs | |
3423 | `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth) | |
3424 | ("go-golang-org-colorful" ,go-golang-org-colorful) | |
3425 | ("go-golang-org-x-text-encoding" ,go-golang-org-x-text-encoding) | |
3426 | ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform) | |
3427 | ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding))) | |
3428 | (home-page "https://github.com/gdamore/tcell") | |
3429 | (synopsis "Provide a cell-based view for text terminals") | |
3430 | (description "This package includes a full parser and expander for | |
3431 | terminfo capability strings to avoid hard-coding escape strings for | |
3432 | formatting. It also favors portability, and includes support for all POSIX | |
3433 | systems.") | |
3434 | (license license:expat)))) | |
3435 | ||
f8157350 BL |
3436 | (define-public go-github-com-mattn-go-shellwords |
3437 | (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2") | |
3438 | (version "1.0.5") | |
3439 | (revision "1")) | |
3440 | (package | |
3441 | (name "go-github-com-mattn-go-shellwords") | |
3442 | (version (git-version version revision commit)) | |
3443 | (source | |
3444 | (origin | |
3445 | (method git-fetch) | |
3446 | (uri (git-reference | |
3447 | (url "https://github.com/mattn/go-shellwords") | |
3448 | (commit commit))) | |
3449 | (file-name (git-file-name name version)) | |
3450 | (sha256 | |
3451 | (base32 | |
3452 | "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d")))) | |
3453 | (build-system go-build-system) | |
3454 | (arguments | |
3455 | `(#:import-path "github.com/mattn/go-shellwords" | |
3456 | ;; TODO: can't make homeless-shelter: | |
3457 | ;; go: disabling cache (/homeless-shelter/.cache/go-build) due to | |
3458 | ;; initialization failure: mkdir /homeless-shelter: permission denied | |
3459 | ||
3460 | ;; This doesn't seem to work: | |
3461 | ||
3462 | ;; #:phases | |
3463 | ;; (modify-phases %standard-phases | |
3464 | ;; (replace 'check | |
3465 | ;; (lambda* (#:key import-path #:allow-other-keys) | |
3466 | ;; (setenv "HOME" "/tmp") | |
3467 | ;; (invoke "go" "test" import-path)))) | |
3468 | ||
3469 | ;; TODO: There are also a couple of tests that have stymied Debian in | |
3470 | ;; the past. They seem to work when run locally. | |
3471 | ||
3472 | #:tests? #f | |
3473 | )) | |
3474 | (home-page "https://github.com/mattn/go-shellwords") | |
3475 | (synopsis "Parse lines into shell words") | |
3476 | (description "This package parses text into shell arguments. Based on | |
3477 | the @code{cpan} module @code{Parse::CommandLine}.") | |
3478 | (license license:expat)))) | |
3479 | ||
4ddf067f GB |
3480 | (define-public go-github-com-burntsushi-locker |
3481 | (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a") | |
3482 | (revision "0")) | |
3483 | (package | |
3484 | (name "go-github-com-burntsushi-locker") | |
3485 | (version (git-version "0.0.0" revision commit)) | |
3486 | (source | |
3487 | (origin | |
3488 | (method git-fetch) | |
3489 | (uri (git-reference | |
3490 | (url "https://github.com/BurntSushi/locker") | |
3491 | (commit commit))) | |
3492 | (file-name (git-file-name name version)) | |
3493 | (sha256 | |
3494 | (base32 | |
3495 | "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg")))) | |
3496 | (build-system go-build-system) | |
3497 | (arguments | |
3498 | '(#:import-path "github.com/BurntSushi/locker")) | |
3499 | (home-page "https://github.com/BurntSushi/locker") | |
3500 | (synopsis "Manage named ReadWrite mutexes in Go") | |
3501 | (description "Golang package for conveniently using named read/write | |
3502 | locks. These appear to be especially useful for synchronizing access to | |
3503 | session based information in web applications. | |
3504 | ||
3505 | The common use case is to use the package level functions, which use a package | |
3506 | level set of locks (safe to use from multiple goroutines | |
3507 | simultaneously). However, you may also create a new separate set of locks | |
3508 | test. | |
3509 | ||
3510 | All locks are implemented with read-write mutexes. To use them like a regular | |
3511 | mutex, simply ignore the RLock/RUnlock functions.") | |
3512 | (license license:unlicense)))) | |
a3b1dc49 LF |
3513 | |
3514 | (define-public go-github-com-marten-seemann-qtls | |
3515 | (package | |
3516 | (name "go-github-com-marten-seemann-qtls") | |
3517 | (version "0.2.3") | |
3518 | (source (origin | |
3519 | (method git-fetch) | |
3520 | (uri (git-reference | |
3521 | (url "https://github.com/marten-seemann/qtls") | |
3522 | (commit (string-append "v" version)))) | |
3523 | (file-name (git-file-name name version)) | |
3524 | (sha256 | |
3525 | (base32 | |
3526 | "0b9p7bwkm9hfg1mb565q4nw5k7xyks0z2xagz5fp95azy2psbnfg")))) | |
3527 | (build-system go-build-system) | |
3528 | (arguments | |
3529 | '(#:import-path "github.com/marten-seemann/qtls" | |
3530 | ;; The test suite requires networking. | |
3531 | #:tests? #f)) | |
3532 | (propagated-inputs | |
3533 | `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto))) | |
3534 | (synopsis "TLS 1.3 with QUIC in Go") | |
3535 | (description "This package provides @code{qtls}, a QUIC-capable variant of | |
3536 | the Go standard library's TLS 1.3 implementation.") | |
3537 | (home-page "https://github.com/marten-seemann/qtls") | |
3538 | (license license:bsd-3))) | |
8201afdf LF |
3539 | |
3540 | (define-public go-github-com-cheekybits-genny | |
3541 | (package | |
3542 | (name "go-github-com-cheekybits-genny") | |
3543 | (version "1.0.0") | |
3544 | (source (origin | |
3545 | (method git-fetch) | |
3546 | (uri (git-reference | |
3547 | (url "https://github.com/cheekybits/genny") | |
3548 | (commit (string-append "v" version)))) | |
3549 | (file-name (git-file-name name version)) | |
3550 | (sha256 | |
3551 | (base32 | |
3552 | "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87")))) | |
3553 | (build-system go-build-system) | |
3554 | (arguments | |
3555 | '(#:import-path "github.com/cheekybits/genny")) | |
3556 | (propagated-inputs | |
3557 | `(("go-golang-org-x-tools" ,go-golang-org-x-tools))) | |
3558 | (synopsis "Generics for Go") | |
3559 | (description "This package provides @code{genny}, a Go language | |
3560 | implementation of generics.") | |
3561 | (home-page "https://github.com/cheekybits/genny/") | |
3562 | (license license:expat))) | |
6d766bec LF |
3563 | |
3564 | (define-public go-github-com-lucas-clemente-quic-go | |
3565 | (package | |
3566 | (name "go-github-com-lucas-clemente-quic-go") | |
3567 | (version "0.11.2") | |
3568 | (source (origin | |
3569 | (method git-fetch) | |
3570 | (uri (git-reference | |
3571 | (url "https://github.com/lucas-clemente/quic-go") | |
3572 | (commit (string-append "v" version)))) | |
3573 | (file-name (git-file-name name version)) | |
3574 | (sha256 | |
3575 | (base32 | |
3576 | "0gqm5mc8alg84ra7yxach34il1jvcij8f76qdqcahnd3d2nhjbia")))) | |
3577 | (build-system go-build-system) | |
3578 | (arguments | |
3579 | '(#:import-path "github.com/lucas-clemente/quic-go" | |
3580 | ;; XXX More packages required... | |
3581 | #:tests? #f)) | |
3582 | (propagated-inputs | |
3583 | `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto) | |
3584 | ("go-github-com-cheekybits-genny" ,go-github-com-cheekybits-genny) | |
3585 | ("go-github-com-marten-seemann-qtls" ,go-github-com-marten-seemann-qtls))) | |
3586 | (synopsis "QUIC in Go") | |
3587 | (description "This package provides a Go language implementation of the QUIC | |
3588 | network protocol.") | |
3589 | (home-page "https://github.com/lucas-clemente/quic-go") | |
3590 | (license license:expat))) | |
2da5275f LF |
3591 | |
3592 | (define-public go-github-com-pkg-errors | |
8c6be10a LF |
3593 | (let ((commit "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7") |
3594 | (revision "0")) | |
3595 | (package | |
3596 | (name "go-github-com-pkg-errors") | |
3597 | (version (git-version "0.8.1" revision commit)) | |
3598 | (source (origin | |
3599 | (method git-fetch) | |
3600 | (uri (git-reference | |
3601 | (url "https://github.com/pkg/errors.git") | |
3602 | (commit commit))) | |
3603 | (file-name (git-file-name name version)) | |
3604 | (sha256 | |
3605 | (base32 | |
3606 | "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y")))) | |
3607 | (build-system go-build-system) | |
3608 | (arguments | |
3609 | `(#:import-path "github.com/pkg/errors")) | |
3610 | (synopsis "Go error handling primitives") | |
3611 | (description "This package provides @code{error}, which offers simple | |
2da5275f | 3612 | error handling primitives in Go.") |
8c6be10a LF |
3613 | (home-page "https://github.com/pkg/errors") |
3614 | (license license:bsd-2)))) | |
d0ced446 LF |
3615 | |
3616 | (define-public go-github-com-maruel-panicparse | |
3617 | (package | |
3618 | (name "go-github-com-maruel-panicparse") | |
e7189e0b | 3619 | (version "1.3.0") |
d0ced446 LF |
3620 | (source (origin |
3621 | (method git-fetch) | |
3622 | (uri (git-reference | |
3623 | (url "https://github.com/maruel/panicparse") | |
3624 | (commit (string-append "v" version)))) | |
3625 | (file-name (git-file-name name version)) | |
3626 | (sha256 | |
3627 | (base32 | |
e7189e0b | 3628 | "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq")))) |
d0ced446 LF |
3629 | (build-system go-build-system) |
3630 | (arguments | |
3631 | '(#:import-path "github.com/maruel/panicparse")) | |
3632 | (synopsis "Toolkit for parsing Go stack traces") | |
3633 | (description "This package provides a toolkit for parsing Go language panic | |
3634 | stack traces. It simplifies the traces to make salient information more visible | |
3635 | and aid debugging.") | |
3636 | (home-page "https://github.com/maruel/panicparse") | |
3637 | (license license:asl2.0))) | |
e30bdd49 AI |
3638 | |
3639 | (define-public go-github-com-robfig-cron | |
3640 | (package | |
3641 | (name "go-github-com-robfig-cron") | |
3642 | (version "3.0.0") | |
3643 | (source | |
3644 | (origin | |
3645 | (method git-fetch) | |
3646 | (uri (git-reference | |
3647 | (url "https://github.com/robfig/cron") | |
3648 | (commit (string-append "v" version)))) | |
3649 | (file-name (git-file-name name version)) | |
3650 | (sha256 | |
3651 | (base32 | |
3652 | "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z")))) | |
3653 | (build-system go-build-system) | |
3654 | (arguments | |
3655 | `(#:import-path "github.com/robfig/cron")) | |
3656 | (home-page "https://godoc.org/github.com/robfig/cron") | |
3657 | (synopsis "Cron library for Go") | |
3658 | (description "This package provides a cron library for Go. It implements | |
3659 | a cron spec parser and job runner.") | |
3660 | (license license:expat))) | |
9a2f2334 LF |
3661 | |
3662 | (define-public go-github-com-shirou-gopsutil | |
3663 | (let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399") | |
3664 | (revision "0")) | |
3665 | (package | |
3666 | (name "go-github-com-shirou-gopsutil") | |
3667 | (version (git-version "v2.19.7" revision commit)) | |
3668 | (source (origin | |
3669 | (method git-fetch) | |
3670 | (uri (git-reference | |
3671 | (url "https://github.com/shirou/gopsutil") | |
3672 | (commit commit))) ; XXX | |
3673 | (sha256 | |
3674 | (base32 | |
3675 | "0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws")))) | |
3676 | (build-system go-build-system) | |
3677 | (arguments | |
3678 | '(#:import-path "github.com/shirou/gopsutil")) | |
3679 | (synopsis "Process and system monitoring in Go") | |
3680 | (description "This package provides a library for retrieving information | |
3681 | on running processes and system utilization (CPU, memory, disks, network, | |
3682 | sensors).") | |
3683 | (home-page "https://github.com/shirou/gopsutil") | |
3684 | (license license:bsd-3)))) |