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, 2019 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)
45 #:use-module (gnu packages admin)
46 #:use-module (gnu packages gcc)
47 #:use-module (gnu packages base)
48 #:use-module (gnu packages perl)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages pcre)
51 #:use-module (gnu packages lua)
52 #:use-module (gnu packages mp3)
53 #:use-module (gnu packages textutils)
54 #:use-module (gnu packages tls)
55 #:use-module (ice-9 match)
56 #:use-module (srfi srfi-1))
58 ;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a
59 ;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2
60 ;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately
61 ;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of
62 ;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or
63 ;; gccgo-5. Mips is not officially supported, but it should work if it is
69 ;; The C-language bootstrap of Go:
70 ;; https://golang.org/doc/install/source#go14
71 (version "1.4-bootstrap-20171003")
74 (uri (string-append "https://storage.googleapis.com/golang/"
75 name version ".tar.gz"))
78 "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
79 (build-system gnu-build-system)
84 `(#:modules ((ice-9 match)
85 (guix build gnu-build-system)
88 #:tests? #f ; Tests are run by the all.bash script.
89 ,@(if (string-prefix? "aarch64-linux" (or (%current-system)
90 (%current-target-system)))
91 '(#:system "armhf-linux")
94 (modify-phases %standard-phases
96 (add-after 'patch-generated-file-shebangs 'chdir
100 (add-before 'build 'prebuild
101 (lambda* (#:key inputs outputs #:allow-other-keys)
102 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
103 (ld (string-append (assoc-ref inputs "libc") "/lib"))
104 (loader (car (find-files ld "^ld-linux.+")))
105 (net-base (assoc-ref inputs "net-base"))
107 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
108 (output (assoc-ref outputs "out")))
110 ;; Removing net/ tests, which fail when attempting to access
111 ;; network resources not present in the build container.
112 (for-each delete-file
113 '("net/multicast_test.go" "net/parse_test.go"
116 ;; Add libgcc to the RUNPATH.
117 (substitute* "cmd/go/build.go"
118 (("cgoldflags := \\[\\]string\\{\\}")
119 (string-append "cgoldflags := []string{"
120 "\"-rpath=" gcclib "\"}"))
121 (("ldflags := buildLdflags")
123 "ldflags := buildLdflags\n"
124 "ldflags = append(ldflags, \"-r\")\n"
125 "ldflags = append(ldflags, \"" gcclib "\")\n")))
127 (substitute* "os/os_test.go"
128 (("/usr/bin") (getcwd))
129 (("/bin/pwd") (which "pwd")))
131 ;; Disable failing tests: these tests attempt to access
132 ;; commands or network resources which are neither available or
133 ;; necessary for the build to succeed.
138 ((regex all before test_name)
139 (string-append before "Disabled" test_name)))))
140 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
141 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
142 ("os/os_test.go" "(.+)(TestHostname.+)")
143 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
145 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
146 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
147 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
148 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
149 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
150 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
151 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
152 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
153 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")))
155 (substitute* "net/lookup_unix.go"
156 (("/etc/protocols") (string-append net-base "/etc/protocols")))
157 (substitute* "time/zoneinfo_unix.go"
158 (("/usr/share/zoneinfo/") tzdata-path))
159 (substitute* (find-files "cmd" "asm.c")
160 (("/lib/ld-linux.*\\.so\\.[0-9]") loader))
164 (lambda* (#:key inputs outputs #:allow-other-keys)
165 ;; FIXME: Some of the .a files are not bit-reproducible.
166 (let* ((output (assoc-ref outputs "out")))
167 (setenv "CC" (which "gcc"))
168 (setenv "GOOS" "linux")
169 (setenv "GOROOT" (dirname (getcwd)))
170 (setenv "GOROOT_FINAL" output)
171 (setenv "GO14TESTS" "1")
172 (invoke "sh" "all.bash"))))
175 (lambda* (#:key outputs inputs #:allow-other-keys)
176 (let* ((output (assoc-ref outputs "out"))
177 (doc_out (assoc-ref outputs "doc"))
178 (bash (string-append (assoc-ref inputs "bash") "bin/bash"))
179 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
180 (tests (string-append
181 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
183 (copy-recursively "../test" (string-append tests "/test"))
184 (delete-file-recursively "../test")
186 (copy-recursively "../api" (string-append docs "/api"))
187 (delete-file-recursively "../api")
188 (copy-recursively "../doc" (string-append docs "/doc"))
189 (delete-file-recursively "../doc")
191 (for-each (lambda (file)
192 (let ((file (string-append "../" file)))
193 (install-file file docs)
195 '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS"
196 "LICENSE" "VERSION" "robots.txt"))
197 (copy-recursively "../" output)
202 ("gcc:lib" ,gcc "lib")))
204 `(("pkg-config" ,pkg-config)
206 ("net-base" ,net-base)
209 (home-page "https://golang.org/")
210 (synopsis "Compiler and libraries for Go, a statically-typed language")
211 (description "Go, also commonly referred to as golang, is an imperative
212 programming language designed primarily for systems programming. Go is a
213 compiled, statically typed language in the tradition of C and C++, but adds
214 garbage collection, various safety features, and concurrent programming features
215 in the style of communicating sequential processes (@dfn{CSP}).")
216 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux"))
217 (license license:bsd-3)))
219 (define-public go-1.12
227 (uri (string-append "https://storage.googleapis.com/golang/"
228 name version ".src.tar.gz"))
231 "0m1rvawvpdl7kd0asw10m50xbxlhykix6dng9p4x6ih6x3y4hvpm"))))
233 (substitute-keyword-arguments (package-arguments go-1.4)
235 `(modify-phases ,phases
237 (lambda* (#:key inputs outputs #:allow-other-keys)
238 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
239 (ld (string-append (assoc-ref inputs "libc") "/lib"))
240 (loader (car (find-files ld "^ld-linux.+")))
241 (net-base (assoc-ref inputs "net-base"))
243 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
244 (output (assoc-ref outputs "out")))
246 ;; Having the patch in the 'patches' field of <origin> breaks
247 ;; the 'TestServeContent' test due to the fact that
248 ;; timestamps are reset. Thus, apply it from here.
249 (invoke "patch" "-p2" "--force" "-i"
250 (assoc-ref inputs "go-skip-gc-test.patch"))
252 ;; A side effect of these test scripts is testing
253 ;; cgo. Attempts at using cgo flags and directives with these
254 ;; scripts as specified here (https://golang.org/cmd/cgo/)
255 ;; have not worked. The tests continue to state that they can
256 ;; not find object files/headers despite being present.
259 '("cmd/go/testdata/script/mod_case_cgo.txt"
260 "cmd/go/testdata/script/list_find.txt"
261 "cmd/go/testdata/script/list_compiled_imports.txt"
262 "cmd/go/testdata/script/cgo_syso_issue29253.txt"))
264 (substitute* "os/os_test.go"
265 (("/usr/bin") (getcwd))
266 (("/bin/pwd") (which "pwd"))
267 (("/bin/sh") (which "sh")))
269 (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go"
270 (("/usr/bin") "/tmp"))
272 ;; Add libgcc to runpath
273 (substitute* "cmd/link/internal/ld/lib.go"
274 (("!rpath.set") "true"))
275 (substitute* "cmd/go/internal/work/gccgo.go"
276 (("cgoldflags := \\[\\]string\\{\\}")
277 (string-append "cgoldflags := []string{"
278 "\"-rpath=" gcclib "\""
282 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
283 (substitute* "cmd/go/internal/work/gc.go"
284 (("ldflags = setextld\\(ldflags, compiler\\)")
286 "ldflags = setextld(ldflags, compiler)\n"
287 "ldflags = append(ldflags, \"-r\")\n"
288 "ldflags = append(ldflags, \"" gcclib "\")\n")))
290 ;; Disable failing tests: these tests attempt to access
291 ;; commands or network resources which are neither available
292 ;; nor necessary for the build to succeed.
297 ((regex all before test_name)
298 (string-append before "Disabled" test_name)))))
299 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
300 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
301 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)")
302 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)")
303 ;; 127.0.0.1 doesn't exist
304 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)")
305 ;; 127.0.0.1 doesn't exist
306 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)")
307 ;; /etc/services doesn't exist
308 ("net/parse_test.go" "(.+)(TestReadLine.+)")
309 ("os/os_test.go" "(.+)(TestHostname.+)")
310 ;; The user's directory doesn't exist
311 ("os/os_test.go" "(.+)(TestUserHomeDir.+)")
312 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
313 ("time/format_test.go" "(.+)(TestParseInLocation.+)")
314 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
315 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
316 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
317 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
318 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
319 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
320 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
321 ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)")
322 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
323 ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)")
324 ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)")
325 ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)")
326 ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)")
327 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")
328 ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)")
329 ("net/lookup_test.go" "(.+)(TestLookupPort.+)")
330 ("syscall/exec_linux_test.go"
331 "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)")))
333 ;; fix shebang for testar script
334 ;; note the target script is generated at build time.
335 (substitute* "../misc/cgo/testcarchive/carchive_test.go"
336 (("#!/usr/bin/env") (string-append "#!" (which "env"))))
338 (substitute* "net/lookup_unix.go"
339 (("/etc/protocols") (string-append net-base "/etc/protocols")))
340 (substitute* "net/port_unix.go"
341 (("/etc/services") (string-append net-base "/etc/services")))
342 (substitute* "time/zoneinfo_unix.go"
343 (("/usr/share/zoneinfo/") tzdata-path))
344 (substitute* (find-files "cmd" "\\.go")
345 (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
347 (add-before 'build 'set-bootstrap-variables
348 (lambda* (#:key outputs inputs #:allow-other-keys)
349 ;; Tell the build system where to find the bootstrap Go.
350 (let ((go (assoc-ref inputs "go")))
351 (setenv "GOROOT_BOOTSTRAP" go)
352 (setenv "GOGC" "400")
355 (lambda* (#:key inputs outputs #:allow-other-keys)
356 ;; FIXME: Some of the .a files are not bit-reproducible.
357 (let* ((output (assoc-ref outputs "out")))
358 (setenv "CC" (which "gcc"))
359 (setenv "GOOS" "linux")
360 (setenv "GOROOT" (dirname (getcwd)))
361 (setenv "GOROOT_FINAL" output)
362 (setenv "CGO_ENABLED" "1")
363 (invoke "sh" "all.bash"))))
366 ;; TODO: Most of this could be factorized with Go 1.4.
367 (lambda* (#:key outputs #:allow-other-keys)
368 (let* ((output (assoc-ref outputs "out"))
369 (doc_out (assoc-ref outputs "doc"))
370 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
372 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
373 (delete-file-recursively "../pkg/bootstrap")
374 ;; Prevent installation of the build cache, which contains
375 ;; store references to most of the tools used to build Go and
376 ;; would unnecessarily increase the size of Go's closure if it
378 (delete-file-recursively "../pkg/obj")
381 (copy-recursively "../test" (string-append src "/test"))
382 (delete-file-recursively "../test")
384 (copy-recursively "../api" (string-append docs "/api"))
385 (delete-file-recursively "../api")
386 (copy-recursively "../doc" (string-append docs "/doc"))
387 (delete-file-recursively "../doc")
391 (let* ((filein (string-append "../" file))
392 (fileout (string-append docs "/" file)))
393 (copy-file filein fileout)
394 (delete-file filein)))
395 ;; Note the slightly different file names compared to 1.4.
396 '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS"
397 "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt"))
399 (copy-recursively "../" output)
403 ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
404 ,@(match (%current-system)
405 ((or "armhf-linux" "aarch64-linux")
406 `(("gold" ,binutils-gold)))
408 ,@(package-native-inputs go-1.4)))
409 (supported-systems %supported-systems)))
411 (define-public go go-1.12)
413 (define-public go-github-com-alsm-ioprogress
414 (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
417 (name "go-github-com-alsm-ioprogress")
418 (version (git-version "0.0.0" revision commit))
422 (url "https://github.com/alsm/ioprogress.git")
424 (file-name (git-file-name name version))
427 "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh"))))
428 (build-system go-build-system)
430 '(#:import-path "github.com/alsm/ioprogress"))
431 (synopsis "Textual progress bars in Go")
432 (description "@code{ioprogress} is a Go library with implementations of
433 @code{io.Reader} and @code{io.Writer} that draws progress bars. The primary use
434 case for these are for command-line applications but alternate progress bar
435 writers can be supplied for alternate environments.")
436 (home-page "https://github.com/alsm/ioprogress")
437 (license license:expat))))
439 (define-public go-github-com-aki237-nscjar
440 (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06")
443 (name "go-github-com-aki237-nscjar")
444 (version (git-version "0.0.0" revision commit))
448 (url "https://github.com/aki237/nscjar.git")
450 (file-name (git-file-name name version))
453 "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96"))))
454 (build-system go-build-system)
456 '(#:import-path "github.com/aki237/nscjar"))
457 (synopsis "Handle Netscape / Mozilla cookies")
458 (description "@code{nscjar} is a Go library used to parse and output
459 Netscape/Mozilla's old-style cookie files. It also implements a simple cookie
460 jar struct to manage the cookies added to the cookie jar.")
461 (home-page "https://github.com/aki237/nscjar")
462 (license license:expat))))
464 (define-public go-github.com-jessevdk-go-flags
466 (name "go-github.com-jessevdk-go-flags")
471 (url "https://github.com/jessevdk/go-flags")
472 (commit (string-append "v" version))))
473 (file-name (git-file-name name version))
476 "1jk2k2l10lwrn1r3nxdvbs0yz656830j4khzirw8p4ahs7c5zz36"))))
477 (build-system go-build-system)
479 '(#:import-path "github.com/jessevdk/go-flags"))
480 (synopsis "Go library for parsing command line arguments")
482 "The @code{flags} package provides a command line option parser. The
483 functionality is similar to the go builtin @code{flag} package, but
484 @code{flags} provides more options and uses reflection to provide a succinct
485 way of specifying command line options.")
486 (home-page "https://github.com/jessevdk/go-flags")
487 (license license:bsd-3)))
489 (define-public go-gopkg.in-tomb.v2
490 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
493 (name "go-gopkg.in-tomb.v2")
494 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
498 (url "https://github.com/go-tomb/tomb.git")
500 (file-name (string-append name "-" version ".tar.gz"))
503 "1sv15sri99szkdz1bkh0ir46w9n8prrwx5hfai13nrhkawfyfy10"))))
504 (build-system go-build-system)
506 '(#:import-path "gopkg.in/tomb.v2"
508 (modify-phases %standard-phases
509 (add-after 'unpack 'patch-source
511 ;; Add a missing % to fix the compilation of this test
512 (substitute* "src/gopkg.in/tomb.v2/tomb_test.go"
513 (("t.Fatalf\\(`Killf\\(\"BO%s")
514 "t.Fatalf(`Killf(\"BO%%s"))
516 (synopsis "@code{tomb} handles clean goroutine tracking and termination")
518 "The @code{tomb} package handles clean goroutine tracking and
520 (home-page "https://gopkg.in/tomb.v2")
521 (license license:bsd-3))))
523 (define-public go-github.com-jtolds-gls
525 (name "go-github.com-jtolds-gls")
530 (url "https://github.com/jtolds/gls")
531 (commit (string-append "v" version))))
532 (file-name (git-file-name name version))
535 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
536 (build-system go-build-system)
538 '(#:import-path "github.com/jtolds/gls"))
539 (synopsis "@code{gls} provides Goroutine local storage")
541 "The @code{gls} package provides a way to store a retrieve values
543 (home-page "https://github.com/jtolds/gls")
544 (license license:expat)))
546 (define-public go-github-com-tj-docopt
548 (name "go-github-com-tj-docopt")
553 (url "https://github.com/tj/docopt")
554 (commit (string-append "v" version))))
555 (file-name (git-file-name name version))
558 "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080"))))
559 (build-system go-build-system)
561 '(#:import-path "github.com/tj/docopt"))
562 (synopsis "Go implementation of docopt")
564 "This library allows the user to define a command-line interface from a
565 program's help message rather than specifying it programmatically with
566 command-line parsers.")
567 (home-page "https://github.com/tj/docopt")
568 (license license:expat)))
570 (define-public go-github-com-hashicorp-hcl
571 (let ((commit "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8")
574 (name "go-github-com-hashicorp-hcl")
575 (version (git-version "0.0.0" revision commit))
579 (url "https://github.com/hashicorp/hcl")
581 (file-name (git-file-name name version))
584 "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc"))))
585 (build-system go-build-system)
588 #:import-path "github.com/hashicorp/hcl"))
589 (synopsis "Go implementation of HashiCorp Configuration Language")
591 "This package contains the main implementation of the @acronym{HCL,
592 HashiCorp Configuration Language}. HCL is designed to be a language for
593 expressing configuration which is easy for both humans and machines to read.")
594 (home-page "https://github.com/hashicorp/hcl")
595 (license license:mpl2.0))))
597 (define-public go-golang-org-x-tools
598 (let ((commit "8b927904ee0dec805c89aaf9172f4459296ed6e8")
601 (name "go-golang-org-x-tools")
602 (version (git-version "0.1.3" revision commit))
606 (url "https://go.googlesource.com/tools")
608 (file-name (string-append "go.googlesource.com-tools-"
609 version "-checkout"))
612 "0iinb70xhcjsddgi42ia1n745lx2ibnjdm6m2v666qrk3876vpck"))))
613 (build-system go-build-system)
615 `(#:import-path "golang.org/x/tools"
616 ;; Source-only package
619 (modify-phases %standard-phases
620 ;; Source-only package
622 (synopsis "Tools that support the Go programming language")
623 (description "This package provides miscellaneous tools that support the
624 Go programming language.")
625 (home-page "https://go.googlesource.com/tools/")
626 (license license:bsd-3))))
628 (define-public go-golang-org-x-crypto
629 (let ((commit "b7391e95e576cacdcdd422573063bc057239113d")
632 (name "go-golang-org-x-crypto")
633 (version (git-version "0.0.0" revision commit))
637 (url "https://go.googlesource.com/crypto")
639 (file-name (string-append "go.googlesource.com-crypto-"
640 version "-checkout"))
643 "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm"))))
644 (build-system go-build-system)
646 '(#:import-path "golang.org/x/crypto"
647 ;; Source-only package
650 (modify-phases %standard-phases
651 ;; Source-only package
653 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
654 (lambda* (#:key outputs #:allow-other-keys)
656 (make-file-writable file))
658 (string-append (assoc-ref outputs "out")
659 "/src/golang.org/x/crypto/ed25519/testdata")
663 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
664 (synopsis "Supplementary cryptographic libraries in Go")
665 (description "This package provides supplementary cryptographic libraries
666 for the Go language.")
667 (home-page "https://go.googlesource.com/crypto/")
668 (license license:bsd-3))))
670 (define-public go-golang-org-x-net
671 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
674 (name "go-golang-org-x-net")
675 (version (git-version "0.0.0" revision commit))
679 (url "https://go.googlesource.com/net")
681 (file-name (git-file-name name version))
684 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
685 (build-system go-build-system)
687 `(#:import-path "golang.org/x/net"
688 ; Source-only package
691 (modify-phases %standard-phases
693 (synopsis "Go supplemental networking libraries")
694 (description "This package provides supplemental Go networking libraries.")
695 (home-page "https://go.googlesource.com/net")
696 (license license:bsd-3))))
698 (define-public go-golang-org-x-sys
699 (let ((commit "04f50cda93cbb67f2afa353c52f342100e80e625")
702 (name "go-golang-org-x-sys")
703 (version (git-version "0.0.0" revision commit))
707 (url "https://go.googlesource.com/sys")
709 (file-name (git-file-name name version))
712 "0hmfsz9y1ingwsn482hlzzmzs7kr3cklm0ana0mbdk70isw2bxnw"))))
713 (build-system go-build-system)
715 `(#:import-path "golang.org/x/sys"
716 ;; Source-only package
719 (modify-phases %standard-phases
721 (synopsis "Go support for low-level system interaction")
722 (description "This package provides supplemental libraries offering Go
723 support for low-level interaction with the operating system.")
724 (home-page "https://go.googlesource.com/sys")
725 (license license:bsd-3))))
727 (define-public go-golang-org-x-text
729 (name "go-golang-org-x-text")
734 (url "https://go.googlesource.com/text")
735 (commit (string-append "v" version))))
736 (file-name (string-append "go.googlesource.com-text-"
737 version "-checkout"))
740 "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh"))))
741 (build-system go-build-system)
743 `(#:import-path "golang.org/x/text"
744 ; Source-only package
747 (modify-phases %standard-phases
749 (synopsis "Supplemental Go text processing libraries")
750 (description "This package provides supplemental Go libraries for text
752 (home-page "https://go.googlesource.com/text")
753 (license license:bsd-3)))
755 (define-public go-golang-org-x-time
756 (let ((commit "6dc17368e09b0e8634d71cac8168d853e869a0c7")
759 (name "go-golang-org-x-time")
760 (version (git-version "0.0.0" revision commit))
764 (url "https://go.googlesource.com/time")
766 (file-name (git-file-name name version))
769 "1fx4cf5fpdz00g3c7vxzy92hdcg0vh4yqw00qp5s52j72qixynbk"))))
770 (build-system go-build-system)
772 `(#:import-path "golang.org/x/time"
773 ; Source-only package
776 (modify-phases %standard-phases
779 ; `(("go-golang-org-x-net" ,go-golang-org-x-net)))
780 (synopsis "Supplemental Go time libraries")
781 (description "This package provides supplemental Go libraries related to
783 (home-page "https://godoc.org/golang.org/x/time/rate")
784 (license license:bsd-3))))
786 (define-public go-github-com-burntsushi-toml
788 (name "go-github-com-burntsushi-toml")
794 (url "https://github.com/BurntSushi/toml.git")
795 (commit (string-append "v" version))))
796 (file-name (git-file-name name version))
799 "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"))))
800 (build-system go-build-system)
802 '(#:import-path "github.com/BurntSushi/toml"))
803 (home-page "https://github.com/BurntSushi/toml")
804 (synopsis "Toml parser and encoder for Go")
805 (description "This package is toml parser and encoder for Go. The interface
806 is similar to Go's standard library @code{json} and @code{xml} package.")
807 (license license:expat)))
809 (define-public go-github-com-getsentry-raven-go
810 (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
813 (name "go-github-com-getsentry-raven-go")
814 (version (git-version "0.2.0" revision commit))
819 (url "https://github.com/getsentry/raven-go.git")
821 (file-name (git-file-name name version))
824 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
825 (build-system go-build-system)
827 '(#:import-path "github.com/getsentry/raven-go"))
829 `(("go-github-com-certifi-gocertifi" ,go-github-com-certifi-gocertifi)
830 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)))
831 (home-page "https://github.com/getsentry/raven-go")
832 (synopsis "Sentry client in Go")
833 (description "This package is a Go client API for the Sentry event/error
835 (license license:bsd-3))))
837 (define-public go-github-com-hashicorp-go-version
839 "03c5bf6be031b6dd45afec16b1cf94fc8938bc77")
842 (name "go-github-com-hashicorp-go-version")
843 (version (git-version "0.0.0" revision commit))
848 (url "https://github.com/hashicorp/go-version.git")
850 (file-name (git-file-name name version))
853 "0sjq57gpfznaqdrbyb2p0bn90g9h661cvr0jrk6ngags4pbw14ik"))))
854 (build-system go-build-system)
856 '(#:import-path "github.com/hashicorp/go-version"))
858 "https://github.com/hashicorp/go-version")
859 (synopsis "Go library for parsing and verifying versions and version
861 (description "This package is a library for parsing versions and version
862 constraints, and verifying versions against a set of constraints. It can sort
863 a collection of versions properly, handles prerelease/beta versions, can
864 increment versions.")
865 (license license:mpl2.0))))
867 (define-public go-github-com-jpillora-backoff
869 "06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
872 (name "go-github-com-jpillora-backoff")
873 (version (git-version "0.0.0" revision commit))
878 (url "https://github.com/jpillora/backoff.git")
880 (file-name (git-file-name name version))
883 "0xhvxr7bm47czdc5hy3kl508z3y4j91i2jm7vg774i52zych6k4l"))))
884 (build-system go-build-system)
886 '(#:import-path "github.com/jpillora/backoff"))
887 (home-page "https://github.com/jpillora/backoff")
888 (synopsis "Simple exponential backoff counter in Go")
889 (description "This package is a simple exponential backoff counter in
891 (license license:expat))))
893 (define-public go-github-com-stretchr-testify
895 "b1f989447a57594c728884458a39abf3a73447f7")
898 (name "go-github-com-stretchr-testify")
899 (version (git-version "1.1.4" revision commit))
904 (url "https://github.com/stretchr/testify.git")
906 (file-name (git-file-name name version))
909 "0p0gkqzh2p8r5g0rxm885ljl7ghih7h7hx9w562imx5ka0vdgixv"))))
910 (build-system go-build-system)
912 '(#:import-path "github.com/stretchr/testify"))
913 (home-page "https://github.com/stretchr/testify")
914 (synopsis "Go helper library for tests and invariant checking")
915 (description "This package provide many tools for testifying that your
916 code will behave as you intend.
920 @item Easy assertions
922 @item HTTP response trapping
923 @item Testing suite interfaces and functions.
925 (license license:expat))))
927 (define-public go-github-com-tevino-abool
929 "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12")
932 (name "go-github-com-tevino-abool")
933 (version (git-version "0.0.0" revision commit))
938 (url "https://github.com/tevino/abool.git")
940 (file-name (git-file-name name version))
943 "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm"))))
944 (build-system go-build-system)
946 '(#:import-path "github.com/tevino/abool"))
947 (home-page "https://github.com/tevino/abool")
948 (synopsis "Atomic boolean library for Go code")
949 (description "This package is atomic boolean library for Go code,
950 optimized for performance yet simple to use.")
951 (license license:expat))))
953 (define-public go-github-com-blang-semver
954 (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9")
957 (name "go-github-com-blang-semver")
958 (version (git-version "0.0.0" revision commit))
963 (url "https://github.com/blang/semver.git")
965 (file-name (git-file-name name version))
968 "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2"))))
969 (build-system go-build-system)
971 '(#:import-path "github.com/blang/semver"))
972 (home-page "https://github.com/blang/semver")
973 (synopsis "Semantic versioning library written in Go")
974 (description "Semver is a library for Semantic versioning written in Go.")
975 (license license:expat))))
977 (define-public go-github-com-emicklei-go-restful
978 (let ((commit "89ef8af493ab468a45a42bb0d89a06fccdd2fb22")
981 (name "go-github-com-emicklei-go-restful")
982 (version (git-version "0.0.0" revision commit))
987 (url "https://github.com/emicklei/go-restful.git")
989 (file-name (git-file-name name version))
992 "0rrlfcfq80fkxifpih6bq31vavb5mf4530xz51pp9pq1mn2fzjfh"))))
993 (build-system go-build-system)
995 '(#:import-path "github.com/emicklei/go-restful"))
996 (home-page "https://github.com/emicklei/go-restful")
997 (synopsis "Build REST-style web services using Go")
998 (description "This package provides @code{go-restful}, which helps
999 developers to use @code{http} methods explicitly and in a way that's consistent
1000 with the HTTP protocol definition.")
1001 (license license:expat))))
1003 (define-public go-github-com-google-cadvisor
1004 (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
1007 (name "go-github-com-google-cadvisor")
1008 (version (git-version "0.0.0" revision commit))
1013 (url "https://github.com/google/cadvisor.git")
1015 (file-name (git-file-name name version))
1018 "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55"))))
1019 (build-system go-build-system)
1021 '(#:import-path "github.com/google/cadvisor"))
1022 (home-page "https://github.com/google/cadvisor")
1023 (synopsis "Analyze resource usage of running containers")
1024 (description "The package provides @code{cadvisor}, which provides
1025 information about the resource usage and performance characteristics of running
1027 (license license:asl2.0))))
1029 (define-public go-github-com-google-gofuzz
1030 (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")
1033 (name "go-github-com-google-gofuzz")
1034 (version (git-version "0.0.0" revision commit))
1039 (url "https://github.com/google/gofuzz.git")
1041 (file-name (git-file-name name version))
1044 "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8"))))
1045 (build-system go-build-system)
1047 '(#:import-path "github.com/google/gofuzz"))
1048 (home-page "https://github.com/google/gofuzz")
1049 (synopsis "Fuzz testing library for Go")
1050 (description "Gofuzz is a library for populationg Go objects with random
1051 values for the purpose of fuzz testing.")
1052 (license license:asl2.0))))
1054 (define-public go-github-com-gorilla-context
1055 (let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42")
1058 (name "go-github-com-gorilla-context")
1059 (version (git-version "0.0.0" revision commit))
1064 (url "https://github.com/gorilla/context.git")
1066 (file-name (git-file-name name version))
1069 "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4"))))
1070 (build-system go-build-system)
1072 '(#:import-path "github.com/gorilla/context"))
1073 (home-page "https://github.com/gorilla/context")
1074 (synopsis "Go registry for request variables")
1075 (description "This package provides @code{gorilla/context}, which is a general purpose registry for global request variables in the Go programming language.")
1076 (license license:bsd-3))))
1078 (define-public go-github-com-gorilla-mux
1079 (let ((commit "599cba5e7b6137d46ddf58fb1765f5d928e69604")
1082 (name "go-github-com-gorilla-mux")
1083 (version (git-version "0.0.0" revision commit))
1088 (url "https://github.com/gorilla/mux.git")
1090 (file-name (git-file-name name version))
1093 "0wd6jjii1kg5s0nk3ri6gqriz6hbd6bbcn6x4jf8n7ncrb8qsxyz"))))
1094 (build-system go-build-system)
1096 '(#:import-path "github.com/gorilla/mux"))
1097 (home-page "https://github.com/gorilla/mux")
1098 (synopsis "URL router and dispatcher for Go")
1100 "Gorilla/Mux implements a request router and dispatcher for matching
1101 incoming requests with their respective handler.")
1102 (license license:bsd-3))))
1104 (define-public go-github-com-jonboulle-clockwork
1105 (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d")
1108 (name "go-github-com-jonboulle-clockwork")
1109 (version (git-version "0.0.0" revision commit))
1114 (url "https://github.com/jonboulle/clockwork.git")
1116 (file-name (git-file-name name version))
1119 "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc"))))
1120 (build-system go-build-system)
1122 '(#:import-path "github.com/jonboulle/clockwork"))
1123 (home-page "https://github.com/jonboulle/clockwork")
1124 (synopsis "Fake clock library for Go")
1126 "Replace uses of the @code{time} package with the
1127 @code{clockwork.Clock} interface instead.")
1128 (license license:asl2.0))))
1130 (define-public go-github-com-spf13-pflag
1131 (let ((commit "4f9190456aed1c2113ca51ea9b89219747458dc1")
1134 (name "go-github-com-spf13-pflag")
1135 (version (git-version "0.0.0" revision commit))
1140 (url "https://github.com/spf13/pflag.git")
1142 (file-name (git-file-name name version))
1145 "12vrlcsbwjqlfc49rwky45mbcj74c0kb6z54354pzas6fwzyi1kc"))))
1146 (build-system go-build-system)
1148 '(#:import-path "github.com/spf13/pflag"))
1149 (home-page "https://github.com/spf13/pflag")
1150 (synopsis "Replacement for Go's @code{flag} package")
1152 "Pflag is library to replace Go's @code{flag} package. It implements
1153 POSIX/GNU-style command-line options with double hyphens. It is is compatible
1155 @uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html,
1156 GNU extensions} to the POSIX recommendations for command-line options.")
1157 (license license:bsd-3))))
1159 (define-public go-github-com-sirupsen-logrus
1161 (name "go-github-com-sirupsen-logrus")
1167 (url "https://github.com/sirupsen/logrus.git")
1168 (commit (string-append "v" version))))
1171 "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz"))))
1172 (build-system go-build-system)
1174 `(("go-golang-org-x-crypto"
1175 ,go-golang-org-x-crypto)
1176 ("go-github-com-stretchr-testify"
1177 ,go-github-com-stretchr-testify)
1178 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
1180 '(#:tests? #f ;FIXME missing dependencies
1181 #:import-path "github.com/sirupsen/logrus"))
1182 (home-page "https://github.com/sirupsen/logrus")
1183 (synopsis "Structured, pluggable logging for Go")
1184 (description "Logrus is a structured logger for Go, completely API
1185 compatible with the standard library logger.")
1186 (license license:expat)))
1188 (define-public go-github-com-kardianos-osext
1189 (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14")
1192 (name "go-github-com-kardianos-osext")
1193 (version (git-version "0.0.0" revision commit))
1197 (url "https://github.com/kardianos/osext")
1199 (file-name (git-file-name name version))
1202 "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz"))))
1203 (build-system go-build-system)
1205 `(#:import-path "github.com/kardianos/osext"
1206 ;; The tests are flaky:
1207 ;; <https://github.com/kardianos/osext/issues/21>
1209 (synopsis "Find the running executable")
1210 (description "Osext provides a method for finding the current executable
1211 file that is running. This can be used for upgrading the current executable or
1212 finding resources located relative to the executable file.")
1213 (home-page "https://github.com/kardianos/osext")
1214 (license license:bsd-3))))
1216 (define-public go-github-com-ayufan-golang-kardianos-service
1217 (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3")
1220 (name "go-github-com-ayufan-golang-kardianos-service")
1221 (version (git-version "0.0.0" revision commit))
1227 "https://github.com/ayufan/golang-kardianos-service.git")
1229 (file-name (git-file-name name version))
1232 "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5"))))
1233 (build-system go-build-system)
1235 `(("go-github-com-kardianos-osext"
1236 ,go-github-com-kardianos-osext)))
1238 '(#:tests? #f ;FIXME tests fail: Service is not running.
1239 #:import-path "github.com/ayufan/golang-kardianos-service"))
1240 (home-page "https://github.com/ayufan/golang-kardianos-service")
1241 (synopsis "Go interface to a variety of service supervisors")
1242 (description "This package provides @code{service}, a Go module that can
1243 run programs as a service using a variety of supervisors, including systemd,
1244 SysVinit, and more.")
1245 (license license:zlib))))
1247 (define-public go-github-com-docker-distribution
1248 (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329")
1251 (name "go-github-com-docker-distribution")
1252 (version (git-version "0.0.0" revision commit))
1254 ;; FIXME: This bundles many things, see
1255 ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>.
1259 (url "https://github.com/docker/distribution")
1261 (file-name (git-file-name name version))
1264 "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6"))))
1265 (build-system go-build-system)
1267 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
1268 ("go-github-com-sirupsen-logrus"
1269 ,go-github-com-sirupsen-logrus)
1270 ("go-golang-org-x-crypto"
1271 ,go-golang-org-x-crypto)))
1273 '(#:import-path "github.com/docker/distribution"
1275 (modify-phases %standard-phases
1276 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
1277 (lambda* (#:key outputs #:allow-other-keys)
1279 (make-file-writable file))
1281 (assoc-ref outputs "out")
1285 "https://github.com/docker/distribution")
1286 (synopsis "This package is a Docker toolset to pack, ship, store, and
1288 (description "Docker Distribution is a Docker toolset to pack, ship,
1289 store, and deliver content. It contains Docker Registry 2.0 and libraries
1290 to interact with distribution components.")
1291 (license license:asl2.0))))
1293 (define-public go-github-com-docker-go-connections
1294 (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d")
1297 (name "go-github-com-docker-go-connections")
1298 (version (git-version "0.0.0" revision commit))
1303 (url "https://github.com/docker/go-connections.git")
1305 (file-name (git-file-name name version))
1308 "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0"))))
1309 (build-system go-build-system)
1311 '(#:import-path "github.com/docker/go-connections"))
1312 (home-page "https://github.com/docker/go-connections")
1313 (synopsis "Networking library for Go")
1315 "This package provides a library to work with network connections in
1316 the Go language. In particular it provides tools to deal with network address
1317 translation (NAT), proxies, sockets, and transport layer security (TLS).")
1318 (license license:asl2.0))))
1320 (define-public go-github-com-docker-machine
1321 (let ((commit "7b7a141da84480342357c51838be142bf183b095")
1324 (name "go-github-com-docker-machine")
1325 (version (git-version "0.0.0" revision commit))
1330 (url "https://github.com/docker/machine.git")
1332 (file-name (git-file-name name version))
1335 "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s"))))
1336 (build-system go-build-system)
1338 '(#:import-path "github.com/docker/machine"))
1339 (home-page "https://github.com/docker/machine")
1340 (synopsis "Machine management for a container-centric world")
1342 "@dfn{Machine} lets you create Docker hosts on your computer, on
1343 hosting providers, and inside your data center. It creates servers, installs
1344 Docker on them, then configures the Docker client to talk to them.")
1345 (license license:asl2.0))))
1347 (define-public go-github-com-gorhill-cronexpr
1348 (let ((commit "f0984319b44273e83de132089ae42b1810f4933b")
1351 (name "go-github-com-gorhill-cronexpr")
1352 (version (git-version "0.0.0" revision commit))
1357 (url "https://github.com/gorhill/cronexpr.git")
1359 (file-name (git-file-name name version))
1362 "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2"))))
1363 (build-system go-build-system)
1365 '(#:import-path "github.com/gorhill/cronexpr"))
1366 (home-page "https://github.com/gorhill/cronexpr")
1367 (synopsis "Cron expression parser in the Go language")
1369 "This package provides a cron expression parser in the Go language.
1370 Given a cron expression and a time stamp, you can get the next time stamp
1371 which satisfies the cron expression.")
1372 (license (list license:gpl3+
1375 (define-public go-gopkg-in-check-v1
1376 (let ((commit "788fd78401277ebd861206a03c884797c6ec5541")
1379 (name "go-gopkg-in-check-v1")
1380 (version (git-version "1.0.0" revision commit))
1385 (url "https://github.com/go-check/check")
1387 (file-name (git-file-name name version))
1390 "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"))))
1391 (build-system go-build-system)
1393 '(#:import-path "gopkg.in/check.v1"))
1395 `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty)))
1396 (home-page "https://gopkg.in/check.v1")
1397 (synopsis "Test framework for the Go language")
1398 (description "This package provides a test library for the Go language.")
1399 (license license:asl2.0))))
1401 (define-public go-gopkg-in-yaml-v2
1403 (name "go-gopkg-in-yaml-v2")
1409 (url "https://gopkg.in/yaml.v2.git")
1410 (commit (string-append "v" version))))
1411 (file-name (git-file-name name version))
1414 "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))))
1415 (build-system go-build-system)
1417 '(#:import-path "gopkg.in/yaml.v2"))
1419 `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)))
1420 (home-page "https://gopkg.in/yaml.v2")
1421 (synopsis "YAML reader and writer for the Go language")
1423 "This package provides a Go library for encode and decode YAML
1425 (license license:asl2.0)))
1427 (define-public go-github-com-mattn-go-isatty
1429 (name "go-github-com-mattn-go-isatty")
1435 (url "https://github.com/mattn/go-isatty")
1436 (commit (string-append "v" version))))
1437 (file-name (git-file-name name version))
1440 "1i77aq4gf9as03m8fpfh8fq49n4z9j7548blrcsidm1xhslzk5xd"))))
1441 (build-system go-build-system)
1443 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
1445 '(#:import-path "github.com/mattn/go-isatty"))
1446 (home-page "https://github.com/mattn/go-isatty")
1447 (synopsis "Provide @code{isatty} for Golang")
1448 (description "This package provides @code{isatty}, a Go module that can
1449 tell you whether a file descriptor points to a terminal and the type of the
1451 (license license:expat)))
1453 (define-public go-github-com-mattn-go-colorable
1454 (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade")
1457 (name "go-github-com-mattn-go-colorable")
1458 (version (git-version "0.0.0" revision commit))
1463 (url "https://github.com/mattn/go-colorable")
1465 (file-name (git-file-name name version))
1468 "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r"))))
1469 (build-system go-build-system)
1471 `(("go-github-com-mattn-go-isatty"
1472 ,go-github-com-mattn-go-isatty)))
1474 '(#:import-path "github.com/mattn/go-colorable"))
1475 (home-page "https://github.com/mattn/go-colorable")
1476 (synopsis "Handle ANSI color escapes on Windows")
1477 (description "This package provides @code{colorable}, a module that
1478 makes it possible to handle ANSI color escapes on Windows.")
1479 (license license:expat))))
1481 (define-public go-github-com-mgutz-ansi
1482 (let ((commit "9520e82c474b0a04dd04f8a40959027271bab992")
1485 (name "go-github-com-mgutz-ansi")
1486 (version (git-version "0.0.0" revision commit))
1492 "https://github.com/mgutz/ansi")
1494 (file-name (git-file-name name version))
1497 "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j"))))
1498 (build-system go-build-system)
1500 `(("go-github-com-mattn-go-isatty"
1501 ,go-github-com-mattn-go-isatty)
1502 ("go-github-com-mattn-go-colorable"
1503 ,go-github-com-mattn-go-colorable)))
1505 '(#:import-path "github.com/mgutz/ansi"))
1506 (home-page "https://github.com/mgutz/ansi")
1507 (synopsis "Small, fast library to create ANSI colored strings and codes")
1508 (description "This package provides @code{ansi}, a Go module that can
1509 generate ANSI colored strings.")
1510 (license license:expat))))
1512 (define-public go-github-com-aarzilli-golua
1513 (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d")
1516 (name "go-github-com-aarzilli-golua")
1517 (version (git-version "0.0.0" revision commit))
1523 "https://github.com/aarzilli/golua")
1525 (file-name (git-file-name name version))
1528 "1d9hr29i36cza98afj3g6rs3l7xbkprwzz0blcxsr9dd7nak20di"))))
1529 (build-system go-build-system)
1530 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
1531 ;; when this package required as input for another one, it will have to
1532 ;; be built again. Thus its CGO requirements must be made available in
1533 ;; the environment, that is, they must be propagated.
1537 `(#:unpack-path "github.com/aarzilli/golua"
1538 #:import-path "github.com/aarzilli/golua/lua"
1540 (modify-phases %standard-phases
1541 ;; While it's possible to fix the CGO_LDFLAGS with the "-tags"
1542 ;; command line argument, go-1.10+ does not re-use the produced pkg
1543 ;; for dependencies, which means we would need to propagate the
1544 ;; same "-tags" argument to all golua referrers. A substitution is
1545 ;; more convenient here. We also need to propagate the lua
1546 ;; dependency to make it available to referrers.
1547 (add-after 'unpack 'fix-lua-ldflags
1549 (substitute* "src/github.com/aarzilli/golua/lua/lua.go"
1550 (("#cgo linux,!llua,!luaa LDFLAGS: -llua5.3")
1551 "#cgo linux,!llua,!luaa LDFLAGS: -llua")))))))
1552 (home-page "https://github.com/aarzilli/golua")
1553 (synopsis "Go Bindings for the Lua C API")
1554 (description "This package provides @code{lua}, a Go module that can
1555 run a Lua virtual machine.")
1556 (license license:expat))))
1558 (define-public go-gitlab-com-ambrevar-golua-unicode
1559 (let ((commit "97ce517e7a1fe2407a90c317a9c74b173d396144")
1562 (name "go-gitlab-com-ambrevar-golua-unicode")
1563 (version (git-version "0.0.0" revision commit))
1569 "https://gitlab.com/ambrevar/golua")
1571 (file-name (git-file-name name version))
1574 "1izcp7p8nagjwqd13shb0020w7xhppib1a3glw2d1468bflhksnm"))))
1575 (build-system go-build-system)
1578 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
1580 `(#:unpack-path "gitlab.com/ambrevar/golua"
1581 #:import-path "gitlab.com/ambrevar/golua/unicode"
1583 (modify-phases %standard-phases
1585 (lambda* (#:key import-path #:allow-other-keys)
1586 (setenv "USER" "homeless-dude")
1587 (invoke "go" "test" import-path))))))
1588 (home-page "https://gitlab.com/ambrevar/golua")
1589 (synopsis "Add Unicode support to Golua")
1590 (description "This extension to Arzilli's Golua adds Unicode support to
1591 all functions from the Lua string library. Lua patterns are replaced by Go
1592 regexps. This breaks compatibility with Lua, but Unicode support breaks it
1593 anyways and Go regexps are more powerful.")
1594 (license license:expat))))
1596 (define-public go-github-com-yookoala-realpath
1597 (let ((commit "d19ef9c409d9817c1e685775e53d361b03eabbc8")
1600 (name "go-github-com-yookoala-realpath")
1601 (version (git-version "0.0.0" revision commit))
1607 "https://github.com/yookoala/realpath")
1609 (file-name (git-file-name name version))
1612 "0qvz1dcdldf53rq69fli76z5k1vr7prx9ds1d5rpzgs68kwn40nw"))))
1613 (build-system go-build-system)
1615 `(#:import-path "github.com/yookoala/realpath"))
1616 (home-page "https://github.com/yookoala/realpath")
1617 (synopsis "@code{realpath} for Golang")
1618 (description "This package provides @code{realpath}, a Go module that
1619 when provided with a valid relative path / alias path, it will return you with
1620 a string of its real absolute path in the system.")
1621 (license license:expat))))
1623 (define-public go-gitlab-com-ambrevar-damerau
1624 (let ((commit "883829e1f25fad54015772ea663e69017cf22352")
1627 (name "go-gitlab-com-ambrevar-damerau")
1628 (version (git-version "0.0.0" revision commit))
1634 "https://gitlab.com/ambrevar/damerau")
1636 (file-name (git-file-name name version))
1639 "1b9p8fypc914ij1afn6ir346zsgfqrc5mqc1k3d53n4snypq27qv"))))
1640 (build-system go-build-system)
1642 `(#:import-path "gitlab.com/ambrevar/damerau"))
1643 (home-page "https://gitlab.com/ambrevar/damerau")
1644 (synopsis "Damerau-Levenshtein distance for Golang")
1645 (description "This is a spelling corrector implementing the
1646 Damerau-Levenshtein distance. Takes a string value input from the user.
1647 Looks for an identical word on a list of words, if none is found, look for a
1649 (license license:expat))))
1651 (define-public go-github-com-stevedonovan-luar
1652 (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
1655 (name "go-github-com-stevedonovan-luar")
1656 (version (git-version "0.0.0" revision commit))
1662 "https://github.com/stevedonovan/luar")
1664 (file-name (git-file-name name version))
1667 "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
1668 (build-system go-build-system)
1670 `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
1672 `(#:tests? #f ; Upstream tests are broken.
1673 #:import-path "github.com/stevedonovan/luar"))
1674 (home-page "https://github.com/stevedonovan/luar")
1675 (synopsis "Lua reflection bindings for Go")
1676 (description "Luar is designed to make using Lua from Go more
1677 convenient. Go structs, slices and maps can be automatically converted to Lua
1678 tables and vice-versa. The resulting conversion can either be a copy or a
1679 proxy. In the latter case, any change made to the result will reflect on the
1682 Any Go function can be made available to Lua scripts, without having to write
1685 Luar support cyclic structures (lists, etc.).
1687 User-defined types can be made available to Lua as well: their exported
1688 methods can be called and usual operations such as indexing or arithmetic can
1690 (license license:expat))))
1692 (define-public go-github-com-michiwend-golang-pretty
1693 (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4")
1696 (name "go-github-com-michiwend-golang-pretty")
1697 (version (git-version "0.0.0" revision commit))
1703 "https://github.com/michiwend/golang-pretty")
1705 (file-name (git-file-name name version))
1708 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4"))))
1709 (build-system go-build-system)
1711 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
1713 `(#:tests? #f ; Upstream tests seem to be broken.
1714 #:import-path "github.com/michiwend/golang-pretty"))
1715 (home-page "https://github.com/michiwend/golang-pretty")
1716 (synopsis "Pretty printing for Go values")
1717 (description "Package @code{pretty} provides pretty-printing for Go
1718 values. This is useful during debugging, to avoid wrapping long output lines
1721 It provides a function, @code{Formatter}, that can be used with any function
1722 that accepts a format string. It also provides convenience wrappers for
1723 functions in packages @code{fmt} and @code{log}.")
1724 (license license:expat))))
1726 (define-public go-github-com-michiwend-gomusicbrainz
1727 (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d")
1730 (name "go-github-com-michiwend-gomusicbrainz")
1731 (version (git-version "0.0.0" revision commit))
1737 "https://github.com/michiwend/gomusicbrainz")
1739 (file-name (git-file-name name version))
1742 "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn"))))
1743 (build-system go-build-system)
1745 `(("go-github-com-michiwend-golang-pretty" ,go-github-com-michiwend-golang-pretty)
1746 ("go-github-com-kr-text" ,go-github-com-kr-text)))
1748 `(#:import-path "github.com/michiwend/gomusicbrainz"))
1749 (home-page "https://github.com/michiwend/gomusicbrainz")
1750 (synopsis "MusicBrainz WS2 client library for Golang")
1751 (description "Currently GoMusicBrainz provides methods to perform search
1752 and lookup requests. Browse requests are not supported yet.")
1753 (license license:expat))))
1755 (define-public go-github-com-wtolson-go-taglib
1756 (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
1759 (name "go-github-com-wtolson-go-taglib")
1760 (version (git-version "0.0.0" revision commit))
1766 "https://github.com/wtolson/go-taglib")
1768 (file-name (git-file-name name version))
1771 "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2"))))
1772 (build-system go-build-system)
1773 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
1774 ;; when this package required as input for another one, it will have to
1775 ;; be built again. Thus its CGO requirements must be made available in
1776 ;; the environment, that is, they must be propagated.
1778 `(("pkg-config" ,pkg-config)
1779 ("taglib" ,taglib)))
1781 `(#:import-path "github.com/wtolson/go-taglib"
1782 ;; Tests don't pass "vet" on Go since 1.11. See
1783 ;; https://github.com/wtolson/go-taglib/issues/12.
1785 (modify-phases %standard-phases
1787 (lambda* (#:key import-path #:allow-other-keys)
1791 (home-page "https://github.com/wtolson/go-taglib")
1792 (synopsis "Go wrapper for taglib")
1793 (description "Go wrapper for taglib")
1794 (license license:unlicense))))
1796 (define-public go-github-com-gogo-protobuf
1798 (name "go-github-com-gogo-protobuf")
1803 (url "https://github.com/gogo/protobuf")
1804 (commit (string-append "v" version))))
1805 (file-name (git-file-name name version))
1808 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
1809 (build-system go-build-system)
1811 `(#:import-path "github.com/gogo/protobuf"
1812 ; Source-only package
1815 (modify-phases %standard-phases
1817 (synopsis "Protocol Buffers for Go with Gadgets")
1818 (description "Gogoprotobuf is a fork of golang/protobuf with extra code
1819 generation features. This code generation is used to achieve:
1821 @item fast marshalling and unmarshalling
1822 @item more canonical Go structures
1823 @item goprotobuf compatibility
1824 @item less typing by optionally generating extra helper code
1825 @item peace of mind by optionally generating test and benchmark code
1826 @item other serialization formats
1828 (home-page "https://github.com/gogo/protobuf")
1829 (license license:bsd-3)))
1831 (define-public go-github-com-libp2p-go-flow-metrics
1832 (let ((commit "7e5a55af485341567f98d6847a373eb5ddcdcd43")
1835 (name "go-github-com-libp2p-go-flow-metrics")
1836 (version (git-version "0.2.0" revision commit))
1841 (url "https://github.com/libp2p/go-flow-metrics.git")
1843 (file-name (git-file-name name version))
1846 "1p87iyk6q6f3g3xkncssx400qlld8f2z93qiz8m1f97grfyhjif1"))))
1847 (build-system go-build-system)
1849 `(#:import-path "github.com/libp2p/go-flow-metrics"
1850 ;; TODO: Tests hang.
1853 "https://github.com/libp2p/go-flow-metrics")
1854 (synopsis "Simple library for tracking flow metrics")
1855 (description "A simple alternative to rcrowley's @command{go-metrics}
1856 that's a lot faster (and only does simple bandwidth metrics).")
1857 (license license:expat))))
1859 (define-public go-github-com-davecgh-go-spew
1860 (let ((commit "d8f796af33cc11cb798c1aaeb27a4ebc5099927d")
1863 (name "go-github-com-davecgh-go-spew")
1864 (version (git-version "0.0.0" revision commit))
1869 (url "https://github.com/davecgh/go-spew.git")
1871 (file-name (git-file-name name version))
1874 "19z27f306fpsrjdvkzd61w1bdazcdbczjyjck177g33iklinhpvx"))))
1875 (build-system go-build-system)
1877 '(#:unpack-path "github.com/davecgh/go-spew"
1878 #:import-path "github.com/davecgh/go-spew/spew"))
1879 (home-page "https://github.com/davecgh/go-spew")
1880 (synopsis "Deep pretty printer for Go data structures to aid in debugging")
1881 (description "Package @command{spew} implements a deep pretty printer
1882 for Go data structures to aid in debugging.
1884 A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
1887 @item Pointers are dereferenced and followed.
1888 @item Circular data structures are detected and handled properly.
1889 @item Custom Stringer/error interfaces are optionally invoked, including on
1891 @item Custom types which only implement the Stringer/error interfaces via a
1892 pointer receiver are optionally invoked when passing non-pointer variables.
1893 @item Byte arrays and slices are dumped like the hexdump -C command which
1894 includes offsets, byte values in hex, and ASCII output (only when using Dump
1897 (license license:isc))))
1899 (define-public go-github-com-btcsuite-btclog
1900 (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a")
1903 (name "go-github-com-btcsuite-btclog")
1904 (version (git-version "0.0.3" revision commit))
1909 (url "https://github.com/btcsuite/btclog.git")
1911 (file-name (git-file-name name version))
1914 "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk"))))
1915 (build-system go-build-system)
1917 '(#:import-path "github.com/btcsuite/btclog"))
1918 (home-page "https://github.com/btcsuite/btclog")
1919 (synopsis "Subsystem aware logger for Go")
1920 (description "Package @command{btclog} defines a logger interface and
1921 provides a default implementation of a subsystem-aware leveled logger
1922 implementing the same interface.")
1923 (license license:isc))))
1925 (define-public go-github-com-btcsuite-btcd-btcec
1926 (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0")
1929 (name "go-github-com-btcsuite-btcd-btcec")
1930 (version (git-version "0.12.0-beta" revision commit))
1935 (url "https://github.com/btcsuite/btcd.git")
1937 (file-name (git-file-name name version))
1940 "04s92gsy71w1jirlr5lkk9y6r5cparbas7nmf6ywbp7kq7fn8ajn"))))
1941 (build-system go-build-system)
1943 '(#:unpack-path "github.com/btcsuite/btcd"
1944 #:import-path "github.com/btcsuite/btcd/btcec"))
1946 `(("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))
1947 (home-page "https://github.com/btcsuite/btcd")
1948 (synopsis "Elliptic curve cryptography to work with Bitcoin")
1949 (description "Package @command{btcec} implements elliptic curve
1950 cryptography needed for working with Bitcoin (secp256k1 only for now). It is
1951 designed so that it may be used with the standard crypto/ecdsa packages
1952 provided with Go. A comprehensive suite of test is provided to ensure proper
1953 functionality. Package @command{btcec} was originally based on work from
1954 ThePiachu which is licensed under the same terms as Go, but it has
1955 significantly diverged since then. The @command{btcsuite} developers original
1956 is licensed under the liberal ISC license.
1958 Although this package was primarily written for btcd, it has intentionally
1959 been designed so it can be used as a standalone package for any projects
1960 needing to use secp256k1 elliptic curve cryptography.")
1961 (license license:isc))))
1963 (define-public go-github-com-minio-sha256-simd
1964 (let ((commit "cc1980cb03383b1d46f518232672584432d7532d")
1967 (name "go-github-com-minio-sha256-simd")
1968 (version (git-version "0.0.0" revision commit))
1973 (url "https://github.com/minio/sha256-simd.git")
1975 (file-name (git-file-name name version))
1978 "04fp98nal0wsb26zwhw82spn5camxslc68g3xp8g4af9w6k9g31j"))))
1979 (build-system go-build-system)
1981 '(#:import-path "github.com/minio/sha256-simd"))
1982 (home-page "https://github.com/minio/sha256-simd")
1983 (synopsis "Accelerate SHA256 computations in pure Go")
1984 (description "Accelerate SHA256 computations in pure Go using AVX512 and
1985 AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x
1986 improvement (over 3 GB/s per core) in comparison to AVX2.
1988 This package is designed as a replacement for @command{crypto/sha256}. For
1989 Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also
1990 supported). For ARM CPUs with the Cryptography Extensions, advantage is taken
1991 of the SHA2 instructions resulting in a massive performance improvement.
1993 This package uses Golang assembly. The AVX512 version is based on the Intel's
1994 \"multi-buffer crypto library for IPSec\" whereas the other Intel
1995 implementations are described in \"Fast SHA-256 Implementations on Intel
1996 Architecture Processors\" by J. Guilford et al.")
1997 (license license:asl2.0))))
1999 (define-public go-github-com-libp2p-go-libp2p-crypto
2000 (let ((commit "7240b40a3ddc47c4d17c15baabcbe45e5219171b")
2003 (name "go-github-com-libp2p-go-libp2p-crypto")
2004 (version (git-version "2.0.1" revision commit))
2009 (url "https://github.com/libp2p/go-libp2p-crypto.git")
2011 (file-name (git-file-name name version))
2014 "0qwpy57qv5143l9dlfwfvpqsxdd2i4zwnawx1w4pmgxxim3nw1wb"))))
2015 (build-system go-build-system)
2017 '(#:import-path "github.com/libp2p/go-libp2p-crypto"))
2019 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
2020 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2021 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2022 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)))
2024 "https://github.com/libp2p/go-libp2p-crypto")
2025 (synopsis "Various cryptographic utilities used by IPFS")
2026 (description "Various cryptographic utilities used by IPFS")
2027 (license license:expat))))
2029 (define-public go-github-com-mr-tron-base58
2030 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312")
2033 (name "go-github-com-mr-tron-base58")
2034 (version (git-version "1.1.0" revision commit))
2039 (url "https://github.com/mr-tron/base58.git")
2041 (file-name (git-file-name name version))
2044 "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa"))))
2045 (build-system go-build-system)
2047 `(#:unpack-path "github.com/mr-tron/base58"
2048 #:import-path "github.com/mr-tron/base58/base58"))
2049 (home-page "https://github.com/mr-tron/base58")
2050 (synopsis "Fast implementation of base58 encoding on Golang")
2051 (description "Fast implementation of base58 encoding on Golang. A
2052 trivial @command{big.Int} encoding benchmark results in 6 times faster
2053 encoding and 8 times faster decoding.")
2054 (license license:expat))))
2056 (define-public go-github-com-gxed-hashland-keccakpg
2057 (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8")
2060 (name "go-github-com-gxed-hashland-keccakpg")
2061 (version (git-version "0.0.0" revision commit))
2066 (url "https://github.com/gxed/hashland.git")
2068 (file-name (git-file-name name version))
2071 "1q23y4lacsz46k9gmgfw4iwwydw36j2601rbidmmswl94grpc386"))))
2072 (build-system go-build-system)
2074 '(#:unpack-path "github.com/gxed/hashland"
2075 #:import-path "github.com/gxed/hashland/keccakpg"))
2076 (home-page "https://github.com/gxed/hashland")
2077 (synopsis "Implements the Keccak (SHA-3) hash algorithm in Go")
2078 (description "Package @command{keccak} implements the Keccak (SHA-3)
2079 hash algorithm. See http://keccak.noekeon.org.")
2080 (license license:expat))))
2082 (define-public go-github-com-minio-blake2b-simd
2083 (let ((commit "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4")
2086 (name "go-github-com-minio-blake2b-simd")
2087 (version (git-version "0.0.0" revision commit))
2092 (url "https://github.com/minio/blake2b-simd.git")
2094 (file-name (git-file-name name version))
2097 "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd"))))
2098 (build-system go-build-system)
2100 '(#:import-path "github.com/minio/blake2b-simd"))
2101 (home-page "https://github.com/minio/blake2b-simd")
2102 (synopsis "Fast hashing in pure Go of BLAKE2b with SIMD instructions")
2103 (description "This package was initially based on the pure go BLAKE2b
2104 implementation of Dmitry Chestnykh and merged with the (cgo dependent) AVX
2105 optimized BLAKE2 implementation (which in turn is based on the official
2106 implementation. It does so by using Go's Assembler for amd64 architectures
2107 with a golang only fallback for other architectures.
2109 In addition to AVX there is also support for AVX2 as well as SSE. Best
2110 performance is obtained with AVX2 which gives roughly a 4X performance
2111 increase approaching hashing speeds of 1GB/sec on a single core.")
2112 (license license:asl2.0))))
2114 (define-public go-github-com-spaolacci-murmur3
2115 (let ((commit "f09979ecbc725b9e6d41a297405f65e7e8804acc")
2118 (name "go-github-com-spaolacci-murmur3")
2119 (version (git-version "1.1" revision commit))
2124 (url "https://github.com/spaolacci/murmur3.git")
2126 (file-name (git-file-name name version))
2129 "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25"))))
2130 (build-system go-build-system)
2132 '(#:import-path "github.com/spaolacci/murmur3"))
2133 (home-page "https://github.com/spaolacci/murmur3")
2134 (synopsis "Native MurmurHash3 Go implementation")
2135 (description "Native Go implementation of Austin Appleby's third
2136 MurmurHash revision (aka MurmurHash3).
2138 Reference algorithm has been slightly hacked as to support the streaming mode
2139 required by Go's standard Hash interface.")
2140 (license license:bsd-3))))
2142 (define-public go-github-com-multiformats-go-multihash
2143 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
2146 (name "go-github-com-multiformats-go-multihash")
2147 (version (git-version "1.0.8" revision commit))
2152 (url "https://github.com/multiformats/go-multihash.git")
2154 (file-name (git-file-name name version))
2157 "02wd9akrwy4y5m0nig9m24p14bjjgb4n1djydrq8cm4yhbvjrrk0"))))
2158 (build-system go-build-system)
2160 '(#:import-path "github.com/multiformats/go-multihash"))
2162 `(("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2163 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2164 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2165 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2166 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2167 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2168 (home-page "https://github.com/multiformats/go-multihash")
2169 (synopsis "Multihash implementation in Go")
2170 (description "Multihash implementation in Go.")
2171 (license license:expat))))
2173 (define-public go-github-com-libp2p-go-libp2p-peer
2174 (let ((commit "993d742bc29dcf4894b7730ba610fd78900be76c")
2177 (name "go-github-com-libp2p-go-libp2p-peer")
2178 (version (git-version "2.3.8" revision commit))
2183 (url "https://github.com/libp2p/go-libp2p-peer.git")
2185 (file-name (git-file-name name version))
2188 "1h96qjdi0i1wbr0jliap2903mycphas3ny0zdrm77yca9plcnphh"))))
2189 (build-system go-build-system)
2191 '(#:import-path "github.com/libp2p/go-libp2p-peer"))
2193 `(("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
2194 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2195 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2196 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2197 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2198 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2199 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2200 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2201 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2202 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2203 (home-page "https://github.com/libp2p/go-libp2p-peer")
2204 (synopsis "PKI based identities for use in go-libp2p")
2205 (description "PKI based identities for use in @command{go-libp2p}.")
2206 (license license:expat))))
2208 (define-public go-github-com-libp2p-go-libp2p-protocol
2209 (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b")
2212 (name "go-github-com-libp2p-go-libp2p-protocol")
2213 (version (git-version "1.0.0" revision commit))
2218 (url "https://github.com/libp2p/go-libp2p-protocol.git")
2220 (file-name (git-file-name name version))
2223 "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld"))))
2224 (build-system go-build-system)
2227 "github.com/libp2p/go-libp2p-protocol"))
2228 (home-page "https://github.com/libp2p/go-libp2p-protocol")
2229 (synopsis "Type for protocol strings in Golang")
2230 (description "Just a type for protocol strings. Nothing more.")
2231 (license license:expat))))
2233 (define-public go-github-com-libp2p-go-libp2p-metrics
2234 (let ((commit "a10ff6e75dae3c868023867e8caa534a04bdc624")
2237 (name "go-github-com-libp2p-go-libp2p-metrics")
2238 (version (git-version "2.1.6" revision commit))
2243 (url "https://github.com/libp2p/go-libp2p-metrics.git")
2245 (file-name (git-file-name name version))
2248 "05wy0cq4h6yg9bzgapcvm2criwriicbswx80ma82gyn4a9fdrk8m"))))
2249 (build-system go-build-system)
2251 '(#:import-path "github.com/libp2p/go-libp2p-metrics"))
2253 `(("go-github-com-libp2p-go-flow-metrics" ,go-github-com-libp2p-go-flow-metrics)
2254 ("go-github-com-libp2p-go-libp2p-peer" ,go-github-com-libp2p-go-libp2p-peer)
2255 ("go-github-com-libp2p-go-libp2p-protocol" ,go-github-com-libp2p-go-libp2p-protocol)
2256 ("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
2257 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2258 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2259 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2260 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2261 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2262 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2263 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2264 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2265 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2266 (home-page "https://github.com/libp2p/go-libp2p-metrics")
2267 (synopsis "Connection wrapper for go-libp2p that provides bandwidth metrics")
2268 (description "A connection wrapper for @command{go-libp2p} that provides bandwidth
2269 statistics for wrapped connections.")
2270 (license license:expat))))
2272 (define-public go-github-com-mitchellh-go-homedir
2273 (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4")
2276 (name "go-github-com-mitchellh-go-homedir")
2277 (version (git-version "1.0.0" revision commit))
2282 (url "https://github.com/mitchellh/go-homedir.git")
2284 (file-name (git-file-name name version))
2287 "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq"))))
2288 (build-system go-build-system)
2290 (quote (#:import-path "github.com/mitchellh/go-homedir"
2291 ;; TODO: Tests fail because it tries to access home.
2293 (home-page "https://github.com/mitchellh/go-homedir")
2294 (synopsis "Go library for detecting and expanding the user's home directory without cgo")
2295 (description "This is a Go library for detecting the user's home
2296 directory without the use of @command{cgo}, so the library can be used in
2297 cross-compilation environments.
2299 Usage is simple, just call homedir.Dir() to get the home directory for a user,
2300 and homedir.Expand() to expand the @command{~} in a path to the home
2303 Why not just use @command{os/user}? The built-in @command{os/user} package
2304 requires cgo on Darwin systems. This means that any Go code that uses that
2305 package cannot cross compile. But 99% of the time the use for
2306 @command{os/user} is just to retrieve the home directory, which we can do for
2307 the current user without cgo. This library does that, enabling
2308 cross-compilation.")
2309 (license license:expat))))
2311 (define-public go-github-com-multiformats-go-multiaddr
2312 (let ((commit "fe1c46f8be5af4aff4db286e08839295bd922efb")
2315 (name "go-github-com-multiformats-go-multiaddr")
2316 (version (git-version "1.3.0" revision commit))
2321 (url "https://github.com/multiformats/go-multiaddr.git")
2323 (file-name (git-file-name name version))
2326 "0p5f8h098a4yjjmzsgqs7vhx1iqifb8izwg3559cr4h7clkpzznh"))))
2327 (build-system go-build-system)
2330 "github.com/multiformats/go-multiaddr"))
2332 `(("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2333 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2334 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2335 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2336 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2337 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2338 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2339 (home-page "https://github.com/multiformats/go-multiaddr")
2340 (synopsis "Composable and future-proof network addresses")
2341 (description "Multiaddr is a standard way to represent addresses that
2345 @item Support any standard network protocols.
2346 @item Self-describe (include protocols).
2347 @item Have a binary packed format.
2348 @item Have a nice string representation.
2349 @item Encapsulate well.
2351 (license license:expat))))
2353 (define-public go-github-com-multiformats-go-multiaddr-net
2354 (let ((commit "1cb9a0e8a6de3c8a10f6cee60d01d793603c4f7e")
2357 (name "go-github-com-multiformats-go-multiaddr-net")
2358 (version (git-version "1.6.3" revision commit))
2363 (url "https://github.com/multiformats/go-multiaddr-net.git")
2365 (file-name (git-file-name name version))
2368 "1ypgi47xdz3bh8lh7f8cmk7w3ql9g4izx5l3kzdg9gda1xn5zxq3"))))
2369 (build-system go-build-system)
2371 (quote (#:import-path "github.com/multiformats/go-multiaddr-net"
2372 ;; TODO: Tests fail because they try to access the network.
2375 `(("go-github-com-multiformats-go-multiaddr" ,go-github-com-multiformats-go-multiaddr)
2376 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2377 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2378 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2379 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2380 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2381 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2382 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2383 (home-page "https://github.com/multiformats/go-multiaddr-net")
2384 (synopsis "Multiaddress net tools")
2385 (description "This package provides Multiaddr specific versions of
2386 common functions in stdlib's @command{net} package. This means wrappers of
2387 standard net symbols like @command{net.Dial} and @command{net.Listen}, as well
2388 as conversion to and from @command{net.Addr}.")
2389 (license license:expat))))
2391 (define-public go-github-com-whyrusleeping-tar-utils
2392 (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc")
2395 (name "go-github-com-whyrusleeping-tar-utils")
2396 (version (git-version "0.0.0" revision commit))
2401 (url "https://github.com/whyrusleeping/tar-utils.git")
2403 (file-name (git-file-name name version))
2406 "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s"))))
2407 (build-system go-build-system)
2410 "github.com/whyrusleeping/tar-utils"))
2411 (home-page "https://github.com/whyrusleeping/tar-utils")
2412 (synopsis "Tar utilities extracted from go-ipfs codebase")
2413 (description "Tar utilities extracted from @command{go-ipfs} codebase.")
2414 (license license:expat))))
2416 (define-public go-github-com-cheekybits-is
2417 (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
2420 (name "go-github-com-cheekybits-is")
2421 (version (git-version "0.0.0" revision commit))
2426 (url "https://github.com/cheekybits/is.git")
2428 (file-name (git-file-name name version))
2431 "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d"))))
2432 (build-system go-build-system)
2434 '(#:import-path "github.com/cheekybits/is"))
2435 (home-page "https://github.com/cheekybits/is")
2436 (synopsis "Mini testing helper for Go")
2437 (description "A mini testing helper for Go.
2440 @item It has a simple interface (@command{is.OK} and @command{is.Equal}).
2441 @item It plugs into existing Go toolchain (uses @command{testing.T}).
2442 @item It's obvious for newcomers.
2443 @item It also gives you @command{is.Panic} and @command{is.PanicWith} helpers
2444 - because testing panics is ugly.
2446 (license license:expat))))
2448 (define-public go-github-com-sabhiram-go-gitignore
2449 (let ((commit "d3107576ba9425fc1c85f4b3569c4631b805a02e")
2452 (name "go-github-com-sabhiram-go-gitignore")
2453 (version (git-version "1.0.2" revision commit))
2458 (url "https://github.com/sabhiram/go-gitignore.git")
2460 (file-name (git-file-name name version))
2463 "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l"))))
2464 (build-system go-build-system)
2467 "github.com/sabhiram/go-gitignore"))
2469 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
2470 (home-page "https://github.com/sabhiram/go-gitignore")
2471 (synopsis "Gitignore parser for Go")
2472 (description "A @command{.gitignore} parser for Go.")
2473 (license license:expat))))
2475 (define-public go-github-com-urfave-cli
2477 (name "go-github-com-urfave-cli")
2483 (url "https://github.com/urfave/cli.git")
2484 (commit (string-append "v" version))))
2485 (file-name (git-file-name name version))
2488 "104jldhxn6d97l5vsbsl0q8hgy1bxrahbr6dbfqrlppva51jmydd"))))
2489 (build-system go-build-system)
2491 '(#:import-path "github.com/urfave/cli"))
2492 (home-page "https://github.com/urfave/cli")
2493 (synopsis "Simple, fast, and fun package for building command line apps in Go")
2494 (description "@command{cli} is a simple, fast, and fun package for
2495 building command line apps in Go. The goal is to enable developers to write
2496 fast and distributable command line applications in an expressive way.")
2497 (license license:expat)))
2499 (define-public go-github-com-whyrusleeping-json-filter
2500 (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
2503 (name "go-github-com-whyrusleeping-json-filter")
2504 (version (git-version "0.0.0" revision commit))
2509 (url "https://github.com/whyrusleeping/json-filter.git")
2511 (file-name (git-file-name name version))
2514 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
2515 (build-system go-build-system)
2518 "github.com/whyrusleeping/json-filter"))
2519 (home-page "https://github.com/whyrusleeping/json-filter")
2520 (synopsis "Library to query JSON objects marshalled into map[string]interface")
2521 (description "A library to query JSON objects marshalled into
2522 @command{map[string]interface{}}.")
2523 (license license:expat))))
2525 (define-public go-github-com-whyrusleeping-progmeter
2526 (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04")
2529 (name "go-github-com-whyrusleeping-progmeter")
2530 (version (git-version "0.0.0" revision commit))
2535 (url "https://github.com/whyrusleeping/progmeter.git")
2537 (file-name (git-file-name name version))
2540 "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb"))))
2541 (build-system go-build-system)
2544 "github.com/whyrusleeping/progmeter"))
2545 (home-page "https://github.com/whyrusleeping/progmeter")
2546 (synopsis "Progress meter for Go")
2547 (description "Progress meter for Go.")
2548 (license license:expat))))
2550 (define-public go-github-com-whyrusleeping-stump
2551 (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5")
2554 (name "go-github-com-whyrusleeping-stump")
2555 (version (git-version "0.0.0" revision commit))
2560 (url "https://github.com/whyrusleeping/stump.git")
2562 (file-name (git-file-name name version))
2565 "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n"))))
2566 (build-system go-build-system)
2568 '(#:import-path "github.com/whyrusleeping/stump"))
2569 (home-page "https://github.com/whyrusleeping/stump")
2570 (synopsis "Very basic logging package for Go")
2571 (description "A simple log library, for when you don't really care to
2572 have super fancy logs.")
2573 (license license:expat))))
2575 (define-public go-github-com-kr-fs
2576 (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba")
2579 (name "go-github-com-kr-fs")
2580 (version (git-version "0.1.0" revision commit))
2585 (url "https://github.com/kr/fs.git")
2587 (file-name (git-file-name name version))
2590 "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"))))
2591 (build-system go-build-system)
2593 '(#:import-path "github.com/kr/fs"))
2594 (home-page "https://github.com/kr/fs")
2595 (synopsis "File-system-related functions for Go")
2597 "The fs package provides file-system-related Go functions.")
2598 (license license:bsd-3))))
2600 (define-public go-github-com-direnv-go-dotenv
2601 (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
2604 (name "go-github-com-direnv-go-dotenv")
2605 (version (git-version "0.0.0" revision commit))
2610 (url "https://github.com/direnv/go-dotenv")
2612 (file-name (git-file-name name version))
2615 "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6"))))
2616 (build-system go-build-system)
2618 '(#:import-path "github.com/direnv/go-dotenv"))
2619 (home-page "https://github.com/direnv/go-dotenv")
2620 (synopsis "Go dotenv parsing library")
2621 (description "This package provides a library for parsing the dotenv
2623 (license license:expat))))
2625 (define-public go-github-com-kr-pretty
2627 (name "go-github-com-kr-pretty")
2632 (url "https://github.com/kr/pretty.git")
2633 (commit (string-append "v" version))))
2634 (file-name (git-file-name name version))
2637 "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp"))))
2638 (build-system go-build-system)
2640 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
2642 '(#:import-path "github.com/kr/pretty"))
2643 (synopsis "A pretty printer for Go values")
2644 (description "This package provides a pretty printer for Go values.")
2645 (home-page "https://github.com/kr/pretty")
2646 (license license:expat)))
2648 (define-public go-github-com-kr-text
2650 (name "go-github-com-kr-text")
2655 (url "https://github.com/kr/text.git")
2656 (commit (string-append "v" version))))
2657 (file-name (git-file-name name version))
2660 "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"))))
2661 (build-system go-build-system)
2663 '(#:import-path "github.com/kr/text"))
2664 (synopsis "Text formatting in Go")
2665 (description "This package provides a text formatting functions in Go.")
2666 (home-page "https://github.com/kr/text")
2667 (license license:expat)))
2669 (define-public go-golang-org-sql-mock
2670 (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b")
2674 (name "go-golang-org-sql-mock")
2675 (version (git-version version revision commit))
2679 (url "https://github.com/DATA-DOG/go-sqlmock")
2681 (file-name (git-file-name name version))
2684 "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs"))))
2685 (build-system go-build-system)
2687 '(#:import-path "github.com/DATA-DOG/go-sqlmock"))
2688 (synopsis "Mock library implementing @code{sql/driver}")
2689 (description "This library simulates SQL-driver behavior in tests
2690 without requiring a real database connection.")
2691 (home-page "https://github.com/DATA-DOG/go-sqlmock")
2692 (license license:expat))))
2694 (define-public go-golang-org-colorful
2696 (name "go-golang-org-colorful")
2701 (url "https://github.com/lucasb-eyer/go-colorful")
2702 (commit (string-append "v" version))))
2703 (file-name (git-file-name name version))
2706 "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2"))))
2707 (build-system go-build-system)
2709 '(#:import-path "github.com/lucasb-eyer/go-colorful"))
2711 `(("go-golang-org-sql-mock" ,go-golang-org-sql-mock)))
2712 (synopsis "Convert between colorspaces and generate colors")
2713 (description "This package implements Go's @code{color.Color} interface
2714 and provides a means of converting colors stored as RGB to various
2716 (home-page "https://github.com/lucasb-eyer/go-colorful")
2717 (license license:expat)))
2719 (define-public go-github-com-gdamore-encoding
2721 (name "go-github-com-gdamore-encoding")
2727 (url "https://github.com/gdamore/encoding")
2728 (commit (string-append "v" version))))
2729 (file-name (git-file-name name version))
2732 "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9"))))
2733 (build-system go-build-system)
2735 '(#:import-path "github.com/gdamore/encoding"))
2737 `(("go-golang-org-x-text" ,go-golang-org-x-text)))
2738 (home-page "https://github.com/gdamore/encoding")
2739 (synopsis "Provide encodings missing from Go")
2740 (description "This package provides useful encodings not included in the
2741 standard @code{Text} package, including some for dealing with I/O streams from
2742 non-UTF-friendly sources.")
2743 (license license:expat)))
2745 (define-public go-github-com-gdamore-tcell
2746 (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e")
2750 (name "go-github-com-gdamore-tcell")
2751 (version (git-version version revision commit))
2756 (url "https://github.com/gdamore/tcell")
2758 (file-name (git-file-name name version))
2761 "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d"))))
2762 (build-system go-build-system)
2764 `(#:import-path "github.com/gdamore/tcell"
2766 (modify-phases %standard-phases
2767 (add-before 'reset-gzip-timestamps 'make-files-writable
2768 (lambda* (#:key outputs #:allow-other-keys)
2769 ;; Make sure .gz files are writable so that the
2770 ;; 'reset-gzip-timestamps' phase can do its work.
2771 (let ((out (assoc-ref outputs "out")))
2772 (for-each make-file-writable
2773 (find-files out "\\.gz$"))
2776 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
2777 ("go-golang-org-colorful" ,go-golang-org-colorful)
2778 ("go-golang-org-x-text" ,go-golang-org-x-text)
2779 ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding)))
2780 (home-page "https://github.com/gdamore/tcell")
2781 (synopsis "Provide a cell-based view for text terminals")
2782 (description "This package includes a full parser and expander for
2783 terminfo capability strings to avoid hard-coding escape strings for
2784 formatting. It also favors portability, and includes support for all POSIX
2786 (license license:expat))))
2788 (define-public go-github-com-mattn-go-shellwords
2789 (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2")
2793 (name "go-github-com-mattn-go-shellwords")
2794 (version (git-version version revision commit))
2799 (url "https://github.com/mattn/go-shellwords")
2801 (file-name (git-file-name name version))
2804 "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d"))))
2805 (build-system go-build-system)
2807 `(#:import-path "github.com/mattn/go-shellwords"
2808 ;; TODO: can't make homeless-shelter:
2809 ;; go: disabling cache (/homeless-shelter/.cache/go-build) due to
2810 ;; initialization failure: mkdir /homeless-shelter: permission denied
2812 ;; This doesn't seem to work:
2815 ;; (modify-phases %standard-phases
2817 ;; (lambda* (#:key import-path #:allow-other-keys)
2818 ;; (setenv "HOME" "/tmp")
2819 ;; (invoke "go" "test" import-path))))
2821 ;; TODO: There are also a couple of tests that have stymied Debian in
2822 ;; the past. They seem to work when run locally.
2826 (home-page "https://github.com/mattn/go-shellwords")
2827 (synopsis "Parse lines into shell words")
2828 (description "This package parses text into shell arguments. Based on
2829 the @code{cpan} module @code{Parse::CommandLine}.")
2830 (license license:expat))))
2832 (define-public go-github-com-burntsushi-locker
2833 (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
2836 (name "go-github-com-burntsushi-locker")
2837 (version (git-version "0.0.0" revision commit))
2842 (url "https://github.com/BurntSushi/locker")
2844 (file-name (git-file-name name version))
2847 "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
2848 (build-system go-build-system)
2850 '(#:import-path "github.com/BurntSushi/locker"))
2851 (home-page "https://github.com/BurntSushi/locker")
2852 (synopsis "Manage named ReadWrite mutexes in Go")
2853 (description "Golang package for conveniently using named read/write
2854 locks. These appear to be especially useful for synchronizing access to
2855 session based information in web applications.
2857 The common use case is to use the package level functions, which use a package
2858 level set of locks (safe to use from multiple goroutines
2859 simultaneously). However, you may also create a new separate set of locks
2862 All locks are implemented with read-write mutexes. To use them like a regular
2863 mutex, simply ignore the RLock/RUnlock functions.")
2864 (license license:unlicense))))
2866 (define-public go-github-com-marten-seemann-qtls
2868 (name "go-github-com-marten-seemann-qtls")
2873 (url "https://github.com/marten-seemann/qtls")
2874 (commit (string-append "v" version))))
2875 (file-name (git-file-name name version))
2878 "0b9p7bwkm9hfg1mb565q4nw5k7xyks0z2xagz5fp95azy2psbnfg"))))
2879 (build-system go-build-system)
2881 '(#:import-path "github.com/marten-seemann/qtls"
2882 ;; The test suite requires networking.
2885 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2886 (synopsis "TLS 1.3 with QUIC in Go")
2887 (description "This package provides @code{qtls}, a QUIC-capable variant of
2888 the Go standard library's TLS 1.3 implementation.")
2889 (home-page "https://github.com/marten-seemann/qtls")
2890 (license license:bsd-3)))
2892 (define-public go-github-com-cheekybits-genny
2894 (name "go-github-com-cheekybits-genny")
2899 (url "https://github.com/cheekybits/genny")
2900 (commit (string-append "v" version))))
2901 (file-name (git-file-name name version))
2904 "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87"))))
2905 (build-system go-build-system)
2907 '(#:import-path "github.com/cheekybits/genny"))
2909 `(("go-golang-org-x-tools" ,go-golang-org-x-tools)))
2910 (synopsis "Generics for Go")
2911 (description "This package provides @code{genny}, a Go language
2912 implementation of generics.")
2913 (home-page "https://github.com/cheekybits/genny/")
2914 (license license:expat)))
2916 (define-public go-github-com-lucas-clemente-quic-go
2918 (name "go-github-com-lucas-clemente-quic-go")
2923 (url "https://github.com/lucas-clemente/quic-go")
2924 (commit (string-append "v" version))))
2925 (file-name (git-file-name name version))
2928 "0gqm5mc8alg84ra7yxach34il1jvcij8f76qdqcahnd3d2nhjbia"))))
2929 (build-system go-build-system)
2931 '(#:import-path "github.com/lucas-clemente/quic-go"
2932 ;; XXX More packages required...
2935 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
2936 ("go-github-com-cheekybits-genny" ,go-github-com-cheekybits-genny)
2937 ("go-github-com-marten-seemann-qtls" ,go-github-com-marten-seemann-qtls)))
2938 (synopsis "QUIC in Go")
2939 (description "This package provides a Go language implementation of the QUIC
2941 (home-page "https://github.com/lucas-clemente/quic-go")
2942 (license license:expat)))
2944 (define-public go-github-com-pkg-errors
2945 (let ((commit "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7")
2948 (name "go-github-com-pkg-errors")
2949 (version (git-version "0.8.1" revision commit))
2953 (url "https://github.com/pkg/errors.git")
2955 (file-name (git-file-name name version))
2958 "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"))))
2959 (build-system go-build-system)
2961 `(#:import-path "github.com/pkg/errors"))
2962 (synopsis "Go error handling primitives")
2963 (description "This package provides @code{error}, which offers simple
2964 error handling primitives in Go.")
2965 (home-page "https://github.com/pkg/errors")
2966 (license license:bsd-2))))
2968 (define-public go-github-com-maruel-panicparse
2970 (name "go-github-com-maruel-panicparse")
2975 (url "https://github.com/maruel/panicparse")
2976 (commit (string-append "v" version))))
2977 (file-name (git-file-name name version))
2980 "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq"))))
2981 (build-system go-build-system)
2983 '(#:import-path "github.com/maruel/panicparse"))
2984 (synopsis "Toolkit for parsing Go stack traces")
2985 (description "This package provides a toolkit for parsing Go language panic
2986 stack traces. It simplifies the traces to make salient information more visible
2987 and aid debugging.")
2988 (home-page "https://github.com/maruel/panicparse")
2989 (license license:asl2.0)))
2991 (define-public go-github-com-robfig-cron
2993 (name "go-github-com-robfig-cron")
2999 (url "https://github.com/robfig/cron")
3000 (commit (string-append "v" version))))
3001 (file-name (git-file-name name version))
3004 "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z"))))
3005 (build-system go-build-system)
3007 `(#:import-path "github.com/robfig/cron"))
3008 (home-page "https://godoc.org/github.com/robfig/cron")
3009 (synopsis "Cron library for Go")
3010 (description "This package provides a cron library for Go. It implements
3011 a cron spec parser and job runner.")
3012 (license license:expat)))
3014 (define-public go-github-com-shirou-gopsutil
3015 (let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399")
3018 (name "go-github-com-shirou-gopsutil")
3019 (version (git-version "v2.19.7" revision commit))
3023 (url "https://github.com/shirou/gopsutil")
3024 (commit commit))) ; XXX
3027 "0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws"))))
3028 (build-system go-build-system)
3030 '(#:import-path "github.com/shirou/gopsutil"))
3031 (synopsis "Process and system monitoring in Go")
3032 (description "This package provides a library for retrieving information
3033 on running processes and system utilization (CPU, memory, disks, network,
3035 (home-page "https://github.com/shirou/gopsutil")
3036 (license license:bsd-3))))