Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / golang.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
3 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
4 ;;; Copyright © 2016 Andy Wingo <wingo@igalia.com>
5 ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
6 ;;; Copyright © 2016, 2017 Petter <petter@mykolab.ch>
7 ;;; Copyright © 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2017 Sergei Trofimovich <slyfox@inbox.ru>
9 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
10 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
12 ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
13 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
14 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
15 ;;; Copyright @ 2018, 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
16 ;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
17 ;;; Copyright @ 2019 Alex Griffin <a@ajgrf.com>
18 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
19 ;;;
20 ;;; This file is part of GNU Guix.
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)
39 #:use-module (guix git-download)
40 #:use-module (guix packages)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system trivial)
43 #:use-module (guix build-system go)
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)
50 #:use-module (gnu packages lua)
51 #:use-module (gnu packages mp3)
52 #:use-module (gnu packages textutils)
53 #:use-module (gnu packages tls)
54 #:use-module (ice-9 match)
55 #:use-module (srfi srfi-1))
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")
68 ;; The C-language bootstrap of Go:
69 ;; https://golang.org/doc/install/source#go14
70 (version "1.4-bootstrap-20171003")
71 (source (origin
72 (method url-fetch)
73 (uri (string-append "https://storage.googleapis.com/golang/"
74 name version ".tar.gz"))
75 (sha256
76 (base32
77 "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
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)
85 (guix build utils)
86 (srfi srfi-1))
87 #:tests? #f ; Tests are run by the all.bash script.
88 ,@(if (string-prefix? "aarch64-linux" (or (%current-system)
89 (%current-target-system)))
90 '(#:system "armhf-linux")
91 '())
92 #:phases
93 (modify-phases %standard-phases
94 (delete 'configure)
95 (add-after 'patch-generated-file-shebangs 'chdir
96 (lambda _
97 (chdir "src")
98 #t))
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.+)")
143
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)
170 (setenv "GO14TESTS" "1")
171 (invoke "sh" "all.bash"))))
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)
201 ("gcc:lib" ,gcc "lib")))
202 (native-inputs
203 `(("pkg-config" ,pkg-config)
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
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}).")
215 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux"))
216 (license license:bsd-3)))
217
218 (define-public go-1.11
219 (package
220 (inherit go-1.4)
221 (name "go")
222 (version "1.11.12")
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
230 "09k9zmq7hhgg0bf1y7rwa0kn7q1vkkr94cmg2iv9lq3najh5nykd"))))
231 (arguments
232 (substitute-keyword-arguments (package-arguments go-1.4)
233 ((#:phases phases)
234 `(modify-phases ,phases
235 (replace 'prebuild
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
245 (for-each delete-file
246 ;; Removing net/ tests, which fail when attempting to access
247 ;; network resources not present in the build container.
248 '("net/listen_test.go"
249 "net/parse_test.go"
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"))
261
262 (substitute* "os/os_test.go"
263 (("/usr/bin") (getcwd))
264 (("/bin/pwd") (which "pwd"))
265 (("/bin/sh") (which "sh")))
266
267 (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go"
268 (("/usr/bin") "/tmp"))
269
270 ;; Add libgcc to runpath
271 (substitute* "cmd/link/internal/ld/lib.go"
272 (("!rpath.set") "true"))
273 (substitute* "cmd/go/internal/work/gccgo.go"
274 (("cgoldflags := \\[\\]string\\{\\}")
275 (string-append "cgoldflags := []string{"
276 "\"-rpath=" gcclib "\""
277 "}"))
278 (("\"-lgcc_s\", ")
279 (string-append
280 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
281 (substitute* "cmd/go/internal/work/gc.go"
282 (("ldflags = setextld\\(ldflags, compiler\\)")
283 (string-append
284 "ldflags = setextld(ldflags, compiler)\n"
285 "ldflags = append(ldflags, \"-r\")\n"
286 "ldflags = append(ldflags, \"" gcclib "\")\n")))
287
288 ;; Disable failing tests: these tests attempt to access
289 ;; commands or network resources which are neither available
290 ;; nor necessary for the build to succeed.
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.+)")
301 ("time/format_test.go" "(.+)(TestParseInLocation.+)")
302 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
303 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
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")
403 (version "1.12.7")
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
411 "04rvwj69gmw3bz8pw5pf10r21ar0pgpnswp15nkddf04dxyl9s4m"))))
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.+)")
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.+)")
499 ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)")
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"
505 "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)")))
506
507 ;; fix shebang for testar script
508 ;; note the target script is generated at build time.
509 (substitute* "../misc/cgo/testcarchive/carchive_test.go"
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))
518 (substitute* (find-files "cmd" "\\.go")
519 (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
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.
524 (let ((go (assoc-ref inputs "go")))
525 (setenv "GOROOT_BOOTSTRAP" go)
526 (setenv "GOGC" "400")
527 #t)))
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")
537 (invoke "sh" "all.bash"))))
538
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")
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")
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
573 (copy-recursively "../" output)
574 #t)))))))
575 (native-inputs
576 `(("go" ,go-1.4)
577 ,@(match (%current-system)
578 ((or "armhf-linux" "aarch64-linux")
579 `(("gold" ,binutils-gold)))
580 (_ `()))
581 ,@(package-native-inputs go-1.4)))
582 (supported-systems %supported-systems)))
583
584 (define-public go go-1.12)
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)))
597 (file-name (git-file-name name version))
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))))
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)))
623 (file-name (git-file-name name version))
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))))
636
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)))
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
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)))))
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))))
695
696 (define-public go-github.com-jtolds-gls
697 (package
698 (name "go-github.com-jtolds-gls")
699 (version "4.20")
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
708 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
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)))
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
738 program's help message rather than specifying it programmatically with
739 command-line parsers.")
740 (home-page "https://github.com/tj/docopt")
741 (license license:expat)))
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))))
769
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))))
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))))
842
843 (define-public go-golang-org-x-crypto-bcrypt
844 (let ((commit "b7391e95e576cacdcdd422573063bc057239113d")
845 (revision "3"))
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
858 "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm"))))
859 (build-system go-build-system)
860 (arguments
861 `(#:import-path "golang.org/x/crypto/bcrypt"
862 #:unpack-path "golang.org/x/crypto"))
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
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.")))
879
880 (define-public go-golang-org-x-crypto-pbkdf2
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.")))
890
891 (define-public go-golang-org-x-crypto-tea
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")
899 (description "This package provides a Go implementation of the Tiny Encryption
900 Algorithm (TEA) block cipher.")))
901
902 (define-public go-golang-org-x-crypto-salsa20
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")
910 (description "This package provides a Go implementation of the Salsa20
911 stream cipher.")))
912
913 (define-public go-golang-org-x-crypto-cast5
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")
921 (description "This package provides a Go implementation of the Cast5
922 symmetric-key block cipher.")))
923
924 (define-public go-golang-org-x-crypto-twofish
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")
932 (description "This package provides a Go implementation of the Twofish
933 symmetric-key block cipher.")))
934
935 (define-public go-golang-org-x-crypto-xtea
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.")))
945
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
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)))))
964 (synopsis "ED25519 in Go")
965 (description "This package provides a Go implementation of the ED25519
966 signature algorithm.")))
967
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
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")))
988 (propagated-inputs
989 `(("go-golang-org-x-sys-cpu" ,go-golang-org-x-sys-cpu)))
990 (synopsis "BLAKE2s in Go")
991 (description "This package provides a Go implementation of the BLAKE2s
992 hash algorithm.")))
993
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
1007 (define-public go-golang-org-x-net-ipv4
1008 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1009 (revision "3"))
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
1021 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1022 (build-system go-build-system)
1023 (arguments
1024 `(#:import-path "golang.org/x/net/ipv4"
1025 #:unpack-path "golang.org/x/net"))
1026 (propagated-inputs
1027 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
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
1035 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1036 (revision "3"))
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
1049 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1050 (build-system go-build-system)
1051 (arguments
1052 `(#:import-path "golang.org/x/net/bpf"
1053 #:unpack-path "golang.org/x/net"))
1054 (propagated-inputs
1055 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
1056 (synopsis "Berkeley Packet Filters (BPF) in Go")
1057 (description "This package provides a Go implementation of the Berkeley
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
1063 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1064 (revision "3"))
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
1077 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
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")
1083 (description "This package provides @code{context}, which defines the
1084 Context type, which carries deadlines, cancellation signals, and other
1085 request-scoped values across API boundaries and between processes.")
1086 (home-page "https://go.googlesource.com/net/")
1087 (license license:bsd-3))))
1088
1089 (define-public go-golang-org-x-net-internal-socks
1090 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1091 (revision "3"))
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
1104 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
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
1115 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1116 (revision "3"))
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
1129 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1130 (build-system go-build-system)
1131 (arguments
1132 `(#:import-path "golang.org/x/net/internal/socket"
1133 #:unpack-path "golang.org/x/net"))
1134 (propagated-inputs
1135 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
1136 (synopsis "")
1137 (description "")
1138 (home-page "https://go.googlesource.com/net/")
1139 (license license:bsd-3))))
1140
1141 (define-public go-golang-org-x-net-internal-iana
1142 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1143 (revision "3"))
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
1156 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
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)")
1162 (description "This package provides @code{iana}, which provides protocol
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
1168 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1169 (revision "3"))
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
1182 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1183 (build-system go-build-system)
1184 (arguments
1185 `(#:import-path "golang.org/x/net/ipv6"
1186 #:unpack-path "golang.org/x/net"))
1187 (propagated-inputs
1188 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
1189 (synopsis "Go IPv6 support")
1190 (description "This package provides @code{ipv6}, which implements
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
1196 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1197 (revision "3"))
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
1210 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
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")
1216 (description "This package provides @code{proxy}, which provides support
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
1222 (let ((commit "04f50cda93cbb67f2afa353c52f342100e80e625")
1223 (revision "4"))
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
1235 "0hmfsz9y1ingwsn482hlzzmzs7kr3cklm0ana0mbdk70isw2bxnw"))))
1236 (build-system go-build-system)
1237 (arguments
1238 `(#:import-path "golang.org/x/sys/unix"
1239 #:unpack-path "golang.org/x/sys"))
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
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
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
1283 (define-public go-golang-org-x-text-transform
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
1292 reader and writer wrappers that transform the bytes passing through. Example
1293 transformations provided by other packages include normalization and conversion
1294 between character sets.")))
1295
1296 (define-public go-golang-org-x-text-unicode-norm
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.")))
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))))
1333
1334 (define-public go-golang-org-x-crypto-ssh-terminal
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.")))
1346
1347 (define-public go-github-com-burntsushi-toml
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)))
1369
1370 (define-public go-github-com-getsentry-raven-go
1371 (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
1372 (revision "0"))
1373 (package
1374 (name "go-github-com-getsentry-raven-go")
1375 (version (git-version "0.2.0" revision commit))
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
1385 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
1386 (build-system go-build-system)
1387 (arguments
1388 '(#:import-path "github.com/getsentry/raven-go"))
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")
1393 (synopsis "Sentry client in Go")
1394 (description "This package is a Go client API for the Sentry event/error
1395 logging system.")
1396 (license license:bsd-3))))
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))))
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))))
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))))
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))))
1513
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
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))))
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
1586 information about the resource usage and performance characteristics of running
1587 containers.")
1588 (license license:asl2.0))))
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))))
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))))
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))))
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))))
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))))
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)))
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))))
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))))
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")
1849 (synopsis "This package is a Docker toolset to pack, ship, store, and
1850 deliver content")
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.")
1854 (license license:asl2.0))))
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
1878 "This package provides a library to work with network connections in
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))))
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))))
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)))))
1937
1938 (define-public go-gopkg-in-check-v1
1939 (let ((commit "788fd78401277ebd861206a03c884797c6ec5541")
1940 (revision "1"))
1941 (package
1942 (name "go-gopkg-in-check-v1")
1943 (version (git-version "1.0.0" revision commit))
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
1953 "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"))))
1954 (build-system go-build-system)
1955 (arguments
1956 '(#:import-path "gopkg.in/check.v1"))
1957 (propagated-inputs
1958 `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty)))
1959 (home-page "https://gopkg.in/check.v1")
1960 (synopsis "Test framework for the Go language")
1961 (description "This package provides a test library for the Go language.")
1962 (license license:asl2.0))))
1963
1964 (define-public go-gopkg-in-yaml-v2
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
1987 values.")
1988 (license license:asl2.0)))
1989
1990 (define-public go-github-com-mattn-go-isatty
1991 (package
1992 (name "go-github-com-mattn-go-isatty")
1993 (version "0.0.7")
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
2003 "1i77aq4gf9as03m8fpfh8fq49n4z9j7548blrcsidm1xhslzk5xd"))))
2004 (build-system go-build-system)
2005 (propagated-inputs
2006 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
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
2012 tell you whether a file descriptor points to a terminal and the type of the
2013 terminal.")
2014 (license license:expat)))
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))))
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))))
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)
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
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
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")))))))
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))))
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))))
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.")
2184 (license license:expat))))
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))))
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))))
2254
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))))
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))))
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)
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
2341 `(("pkg-config" ,pkg-config)
2342 ("taglib" ,taglib)))
2343 (arguments
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))))))
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))))
2358
2359 (define-public go-github-com-gogo-protobuf
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
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")
2387 (home-page "https://github.com/gogo/protobuf")
2388 (license license:bsd-3)))
2389
2390 (define-public go-github-com-gogo-protobuf-protoc-gen-gogo
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
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")
2419 (home-page "https://github.com/gogo/protobuf")
2420 (license license:bsd-3)))
2421
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
2446 (define-public go-github-com-gogo-protobuf-proto
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)))
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))))
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))))
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))))
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
2594 significantly diverged since then. The @command{btcsuite} developers original
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))))
2601
2602 (define-public go-github-com-minio-sha256-simd
2603 (let ((commit "cc1980cb03383b1d46f518232672584432d7532d")
2604 (revision "3"))
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
2617 "04fp98nal0wsb26zwhw82spn5camxslc68g3xp8g4af9w6k9g31j"))))
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))))
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))))
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))))
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))))
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))))
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))))
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)
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)))
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))))
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)
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)))
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))))
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))))
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)
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)))
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))))
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))))
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)
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)))
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))))
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)
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)))
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))))
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))))
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))))
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))))
3120
3121 (define-public go-github-com-urfave-cli
3122 (let ((commit "693af58b4d51b8fcc7f9d89576da170765980581")
3123 (revision "0"))
3124 (package
3125 (name "go-github-com-urfave-cli")
3126 (version (git-version "1.20.0" revision commit))
3127 (source
3128 (origin
3129 (method git-fetch)
3130 (uri (git-reference
3131 (url "https://github.com/urfave/cli.git")
3132 (commit commit)))
3133 (file-name (git-file-name name version))
3134 (sha256
3135 (base32
3136 "1krq752xgy658an1696vf4dc2zmp541clwjinhn11394sx2qksh6"))))
3137 (build-system go-build-system)
3138 (arguments
3139 '(#:import-path "github.com/urfave/cli"))
3140 (home-page "https://github.com/urfave/cli")
3141 (synopsis "Simple, fast, and fun package for building command line apps in Go")
3142 (description "@command{cli} is a simple, fast, and fun package for
3143 building command line apps in Go. The goal is to enable developers to write
3144 fast and distributable command line applications in an expressive way.")
3145 (license license:expat))))
3146
3147 (define-public go-github-com-whyrusleeping-json-filter
3148 (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
3149 (revision "0"))
3150 (package
3151 (name "go-github-com-whyrusleeping-json-filter")
3152 (version (git-version "0.0.0" revision commit))
3153 (source
3154 (origin
3155 (method git-fetch)
3156 (uri (git-reference
3157 (url "https://github.com/whyrusleeping/json-filter.git")
3158 (commit commit)))
3159 (file-name (git-file-name name version))
3160 (sha256
3161 (base32
3162 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
3163 (build-system go-build-system)
3164 (arguments
3165 '(#:import-path
3166 "github.com/whyrusleeping/json-filter"))
3167 (home-page "https://github.com/whyrusleeping/json-filter")
3168 (synopsis "Library to query JSON objects marshalled into map[string]interface")
3169 (description "A library to query JSON objects marshalled into
3170 @command{map[string]interface{}}.")
3171 (license license:expat))))
3172
3173 (define-public go-github-com-whyrusleeping-progmeter
3174 (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04")
3175 (revision "0"))
3176 (package
3177 (name "go-github-com-whyrusleeping-progmeter")
3178 (version (git-version "0.0.0" revision commit))
3179 (source
3180 (origin
3181 (method git-fetch)
3182 (uri (git-reference
3183 (url "https://github.com/whyrusleeping/progmeter.git")
3184 (commit commit)))
3185 (file-name (git-file-name name version))
3186 (sha256
3187 (base32
3188 "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb"))))
3189 (build-system go-build-system)
3190 (arguments
3191 '(#:import-path
3192 "github.com/whyrusleeping/progmeter"))
3193 (home-page "https://github.com/whyrusleeping/progmeter")
3194 (synopsis "Progress meter for Go")
3195 (description "Progress meter for Go.")
3196 (license license:expat))))
3197
3198 (define-public go-github-com-whyrusleeping-stump
3199 (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5")
3200 (revision "0"))
3201 (package
3202 (name "go-github-com-whyrusleeping-stump")
3203 (version (git-version "0.0.0" revision commit))
3204 (source
3205 (origin
3206 (method git-fetch)
3207 (uri (git-reference
3208 (url "https://github.com/whyrusleeping/stump.git")
3209 (commit commit)))
3210 (file-name (git-file-name name version))
3211 (sha256
3212 (base32
3213 "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n"))))
3214 (build-system go-build-system)
3215 (arguments
3216 '(#:import-path "github.com/whyrusleeping/stump"))
3217 (home-page "https://github.com/whyrusleeping/stump")
3218 (synopsis "Very basic logging package for Go")
3219 (description "A simple log library, for when you don't really care to
3220 have super fancy logs.")
3221 (license license:expat))))
3222
3223 (define-public go-github-com-kr-fs
3224 (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba")
3225 (revision "0"))
3226 (package
3227 (name "go-github-com-kr-fs")
3228 (version (git-version "0.1.0" revision commit))
3229 (source
3230 (origin
3231 (method git-fetch)
3232 (uri (git-reference
3233 (url "https://github.com/kr/fs.git")
3234 (commit commit)))
3235 (file-name (git-file-name name version))
3236 (sha256
3237 (base32
3238 "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"))))
3239 (build-system go-build-system)
3240 (arguments
3241 '(#:import-path "github.com/kr/fs"))
3242 (home-page "https://github.com/kr/fs")
3243 (synopsis "File-system-related functions for Go")
3244 (description
3245 "The fs package provides file-system-related Go functions.")
3246 (license license:bsd-3))))
3247
3248 (define-public go-github-com-direnv-go-dotenv
3249 (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
3250 (revision "0"))
3251 (package
3252 (name "go-github-com-direnv-go-dotenv")
3253 (version (git-version "0.0.0" revision commit))
3254 (source
3255 (origin
3256 (method git-fetch)
3257 (uri (git-reference
3258 (url "https://github.com/direnv/go-dotenv")
3259 (commit commit)))
3260 (file-name (git-file-name name version))
3261 (sha256
3262 (base32
3263 "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6"))))
3264 (build-system go-build-system)
3265 (arguments
3266 '(#:import-path "github.com/direnv/go-dotenv"))
3267 (home-page "https://github.com/direnv/go-dotenv")
3268 (synopsis "Go dotenv parsing library")
3269 (description "This package provides a library for parsing the dotenv
3270 format in Go.")
3271 (license license:expat))))
3272
3273 (define-public go-github-com-kr-pretty
3274 (package
3275 (name "go-github-com-kr-pretty")
3276 (version "0.1.0")
3277 (source (origin
3278 (method git-fetch)
3279 (uri (git-reference
3280 (url "https://github.com/kr/pretty.git")
3281 (commit (string-append "v" version))))
3282 (file-name (git-file-name name version))
3283 (sha256
3284 (base32
3285 "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp"))))
3286 (build-system go-build-system)
3287 (propagated-inputs
3288 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
3289 (arguments
3290 '(#:import-path "github.com/kr/pretty"))
3291 (synopsis "A pretty printer for Go values")
3292 (description "This package provides a pretty printer for Go values.")
3293 (home-page "https://github.com/kr/pretty")
3294 (license license:expat)))
3295
3296 (define-public go-github-com-kr-text
3297 (package
3298 (name "go-github-com-kr-text")
3299 (version "0.1.0")
3300 (source (origin
3301 (method git-fetch)
3302 (uri (git-reference
3303 (url "https://github.com/kr/text.git")
3304 (commit (string-append "v" version))))
3305 (file-name (git-file-name name version))
3306 (sha256
3307 (base32
3308 "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"))))
3309 (build-system go-build-system)
3310 (arguments
3311 '(#:import-path "github.com/kr/text"))
3312 (synopsis "Text formatting in Go")
3313 (description "This package provides a text formatting functions in Go.")
3314 (home-page "https://github.com/kr/text")
3315 (license license:expat)))
3316
3317 (define-public go-golang-org-sql-mock
3318 (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b")
3319 (version "1.3.3")
3320 (revision "1"))
3321 (package
3322 (name "go-golang-org-sql-mock")
3323 (version (git-version version revision commit))
3324 (source (origin
3325 (method git-fetch)
3326 (uri (git-reference
3327 (url "https://github.com/DATA-DOG/go-sqlmock")
3328 (commit commit)))
3329 (file-name (git-file-name name version))
3330 (sha256
3331 (base32
3332 "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs"))))
3333 (build-system go-build-system)
3334 (arguments
3335 '(#:import-path "github.com/DATA-DOG/go-sqlmock"))
3336 (synopsis "Mock library implementing @code{sql/driver}")
3337 (description "This library simulates SQL-driver behavior in tests
3338 without requiring a real database connection.")
3339 (home-page "https://github.com/DATA-DOG/go-sqlmock")
3340 (license license:expat))))
3341
3342 (define-public go-golang-org-colorful
3343 (package
3344 (name "go-golang-org-colorful")
3345 (version "1.0.2")
3346 (source (origin
3347 (method git-fetch)
3348 (uri (git-reference
3349 (url "https://github.com/lucasb-eyer/go-colorful")
3350 (commit (string-append "v" version))))
3351 (file-name (git-file-name name version))
3352 (sha256
3353 (base32
3354 "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2"))))
3355 (build-system go-build-system)
3356 (arguments
3357 '(#:import-path "github.com/lucasb-eyer/go-colorful"))
3358 (native-inputs
3359 `(("go-golang-org-sql-mock" ,go-golang-org-sql-mock)))
3360 (synopsis "Convert between colorspaces and generate colors")
3361 (description "This package implements Go's @code{color.Color} interface
3362 and provides a means of converting colors stored as RGB to various
3363 colorspaces.")
3364 (home-page "https://github.com/lucasb-eyer/go-colorful")
3365 (license license:expat)))
3366
3367 (define-public go-github-com-gdamore-encoding
3368 (package
3369 (name "go-github-com-gdamore-encoding")
3370 (version "1.0.0")
3371 (source
3372 (origin
3373 (method git-fetch)
3374 (uri (git-reference
3375 (url "https://github.com/gdamore/encoding")
3376 (commit (string-append "v" version))))
3377 (file-name (git-file-name name version))
3378 (sha256
3379 (base32
3380 "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9"))))
3381 (build-system go-build-system)
3382 (arguments
3383 '(#:import-path "github.com/gdamore/encoding"))
3384 (inputs
3385 `(("go-golang-org-x-text-encoding" ,go-golang-org-x-text-encoding)
3386 ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform)))
3387 (home-page "https://github.com/gdamore/encoding")
3388 (synopsis "Provide encodings missing from Go")
3389 (description "This package provides useful encodings not included in the
3390 standard @code{Text} package, including some for dealing with I/O streams from
3391 non-UTF-friendly sources.")
3392 (license license:expat)))
3393
3394 (define-public go-github-com-gdamore-tcell
3395 (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e")
3396 (version "1.1.2")
3397 (revision "1"))
3398 (package
3399 (name "go-github-com-gdamore-tcell")
3400 (version (git-version version revision commit))
3401 (source
3402 (origin
3403 (method git-fetch)
3404 (uri (git-reference
3405 (url "https://github.com/gdamore/tcell")
3406 (commit commit)))
3407 (file-name (git-file-name name version))
3408 (sha256
3409 (base32
3410 "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d"))))
3411 (build-system go-build-system)
3412 (arguments
3413 `(#:import-path "github.com/gdamore/tcell"
3414 #:phases
3415 (modify-phases %standard-phases
3416 (add-before 'reset-gzip-timestamps 'make-files-writable
3417 (lambda* (#:key outputs #:allow-other-keys)
3418 ;; Make sure .gz files are writable so that the
3419 ;; 'reset-gzip-timestamps' phase can do its work.
3420 (let ((out (assoc-ref outputs "out")))
3421 (for-each make-file-writable
3422 (find-files out "\\.gz$"))
3423 #t))))))
3424 (inputs
3425 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
3426 ("go-golang-org-colorful" ,go-golang-org-colorful)
3427 ("go-golang-org-x-text-encoding" ,go-golang-org-x-text-encoding)
3428 ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform)
3429 ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding)))
3430 (home-page "https://github.com/gdamore/tcell")
3431 (synopsis "Provide a cell-based view for text terminals")
3432 (description "This package includes a full parser and expander for
3433 terminfo capability strings to avoid hard-coding escape strings for
3434 formatting. It also favors portability, and includes support for all POSIX
3435 systems.")
3436 (license license:expat))))
3437
3438 (define-public go-github-com-mattn-go-shellwords
3439 (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2")
3440 (version "1.0.5")
3441 (revision "1"))
3442 (package
3443 (name "go-github-com-mattn-go-shellwords")
3444 (version (git-version version revision commit))
3445 (source
3446 (origin
3447 (method git-fetch)
3448 (uri (git-reference
3449 (url "https://github.com/mattn/go-shellwords")
3450 (commit commit)))
3451 (file-name (git-file-name name version))
3452 (sha256
3453 (base32
3454 "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d"))))
3455 (build-system go-build-system)
3456 (arguments
3457 `(#:import-path "github.com/mattn/go-shellwords"
3458 ;; TODO: can't make homeless-shelter:
3459 ;; go: disabling cache (/homeless-shelter/.cache/go-build) due to
3460 ;; initialization failure: mkdir /homeless-shelter: permission denied
3461
3462 ;; This doesn't seem to work:
3463
3464 ;; #:phases
3465 ;; (modify-phases %standard-phases
3466 ;; (replace 'check
3467 ;; (lambda* (#:key import-path #:allow-other-keys)
3468 ;; (setenv "HOME" "/tmp")
3469 ;; (invoke "go" "test" import-path))))
3470
3471 ;; TODO: There are also a couple of tests that have stymied Debian in
3472 ;; the past. They seem to work when run locally.
3473
3474 #:tests? #f
3475 ))
3476 (home-page "https://github.com/mattn/go-shellwords")
3477 (synopsis "Parse lines into shell words")
3478 (description "This package parses text into shell arguments. Based on
3479 the @code{cpan} module @code{Parse::CommandLine}.")
3480 (license license:expat))))
3481
3482 (define-public go-github-com-burntsushi-locker
3483 (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
3484 (revision "0"))
3485 (package
3486 (name "go-github-com-burntsushi-locker")
3487 (version (git-version "0.0.0" revision commit))
3488 (source
3489 (origin
3490 (method git-fetch)
3491 (uri (git-reference
3492 (url "https://github.com/BurntSushi/locker")
3493 (commit commit)))
3494 (file-name (git-file-name name version))
3495 (sha256
3496 (base32
3497 "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
3498 (build-system go-build-system)
3499 (arguments
3500 '(#:import-path "github.com/BurntSushi/locker"))
3501 (home-page "https://github.com/BurntSushi/locker")
3502 (synopsis "Manage named ReadWrite mutexes in Go")
3503 (description "Golang package for conveniently using named read/write
3504 locks. These appear to be especially useful for synchronizing access to
3505 session based information in web applications.
3506
3507 The common use case is to use the package level functions, which use a package
3508 level set of locks (safe to use from multiple goroutines
3509 simultaneously). However, you may also create a new separate set of locks
3510 test.
3511
3512 All locks are implemented with read-write mutexes. To use them like a regular
3513 mutex, simply ignore the RLock/RUnlock functions.")
3514 (license license:unlicense))))
3515
3516 (define-public go-github-com-marten-seemann-qtls
3517 (package
3518 (name "go-github-com-marten-seemann-qtls")
3519 (version "0.2.3")
3520 (source (origin
3521 (method git-fetch)
3522 (uri (git-reference
3523 (url "https://github.com/marten-seemann/qtls")
3524 (commit (string-append "v" version))))
3525 (file-name (git-file-name name version))
3526 (sha256
3527 (base32
3528 "0b9p7bwkm9hfg1mb565q4nw5k7xyks0z2xagz5fp95azy2psbnfg"))))
3529 (build-system go-build-system)
3530 (arguments
3531 '(#:import-path "github.com/marten-seemann/qtls"
3532 ;; The test suite requires networking.
3533 #:tests? #f))
3534 (propagated-inputs
3535 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
3536 (synopsis "TLS 1.3 with QUIC in Go")
3537 (description "This package provides @code{qtls}, a QUIC-capable variant of
3538 the Go standard library's TLS 1.3 implementation.")
3539 (home-page "https://github.com/marten-seemann/qtls")
3540 (license license:bsd-3)))
3541
3542 (define-public go-github-com-cheekybits-genny
3543 (package
3544 (name "go-github-com-cheekybits-genny")
3545 (version "1.0.0")
3546 (source (origin
3547 (method git-fetch)
3548 (uri (git-reference
3549 (url "https://github.com/cheekybits/genny")
3550 (commit (string-append "v" version))))
3551 (file-name (git-file-name name version))
3552 (sha256
3553 (base32
3554 "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87"))))
3555 (build-system go-build-system)
3556 (arguments
3557 '(#:import-path "github.com/cheekybits/genny"))
3558 (propagated-inputs
3559 `(("go-golang-org-x-tools" ,go-golang-org-x-tools)))
3560 (synopsis "Generics for Go")
3561 (description "This package provides @code{genny}, a Go language
3562 implementation of generics.")
3563 (home-page "https://github.com/cheekybits/genny/")
3564 (license license:expat)))
3565
3566 (define-public go-github-com-lucas-clemente-quic-go
3567 (package
3568 (name "go-github-com-lucas-clemente-quic-go")
3569 (version "0.11.2")
3570 (source (origin
3571 (method git-fetch)
3572 (uri (git-reference
3573 (url "https://github.com/lucas-clemente/quic-go")
3574 (commit (string-append "v" version))))
3575 (file-name (git-file-name name version))
3576 (sha256
3577 (base32
3578 "0gqm5mc8alg84ra7yxach34il1jvcij8f76qdqcahnd3d2nhjbia"))))
3579 (build-system go-build-system)
3580 (arguments
3581 '(#:import-path "github.com/lucas-clemente/quic-go"
3582 ;; XXX More packages required...
3583 #:tests? #f))
3584 (propagated-inputs
3585 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
3586 ("go-github-com-cheekybits-genny" ,go-github-com-cheekybits-genny)
3587 ("go-github-com-marten-seemann-qtls" ,go-github-com-marten-seemann-qtls)))
3588 (synopsis "QUIC in Go")
3589 (description "This package provides a Go language implementation of the QUIC
3590 network protocol.")
3591 (home-page "https://github.com/lucas-clemente/quic-go")
3592 (license license:expat)))
3593
3594 (define-public go-github-com-pkg-errors
3595 (let ((commit "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7")
3596 (revision "0"))
3597 (package
3598 (name "go-github-com-pkg-errors")
3599 (version (git-version "0.8.1" revision commit))
3600 (source (origin
3601 (method git-fetch)
3602 (uri (git-reference
3603 (url "https://github.com/pkg/errors.git")
3604 (commit commit)))
3605 (file-name (git-file-name name version))
3606 (sha256
3607 (base32
3608 "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"))))
3609 (build-system go-build-system)
3610 (arguments
3611 `(#:import-path "github.com/pkg/errors"))
3612 (synopsis "Go error handling primitives")
3613 (description "This package provides @code{error}, which offers simple
3614 error handling primitives in Go.")
3615 (home-page "https://github.com/pkg/errors")
3616 (license license:bsd-2))))
3617
3618 (define-public go-github-com-maruel-panicparse
3619 (package
3620 (name "go-github-com-maruel-panicparse")
3621 (version "1.3.0")
3622 (source (origin
3623 (method git-fetch)
3624 (uri (git-reference
3625 (url "https://github.com/maruel/panicparse")
3626 (commit (string-append "v" version))))
3627 (file-name (git-file-name name version))
3628 (sha256
3629 (base32
3630 "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq"))))
3631 (build-system go-build-system)
3632 (arguments
3633 '(#:import-path "github.com/maruel/panicparse"))
3634 (synopsis "Toolkit for parsing Go stack traces")
3635 (description "This package provides a toolkit for parsing Go language panic
3636 stack traces. It simplifies the traces to make salient information more visible
3637 and aid debugging.")
3638 (home-page "https://github.com/maruel/panicparse")
3639 (license license:asl2.0)))
3640
3641 (define-public go-github-com-robfig-cron
3642 (package
3643 (name "go-github-com-robfig-cron")
3644 (version "3.0.0")
3645 (source
3646 (origin
3647 (method git-fetch)
3648 (uri (git-reference
3649 (url "https://github.com/robfig/cron")
3650 (commit (string-append "v" version))))
3651 (file-name (git-file-name name version))
3652 (sha256
3653 (base32
3654 "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z"))))
3655 (build-system go-build-system)
3656 (arguments
3657 `(#:import-path "github.com/robfig/cron"))
3658 (home-page "https://godoc.org/github.com/robfig/cron")
3659 (synopsis "Cron library for Go")
3660 (description "This package provides a cron library for Go. It implements
3661 a cron spec parser and job runner.")
3662 (license license:expat)))