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>
20 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
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
68 ;; The C-language bootstrap of Go:
69 ;; https://golang.org/doc/install/source#go14
70 (version "1.4-bootstrap-20171003")
73 (uri (string-append "https://storage.googleapis.com/golang/"
74 name version ".tar.gz"))
77 "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
78 (build-system gnu-build-system)
83 `(#:modules ((ice-9 match)
84 (guix build gnu-build-system)
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")
93 (modify-phases %standard-phases
95 (add-after 'patch-generated-file-shebangs 'chdir
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"))
106 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
107 (output (assoc-ref outputs "out")))
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"
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")
122 "ldflags := buildLdflags\n"
123 "ldflags = append(ldflags, \"-r\")\n"
124 "ldflags = append(ldflags, \"" gcclib "\")\n")))
126 (substitute* "os/os_test.go"
127 (("/usr/bin") (getcwd))
128 (("/bin/pwd") (which "pwd")))
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.
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.+)")
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.+)")))
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))
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"))))
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)))
182 (copy-recursively "../test" (string-append tests "/test"))
183 (delete-file-recursively "../test")
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")
190 (for-each (lambda (file)
191 (let ((file (string-append "../" file)))
192 (install-file file docs)
194 '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS"
195 "LICENSE" "VERSION" "robots.txt"))
196 (copy-recursively "../" output)
201 ("gcc:lib" ,gcc "lib")))
203 `(("pkg-config" ,pkg-config)
205 ("net-base" ,net-base)
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)))
218 (define-public go-1.11
226 (uri (string-append "https://storage.googleapis.com/golang/"
227 name version ".src.tar.gz"))
230 "09k9zmq7hhgg0bf1y7rwa0kn7q1vkkr94cmg2iv9lq3najh5nykd"))))
232 (substitute-keyword-arguments (package-arguments go-1.4)
234 `(modify-phases ,phases
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"))
242 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
243 (output (assoc-ref outputs "out")))
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"
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"))
262 (substitute* "os/os_test.go"
263 (("/usr/bin") (getcwd))
264 (("/bin/pwd") (which "pwd"))
265 (("/bin/sh") (which "sh")))
267 (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go"
268 (("/usr/bin") "/tmp"))
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 "\""
280 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
281 (substitute* "cmd/go/internal/work/gc.go"
282 (("ldflags = setextld\\(ldflags, compiler\\)")
284 "ldflags = setextld(ldflags, compiler)\n"
285 "ldflags = append(ldflags, \"-r\")\n"
286 "ldflags = append(ldflags, \"" gcclib "\")\n")))
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.
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.+)")))
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"))))
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))
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")
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"))))
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))
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
366 (delete-file-recursively "../pkg/obj")
369 (copy-recursively "../test" (string-append src "/test"))
370 (delete-file-recursively "../test")
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")
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"))
387 (copy-recursively "../" output)
391 ,@(match (%current-system)
392 ((or "armhf-linux" "aarch64-linux")
393 `(("gold" ,binutils-gold)))
395 ,@(package-native-inputs go-1.4)))
396 (supported-systems %supported-systems)))
399 (define-public go-1.12
407 (uri (string-append "https://storage.googleapis.com/golang/"
408 name version ".src.tar.gz"))
411 "04rvwj69gmw3bz8pw5pf10r21ar0pgpnswp15nkddf04dxyl9s4m"))))
413 (substitute-keyword-arguments (package-arguments go-1.4)
415 `(modify-phases ,phases
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"))
423 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
424 (output (assoc-ref outputs "out")))
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.
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"))
438 (substitute* "os/os_test.go"
439 (("/usr/bin") (getcwd))
440 (("/bin/pwd") (which "pwd"))
441 (("/bin/sh") (which "sh")))
443 (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go"
444 (("/usr/bin") "/tmp"))
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 "\""
456 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
457 (substitute* "cmd/go/internal/work/gc.go"
458 (("ldflags = setextld\\(ldflags, compiler\\)")
460 "ldflags = setextld(ldflags, compiler)\n"
461 "ldflags = append(ldflags, \"-r\")\n"
462 "ldflags = append(ldflags, \"" gcclib "\")\n")))
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.
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.+)")))
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"))))
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))
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")
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"))))
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))
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
552 (delete-file-recursively "../pkg/obj")
555 (copy-recursively "../test" (string-append src "/test"))
556 (delete-file-recursively "../test")
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")
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"))
573 (copy-recursively "../" output)
577 ,@(match (%current-system)
578 ((or "armhf-linux" "aarch64-linux")
579 `(("gold" ,binutils-gold)))
581 ,@(package-native-inputs go-1.4)))
582 (supported-systems %supported-systems)))
584 (define-public go go-1.12)
586 (define-public go-github-com-alsm-ioprogress
587 (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
590 (name "go-github-com-alsm-ioprogress")
591 (version (git-version "0.0.0" revision commit))
595 (url "https://github.com/alsm/ioprogress.git")
597 (file-name (git-file-name name version))
600 "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh"))))
601 (build-system go-build-system)
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))))
612 (define-public go-github-com-aki237-nscjar
613 (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06")
616 (name "go-github-com-aki237-nscjar")
617 (version (git-version "0.0.0" revision commit))
621 (url "https://github.com/aki237/nscjar.git")
623 (file-name (git-file-name name version))
626 "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96"))))
627 (build-system go-build-system)
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))))
637 (define-public go-github.com-jessevdk-go-flags
639 (name "go-github.com-jessevdk-go-flags")
644 (url "https://github.com/jessevdk/go-flags")
645 (commit (string-append "v" version))))
646 (file-name (git-file-name name version))
649 "1jk2k2l10lwrn1r3nxdvbs0yz656830j4khzirw8p4ahs7c5zz36"))))
650 (build-system go-build-system)
652 '(#:import-path "github.com/jessevdk/go-flags"))
653 (synopsis "Go library for parsing command line arguments")
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)))
662 (define-public go-gopkg.in-tomb.v2
663 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
666 (name "go-gopkg.in-tomb.v2")
667 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
671 (url "https://github.com/go-tomb/tomb.git")
673 (file-name (string-append name "-" version ".tar.gz"))
676 "1sv15sri99szkdz1bkh0ir46w9n8prrwx5hfai13nrhkawfyfy10"))))
677 (build-system go-build-system)
679 '(#:import-path "gopkg.in/tomb.v2"
681 (modify-phases %standard-phases
682 (add-after 'unpack 'patch-source
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"))
689 (synopsis "@code{tomb} handles clean goroutine tracking and termination")
691 "The @code{tomb} package handles clean goroutine tracking and
693 (home-page "https://gopkg.in/tomb.v2")
694 (license license:bsd-3))))
696 (define-public go-github.com-jtolds-gls
698 (name "go-github.com-jtolds-gls")
703 (url "https://github.com/jtolds/gls")
704 (commit (string-append "v" version))))
705 (file-name (git-file-name name version))
708 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
709 (build-system go-build-system)
711 '(#:import-path "github.com/jtolds/gls"))
712 (synopsis "@code{gls} provides Goroutine local storage")
714 "The @code{gls} package provides a way to store a retrieve values
716 (home-page "https://github.com/jtolds/gls")
717 (license license:expat)))
719 (define-public go-github-com-tj-docopt
721 (name "go-github-com-tj-docopt")
726 (url "https://github.com/tj/docopt")
727 (commit (string-append "v" version))))
728 (file-name (git-file-name name version))
731 "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080"))))
732 (build-system go-build-system)
734 '(#:import-path "github.com/tj/docopt"))
735 (synopsis "Go implementation of docopt")
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)))
743 (define-public go-github-com-hashicorp-hcl
744 (let ((commit "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8")
747 (name "go-github-com-hashicorp-hcl")
748 (version (git-version "0.0.0" revision commit))
752 (url "https://github.com/hashicorp/hcl")
754 (file-name (git-file-name name version))
757 "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc"))))
758 (build-system go-build-system)
761 #:import-path "github.com/hashicorp/hcl"))
762 (synopsis "Go implementation of HashiCorp Configuration Language")
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))))
770 (define-public go-golang-org-x-tools
771 (let ((commit "8b927904ee0dec805c89aaf9172f4459296ed6e8")
774 (name "go-golang-org-x-tools")
775 (version (git-version "0.1.3" revision commit))
779 (url "https://go.googlesource.com/tools")
781 (file-name (string-append "go.googlesource.com-tools-"
782 version "-checkout"))
785 "0iinb70xhcjsddgi42ia1n745lx2ibnjdm6m2v666qrk3876vpck"))))
786 (build-system go-build-system)
788 `(#:import-path "golang.org/x/tools"
789 ;; Source-only package
792 (modify-phases %standard-phases
793 ;; Source-only package
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))))
801 (define-public go-golang-org-x-crypto
802 (let ((commit "b7391e95e576cacdcdd422573063bc057239113d")
805 (name "go-golang-org-x-crypto")
806 (version (git-version "0.0.0" revision commit))
810 (url "https://go.googlesource.com/crypto")
812 (file-name (string-append "go.googlesource.com-crypto-"
813 version "-checkout"))
816 "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm"))))
817 (build-system go-build-system)
819 '(#:import-path "golang.org/x/crypto"
820 ;; Source-only package
823 (modify-phases %standard-phases
824 ;; Source-only package
826 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
827 (lambda* (#:key outputs #:allow-other-keys)
829 (make-file-writable file))
831 (string-append (assoc-ref outputs "out")
832 "/src/golang.org/x/crypto/ed25519/testdata")
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))))
843 (define-public go-golang-org-x-crypto-bcrypt
844 (let ((commit "b7391e95e576cacdcdd422573063bc057239113d")
847 (name "go-golang-org-x-crypto-bcrypt")
848 (version (git-version "0.0.0" revision commit))
852 (url "https://go.googlesource.com/crypto")
854 (file-name (string-append "go.googlesource.com-crypto-"
855 version "-checkout"))
858 "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm"))))
859 (build-system go-build-system)
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))))
869 (define-public go-golang-org-x-crypto-blowfish
871 (inherit go-golang-org-x-crypto-bcrypt)
872 (name "go-golang-org-x-crypto-blowfish")
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.")))
880 (define-public go-golang-org-x-crypto-pbkdf2
882 (inherit go-golang-org-x-crypto-bcrypt)
883 (name "go-golang-org-x-crypto-pbkdf2")
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.")))
891 (define-public go-golang-org-x-crypto-tea
893 (inherit go-golang-org-x-crypto-bcrypt)
894 (name "go-golang-org-x-crypto-tea")
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.")))
902 (define-public go-golang-org-x-crypto-salsa20
904 (inherit go-golang-org-x-crypto-bcrypt)
905 (name "go-golang-org-x-crypto-salsa20")
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
913 (define-public go-golang-org-x-crypto-cast5
915 (inherit go-golang-org-x-crypto-bcrypt)
916 (name "go-golang-org-x-crypto-cast5")
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.")))
924 (define-public go-golang-org-x-crypto-twofish
926 (inherit go-golang-org-x-crypto-bcrypt)
927 (name "go-golang-org-x-crypto-twofish")
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.")))
935 (define-public go-golang-org-x-crypto-xtea
937 (inherit go-golang-org-x-crypto-bcrypt)
938 (name "go-golang-org-x-crypto-xtea")
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.")))
946 (define-public go-golang-org-x-crypto-ed25519
948 (inherit go-golang-org-x-crypto-bcrypt)
949 (name "go-golang-org-x-crypto-ed25519")
951 `(#:import-path "golang.org/x/crypto/ed25519"
952 #:unpack-path "golang.org/x/crypto"
954 (modify-phases %standard-phases
955 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
956 (lambda* (#:key outputs #:allow-other-keys)
958 (make-file-writable file))
960 (string-append (assoc-ref outputs "out")
961 "/src/golang.org/x/crypto/ed25519/testdata")
964 (synopsis "ED25519 in Go")
965 (description "This package provides a Go implementation of the ED25519
966 signature algorithm.")))
968 (define-public go-golang-org-x-crypto-ripemd160
970 (inherit go-golang-org-x-crypto-bcrypt)
971 (name "go-golang-org-x-crypto-ripemd160")
973 (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt)
975 "golang.org/x/crypto/ripemd160")))
976 (synopsis "RIPEMD-160 in Go")
977 (description "This package provides a Go implementation of the RIPEMD-160
980 (define-public go-golang-org-x-crypto-blake2s
982 (inherit go-golang-org-x-crypto-bcrypt)
983 (name "go-golang-org-x-crypto-blake2s")
985 (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt)
987 "golang.org/x/crypto/blake2s")))
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
994 (define-public go-golang-org-x-crypto-sha3
996 (inherit go-golang-org-x-crypto-bcrypt)
997 (name "go-golang-org-x-crypto-sha3")
999 (substitute-keyword-arguments (package-arguments go-golang-org-x-crypto-bcrypt)
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.")))
1007 (define-public go-golang-org-x-net-ipv4
1008 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1011 (name "go-golang-org-x-net-ipv4")
1012 (version (git-version "0.0.0" revision commit))
1016 (url "https://go.googlesource.com/net")
1018 (file-name (git-file-name name version))
1021 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1022 (build-system go-build-system)
1024 `(#:import-path "golang.org/x/net/ipv4"
1025 #:unpack-path "golang.org/x/net"))
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))))
1034 (define-public go-golang-org-x-net-bpf
1035 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1038 (name "go-golang-org-x-net-bpf")
1039 (version (git-version "0.0.0" revision commit))
1043 (url "https://go.googlesource.com/net")
1045 (file-name (string-append "go.googlesource.com-net-"
1046 version "-checkout"))
1049 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1050 (build-system go-build-system)
1052 `(#:import-path "golang.org/x/net/bpf"
1053 #:unpack-path "golang.org/x/net"))
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))))
1062 (define-public go-golang-org-x-net-context
1063 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1066 (name "go-golang-org-x-net-context")
1067 (version (git-version "0.0.0" revision commit))
1071 (url "https://go.googlesource.com/net")
1073 (file-name (string-append "go.googlesource.com-net-"
1074 version "-checkout"))
1077 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1078 (build-system go-build-system)
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))))
1089 (define-public go-golang-org-x-net-internal-socks
1090 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1093 (name "go-golang-org-x-net-internal-socks")
1094 (version (git-version "0.0.0" revision commit))
1098 (url "https://go.googlesource.com/net")
1100 (file-name (string-append "go.googlesource.com-net-"
1101 version "-checkout"))
1104 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1105 (build-system go-build-system)
1107 `(#:import-path "golang.org/x/net/internal/socks"
1108 #:unpack-path "golang.org/x/net"))
1111 (home-page "https://go.googlesource.com/net/")
1112 (license license:bsd-3))))
1114 (define-public go-golang-org-x-net-internal-socket
1115 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1118 (name "go-golang-org-x-net-internal-socket")
1119 (version (git-version "0.0.0" revision commit))
1123 (url "https://go.googlesource.com/net")
1125 (file-name (string-append "go.googlesource.com-net-"
1126 version "-checkout"))
1129 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1130 (build-system go-build-system)
1132 `(#:import-path "golang.org/x/net/internal/socket"
1133 #:unpack-path "golang.org/x/net"))
1135 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
1138 (home-page "https://go.googlesource.com/net/")
1139 (license license:bsd-3))))
1141 (define-public go-golang-org-x-net-internal-iana
1142 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1145 (name "go-golang-org-x-net-internal-iana")
1146 (version (git-version "0.0.0" revision commit))
1150 (url "https://go.googlesource.com/net")
1152 (file-name (string-append "go.googlesource.com-net-"
1153 version "-checkout"))
1156 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1157 (build-system go-build-system)
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))))
1167 (define-public go-golang-org-x-net-ipv6
1168 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1171 (name "go-golang-org-x-net-ipv6")
1172 (version (git-version "0.0.0" revision commit))
1176 (url "https://go.googlesource.com/net")
1178 (file-name (string-append "go.googlesource.com-net-"
1179 version "-checkout"))
1182 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1183 (build-system go-build-system)
1185 `(#:import-path "golang.org/x/net/ipv6"
1186 #:unpack-path "golang.org/x/net"))
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))))
1195 (define-public go-golang-org-x-net-proxy
1196 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
1199 (name "go-golang-org-x-net-proxy")
1200 (version (git-version "0.0.0" revision commit))
1204 (url "https://go.googlesource.com/net")
1206 (file-name (string-append "go.googlesource.com-net-"
1207 version "-checkout"))
1210 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
1211 (build-system go-build-system)
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))))
1221 (define-public go-golang-org-x-sys-unix
1222 (let ((commit "04f50cda93cbb67f2afa353c52f342100e80e625")
1225 (name "go-golang-org-x-sys-unix")
1226 (version (git-version "0.0.0" revision commit))
1230 (url "https://go.googlesource.com/sys")
1232 (file-name (git-file-name name version))
1235 "0hmfsz9y1ingwsn482hlzzmzs7kr3cklm0ana0mbdk70isw2bxnw"))))
1236 (build-system go-build-system)
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))))
1246 (define-public go-golang-org-x-sys-cpu
1248 (inherit go-golang-org-x-sys-unix)
1249 (name "go-golang-org-x-sys-cpu")
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.")))
1257 (define-public go-golang-org-x-text-encoding
1259 (name "go-golang-org-x-text-encoding")
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"))
1270 "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh"))))
1271 (build-system go-build-system)
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
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)))
1283 (define-public go-golang-org-x-text-transform
1285 (inherit go-golang-org-x-text-encoding)
1286 (name "go-golang-org-x-text-transform")
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.")))
1296 (define-public go-golang-org-x-text-unicode-norm
1298 (inherit go-golang-org-x-text-encoding)
1299 (name "go-golang-org-x-text-unicode-norm")
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.")))
1307 (define-public go-golang-org-x-time-rate
1308 (let ((commit "6dc17368e09b0e8634d71cac8168d853e869a0c7")
1311 (name "go-golang-org-x-time-rate")
1312 (version (git-version "0.0.0" revision commit))
1316 (url "https://go.googlesource.com/time")
1318 (file-name (git-file-name name version))
1321 "1fx4cf5fpdz00g3c7vxzy92hdcg0vh4yqw00qp5s52j72qixynbk"))))
1322 (build-system go-build-system)
1324 `(#:import-path "golang.org/x/time/rate"
1325 #:unpack-path "golang.org/x/time"))
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
1331 (home-page "https://godoc.org/golang.org/x/time/rate")
1332 (license license:bsd-3))))
1334 (define-public go-golang-org-x-crypto-ssh-terminal
1336 (inherit go-golang-org-x-crypto-bcrypt)
1337 (name "go-golang-org-x-crypto-ssh-terminal")
1339 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
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.")))
1347 (define-public go-github-com-burntsushi-toml
1349 (name "go-github-com-burntsushi-toml")
1355 (url "https://github.com/BurntSushi/toml.git")
1356 (commit (string-append "v" version))))
1357 (file-name (git-file-name name version))
1360 "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"))))
1361 (build-system go-build-system)
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)))
1370 (define-public go-github-com-getsentry-raven-go
1371 (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
1374 (name "go-github-com-getsentry-raven-go")
1375 (version (git-version "0.2.0" revision commit))
1380 (url "https://github.com/getsentry/raven-go.git")
1382 (file-name (git-file-name name version))
1385 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
1386 (build-system go-build-system)
1388 '(#:import-path "github.com/getsentry/raven-go"))
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
1396 (license license:bsd-3))))
1398 (define-public go-github-com-hashicorp-go-version
1400 "03c5bf6be031b6dd45afec16b1cf94fc8938bc77")
1403 (name "go-github-com-hashicorp-go-version")
1404 (version (git-version "0.0.0" revision commit))
1409 (url "https://github.com/hashicorp/go-version.git")
1411 (file-name (git-file-name name version))
1414 "0sjq57gpfznaqdrbyb2p0bn90g9h661cvr0jrk6ngags4pbw14ik"))))
1415 (build-system go-build-system)
1417 '(#:import-path "github.com/hashicorp/go-version"))
1419 "https://github.com/hashicorp/go-version")
1420 (synopsis "Go library for parsing and verifying versions and version
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))))
1428 (define-public go-github-com-jpillora-backoff
1430 "06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
1433 (name "go-github-com-jpillora-backoff")
1434 (version (git-version "0.0.0" revision commit))
1439 (url "https://github.com/jpillora/backoff.git")
1441 (file-name (git-file-name name version))
1444 "0xhvxr7bm47czdc5hy3kl508z3y4j91i2jm7vg774i52zych6k4l"))))
1445 (build-system go-build-system)
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
1452 (license license:expat))))
1454 (define-public go-github-com-stretchr-testify
1456 "b1f989447a57594c728884458a39abf3a73447f7")
1459 (name "go-github-com-stretchr-testify")
1460 (version (git-version "1.1.4" revision commit))
1465 (url "https://github.com/stretchr/testify.git")
1467 (file-name (git-file-name name version))
1470 "0p0gkqzh2p8r5g0rxm885ljl7ghih7h7hx9w562imx5ka0vdgixv"))))
1471 (build-system go-build-system)
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.
1481 @item Easy assertions
1483 @item HTTP response trapping
1484 @item Testing suite interfaces and functions.
1486 (license license:expat))))
1488 (define-public go-github-com-tevino-abool
1490 "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12")
1493 (name "go-github-com-tevino-abool")
1494 (version (git-version "0.0.0" revision commit))
1499 (url "https://github.com/tevino/abool.git")
1501 (file-name (git-file-name name version))
1504 "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm"))))
1505 (build-system go-build-system)
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))))
1514 (define-public go-github-com-blang-semver
1515 (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9")
1518 (name "go-github-com-blang-semver")
1519 (version (git-version "0.0.0" revision commit))
1524 (url "https://github.com/blang/semver.git")
1526 (file-name (git-file-name name version))
1529 "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2"))))
1530 (build-system go-build-system)
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))))
1538 (define-public go-github-com-emicklei-go-restful
1539 (let ((commit "89ef8af493ab468a45a42bb0d89a06fccdd2fb22")
1542 (name "go-github-com-emicklei-go-restful")
1543 (version (git-version "0.0.0" revision commit))
1548 (url "https://github.com/emicklei/go-restful.git")
1550 (file-name (git-file-name name version))
1553 "0rrlfcfq80fkxifpih6bq31vavb5mf4530xz51pp9pq1mn2fzjfh"))))
1554 (build-system go-build-system)
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))))
1564 (define-public go-github-com-google-cadvisor
1565 (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
1568 (name "go-github-com-google-cadvisor")
1569 (version (git-version "0.0.0" revision commit))
1574 (url "https://github.com/google/cadvisor.git")
1576 (file-name (git-file-name name version))
1579 "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55"))))
1580 (build-system go-build-system)
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
1588 (license license:asl2.0))))
1590 (define-public go-github-com-google-gofuzz
1591 (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")
1594 (name "go-github-com-google-gofuzz")
1595 (version (git-version "0.0.0" revision commit))
1600 (url "https://github.com/google/gofuzz.git")
1602 (file-name (git-file-name name version))
1605 "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8"))))
1606 (build-system go-build-system)
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))))
1615 (define-public go-github-com-gorilla-context
1616 (let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42")
1619 (name "go-github-com-gorilla-context")
1620 (version (git-version "0.0.0" revision commit))
1625 (url "https://github.com/gorilla/context.git")
1627 (file-name (git-file-name name version))
1630 "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4"))))
1631 (build-system go-build-system)
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))))
1639 (define-public go-github-com-gorilla-mux
1640 (let ((commit "599cba5e7b6137d46ddf58fb1765f5d928e69604")
1643 (name "go-github-com-gorilla-mux")
1644 (version (git-version "0.0.0" revision commit))
1649 (url "https://github.com/gorilla/mux.git")
1651 (file-name (git-file-name name version))
1654 "0wd6jjii1kg5s0nk3ri6gqriz6hbd6bbcn6x4jf8n7ncrb8qsxyz"))))
1655 (build-system go-build-system)
1657 '(#:import-path "github.com/gorilla/mux"))
1658 (home-page "https://github.com/gorilla/mux")
1659 (synopsis "URL router and dispatcher for Go")
1661 "Gorilla/Mux implements a request router and dispatcher for matching
1662 incoming requests with their respective handler.")
1663 (license license:bsd-3))))
1665 (define-public go-github-com-jonboulle-clockwork
1666 (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d")
1669 (name "go-github-com-jonboulle-clockwork")
1670 (version (git-version "0.0.0" revision commit))
1675 (url "https://github.com/jonboulle/clockwork.git")
1677 (file-name (git-file-name name version))
1680 "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc"))))
1681 (build-system go-build-system)
1683 '(#:import-path "github.com/jonboulle/clockwork"))
1684 (home-page "https://github.com/jonboulle/clockwork")
1685 (synopsis "Fake clock library for Go")
1687 "Replace uses of the @code{time} package with the
1688 @code{clockwork.Clock} interface instead.")
1689 (license license:asl2.0))))
1691 (define-public go-github-com-spf13-pflag
1692 (let ((commit "4f9190456aed1c2113ca51ea9b89219747458dc1")
1695 (name "go-github-com-spf13-pflag")
1696 (version (git-version "0.0.0" revision commit))
1701 (url "https://github.com/spf13/pflag.git")
1703 (file-name (git-file-name name version))
1706 "12vrlcsbwjqlfc49rwky45mbcj74c0kb6z54354pzas6fwzyi1kc"))))
1707 (build-system go-build-system)
1709 '(#:import-path "github.com/spf13/pflag"))
1710 (home-page "https://github.com/spf13/pflag")
1711 (synopsis "Replacement for Go's @code{flag} package")
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
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))))
1720 (define-public go-github-com-sirupsen-logrus
1722 (name "go-github-com-sirupsen-logrus")
1728 (url "https://github.com/sirupsen/logrus.git")
1729 (commit (string-append "v" version))))
1732 "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz"))))
1733 (build-system go-build-system)
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)))
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)))
1750 (define-public go-github-com-kardianos-osext
1751 (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14")
1754 (name "go-github-com-kardianos-osext")
1755 (version (git-version "0.0.0" revision commit))
1759 (url "https://github.com/kardianos/osext")
1761 (file-name (git-file-name name version))
1764 "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz"))))
1765 (build-system go-build-system)
1767 `(#:import-path "github.com/kardianos/osext"
1768 ;; The tests are flaky:
1769 ;; <https://github.com/kardianos/osext/issues/21>
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))))
1778 (define-public go-github-com-ayufan-golang-kardianos-service
1779 (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3")
1782 (name "go-github-com-ayufan-golang-kardianos-service")
1783 (version (git-version "0.0.0" revision commit))
1789 "https://github.com/ayufan/golang-kardianos-service.git")
1791 (file-name (git-file-name name version))
1794 "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5"))))
1795 (build-system go-build-system)
1797 `(("go-github-com-kardianos-osext"
1798 ,go-github-com-kardianos-osext)))
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))))
1809 (define-public go-github-com-docker-distribution
1810 (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329")
1813 (name "go-github-com-docker-distribution")
1814 (version (git-version "0.0.0" revision commit))
1816 ;; FIXME: This bundles many things, see
1817 ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>.
1821 (url "https://github.com/docker/distribution")
1823 (file-name (git-file-name name version))
1826 "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6"))))
1827 (build-system go-build-system)
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)))
1836 '(#:import-path "github.com/docker/distribution"
1838 (modify-phases %standard-phases
1839 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
1840 (lambda* (#:key outputs #:allow-other-keys)
1842 (make-file-writable file))
1844 (assoc-ref outputs "out")
1848 "https://github.com/docker/distribution")
1849 (synopsis "This package is a Docker toolset to pack, ship, store, and
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))))
1856 (define-public go-github-com-docker-go-connections
1857 (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d")
1860 (name "go-github-com-docker-go-connections")
1861 (version (git-version "0.0.0" revision commit))
1866 (url "https://github.com/docker/go-connections.git")
1868 (file-name (git-file-name name version))
1871 "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0"))))
1872 (build-system go-build-system)
1874 '(#:import-path "github.com/docker/go-connections"))
1875 (home-page "https://github.com/docker/go-connections")
1876 (synopsis "Networking library for Go")
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))))
1883 (define-public go-github-com-docker-machine
1884 (let ((commit "7b7a141da84480342357c51838be142bf183b095")
1887 (name "go-github-com-docker-machine")
1888 (version (git-version "0.0.0" revision commit))
1893 (url "https://github.com/docker/machine.git")
1895 (file-name (git-file-name name version))
1898 "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s"))))
1899 (build-system go-build-system)
1901 '(#:import-path "github.com/docker/machine"))
1902 (home-page "https://github.com/docker/machine")
1903 (synopsis "Machine management for a container-centric world")
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))))
1910 (define-public go-github-com-gorhill-cronexpr
1911 (let ((commit "f0984319b44273e83de132089ae42b1810f4933b")
1914 (name "go-github-com-gorhill-cronexpr")
1915 (version (git-version "0.0.0" revision commit))
1920 (url "https://github.com/gorhill/cronexpr.git")
1922 (file-name (git-file-name name version))
1925 "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2"))))
1926 (build-system go-build-system)
1928 '(#:import-path "github.com/gorhill/cronexpr"))
1929 (home-page "https://github.com/gorhill/cronexpr")
1930 (synopsis "Cron expression parser in the Go language")
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+
1938 (define-public go-gopkg-in-check-v1
1939 (let ((commit "788fd78401277ebd861206a03c884797c6ec5541")
1942 (name "go-gopkg-in-check-v1")
1943 (version (git-version "1.0.0" revision commit))
1948 (url "https://github.com/go-check/check")
1950 (file-name (git-file-name name version))
1953 "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"))))
1954 (build-system go-build-system)
1956 '(#:import-path "gopkg.in/check.v1"))
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))))
1964 (define-public go-gopkg-in-yaml-v2
1966 (name "go-gopkg-in-yaml-v2")
1972 (url "https://gopkg.in/yaml.v2.git")
1973 (commit (string-append "v" version))))
1974 (file-name (git-file-name name version))
1977 "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))))
1978 (build-system go-build-system)
1980 '(#:import-path "gopkg.in/yaml.v2"))
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")
1986 "This package provides a Go library for encode and decode YAML
1988 (license license:asl2.0)))
1990 (define-public go-github-com-mattn-go-isatty
1992 (name "go-github-com-mattn-go-isatty")
1998 (url "https://github.com/mattn/go-isatty")
1999 (commit (string-append "v" version))))
2000 (file-name (git-file-name name version))
2003 "1i77aq4gf9as03m8fpfh8fq49n4z9j7548blrcsidm1xhslzk5xd"))))
2004 (build-system go-build-system)
2006 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
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
2014 (license license:expat)))
2016 (define-public go-github-com-mattn-go-colorable
2017 (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade")
2020 (name "go-github-com-mattn-go-colorable")
2021 (version (git-version "0.0.0" revision commit))
2026 (url "https://github.com/mattn/go-colorable")
2028 (file-name (git-file-name name version))
2031 "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r"))))
2032 (build-system go-build-system)
2034 `(("go-github-com-mattn-go-isatty"
2035 ,go-github-com-mattn-go-isatty)))
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))))
2044 (define-public go-github-com-mgutz-ansi
2045 (let ((commit "9520e82c474b0a04dd04f8a40959027271bab992")
2048 (name "go-github-com-mgutz-ansi")
2049 (version (git-version "0.0.0" revision commit))
2055 "https://github.com/mgutz/ansi")
2057 (file-name (git-file-name name version))
2060 "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j"))))
2061 (build-system go-build-system)
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)))
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))))
2075 (define-public go-github-com-aarzilli-golua
2076 (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d")
2079 (name "go-github-com-aarzilli-golua")
2080 (version (git-version "0.0.0" revision commit))
2086 "https://github.com/aarzilli/golua")
2088 (file-name (git-file-name name version))
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.
2100 `(#:unpack-path "github.com/aarzilli/golua"
2101 #:import-path "github.com/aarzilli/golua/lua"
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
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))))
2121 (define-public go-gitlab-com-ambrevar-golua-unicode
2122 (let ((commit "97ce517e7a1fe2407a90c317a9c74b173d396144")
2125 (name "go-gitlab-com-ambrevar-golua-unicode")
2126 (version (git-version "0.0.0" revision commit))
2132 "https://gitlab.com/ambrevar/golua")
2134 (file-name (git-file-name name version))
2137 "1izcp7p8nagjwqd13shb0020w7xhppib1a3glw2d1468bflhksnm"))))
2138 (build-system go-build-system)
2141 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
2143 `(#:unpack-path "gitlab.com/ambrevar/golua"
2144 #:import-path "gitlab.com/ambrevar/golua/unicode"
2146 (modify-phases %standard-phases
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))))
2159 (define-public go-github-com-yookoala-realpath
2160 (let ((commit "d19ef9c409d9817c1e685775e53d361b03eabbc8")
2163 (name "go-github-com-yookoala-realpath")
2164 (version (git-version "0.0.0" revision commit))
2170 "https://github.com/yookoala/realpath")
2172 (file-name (git-file-name name version))
2175 "0qvz1dcdldf53rq69fli76z5k1vr7prx9ds1d5rpzgs68kwn40nw"))))
2176 (build-system go-build-system)
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))))
2186 (define-public go-gitlab-com-ambrevar-damerau
2187 (let ((commit "883829e1f25fad54015772ea663e69017cf22352")
2190 (name "go-gitlab-com-ambrevar-damerau")
2191 (version (git-version "0.0.0" revision commit))
2197 "https://gitlab.com/ambrevar/damerau")
2199 (file-name (git-file-name name version))
2202 "1b9p8fypc914ij1afn6ir346zsgfqrc5mqc1k3d53n4snypq27qv"))))
2203 (build-system go-build-system)
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
2212 (license license:expat))))
2214 (define-public go-github-com-stevedonovan-luar
2215 (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
2218 (name "go-github-com-stevedonovan-luar")
2219 (version (git-version "0.0.0" revision commit))
2225 "https://github.com/stevedonovan/luar")
2227 (file-name (git-file-name name version))
2230 "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
2231 (build-system go-build-system)
2233 `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
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
2245 Any Go function can be made available to Lua scripts, without having to write
2248 Luar support cyclic structures (lists, etc.).
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
2253 (license license:expat))))
2255 (define-public go-github-com-michiwend-golang-pretty
2256 (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4")
2259 (name "go-github-com-michiwend-golang-pretty")
2260 (version (git-version "0.0.0" revision commit))
2266 "https://github.com/michiwend/golang-pretty")
2268 (file-name (git-file-name name version))
2271 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4"))))
2272 (build-system go-build-system)
2274 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
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
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))))
2289 (define-public go-github-com-michiwend-gomusicbrainz
2290 (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d")
2293 (name "go-github-com-michiwend-gomusicbrainz")
2294 (version (git-version "0.0.0" revision commit))
2300 "https://github.com/michiwend/gomusicbrainz")
2302 (file-name (git-file-name name version))
2305 "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn"))))
2306 (build-system go-build-system)
2308 `(("go-github-com-michiwend-golang-pretty" ,go-github-com-michiwend-golang-pretty)
2309 ("go-github-com-kr-text" ,go-github-com-kr-text)))
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))))
2318 (define-public go-github-com-wtolson-go-taglib
2319 (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
2322 (name "go-github-com-wtolson-go-taglib")
2323 (version (git-version "0.0.0" revision commit))
2329 "https://github.com/wtolson/go-taglib")
2331 (file-name (git-file-name name version))
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.
2341 `(("pkg-config" ,pkg-config)
2342 ("taglib" ,taglib)))
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.
2348 (modify-phases %standard-phases
2350 (lambda* (#:key import-path #:allow-other-keys)
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))))
2359 (define-public go-github-com-gogo-protobuf
2361 (name "go-github-com-gogo-protobuf")
2366 (url "https://github.com/gogo/protobuf")
2367 (commit (string-append "v" version))))
2368 (file-name (git-file-name name version))
2371 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
2372 (build-system go-build-system)
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:
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
2387 (home-page "https://github.com/gogo/protobuf")
2388 (license license:bsd-3)))
2390 (define-public go-github-com-gogo-protobuf-protoc-gen-gogo
2392 (name "go-github-com-gogo-protobuf-protoc-gen-gogo")
2397 (url "https://github.com/gogo/protobuf")
2398 (commit (string-append "v" version))))
2399 (file-name (git-file-name name version))
2402 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
2403 (build-system go-build-system)
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:
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
2419 (home-page "https://github.com/gogo/protobuf")
2420 (license license:bsd-3)))
2422 (define-public go-github-com-gogo-protobuf-gogoproto
2424 (name "go-github-com-gogo-protobuf-gogoproto")
2430 (url "https://github.com/gogo/protobuf.git")
2431 (commit (string-append "v" version))))
2432 (file-name (git-file-name name version))
2435 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
2436 (build-system go-build-system)
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
2444 (license license:bsd-3)))
2446 (define-public go-github-com-gogo-protobuf-proto
2448 (name "go-github-com-gogo-protobuf-proto")
2454 (url "https://github.com/gogo/protobuf.git")
2455 (commit (string-append "v" version))))
2456 (file-name (git-file-name name version))
2459 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
2460 (build-system go-build-system)
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
2468 (license license:bsd-3)))
2470 (define-public go-github-com-libp2p-go-flow-metrics
2471 (let ((commit "7e5a55af485341567f98d6847a373eb5ddcdcd43")
2474 (name "go-github-com-libp2p-go-flow-metrics")
2475 (version (git-version "0.2.0" revision commit))
2480 (url "https://github.com/libp2p/go-flow-metrics.git")
2482 (file-name (git-file-name name version))
2485 "1p87iyk6q6f3g3xkncssx400qlld8f2z93qiz8m1f97grfyhjif1"))))
2486 (build-system go-build-system)
2488 `(#:import-path "github.com/libp2p/go-flow-metrics"
2489 ;; TODO: Tests hang.
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))))
2498 (define-public go-github-com-davecgh-go-spew
2499 (let ((commit "d8f796af33cc11cb798c1aaeb27a4ebc5099927d")
2502 (name "go-github-com-davecgh-go-spew")
2503 (version (git-version "0.0.0" revision commit))
2508 (url "https://github.com/davecgh/go-spew.git")
2510 (file-name (git-file-name name version))
2513 "19z27f306fpsrjdvkzd61w1bdazcdbczjyjck177g33iklinhpvx"))))
2514 (build-system go-build-system)
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.
2523 A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
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
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
2536 (license license:isc))))
2538 (define-public go-github-com-btcsuite-btclog
2539 (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a")
2542 (name "go-github-com-btcsuite-btclog")
2543 (version (git-version "0.0.3" revision commit))
2548 (url "https://github.com/btcsuite/btclog.git")
2550 (file-name (git-file-name name version))
2553 "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk"))))
2554 (build-system go-build-system)
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))))
2564 (define-public go-github-com-btcsuite-btcd-btcec
2565 (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0")
2568 (name "go-github-com-btcsuite-btcd-btcec")
2569 (version (git-version "0.12.0-beta" revision commit))
2574 (url "https://github.com/btcsuite/btcd.git")
2576 (file-name (git-file-name name version))
2579 "04s92gsy71w1jirlr5lkk9y6r5cparbas7nmf6ywbp7kq7fn8ajn"))))
2580 (build-system go-build-system)
2582 '(#:unpack-path "github.com/btcsuite/btcd"
2583 #:import-path "github.com/btcsuite/btcd/btcec"))
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.
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))))
2602 (define-public go-github-com-minio-sha256-simd
2603 (let ((commit "cc1980cb03383b1d46f518232672584432d7532d")
2606 (name "go-github-com-minio-sha256-simd")
2607 (version (git-version "0.0.0" revision commit))
2612 (url "https://github.com/minio/sha256-simd.git")
2614 (file-name (git-file-name name version))
2617 "04fp98nal0wsb26zwhw82spn5camxslc68g3xp8g4af9w6k9g31j"))))
2618 (build-system go-build-system)
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.
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.
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))))
2638 (define-public go-github-com-libp2p-go-libp2p-crypto
2639 (let ((commit "7240b40a3ddc47c4d17c15baabcbe45e5219171b")
2642 (name "go-github-com-libp2p-go-libp2p-crypto")
2643 (version (git-version "2.0.1" revision commit))
2648 (url "https://github.com/libp2p/go-libp2p-crypto.git")
2650 (file-name (git-file-name name version))
2653 "0qwpy57qv5143l9dlfwfvpqsxdd2i4zwnawx1w4pmgxxim3nw1wb"))))
2654 (build-system go-build-system)
2656 '(#:import-path "github.com/libp2p/go-libp2p-crypto"))
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)))
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))))
2668 (define-public go-github-com-mr-tron-base58
2669 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312")
2672 (name "go-github-com-mr-tron-base58")
2673 (version (git-version "1.1.0" revision commit))
2678 (url "https://github.com/mr-tron/base58.git")
2680 (file-name (git-file-name name version))
2683 "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa"))))
2684 (build-system go-build-system)
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))))
2695 (define-public go-github-com-gxed-hashland-keccakpg
2696 (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8")
2699 (name "go-github-com-gxed-hashland-keccakpg")
2700 (version (git-version "0.0.0" revision commit))
2705 (url "https://github.com/gxed/hashland.git")
2707 (file-name (git-file-name name version))
2710 "1q23y4lacsz46k9gmgfw4iwwydw36j2601rbidmmswl94grpc386"))))
2711 (build-system go-build-system)
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))))
2721 (define-public go-github-com-minio-blake2b-simd
2722 (let ((commit "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4")
2725 (name "go-github-com-minio-blake2b-simd")
2726 (version (git-version "0.0.0" revision commit))
2731 (url "https://github.com/minio/blake2b-simd.git")
2733 (file-name (git-file-name name version))
2736 "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd"))))
2737 (build-system go-build-system)
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.
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))))
2753 (define-public go-github-com-spaolacci-murmur3
2754 (let ((commit "f09979ecbc725b9e6d41a297405f65e7e8804acc")
2757 (name "go-github-com-spaolacci-murmur3")
2758 (version (git-version "1.1" revision commit))
2763 (url "https://github.com/spaolacci/murmur3.git")
2765 (file-name (git-file-name name version))
2768 "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25"))))
2769 (build-system go-build-system)
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).
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))))
2781 (define-public go-github-com-multiformats-go-multihash
2782 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
2785 (name "go-github-com-multiformats-go-multihash")
2786 (version (git-version "1.0.8" revision commit))
2791 (url "https://github.com/multiformats/go-multihash.git")
2793 (file-name (git-file-name name version))
2796 "02wd9akrwy4y5m0nig9m24p14bjjgb4n1djydrq8cm4yhbvjrrk0"))))
2797 (build-system go-build-system)
2799 '(#:import-path "github.com/multiformats/go-multihash"))
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))))
2813 (define-public go-github-com-libp2p-go-libp2p-peer
2814 (let ((commit "993d742bc29dcf4894b7730ba610fd78900be76c")
2817 (name "go-github-com-libp2p-go-libp2p-peer")
2818 (version (git-version "2.3.8" revision commit))
2823 (url "https://github.com/libp2p/go-libp2p-peer.git")
2825 (file-name (git-file-name name version))
2828 "1h96qjdi0i1wbr0jliap2903mycphas3ny0zdrm77yca9plcnphh"))))
2829 (build-system go-build-system)
2831 '(#:import-path "github.com/libp2p/go-libp2p-peer"))
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))))
2850 (define-public go-github-com-libp2p-go-libp2p-protocol
2851 (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b")
2854 (name "go-github-com-libp2p-go-libp2p-protocol")
2855 (version (git-version "1.0.0" revision commit))
2860 (url "https://github.com/libp2p/go-libp2p-protocol.git")
2862 (file-name (git-file-name name version))
2865 "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld"))))
2866 (build-system go-build-system)
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))))
2875 (define-public go-github-com-libp2p-go-libp2p-metrics
2876 (let ((commit "a10ff6e75dae3c868023867e8caa534a04bdc624")
2879 (name "go-github-com-libp2p-go-libp2p-metrics")
2880 (version (git-version "2.1.6" revision commit))
2885 (url "https://github.com/libp2p/go-libp2p-metrics.git")
2887 (file-name (git-file-name name version))
2890 "05wy0cq4h6yg9bzgapcvm2criwriicbswx80ma82gyn4a9fdrk8m"))))
2891 (build-system go-build-system)
2893 '(#:import-path "github.com/libp2p/go-libp2p-metrics"))
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))))
2916 (define-public go-github-com-mitchellh-go-homedir
2917 (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4")
2920 (name "go-github-com-mitchellh-go-homedir")
2921 (version (git-version "1.0.0" revision commit))
2926 (url "https://github.com/mitchellh/go-homedir.git")
2928 (file-name (git-file-name name version))
2931 "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq"))))
2932 (build-system go-build-system)
2934 (quote (#:import-path "github.com/mitchellh/go-homedir"
2935 ;; TODO: Tests fail because it tries to access home.
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.
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
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))))
2955 (define-public go-github-com-multiformats-go-multiaddr
2956 (let ((commit "fe1c46f8be5af4aff4db286e08839295bd922efb")
2959 (name "go-github-com-multiformats-go-multiaddr")
2960 (version (git-version "1.3.0" revision commit))
2965 (url "https://github.com/multiformats/go-multiaddr.git")
2967 (file-name (git-file-name name version))
2970 "0p5f8h098a4yjjmzsgqs7vhx1iqifb8izwg3559cr4h7clkpzznh"))))
2971 (build-system go-build-system)
2974 "github.com/multiformats/go-multiaddr"))
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
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.
2996 (license license:expat))))
2998 (define-public go-github-com-multiformats-go-multiaddr-net
2999 (let ((commit "1cb9a0e8a6de3c8a10f6cee60d01d793603c4f7e")
3002 (name "go-github-com-multiformats-go-multiaddr-net")
3003 (version (git-version "1.6.3" revision commit))
3008 (url "https://github.com/multiformats/go-multiaddr-net.git")
3010 (file-name (git-file-name name version))
3013 "1ypgi47xdz3bh8lh7f8cmk7w3ql9g4izx5l3kzdg9gda1xn5zxq3"))))
3014 (build-system go-build-system)
3016 (quote (#:import-path "github.com/multiformats/go-multiaddr-net"
3017 ;; TODO: Tests fail because they try to access the network.
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))))
3037 (define-public go-github-com-whyrusleeping-tar-utils
3038 (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc")
3041 (name "go-github-com-whyrusleeping-tar-utils")
3042 (version (git-version "0.0.0" revision commit))
3047 (url "https://github.com/whyrusleeping/tar-utils.git")
3049 (file-name (git-file-name name version))
3052 "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s"))))
3053 (build-system go-build-system)
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))))
3062 (define-public go-github-com-cheekybits-is
3063 (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
3066 (name "go-github-com-cheekybits-is")
3067 (version (git-version "0.0.0" revision commit))
3072 (url "https://github.com/cheekybits/is.git")
3074 (file-name (git-file-name name version))
3077 "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d"))))
3078 (build-system go-build-system)
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.
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.
3092 (license license:expat))))
3094 (define-public go-github-com-sabhiram-go-gitignore
3095 (let ((commit "d3107576ba9425fc1c85f4b3569c4631b805a02e")
3098 (name "go-github-com-sabhiram-go-gitignore")
3099 (version (git-version "1.0.2" revision commit))
3104 (url "https://github.com/sabhiram/go-gitignore.git")
3106 (file-name (git-file-name name version))
3109 "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l"))))
3110 (build-system go-build-system)
3113 "github.com/sabhiram/go-gitignore"))
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))))
3121 (define-public go-github-com-urfave-cli
3122 (let ((commit "693af58b4d51b8fcc7f9d89576da170765980581")
3125 (name "go-github-com-urfave-cli")
3126 (version (git-version "1.20.0" revision commit))
3131 (url "https://github.com/urfave/cli.git")
3133 (file-name (git-file-name name version))
3136 "1krq752xgy658an1696vf4dc2zmp541clwjinhn11394sx2qksh6"))))
3137 (build-system go-build-system)
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))))
3147 (define-public go-github-com-whyrusleeping-json-filter
3148 (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
3151 (name "go-github-com-whyrusleeping-json-filter")
3152 (version (git-version "0.0.0" revision commit))
3157 (url "https://github.com/whyrusleeping/json-filter.git")
3159 (file-name (git-file-name name version))
3162 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
3163 (build-system go-build-system)
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))))
3173 (define-public go-github-com-whyrusleeping-progmeter
3174 (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04")
3177 (name "go-github-com-whyrusleeping-progmeter")
3178 (version (git-version "0.0.0" revision commit))
3183 (url "https://github.com/whyrusleeping/progmeter.git")
3185 (file-name (git-file-name name version))
3188 "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb"))))
3189 (build-system go-build-system)
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))))
3198 (define-public go-github-com-whyrusleeping-stump
3199 (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5")
3202 (name "go-github-com-whyrusleeping-stump")
3203 (version (git-version "0.0.0" revision commit))
3208 (url "https://github.com/whyrusleeping/stump.git")
3210 (file-name (git-file-name name version))
3213 "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n"))))
3214 (build-system go-build-system)
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))))
3223 (define-public go-github-com-kr-fs
3224 (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba")
3227 (name "go-github-com-kr-fs")
3228 (version (git-version "0.1.0" revision commit))
3233 (url "https://github.com/kr/fs.git")
3235 (file-name (git-file-name name version))
3238 "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"))))
3239 (build-system go-build-system)
3241 '(#:import-path "github.com/kr/fs"))
3242 (home-page "https://github.com/kr/fs")
3243 (synopsis "File-system-related functions for Go")
3245 "The fs package provides file-system-related Go functions.")
3246 (license license:bsd-3))))
3248 (define-public go-github-com-direnv-go-dotenv
3249 (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
3252 (name "go-github-com-direnv-go-dotenv")
3253 (version (git-version "0.0.0" revision commit))
3258 (url "https://github.com/direnv/go-dotenv")
3260 (file-name (git-file-name name version))
3263 "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6"))))
3264 (build-system go-build-system)
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
3271 (license license:expat))))
3273 (define-public go-github-com-kr-pretty
3275 (name "go-github-com-kr-pretty")
3280 (url "https://github.com/kr/pretty.git")
3281 (commit (string-append "v" version))))
3282 (file-name (git-file-name name version))
3285 "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp"))))
3286 (build-system go-build-system)
3288 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
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)))
3296 (define-public go-github-com-kr-text
3298 (name "go-github-com-kr-text")
3303 (url "https://github.com/kr/text.git")
3304 (commit (string-append "v" version))))
3305 (file-name (git-file-name name version))
3308 "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"))))
3309 (build-system go-build-system)
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)))
3317 (define-public go-golang-org-sql-mock
3318 (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b")
3322 (name "go-golang-org-sql-mock")
3323 (version (git-version version revision commit))
3327 (url "https://github.com/DATA-DOG/go-sqlmock")
3329 (file-name (git-file-name name version))
3332 "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs"))))
3333 (build-system go-build-system)
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))))
3342 (define-public go-golang-org-colorful
3344 (name "go-golang-org-colorful")
3349 (url "https://github.com/lucasb-eyer/go-colorful")
3350 (commit (string-append "v" version))))
3351 (file-name (git-file-name name version))
3354 "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2"))))
3355 (build-system go-build-system)
3357 '(#:import-path "github.com/lucasb-eyer/go-colorful"))
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
3364 (home-page "https://github.com/lucasb-eyer/go-colorful")
3365 (license license:expat)))
3367 (define-public go-github-com-gdamore-encoding
3369 (name "go-github-com-gdamore-encoding")
3375 (url "https://github.com/gdamore/encoding")
3376 (commit (string-append "v" version))))
3377 (file-name (git-file-name name version))
3380 "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9"))))
3381 (build-system go-build-system)
3383 '(#:import-path "github.com/gdamore/encoding"))
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)))
3394 (define-public go-github-com-gdamore-tcell
3395 (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e")
3399 (name "go-github-com-gdamore-tcell")
3400 (version (git-version version revision commit))
3405 (url "https://github.com/gdamore/tcell")
3407 (file-name (git-file-name name version))
3410 "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d"))))
3411 (build-system go-build-system)
3413 `(#:import-path "github.com/gdamore/tcell"
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$"))
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
3436 (license license:expat))))
3438 (define-public go-github-com-mattn-go-shellwords
3439 (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2")
3443 (name "go-github-com-mattn-go-shellwords")
3444 (version (git-version version revision commit))
3449 (url "https://github.com/mattn/go-shellwords")
3451 (file-name (git-file-name name version))
3454 "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d"))))
3455 (build-system go-build-system)
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
3462 ;; This doesn't seem to work:
3465 ;; (modify-phases %standard-phases
3467 ;; (lambda* (#:key import-path #:allow-other-keys)
3468 ;; (setenv "HOME" "/tmp")
3469 ;; (invoke "go" "test" import-path))))
3471 ;; TODO: There are also a couple of tests that have stymied Debian in
3472 ;; the past. They seem to work when run locally.
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))))
3482 (define-public go-github-com-burntsushi-locker
3483 (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
3486 (name "go-github-com-burntsushi-locker")
3487 (version (git-version "0.0.0" revision commit))
3492 (url "https://github.com/BurntSushi/locker")
3494 (file-name (git-file-name name version))
3497 "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
3498 (build-system go-build-system)
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.
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
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))))
3516 (define-public go-github-com-marten-seemann-qtls
3518 (name "go-github-com-marten-seemann-qtls")
3523 (url "https://github.com/marten-seemann/qtls")
3524 (commit (string-append "v" version))))
3525 (file-name (git-file-name name version))
3528 "0b9p7bwkm9hfg1mb565q4nw5k7xyks0z2xagz5fp95azy2psbnfg"))))
3529 (build-system go-build-system)
3531 '(#:import-path "github.com/marten-seemann/qtls"
3532 ;; The test suite requires networking.
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)))
3542 (define-public go-github-com-cheekybits-genny
3544 (name "go-github-com-cheekybits-genny")
3549 (url "https://github.com/cheekybits/genny")
3550 (commit (string-append "v" version))))
3551 (file-name (git-file-name name version))
3554 "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87"))))
3555 (build-system go-build-system)
3557 '(#:import-path "github.com/cheekybits/genny"))
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)))
3566 (define-public go-github-com-lucas-clemente-quic-go
3568 (name "go-github-com-lucas-clemente-quic-go")
3573 (url "https://github.com/lucas-clemente/quic-go")
3574 (commit (string-append "v" version))))
3575 (file-name (git-file-name name version))
3578 "0gqm5mc8alg84ra7yxach34il1jvcij8f76qdqcahnd3d2nhjbia"))))
3579 (build-system go-build-system)
3581 '(#:import-path "github.com/lucas-clemente/quic-go"
3582 ;; XXX More packages required...
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
3591 (home-page "https://github.com/lucas-clemente/quic-go")
3592 (license license:expat)))
3594 (define-public go-github-com-pkg-errors
3595 (let ((commit "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7")
3598 (name "go-github-com-pkg-errors")
3599 (version (git-version "0.8.1" revision commit))
3603 (url "https://github.com/pkg/errors.git")
3605 (file-name (git-file-name name version))
3608 "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"))))
3609 (build-system go-build-system)
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))))
3618 (define-public go-github-com-maruel-panicparse
3620 (name "go-github-com-maruel-panicparse")
3625 (url "https://github.com/maruel/panicparse")
3626 (commit (string-append "v" version))))
3627 (file-name (git-file-name name version))
3630 "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq"))))
3631 (build-system go-build-system)
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)))
3641 (define-public go-github-com-robfig-cron
3643 (name "go-github-com-robfig-cron")
3649 (url "https://github.com/robfig/cron")
3650 (commit (string-append "v" version))))
3651 (file-name (git-file-name name version))
3654 "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z"))))
3655 (build-system go-build-system)
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)))