gnu: Add go-golang-org-x-sync.
[jackhill/guix/guix.git] / gnu / packages / golang.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 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, 2018, 2019, 2020 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, 2020 Katherine Cox-Buday <cox.katherine.e@gmail.com>
16 ;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
17 ;;; Copyright @ 2019, 2020 Alex Griffin <a@ajgrf.com>
18 ;;; Copyright © 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
19 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
20 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
21 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.com>
22 ;;;
23 ;;; This file is part of GNU Guix.
24 ;;;
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
29 ;;;
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
34 ;;;
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37
38 (define-module (gnu packages golang)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix utils)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix packages)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system trivial)
46 #:use-module (guix build-system go)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages admin)
49 #:use-module (gnu packages gcc)
50 #:use-module (gnu packages glib)
51 #:use-module (gnu packages base)
52 #:use-module (gnu packages perl)
53 #:use-module (gnu packages pkg-config)
54 #:use-module (gnu packages pcre)
55 #:use-module (gnu packages lua)
56 #:use-module (gnu packages mp3)
57 #:use-module (gnu packages textutils)
58 #:use-module (gnu packages tls)
59 #:use-module (ice-9 match)
60 #:use-module (srfi srfi-1))
61
62 ;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a
63 ;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2
64 ;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately
65 ;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of
66 ;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or
67 ;; gccgo-5. Mips is not officially supported, but it should work if it is
68 ;; bootstrapped.
69
70 (define-public go-1.4
71 (package
72 (name "go")
73 ;; The C-language bootstrap of Go:
74 ;; https://golang.org/doc/install/source#go14
75 (version "1.4-bootstrap-20171003")
76 (source (origin
77 (method url-fetch)
78 (uri (string-append "https://storage.googleapis.com/golang/"
79 name version ".tar.gz"))
80 (sha256
81 (base32
82 "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
83 (build-system gnu-build-system)
84 (outputs '("out"
85 "doc"
86 "tests"))
87 (arguments
88 `(#:modules ((ice-9 match)
89 (guix build gnu-build-system)
90 (guix build utils)
91 (srfi srfi-1))
92 #:tests? #f ; Tests are run by the all.bash script.
93 ,@(if (string-prefix? "aarch64-linux" (or (%current-system)
94 (%current-target-system)))
95 '(#:system "armhf-linux")
96 '())
97 #:phases
98 (modify-phases %standard-phases
99 (delete 'configure)
100 (add-after 'patch-generated-file-shebangs 'chdir
101 (lambda _
102 (chdir "src")
103 #t))
104 (add-before 'build 'prebuild
105 (lambda* (#:key inputs outputs #:allow-other-keys)
106 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
107 (ld (string-append (assoc-ref inputs "libc") "/lib"))
108 (loader (car (find-files ld "^ld-linux.+")))
109 (net-base (assoc-ref inputs "net-base"))
110 (tzdata-path
111 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
112 (output (assoc-ref outputs "out")))
113
114 ;; Removing net/ tests, which fail when attempting to access
115 ;; network resources not present in the build container.
116 (for-each delete-file
117 '("net/multicast_test.go" "net/parse_test.go"
118 "net/port_test.go"))
119
120 ;; Add libgcc to the RUNPATH.
121 (substitute* "cmd/go/build.go"
122 (("cgoldflags := \\[\\]string\\{\\}")
123 (string-append "cgoldflags := []string{"
124 "\"-rpath=" gcclib "\"}"))
125 (("ldflags := buildLdflags")
126 (string-append
127 "ldflags := buildLdflags\n"
128 "ldflags = append(ldflags, \"-r\")\n"
129 "ldflags = append(ldflags, \"" gcclib "\")\n")))
130
131 (substitute* "os/os_test.go"
132 (("/usr/bin") (getcwd))
133 (("/bin/pwd") (which "pwd")))
134
135 ;; Disable failing tests: these tests attempt to access
136 ;; commands or network resources which are neither available or
137 ;; necessary for the build to succeed.
138 (for-each
139 (match-lambda
140 ((file regex)
141 (substitute* file
142 ((regex all before test_name)
143 (string-append before "Disabled" test_name)))))
144 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
145 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
146 ("os/os_test.go" "(.+)(TestHostname.+)")
147 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
148
149 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
150 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
151 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
152 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
153 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
154 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
155 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
156 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
157 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")))
158
159 (substitute* "net/lookup_unix.go"
160 (("/etc/protocols") (string-append net-base "/etc/protocols")))
161 (substitute* "time/zoneinfo_unix.go"
162 (("/usr/share/zoneinfo/") tzdata-path))
163 (substitute* (find-files "cmd" "asm.c")
164 (("/lib/ld-linux.*\\.so\\.[0-9]") loader))
165 #t)))
166
167 (replace 'build
168 (lambda* (#:key inputs outputs #:allow-other-keys)
169 ;; FIXME: Some of the .a files are not bit-reproducible.
170 (let* ((output (assoc-ref outputs "out")))
171 (setenv "CC" (which "gcc"))
172 (setenv "GOOS" "linux")
173 (setenv "GOROOT" (dirname (getcwd)))
174 (setenv "GOROOT_FINAL" output)
175 (setenv "GO14TESTS" "1")
176 (invoke "sh" "all.bash"))))
177
178 (replace 'install
179 (lambda* (#:key outputs inputs #:allow-other-keys)
180 (let* ((output (assoc-ref outputs "out"))
181 (doc_out (assoc-ref outputs "doc"))
182 (bash (string-append (assoc-ref inputs "bash") "bin/bash"))
183 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
184 (tests (string-append
185 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
186 (mkdir-p tests)
187 (copy-recursively "../test" (string-append tests "/test"))
188 (delete-file-recursively "../test")
189 (mkdir-p docs)
190 (copy-recursively "../api" (string-append docs "/api"))
191 (delete-file-recursively "../api")
192 (copy-recursively "../doc" (string-append docs "/doc"))
193 (delete-file-recursively "../doc")
194
195 (for-each (lambda (file)
196 (let ((file (string-append "../" file)))
197 (install-file file docs)
198 (delete-file file)))
199 '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS"
200 "LICENSE" "VERSION" "robots.txt"))
201 (copy-recursively "../" output)
202 #t))))))
203 (inputs
204 `(("tzdata" ,tzdata)
205 ("pcre" ,pcre)
206 ("gcc:lib" ,(canonical-package gcc) "lib")))
207 (native-inputs
208 `(("pkg-config" ,pkg-config)
209 ("which" ,which)
210 ("net-base" ,net-base)
211 ("perl" ,perl)))
212
213 (home-page "https://golang.org/")
214 (synopsis "Compiler and libraries for Go, a statically-typed language")
215 (description "Go, also commonly referred to as golang, is an imperative
216 programming language designed primarily for systems programming. Go is a
217 compiled, statically typed language in the tradition of C and C++, but adds
218 garbage collection, various safety features, and concurrent programming features
219 in the style of communicating sequential processes (@dfn{CSP}).")
220 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux"))
221 (license license:bsd-3)))
222
223 (define-public go-1.14
224 (package
225 (inherit go-1.4)
226 (name "go")
227 (version "1.14.4")
228 (source
229 (origin
230 (method git-fetch)
231 (uri (git-reference
232 (url "https://github.com/golang/go")
233 (commit (string-append "go" version))))
234 (file-name (git-file-name name version))
235 (sha256
236 (base32
237 "08bazglmqp123c9dgrxflvxd011xsqfxsgah2kzbvca0mhm6qcm3"))))
238 (arguments
239 (substitute-keyword-arguments (package-arguments go-1.4)
240 ((#:system system)
241 (if (string-prefix? "aarch64-linux" (or (%current-system)
242 (%current-target-system)))
243 "aarch64-linux"
244 system))
245 ((#:phases phases)
246 `(modify-phases ,phases
247 (replace 'prebuild
248 (lambda* (#:key inputs outputs #:allow-other-keys)
249 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
250 (ld (string-append (assoc-ref inputs "libc") "/lib"))
251 (loader (car (find-files ld "^ld-linux.+")))
252 (net-base (assoc-ref inputs "net-base"))
253 (tzdata-path
254 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
255 (output (assoc-ref outputs "out")))
256
257 ;; Having the patch in the 'patches' field of <origin> breaks
258 ;; the 'TestServeContent' test due to the fact that
259 ;; timestamps are reset. Thus, apply it from here.
260 (invoke "patch" "-p2" "--force" "-i"
261 (assoc-ref inputs "go-skip-gc-test.patch"))
262
263 ;; A side effect of these test scripts is testing
264 ;; cgo. Attempts at using cgo flags and directives with these
265 ;; scripts as specified here (https://golang.org/cmd/cgo/)
266 ;; have not worked. The tests continue to state that they can
267 ;; not find object files/headers despite being present.
268 (for-each
269 delete-file
270 '("cmd/go/testdata/script/mod_case_cgo.txt"
271 "cmd/go/testdata/script/list_find.txt"
272 "cmd/go/testdata/script/list_compiled_imports.txt"
273 "cmd/go/testdata/script/cgo_syso_issue29253.txt"
274 "cmd/go/testdata/script/cover_cgo.txt"
275 "cmd/go/testdata/script/cover_cgo_xtest.txt"
276 "cmd/go/testdata/script/cover_cgo_extra_test.txt"
277 "cmd/go/testdata/script/cover_cgo_extra_file.txt"))
278
279 (for-each make-file-writable (find-files "."))
280
281 (substitute* "os/os_test.go"
282 (("/usr/bin") (getcwd))
283 (("/bin/pwd") (which "pwd"))
284 (("/bin/sh") (which "sh")))
285
286 ;; Add libgcc to runpath
287 (substitute* "cmd/link/internal/ld/lib.go"
288 (("!rpath.set") "true"))
289 (substitute* "cmd/go/internal/work/gccgo.go"
290 (("cgoldflags := \\[\\]string\\{\\}")
291 (string-append "cgoldflags := []string{"
292 "\"-rpath=" gcclib "\""
293 "}"))
294 (("\"-lgcc_s\", ")
295 (string-append
296 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
297 (substitute* "cmd/go/internal/work/gc.go"
298 (("ldflags = setextld\\(ldflags, compiler\\)")
299 (string-append
300 "ldflags = setextld(ldflags, compiler)\n"
301 "ldflags = append(ldflags, \"-r\")\n"
302 "ldflags = append(ldflags, \"" gcclib "\")\n")))
303
304 ;; Disable failing tests: these tests attempt to access
305 ;; commands or network resources which are neither available
306 ;; nor necessary for the build to succeed.
307 (for-each
308 (match-lambda
309 ((file regex)
310 (substitute* file
311 ((regex all before test_name)
312 (string-append before "Disabled" test_name)))))
313 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
314 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
315 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)")
316 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)")
317 ;; 127.0.0.1 doesn't exist
318 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)")
319 ;; 127.0.0.1 doesn't exist
320 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)")
321 ;; /etc/services doesn't exist
322 ("net/parse_test.go" "(.+)(TestReadLine.+)")
323 ("os/os_test.go" "(.+)(TestHostname.+)")
324 ;; The user's directory doesn't exist
325 ("os/os_test.go" "(.+)(TestUserHomeDir.+)")
326 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
327 ("time/format_test.go" "(.+)(TestParseInLocation.+)")
328 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
329 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
330 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
331 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
332 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
333 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
334 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
335 ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)")
336 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
337 ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)")
338 ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)")
339 ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)")
340 ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)")
341 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")
342 ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)")
343 ("net/lookup_test.go" "(.+)(TestLookupPort.+)")
344 ("syscall/exec_linux_test.go"
345 "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)")))
346
347 ;; These tests fail on aarch64-linux
348 (substitute* "cmd/dist/test.go"
349 (("t.registerHostTest\\(\"testsanitizers/msan.*") ""))
350
351 ;; fix shebang for testar script
352 ;; note the target script is generated at build time.
353 (substitute* "../misc/cgo/testcarchive/carchive_test.go"
354 (("#!/usr/bin/env") (string-append "#!" (which "env"))))
355
356 (substitute* "net/lookup_unix.go"
357 (("/etc/protocols") (string-append net-base "/etc/protocols")))
358 (substitute* "net/port_unix.go"
359 (("/etc/services") (string-append net-base "/etc/services")))
360 (substitute* "time/zoneinfo_unix.go"
361 (("/usr/share/zoneinfo/") tzdata-path))
362 (substitute* (find-files "cmd" "\\.go")
363 (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
364 #t)))
365 (add-before 'build 'set-bootstrap-variables
366 (lambda* (#:key outputs inputs #:allow-other-keys)
367 ;; Tell the build system where to find the bootstrap Go.
368 (let ((go (assoc-ref inputs "go")))
369 (setenv "GOROOT_BOOTSTRAP" go)
370 (setenv "GOGC" "400")
371 #t)))
372 (replace 'build
373 (lambda* (#:key inputs outputs #:allow-other-keys)
374 ;; FIXME: Some of the .a files are not bit-reproducible.
375 (let* ((output (assoc-ref outputs "out")))
376 (setenv "CC" (which "gcc"))
377 (setenv "GOOS" "linux")
378 (setenv "GOROOT" (dirname (getcwd)))
379 (setenv "GOROOT_FINAL" output)
380 (setenv "CGO_ENABLED" "1")
381 (invoke "sh" "all.bash"))))
382 (replace 'install
383 ;; TODO: Most of this could be factorized with Go 1.4.
384 (lambda* (#:key outputs #:allow-other-keys)
385 (let* ((output (assoc-ref outputs "out"))
386 (doc_out (assoc-ref outputs "doc"))
387 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
388 (src (string-append
389 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
390 ;; Prevent installation of the build cache, which contains
391 ;; store references to most of the tools used to build Go and
392 ;; would unnecessarily increase the size of Go's closure if it
393 ;; was installed.
394 (delete-file-recursively "../pkg/obj")
395
396 (mkdir-p src)
397 (copy-recursively "../test" (string-append src "/test"))
398 (delete-file-recursively "../test")
399 (mkdir-p docs)
400 (copy-recursively "../api" (string-append docs "/api"))
401 (delete-file-recursively "../api")
402 (copy-recursively "../doc" (string-append docs "/doc"))
403 (delete-file-recursively "../doc")
404
405 (for-each
406 (lambda (file)
407 (let* ((filein (string-append "../" file))
408 (fileout (string-append docs "/" file)))
409 (copy-file filein fileout)
410 (delete-file filein)))
411 ;; Note the slightly different file names compared to 1.4.
412 '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS"
413 "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt"))
414
415 (copy-recursively "../" output)
416 #t)))))))
417 (native-inputs
418 `(("go" ,go-1.4)
419 ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
420 ,@(match (%current-system)
421 ((or "armhf-linux" "aarch64-linux")
422 `(("gold" ,binutils-gold)))
423 (_ `()))
424 ,@(package-native-inputs go-1.4)))
425 (supported-systems %supported-systems)))
426
427 (define-public go go-1.14)
428
429 (define-public go-github-com-alsm-ioprogress
430 (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
431 (revision "0"))
432 (package
433 (name "go-github-com-alsm-ioprogress")
434 (version (git-version "0.0.0" revision commit))
435 (source (origin
436 (method git-fetch)
437 (uri (git-reference
438 (url "https://github.com/alsm/ioprogress")
439 (commit commit)))
440 (file-name (git-file-name name version))
441 (sha256
442 (base32
443 "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh"))))
444 (build-system go-build-system)
445 (arguments
446 '(#:import-path "github.com/alsm/ioprogress"))
447 (synopsis "Textual progress bars in Go")
448 (description "@code{ioprogress} is a Go library with implementations of
449 @code{io.Reader} and @code{io.Writer} that draws progress bars. The primary use
450 case for these are for command-line applications but alternate progress bar
451 writers can be supplied for alternate environments.")
452 (home-page "https://github.com/alsm/ioprogress")
453 (license license:expat))))
454
455 (define-public go-github-com-aki237-nscjar
456 (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06")
457 (revision "0"))
458 (package
459 (name "go-github-com-aki237-nscjar")
460 (version (git-version "0.0.0" revision commit))
461 (source (origin
462 (method git-fetch)
463 (uri (git-reference
464 (url "https://github.com/aki237/nscjar")
465 (commit commit)))
466 (file-name (git-file-name name version))
467 (sha256
468 (base32
469 "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96"))))
470 (build-system go-build-system)
471 (arguments
472 '(#:import-path "github.com/aki237/nscjar"))
473 (synopsis "Handle Netscape / Mozilla cookies")
474 (description "@code{nscjar} is a Go library used to parse and output
475 Netscape/Mozilla's old-style cookie files. It also implements a simple cookie
476 jar struct to manage the cookies added to the cookie jar.")
477 (home-page "https://github.com/aki237/nscjar")
478 (license license:expat))))
479
480 (define-public go-github.com-jessevdk-go-flags
481 (package
482 (name "go-github.com-jessevdk-go-flags")
483 (version "1.3.0")
484 (source (origin
485 (method git-fetch)
486 (uri (git-reference
487 (url "https://github.com/jessevdk/go-flags")
488 (commit (string-append "v" version))))
489 (file-name (git-file-name name version))
490 (sha256
491 (base32
492 "1jk2k2l10lwrn1r3nxdvbs0yz656830j4khzirw8p4ahs7c5zz36"))))
493 (build-system go-build-system)
494 (arguments
495 '(#:import-path "github.com/jessevdk/go-flags"))
496 (synopsis "Go library for parsing command line arguments")
497 (description
498 "The @code{flags} package provides a command line option parser. The
499 functionality is similar to the go builtin @code{flag} package, but
500 @code{flags} provides more options and uses reflection to provide a succinct
501 way of specifying command line options.")
502 (home-page "https://github.com/jessevdk/go-flags")
503 (license license:bsd-3)))
504
505 (define-public go-gopkg.in-tomb.v2
506 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
507 (revision "0"))
508 (package
509 (name "go-gopkg.in-tomb.v2")
510 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
511 (source (origin
512 (method git-fetch)
513 (uri (git-reference
514 (url "https://github.com/go-tomb/tomb")
515 (commit commit)))
516 (file-name (string-append name "-" version ".tar.gz"))
517 (sha256
518 (base32
519 "1sv15sri99szkdz1bkh0ir46w9n8prrwx5hfai13nrhkawfyfy10"))))
520 (build-system go-build-system)
521 (arguments
522 '(#:import-path "gopkg.in/tomb.v2"
523 #:phases
524 (modify-phases %standard-phases
525 (add-after 'unpack 'patch-source
526 (lambda _
527 ;; Add a missing % to fix the compilation of this test
528 (substitute* "src/gopkg.in/tomb.v2/tomb_test.go"
529 (("t.Fatalf\\(`Killf\\(\"BO%s")
530 "t.Fatalf(`Killf(\"BO%%s"))
531 #t)))))
532 (synopsis "@code{tomb} handles clean goroutine tracking and termination")
533 (description
534 "The @code{tomb} package handles clean goroutine tracking and
535 termination.")
536 (home-page "https://gopkg.in/tomb.v2")
537 (license license:bsd-3))))
538
539 (define-public go-github.com-jtolds-gls
540 (package
541 (name "go-github.com-jtolds-gls")
542 (version "4.20")
543 (source (origin
544 (method git-fetch)
545 (uri (git-reference
546 (url "https://github.com/jtolds/gls")
547 (commit (string-append "v" version))))
548 (file-name (git-file-name name version))
549 (sha256
550 (base32
551 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
552 (build-system go-build-system)
553 (arguments
554 '(#:import-path "github.com/jtolds/gls"))
555 (synopsis "@code{gls} provides Goroutine local storage")
556 (description
557 "The @code{gls} package provides a way to store a retrieve values
558 per-goroutine.")
559 (home-page "https://github.com/jtolds/gls")
560 (license license:expat)))
561
562 (define-public go-github-com-tj-docopt
563 (package
564 (name "go-github-com-tj-docopt")
565 (version "1.0.0")
566 (source (origin
567 (method git-fetch)
568 (uri (git-reference
569 (url "https://github.com/tj/docopt")
570 (commit (string-append "v" version))))
571 (file-name (git-file-name name version))
572 (sha256
573 (base32
574 "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080"))))
575 (build-system go-build-system)
576 (arguments
577 '(#:import-path "github.com/tj/docopt"))
578 (synopsis "Go implementation of docopt")
579 (description
580 "This library allows the user to define a command-line interface from a
581 program's help message rather than specifying it programmatically with
582 command-line parsers.")
583 (home-page "https://github.com/tj/docopt")
584 (license license:expat)))
585
586 (define-public go-github-com-hashicorp-hcl
587 (let ((commit "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8")
588 (revision "0"))
589 (package
590 (name "go-github-com-hashicorp-hcl")
591 (version (git-version "0.0.0" revision commit))
592 (source (origin
593 (method git-fetch)
594 (uri (git-reference
595 (url "https://github.com/hashicorp/hcl")
596 (commit commit)))
597 (file-name (git-file-name name version))
598 (sha256
599 (base32
600 "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc"))))
601 (build-system go-build-system)
602 (arguments
603 '(#:tests? #f
604 #:import-path "github.com/hashicorp/hcl"))
605 (synopsis "Go implementation of HashiCorp Configuration Language")
606 (description
607 "This package contains the main implementation of the @acronym{HCL,
608 HashiCorp Configuration Language}. HCL is designed to be a language for
609 expressing configuration which is easy for both humans and machines to read.")
610 (home-page "https://github.com/hashicorp/hcl")
611 (license license:mpl2.0))))
612
613 (define-public go-golang-org-x-tools
614 (let ((commit "8b927904ee0dec805c89aaf9172f4459296ed6e8")
615 (revision "0"))
616 (package
617 (name "go-golang-org-x-tools")
618 (version (git-version "0.1.3" revision commit))
619 (source (origin
620 (method git-fetch)
621 (uri (git-reference
622 (url "https://go.googlesource.com/tools")
623 (commit commit)))
624 (file-name (string-append "go.googlesource.com-tools-"
625 version "-checkout"))
626 (sha256
627 (base32
628 "0iinb70xhcjsddgi42ia1n745lx2ibnjdm6m2v666qrk3876vpck"))))
629 (build-system go-build-system)
630 (arguments
631 `(#:import-path "golang.org/x/tools"
632 ;; Source-only package
633 #:tests? #f
634 #:phases
635 (modify-phases %standard-phases
636 ;; Source-only package
637 (delete 'build))))
638 (synopsis "Tools that support the Go programming language")
639 (description "This package provides miscellaneous tools that support the
640 Go programming language.")
641 (home-page "https://go.googlesource.com/tools/")
642 (license license:bsd-3))))
643
644 (define-public go-golang-org-x-crypto
645 (let ((commit "2aa609cf4a9d7d1126360de73b55b6002f9e052a")
646 (revision "5"))
647 (package
648 (name "go-golang-org-x-crypto")
649 (version (git-version "0.0.0" revision commit))
650 (source (origin
651 (method git-fetch)
652 (uri (git-reference
653 (url "https://go.googlesource.com/crypto")
654 (commit commit)))
655 (file-name (string-append "go.googlesource.com-crypto-"
656 version "-checkout"))
657 (sha256
658 (base32
659 "1yvis6fqbsd7f356aqyi18f76vnwj3bry6mxqnkvshq4cwrf92il"))))
660 (build-system go-build-system)
661 (arguments
662 '(#:import-path "golang.org/x/crypto"
663 ;; Source-only package
664 #:tests? #f
665 #:phases
666 (modify-phases %standard-phases
667 ;; Source-only package
668 (delete 'build)
669 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
670 (lambda* (#:key outputs #:allow-other-keys)
671 (map (lambda (file)
672 (make-file-writable file))
673 (find-files
674 (string-append (assoc-ref outputs "out")
675 "/src/golang.org/x/crypto/ed25519/testdata")
676 ".*\\.gz$"))
677 #t)))))
678 (propagated-inputs
679 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
680 (synopsis "Supplementary cryptographic libraries in Go")
681 (description "This package provides supplementary cryptographic libraries
682 for the Go language.")
683 (home-page "https://go.googlesource.com/crypto/")
684 (license license:bsd-3))))
685
686 (define-public go-golang-org-x-net
687 (let ((commit "ba9fcec4b297b415637633c5a6e8fa592e4a16c3")
688 (revision "4"))
689 (package
690 (name "go-golang-org-x-net")
691 (version (git-version "0.0.0" revision commit))
692 (source (origin
693 (method git-fetch)
694 (uri (git-reference
695 (url "https://go.googlesource.com/net")
696 (commit commit)))
697 (file-name (git-file-name name version))
698 (sha256
699 (base32
700 "1hbqvy6r0s5h0dpdqw8fynl3cq0acin3iyqki9xvl5r8h33yb9bx"))))
701 (build-system go-build-system)
702 (arguments
703 `(#:import-path "golang.org/x/net"
704 ; Source-only package
705 #:tests? #f
706 #:phases
707 (modify-phases %standard-phases
708 (delete 'build))))
709 (synopsis "Go supplemental networking libraries")
710 (description "This package provides supplemental Go networking libraries.")
711 (home-page "https://go.googlesource.com/net")
712 (license license:bsd-3))))
713
714 (define-public go-golang-org-x-image
715 (let ((commit "58c23975cae11f062d4b3b0c143fe248faac195d")
716 (revision "1"))
717 (package
718 (name "go-golang-org-x-image")
719 (version (git-version "0.0.0" revision commit))
720 (source (origin
721 (method git-fetch)
722 (uri (git-reference
723 (url "https://go.googlesource.com/image")
724 (commit commit)))
725 (file-name (string-append "go.googlesource.com-image-"
726 version "-checkout"))
727 (sha256
728 (base32
729 "0i2p2girc1sfcic6xs6vrq0fp3szfx057xppksb67kliywjjrm5x"))))
730 (build-system go-build-system)
731 (arguments
732 `(#:import-path "golang.org/x/image"
733 ; Source-only package
734 #:tests? #f
735 #:phases
736 (modify-phases %standard-phases
737 (delete 'build))))
738 (home-page "https://go.googlesource.com/image")
739 (synopsis "Supplemental Go image libraries")
740 (description "This package provides supplemental Go libraries for image
741 processing.")
742 (license license:bsd-3))))
743
744 (define-public go-golang-org-x-sync
745 (let ((commit "6e8e738ad208923de99951fe0b48239bfd864f28")
746 (revision "1"))
747 (package
748 (name "go-golang-org-x-sync")
749 (version (git-version "0.0.0" revision commit))
750 (source (origin
751 (method git-fetch)
752 (uri (git-reference
753 (url "https://go.googlesource.com/sync")
754 (commit commit)))
755 (file-name (git-file-name name version))
756 (sha256
757 (base32
758 "1avk27pszd5l5df6ff7j78wgla46ir1hhy2jwfl9a3c0ys602yx9"))))
759 (build-system go-build-system)
760 (arguments
761 `(#:import-path "golang.org/x/sync"
762 #:tests? #f
763 ;; Source-only package
764 #:phases
765 (modify-phases %standard-phases
766 (delete 'build))))
767 (synopsis "Additional Go concurrency primitives")
768 (description "This package provides Go concurrency primitives in addition
769 to the ones provided by the language and “sync” and “sync/atomic”
770 packages.")
771 (home-page "https://go.googlesource.com/sync/")
772 (license license:bsd-3))))
773
774 (define-public go-golang-org-x-sys
775 (let ((commit "c709ea063b76879dc9915358f55d4d77c16ab6d5")
776 (revision "6"))
777 (package
778 (name "go-golang-org-x-sys")
779 (version (git-version "0.0.0" revision commit))
780 (source (origin
781 (method git-fetch)
782 (uri (git-reference
783 (url "https://go.googlesource.com/sys")
784 (commit commit)))
785 (file-name (git-file-name name version))
786 (sha256
787 (base32
788 "15nq53a6kcqchng4j0d1pjw0m6hny6126nhjdwqw5n9dzh6a226d"))))
789 (build-system go-build-system)
790 (arguments
791 `(#:import-path "golang.org/x/sys"
792 ;; Source-only package
793 #:tests? #f
794 #:phases
795 (modify-phases %standard-phases
796 (delete 'build))))
797 (synopsis "Go support for low-level system interaction")
798 (description "This package provides supplemental libraries offering Go
799 support for low-level interaction with the operating system.")
800 (home-page "https://go.googlesource.com/sys")
801 (license license:bsd-3))))
802
803 (define-public go-golang-org-x-text
804 (package
805 (name "go-golang-org-x-text")
806 (version "0.3.2")
807 (source (origin
808 (method git-fetch)
809 (uri (git-reference
810 (url "https://go.googlesource.com/text")
811 (commit (string-append "v" version))))
812 (file-name (string-append "go.googlesource.com-text-"
813 version "-checkout"))
814 (sha256
815 (base32
816 "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh"))))
817 (build-system go-build-system)
818 (arguments
819 `(#:import-path "golang.org/x/text"
820 ; Source-only package
821 #:tests? #f
822 #:phases
823 (modify-phases %standard-phases
824 (delete 'build))))
825 (synopsis "Supplemental Go text processing libraries")
826 (description "This package provides supplemental Go libraries for text
827 processing.")
828 (home-page "https://go.googlesource.com/text")
829 (license license:bsd-3)))
830
831 (define-public go-golang-org-x-time
832 (let ((commit "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef")
833 (revision "2"))
834 (package
835 (name "go-golang-org-x-time")
836 (version (git-version "0.0.0" revision commit))
837 (source (origin
838 (method git-fetch)
839 (uri (git-reference
840 (url "https://go.googlesource.com/time")
841 (commit commit)))
842 (file-name (git-file-name name version))
843 (sha256
844 (base32
845 "1f5nkr4vys2vbd8wrwyiq2f5wcaahhpxmia85d1gshcbqjqf8dkb"))))
846 (build-system go-build-system)
847 (arguments
848 `(#:import-path "golang.org/x/time"
849 ; Source-only package
850 #:tests? #f
851 #:phases
852 (modify-phases %standard-phases
853 (delete 'build))))
854 ; (propagated-inputs
855 ; `(("go-golang-org-x-net" ,go-golang-org-x-net)))
856 (synopsis "Supplemental Go time libraries")
857 (description "This package provides supplemental Go libraries related to
858 time.")
859 (home-page "https://godoc.org/golang.org/x/time/rate")
860 (license license:bsd-3))))
861
862 (define-public go-golang-org-x-oauth2
863 (let ((commit "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33")
864 (revision "1"))
865 (package
866 (name "go-golang-org-x-oauth2")
867 (version (git-version "0.0.0" revision commit))
868 (source (origin
869 (method git-fetch)
870 (uri (git-reference
871 (url "https://go.googlesource.com/oauth2")
872 (commit commit)))
873 (file-name (string-append "go.googlesource.com-oauth2-"
874 version "-checkout"))
875 (sha256
876 (base32
877 "06jwpvx0x2gjn2y959drbcir5kd7vg87k0r1216abk6rrdzzrzi2"))))
878 (build-system go-build-system)
879 (arguments
880 `(#:import-path "golang.org/x/oauth2"))
881 (propagated-inputs
882 `(("go-golang-org-x-net" ,go-golang-org-x-net)))
883 (home-page "https://go.googlesource.com/oauth2")
884 (synopsis "Client implementation of the OAuth 2.0 spec")
885 (description "This package contains a client implementation for OAuth 2.0
886 spec in Go.")
887 (license license:bsd-3))))
888
889 (define-public go-github-com-burntsushi-toml
890 (package
891 (name "go-github-com-burntsushi-toml")
892 (version "0.3.1")
893 (source
894 (origin
895 (method git-fetch)
896 (uri (git-reference
897 (url "https://github.com/BurntSushi/toml")
898 (commit (string-append "v" version))))
899 (file-name (git-file-name name version))
900 (sha256
901 (base32
902 "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"))))
903 (build-system go-build-system)
904 (arguments
905 '(#:import-path "github.com/BurntSushi/toml"))
906 (home-page "https://github.com/BurntSushi/toml")
907 (synopsis "Toml parser and encoder for Go")
908 (description "This package is toml parser and encoder for Go. The interface
909 is similar to Go's standard library @code{json} and @code{xml} package.")
910 (license license:expat)))
911
912 (define-public go-github-com-getsentry-raven-go
913 (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
914 (revision "0"))
915 (package
916 (name "go-github-com-getsentry-raven-go")
917 (version (git-version "0.2.0" revision commit))
918 (source
919 (origin
920 (method git-fetch)
921 (uri (git-reference
922 (url "https://github.com/getsentry/raven-go")
923 (commit commit)))
924 (file-name (git-file-name name version))
925 (sha256
926 (base32
927 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
928 (build-system go-build-system)
929 (arguments
930 '(#:import-path "github.com/getsentry/raven-go"))
931 (propagated-inputs
932 `(("go-github-com-certifi-gocertifi" ,go-github-com-certifi-gocertifi)
933 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)))
934 (home-page "https://github.com/getsentry/raven-go")
935 (synopsis "Sentry client in Go")
936 (description "This package is a Go client API for the Sentry event/error
937 logging system.")
938 (license license:bsd-3))))
939
940 (define-public go-github-com-hashicorp-go-version
941 (let ((commit
942 "03c5bf6be031b6dd45afec16b1cf94fc8938bc77")
943 (revision "0"))
944 (package
945 (name "go-github-com-hashicorp-go-version")
946 (version (git-version "0.0.0" revision commit))
947 (source
948 (origin
949 (method git-fetch)
950 (uri (git-reference
951 (url "https://github.com/hashicorp/go-version")
952 (commit commit)))
953 (file-name (git-file-name name version))
954 (sha256
955 (base32
956 "0sjq57gpfznaqdrbyb2p0bn90g9h661cvr0jrk6ngags4pbw14ik"))))
957 (build-system go-build-system)
958 (arguments
959 '(#:import-path "github.com/hashicorp/go-version"))
960 (home-page
961 "https://github.com/hashicorp/go-version")
962 (synopsis "Go library for parsing and verifying versions and version
963 constraints")
964 (description "This package is a library for parsing versions and version
965 constraints, and verifying versions against a set of constraints. It can sort
966 a collection of versions properly, handles prerelease/beta versions, can
967 increment versions.")
968 (license license:mpl2.0))))
969
970 (define-public go-github-com-jpillora-backoff
971 (let ((commit
972 "06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
973 (revision "0"))
974 (package
975 (name "go-github-com-jpillora-backoff")
976 (version (git-version "0.0.0" revision commit))
977 (source
978 (origin
979 (method git-fetch)
980 (uri (git-reference
981 (url "https://github.com/jpillora/backoff")
982 (commit commit)))
983 (file-name (git-file-name name version))
984 (sha256
985 (base32
986 "0xhvxr7bm47czdc5hy3kl508z3y4j91i2jm7vg774i52zych6k4l"))))
987 (build-system go-build-system)
988 (arguments
989 '(#:import-path "github.com/jpillora/backoff"))
990 (home-page "https://github.com/jpillora/backoff")
991 (synopsis "Simple exponential backoff counter in Go")
992 (description "This package is a simple exponential backoff counter in
993 Go.")
994 (license license:expat))))
995
996 (define-public go-github-com-stretchr-objx
997 (package
998 (name "go-github-com-stretchr-objx")
999 (version "0.2.0")
1000 (source
1001 (origin
1002 (method git-fetch)
1003 (uri (git-reference
1004 (url "https://github.com/stretchr/objx")
1005 (commit (string-append "v" version))))
1006 (file-name (git-file-name name version))
1007 (sha256
1008 (base32
1009 "0pcdvakxgddaiwcdj73ra4da05a3q4cgwbpm2w75ycq4kzv8ij8k"))))
1010 (build-system go-build-system)
1011 (arguments
1012 '(#:import-path "github.com/stretchr/objx"))
1013 (home-page "https://github.com/stretchr/objx")
1014 (synopsis "Go package for dealing with maps, slices, JSON and other data")
1015 (description "This package provides a Go library for dealing with maps,
1016 slices, JSON and other data.")
1017 (license license:expat)))
1018
1019 (define-public go-github-com-stretchr-testify
1020 (package
1021 (name "go-github-com-stretchr-testify")
1022 (version "1.5.1")
1023 (source
1024 (origin
1025 (method git-fetch)
1026 (uri (git-reference
1027 (url "https://github.com/stretchr/testify")
1028 (commit (string-append "v" version))))
1029 (file-name (git-file-name name version))
1030 (sha256
1031 (base32
1032 "09r89m1wy4cjv2nps1ykp00qjpi0531r07q3s34hr7m6njk4srkl"))))
1033 (build-system go-build-system)
1034 (arguments
1035 '(#:import-path "github.com/stretchr/testify"))
1036 (propagated-inputs
1037 `(("github.com/davecgh/go-spew" ,go-github-com-davecgh-go-spew)
1038 ("github.com/pmezard/go-difflib" ,go-github-com-pmezard-go-difflib)
1039 ("github.com/stretchr/objx" ,go-github-com-stretchr-objx)
1040 ("gopkg.in/yaml.v2" ,go-gopkg-in-yaml-v2)))
1041 (home-page "https://github.com/stretchr/testify")
1042 (synopsis "Go helper library for tests and invariant checking")
1043 (description "This package provide many tools for testifying that your
1044 code will behave as you intend.
1045
1046 Features include:
1047 @itemize
1048 @item Easy assertions
1049 @item Mocking
1050 @item HTTP response trapping
1051 @item Testing suite interfaces and functions.
1052 @end itemize")
1053 (license license:expat)))
1054
1055 (define-public go-github-com-tevino-abool
1056 (let ((commit
1057 "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12")
1058 (revision "0"))
1059 (package
1060 (name "go-github-com-tevino-abool")
1061 (version (git-version "0.0.0" revision commit))
1062 (source
1063 (origin
1064 (method git-fetch)
1065 (uri (git-reference
1066 (url "https://github.com/tevino/abool")
1067 (commit commit)))
1068 (file-name (git-file-name name version))
1069 (sha256
1070 (base32
1071 "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm"))))
1072 (build-system go-build-system)
1073 (arguments
1074 '(#:import-path "github.com/tevino/abool"))
1075 (home-page "https://github.com/tevino/abool")
1076 (synopsis "Atomic boolean library for Go code")
1077 (description "This package is atomic boolean library for Go code,
1078 optimized for performance yet simple to use.")
1079 (license license:expat))))
1080
1081 (define-public go-github-com-tv42-httpunix
1082 (let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22")
1083 (revision "0"))
1084 (package
1085 (name "go-github-com-tv42-httpunix")
1086 (version (git-version "0.0.0" revision commit))
1087 (source
1088 (origin
1089 (method git-fetch)
1090 (uri (git-reference
1091 (url "https://github.com/tv42/httpunix.git")
1092 (commit commit)))
1093 (file-name (git-file-name name version))
1094 (sha256
1095 (base32 "0xbwpip2hsfhd2kd878jn5ndl8y1i9658lggha4x3xb5m1rsds9w"))))
1096 (build-system go-build-system)
1097 (arguments
1098 '(#:import-path "github.com/tv42/httpunix"))
1099 (home-page "https://github.com/tv42/httpunix")
1100 (synopsis "Go library to talk HTTP over Unix domain sockets")
1101 (description "This package is a Go library to talk HTTP over Unix domain
1102 sockets.")
1103 (license license:expat))))
1104
1105 (define-public go-github-com-blang-semver
1106 (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9")
1107 (revision "0"))
1108 (package
1109 (name "go-github-com-blang-semver")
1110 (version (git-version "0.0.0" revision commit))
1111 (source
1112 (origin
1113 (method git-fetch)
1114 (uri (git-reference
1115 (url "https://github.com/blang/semver")
1116 (commit commit)))
1117 (file-name (git-file-name name version))
1118 (sha256
1119 (base32
1120 "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2"))))
1121 (build-system go-build-system)
1122 (arguments
1123 '(#:import-path "github.com/blang/semver"))
1124 (home-page "https://github.com/blang/semver")
1125 (synopsis "Semantic versioning library written in Go")
1126 (description "Semver is a library for Semantic versioning written in Go.")
1127 (license license:expat))))
1128
1129 (define-public go-github-com-emicklei-go-restful
1130 (let ((commit "89ef8af493ab468a45a42bb0d89a06fccdd2fb22")
1131 (revision "0"))
1132 (package
1133 (name "go-github-com-emicklei-go-restful")
1134 (version (git-version "0.0.0" revision commit))
1135 (source
1136 (origin
1137 (method git-fetch)
1138 (uri (git-reference
1139 (url "https://github.com/emicklei/go-restful")
1140 (commit commit)))
1141 (file-name (git-file-name name version))
1142 (sha256
1143 (base32
1144 "0rrlfcfq80fkxifpih6bq31vavb5mf4530xz51pp9pq1mn2fzjfh"))))
1145 (build-system go-build-system)
1146 (arguments
1147 '(#:import-path "github.com/emicklei/go-restful"))
1148 (home-page "https://github.com/emicklei/go-restful")
1149 (synopsis "Build REST-style web services using Go")
1150 (description "This package provides @code{go-restful}, which helps
1151 developers to use @code{http} methods explicitly and in a way that's consistent
1152 with the HTTP protocol definition.")
1153 (license license:expat))))
1154
1155 (define-public go-github-com-google-cadvisor
1156 (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
1157 (revision "0"))
1158 (package
1159 (name "go-github-com-google-cadvisor")
1160 (version (git-version "0.0.0" revision commit))
1161 (source
1162 (origin
1163 (method git-fetch)
1164 (uri (git-reference
1165 (url "https://github.com/google/cadvisor")
1166 (commit commit)))
1167 (file-name (git-file-name name version))
1168 (sha256
1169 (base32
1170 "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55"))))
1171 (build-system go-build-system)
1172 (arguments
1173 '(#:import-path "github.com/google/cadvisor"))
1174 (home-page "https://github.com/google/cadvisor")
1175 (synopsis "Analyze resource usage of running containers")
1176 (description "The package provides @code{cadvisor}, which provides
1177 information about the resource usage and performance characteristics of running
1178 containers.")
1179 (license license:asl2.0))))
1180
1181 (define-public go-github-com-google-gofuzz
1182 (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")
1183 (revision "0"))
1184 (package
1185 (name "go-github-com-google-gofuzz")
1186 (version (git-version "0.0.0" revision commit))
1187 (source
1188 (origin
1189 (method git-fetch)
1190 (uri (git-reference
1191 (url "https://github.com/google/gofuzz")
1192 (commit commit)))
1193 (file-name (git-file-name name version))
1194 (sha256
1195 (base32
1196 "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8"))))
1197 (build-system go-build-system)
1198 (arguments
1199 '(#:import-path "github.com/google/gofuzz"))
1200 (home-page "https://github.com/google/gofuzz")
1201 (synopsis "Fuzz testing library for Go")
1202 (description "Gofuzz is a library for populationg Go objects with random
1203 values for the purpose of fuzz testing.")
1204 (license license:asl2.0))))
1205
1206 (define-public go-github-com-gorilla-css
1207 (package
1208 (name "go-github-com-gorilla-css")
1209 (version "1.0.0")
1210 (source (origin
1211 (method git-fetch)
1212 (uri (git-reference
1213 (url "https://github.com/gorilla/css")
1214 (commit (string-append "v" version))))
1215 (file-name (git-file-name name version))
1216 (sha256
1217 (base32
1218 "116fhy3n7bsq3psyn4pa0i4x9zy916kh1zxslmbbp0p9l4i7ysrj"))))
1219 (build-system go-build-system)
1220 (arguments
1221 `(#:import-path "github.com/gorilla/css/scanner"
1222 #:unpack-path "github.com/gorilla/css"))
1223 (home-page "https://github.com/gorilla/css/")
1224 (synopsis "CSS3 tokenizer")
1225 (description "This package provides a CSS3 tokenizer.")
1226 (license license:bsd-3)))
1227
1228 (define-public go-github-com-gorilla-context
1229 (let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42")
1230 (revision "0"))
1231 (package
1232 (name "go-github-com-gorilla-context")
1233 (version (git-version "0.0.0" revision commit))
1234 (source
1235 (origin
1236 (method git-fetch)
1237 (uri (git-reference
1238 (url "https://github.com/gorilla/context")
1239 (commit commit)))
1240 (file-name (git-file-name name version))
1241 (sha256
1242 (base32
1243 "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4"))))
1244 (build-system go-build-system)
1245 (arguments
1246 '(#:import-path "github.com/gorilla/context"))
1247 (home-page "https://github.com/gorilla/context")
1248 (synopsis "Go registry for request variables")
1249 (description "This package provides @code{gorilla/context}, which is a general purpose registry for global request variables in the Go programming language.")
1250 (license license:bsd-3))))
1251
1252 (define-public go-github-com-gorilla-mux
1253 (let ((commit "599cba5e7b6137d46ddf58fb1765f5d928e69604")
1254 (revision "0"))
1255 (package
1256 (name "go-github-com-gorilla-mux")
1257 (version (git-version "0.0.0" revision commit))
1258 (source
1259 (origin
1260 (method git-fetch)
1261 (uri (git-reference
1262 (url "https://github.com/gorilla/mux")
1263 (commit commit)))
1264 (file-name (git-file-name name version))
1265 (sha256
1266 (base32
1267 "0wd6jjii1kg5s0nk3ri6gqriz6hbd6bbcn6x4jf8n7ncrb8qsxyz"))))
1268 (build-system go-build-system)
1269 (arguments
1270 '(#:import-path "github.com/gorilla/mux"))
1271 (home-page "https://github.com/gorilla/mux")
1272 (synopsis "URL router and dispatcher for Go")
1273 (description
1274 "Gorilla/Mux implements a request router and dispatcher for matching
1275 incoming requests with their respective handler.")
1276 (license license:bsd-3))))
1277
1278 (define-public go-github-com-jonboulle-clockwork
1279 (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d")
1280 (revision "0"))
1281 (package
1282 (name "go-github-com-jonboulle-clockwork")
1283 (version (git-version "0.0.0" revision commit))
1284 (source
1285 (origin
1286 (method git-fetch)
1287 (uri (git-reference
1288 (url "https://github.com/jonboulle/clockwork")
1289 (commit commit)))
1290 (file-name (git-file-name name version))
1291 (sha256
1292 (base32
1293 "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc"))))
1294 (build-system go-build-system)
1295 (arguments
1296 '(#:import-path "github.com/jonboulle/clockwork"))
1297 (home-page "https://github.com/jonboulle/clockwork")
1298 (synopsis "Fake clock library for Go")
1299 (description
1300 "Replace uses of the @code{time} package with the
1301 @code{clockwork.Clock} interface instead.")
1302 (license license:asl2.0))))
1303
1304 (define-public go-github-com-spf13-afero
1305 (package
1306 (name "go-github-com-spf13-afero")
1307 (version "1.2.2")
1308 (source
1309 (origin
1310 (method git-fetch)
1311 (uri (git-reference
1312 (url "https://github.com/spf13/afero")
1313 (commit (string-append "v" version))))
1314 (file-name (git-file-name name version))
1315 (sha256
1316 (base32
1317 "0j9r65qgd58324m85lkl49vk9dgwd62g7dwvkfcm3k6i9dc555a9"))))
1318 (build-system go-build-system)
1319 (arguments
1320 `(#:import-path "github.com/spf13/afero"))
1321 (propagated-inputs
1322 `(("golang.org/x/text" ,go-golang-org-x-text)))
1323 (home-page "https://github.com/spf13/afero")
1324 (synopsis "File system abstraction for Go")
1325 (description
1326 "This package provides a file system abstraction for Go.")
1327 (license license:asl2.0)))
1328
1329 (define-public go-github-com-spf13-cast
1330 (package
1331 (name "go-github-com-spf13-cast")
1332 (version "1.3.1")
1333 (source
1334 (origin
1335 (method git-fetch)
1336 (uri (git-reference
1337 (url "https://github.com/spf13/cast")
1338 (commit (string-append "v" version))))
1339 (file-name (git-file-name name version))
1340 (sha256
1341 (base32
1342 "0lb84788glr0qzrq2ifi36rgvp96qrgywvxrr3ggq5hrbr38hgn1"))))
1343 (build-system go-build-system)
1344 (arguments
1345 `(#:import-path "github.com/spf13/cast"))
1346 (native-inputs
1347 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
1348 (home-page "https://github.com/spf13/cast")
1349 (synopsis "Safe and easy casting from one type to another in Go")
1350 (description "Safe and easy casting from one type to another in Go")
1351 (license license:expat)))
1352
1353 (define-public go-github-com-spf13-cobra
1354 (package
1355 (name "go-github-com-spf13-cobra")
1356 (version "1.0.0")
1357 (source
1358 (origin
1359 (method git-fetch)
1360 (uri (git-reference
1361 (url "https://github.com/spf13/cobra")
1362 (commit (string-append "v" version))))
1363 (file-name (git-file-name name version))
1364 (sha256
1365 (base32
1366 "0vbppqqhby302a5ayn0296jqr71qkcd4c9am7wzsk6z71fwdsa7h"))))
1367 (build-system go-build-system)
1368 (arguments
1369 `(#:import-path "github.com/spf13/cobra"))
1370 (propagated-inputs
1371 `(("github.com/spf13/pflag" ,go-github-com-spf13-pflag)))
1372 (home-page "https://github.com/spf13/cobra")
1373 (synopsis "Go library for creating CLI applications")
1374 (description "Cobra is both a library for creating powerful modern CLI
1375 applications as well as a program to generate applications and command files.")
1376 (license license:asl2.0)))
1377
1378 (define-public go-github-com-spf13-jwalterweatherman
1379 (package
1380 (name "go-github-com-spf13-jwalterweatherman")
1381 (version "1.1.0")
1382 (source
1383 (origin
1384 (method git-fetch)
1385 (uri (git-reference
1386 (url "https://github.com/spf13/jwalterweatherman")
1387 (commit (string-append "v" version))))
1388 (file-name (git-file-name name version))
1389 (sha256
1390 (base32
1391 "1ywmkwci5zyd88ijym6f30fj5c0k2yayxarkmnazf5ybljv50q7b"))))
1392 (build-system go-build-system)
1393 (arguments
1394 `(#:import-path "github.com/spf13/jwalterweatherman"))
1395 (native-inputs
1396 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
1397 (home-page "https://github.com/spf13/jwalterweatherman")
1398 (synopsis "Go logging library")
1399 (description "Go logging library")
1400 (license license:expat)))
1401
1402 (define-public go-github-com-spf13-pflag
1403 (package
1404 (name "go-github-com-spf13-pflag")
1405 (version "1.0.5")
1406 (source
1407 (origin
1408 (method git-fetch)
1409 (uri (git-reference
1410 (url "https://github.com/spf13/pflag")
1411 (commit (string-append "v" version))))
1412 (file-name (git-file-name name version))
1413 (sha256
1414 (base32
1415 "0gpmacngd0gpslnbkzi263f5ishigzgh6pbdv9hp092rnjl4nd31"))))
1416 (build-system go-build-system)
1417 (arguments
1418 '(#:import-path "github.com/spf13/pflag"))
1419 (home-page "https://github.com/spf13/pflag")
1420 (synopsis "Replacement for Go's @code{flag} package")
1421 (description
1422 "Pflag is library to replace Go's @code{flag} package. It implements
1423 POSIX/GNU-style command-line options with double hyphens. It is is compatible
1424 with the
1425 @uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html,
1426 GNU extensions} to the POSIX recommendations for command-line options.")
1427 (license license:bsd-3)))
1428
1429 (define-public go-github-com-spf13-viper
1430 (package
1431 (name "go-github-com-spf13-viper")
1432 (version "1.7.0")
1433 (source
1434 (origin
1435 (method git-fetch)
1436 (uri (git-reference
1437 (url "https://github.com/spf13/viper")
1438 (commit (string-append "v" version))))
1439 (file-name (git-file-name name version))
1440 (sha256
1441 (base32
1442 "099n2g7fg6r8hqyszqw2axr775qyhyvwhsykvgw0f0s16ql48h5c"))))
1443 (build-system go-build-system)
1444 (arguments
1445 '(#:import-path "github.com/spf13/viper"))
1446 (propagated-inputs
1447 `(("github.com/spf13/afero" ,go-github-com-spf13-afero)
1448 ("github.com/spf13/cast" ,go-github-com-spf13-cast)
1449 ("github.com/spf13/pflag" ,go-github-com-spf13-pflag)
1450 ("github.com/spf13/jwalterweatherman" ,go-github-com-spf13-jwalterweatherman)
1451 ("github.com/fsnotify/fsnotify" ,go-github-com-fsnotify-fsnotify)
1452 ("github.com/hashicorp/hcl" ,go-github-com-hashicorp-hcl)
1453 ("github.com/magiconair/properties" ,go-github-com-magiconair-properties)
1454 ("github.com/mitchellh/mapstructure" ,go-github-com-mitchellh-mapstructure)
1455 ("github.com/pelletier/go-toml" ,go-github-com-pelletier-go-toml)
1456 ("github.com/subosito/gotenv" ,go-github-com-subosito-gotenv)
1457
1458 ("gopkg.in/ini.v1" ,go-gopkg-in-ini-v1)
1459 ("gopkg.in/yaml.v2" ,go-gopkg-in-yaml-v2)))
1460 (native-inputs
1461 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
1462 (home-page "https://github.com/spf13/viper")
1463 (synopsis "Go configuration with fangs")
1464 (description
1465 "Viper is a complete configuration solution for Go applications including
1466 12-Factor apps. It is designed to work within an application, and can handle
1467 all types of configuration needs and formats.")
1468 (license license:expat)))
1469
1470 (define-public go-github-com-fsnotify-fsnotify
1471 (package
1472 (name "go-github-com-fsnotify-fsnotify")
1473 (version "1.4.9")
1474 (source
1475 (origin
1476 (method git-fetch)
1477 (uri (git-reference
1478 (url "https://github.com/fsnotify/fsnotify")
1479 (commit (string-append "v" version))))
1480 (file-name (git-file-name name version))
1481 (sha256
1482 (base32
1483 "1i1r72knpbfwwql9frn9bqc3nhfc2ai5m6qllcyr6wban62lr40x"))))
1484 (build-system go-build-system)
1485 (arguments
1486 `(#:import-path "github.com/fsnotify/fsnotify"))
1487 (propagated-inputs
1488 `(("golang.org/x/sys" ,go-golang-org-x-sys)))
1489 (home-page "https://github.com/fsnotify/fsnotify")
1490 (synopsis "File system notifications for Go")
1491 (description "File system notifications for Go")
1492 (license license:bsd-3)))
1493
1494 (define-public go-github-com-magiconair-properties
1495 (package
1496 (name "go-github-com-magiconair-properties")
1497 (version "1.8.1")
1498 (source
1499 (origin
1500 (method git-fetch)
1501 (uri (git-reference
1502 (url "https://github.com/magiconair/properties")
1503 (commit (string-append "v" version))))
1504 (file-name (git-file-name name version))
1505 (sha256
1506 (base32
1507 "19zqw1x0w0crh8zc84yy82nkcc5yjz72gviaf2xjgfm5a8np7nyb"))))
1508 (build-system go-build-system)
1509 (arguments
1510 `(#:import-path "github.com/magiconair/properties"))
1511 (home-page "https://github.com/magiconair/properties")
1512 (synopsis "Java properties scanner for Go")
1513 (description "Java properties scanner for Go")
1514 (license license:bsd-2)))
1515
1516 (define-public go-github-com-pelletier-go-toml
1517 (package
1518 (name "go-github-com-pelletier-go-toml")
1519 (version "1.8.0")
1520 (source
1521 (origin
1522 (method git-fetch)
1523 (uri (git-reference
1524 (url "https://github.com/pelletier/go-toml")
1525 (commit (string-append "v" version))))
1526 (file-name (git-file-name name version))
1527 (sha256
1528 (base32
1529 "0fxmjm85c9h43lvqz71wr93fcc63bhj82nwby80222xx8ja63g7y"))))
1530 (build-system go-build-system)
1531 (arguments
1532 `(#:import-path "github.com/pelletier/go-toml"))
1533 (native-inputs
1534 `(("github.com/BurntSushi/toml" ,go-github-com-burntsushi-toml)
1535 ("github.com/davecgh/go-spew" ,go-github-com-davecgh-go-spew)
1536 ("gopkg.in/yaml.v2" ,go-gopkg-in-yaml-v2)))
1537 (home-page "https://github.com/pelletier/go-toml")
1538 (synopsis "Go library for the TOML configuration language")
1539 (description "Go library for the TOML configuration language")
1540 (license license:expat)))
1541
1542 (define-public go-github-com-subosito-gotenv
1543 (package
1544 (name "go-github-com-subosito-gotenv")
1545 (version "1.2.0")
1546 (source
1547 (origin
1548 (method git-fetch)
1549 (uri (git-reference
1550 (url "https://github.com/subosito/gotenv")
1551 (commit (string-append "v" version))))
1552 (file-name (git-file-name name version))
1553 (sha256
1554 (base32
1555 "0mav91j7r4arjkpq5zcf9j74f6pww8ic53x43wy7kg3ibw31yjs5"))))
1556 (build-system go-build-system)
1557 (arguments
1558 `(#:import-path "github.com/subosito/gotenv"))
1559 (native-inputs
1560 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
1561 (home-page "https://github.com/subosito/gotenv")
1562 (synopsis "Go library for loading environment variables from files")
1563 (description "Go library for loading environment variables from files")
1564 (license license:expat)))
1565
1566 (define-public go-github-com-sirupsen-logrus
1567 (package
1568 (name "go-github-com-sirupsen-logrus")
1569 (version "1.0.5")
1570 (source
1571 (origin
1572 (method git-fetch)
1573 (uri (git-reference
1574 (url "https://github.com/sirupsen/logrus")
1575 (commit (string-append "v" version))))
1576 (file-name (git-file-name name version))
1577 (sha256
1578 (base32
1579 "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz"))))
1580 (build-system go-build-system)
1581 (propagated-inputs
1582 `(("go-golang-org-x-crypto"
1583 ,go-golang-org-x-crypto)
1584 ("go-github-com-stretchr-testify"
1585 ,go-github-com-stretchr-testify)
1586 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
1587 (arguments
1588 '(#:tests? #f ;FIXME missing dependencies
1589 #:import-path "github.com/sirupsen/logrus"))
1590 (home-page "https://github.com/sirupsen/logrus")
1591 (synopsis "Structured, pluggable logging for Go")
1592 (description "Logrus is a structured logger for Go, completely API
1593 compatible with the standard library logger.")
1594 (license license:expat)))
1595
1596 (define-public go-github-com-rifflock-lfshook
1597 (package
1598 (name "go-github-com-rifflock-lfshook")
1599 (version "2.4")
1600 (source (origin
1601 (method git-fetch)
1602 (uri (git-reference
1603 (url "https://github.com/rifflock/lfshook")
1604 (commit (string-append "v" version))))
1605 (file-name (git-file-name name version))
1606 (sha256
1607 (base32
1608 "0wxqjcjfg8c0klmdgmbw3ckagby3wg9rkga9ihd4fsf05x5scxrc"))))
1609 (build-system go-build-system)
1610 (arguments
1611 `(#:import-path "github.com/rifflock/lfshook"))
1612 (propagated-inputs
1613 `(("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus)))
1614 (home-page "https://github.com/rifflock/lfshook")
1615 (synopsis "Local File System hook for Logrus logger")
1616 (description "This package provides a hook for Logrus to write directly to
1617 a file on the file system. The log levels are dynamic at instantiation of the
1618 hook, so it is capable of logging at some or all levels.")
1619 (license license:expat)))
1620
1621 (define-public go-github-com-kardianos-osext
1622 (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14")
1623 (revision "1"))
1624 (package
1625 (name "go-github-com-kardianos-osext")
1626 (version (git-version "0.0.0" revision commit))
1627 (source (origin
1628 (method git-fetch)
1629 (uri (git-reference
1630 (url "https://github.com/kardianos/osext")
1631 (commit commit)))
1632 (file-name (git-file-name name version))
1633 (sha256
1634 (base32
1635 "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz"))))
1636 (build-system go-build-system)
1637 (arguments
1638 `(#:import-path "github.com/kardianos/osext"
1639 ;; The tests are flaky:
1640 ;; <https://github.com/kardianos/osext/issues/21>
1641 #:tests? #f))
1642 (synopsis "Find the running executable")
1643 (description "Osext provides a method for finding the current executable
1644 file that is running. This can be used for upgrading the current executable or
1645 finding resources located relative to the executable file.")
1646 (home-page "https://github.com/kardianos/osext")
1647 (license license:bsd-3))))
1648
1649 (define-public go-github-com-ayufan-golang-kardianos-service
1650 (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3")
1651 (revision "0"))
1652 (package
1653 (name "go-github-com-ayufan-golang-kardianos-service")
1654 (version (git-version "0.0.0" revision commit))
1655 (source
1656 (origin
1657 (method git-fetch)
1658 (uri (git-reference
1659 (url
1660 "https://github.com/ayufan/golang-kardianos-service.git")
1661 (commit commit)))
1662 (file-name (git-file-name name version))
1663 (sha256
1664 (base32
1665 "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5"))))
1666 (build-system go-build-system)
1667 (native-inputs
1668 `(("go-github-com-kardianos-osext"
1669 ,go-github-com-kardianos-osext)))
1670 (arguments
1671 '(#:tests? #f ;FIXME tests fail: Service is not running.
1672 #:import-path "github.com/ayufan/golang-kardianos-service"))
1673 (home-page "https://github.com/ayufan/golang-kardianos-service")
1674 (synopsis "Go interface to a variety of service supervisors")
1675 (description "This package provides @code{service}, a Go module that can
1676 run programs as a service using a variety of supervisors, including systemd,
1677 SysVinit, and more.")
1678 (license license:zlib))))
1679
1680 (define-public go-github-com-docker-distribution
1681 (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329")
1682 (revision "0"))
1683 (package
1684 (name "go-github-com-docker-distribution")
1685 (version (git-version "0.0.0" revision commit))
1686 (source
1687 ;; FIXME: This bundles many things, see
1688 ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>.
1689 (origin
1690 (method git-fetch)
1691 (uri (git-reference
1692 (url "https://github.com/docker/distribution")
1693 (commit commit)))
1694 (file-name (git-file-name name version))
1695 (sha256
1696 (base32
1697 "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6"))))
1698 (build-system go-build-system)
1699 (native-inputs
1700 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
1701 ("go-github-com-sirupsen-logrus"
1702 ,go-github-com-sirupsen-logrus)
1703 ("go-golang-org-x-crypto"
1704 ,go-golang-org-x-crypto)))
1705 (arguments
1706 '(#:import-path "github.com/docker/distribution"
1707 #:phases
1708 (modify-phases %standard-phases
1709 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
1710 (lambda* (#:key outputs #:allow-other-keys)
1711 (map (lambda (file)
1712 (make-file-writable file))
1713 (find-files
1714 (assoc-ref outputs "out")
1715 ".*\\.gz$"))
1716 #t)))))
1717 (home-page
1718 "https://github.com/docker/distribution")
1719 (synopsis "This package is a Docker toolset to pack, ship, store, and
1720 deliver content")
1721 (description "Docker Distribution is a Docker toolset to pack, ship,
1722 store, and deliver content. It contains Docker Registry 2.0 and libraries
1723 to interact with distribution components.")
1724 (license license:asl2.0))))
1725
1726 (define-public go-github-com-docker-go-connections
1727 (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d")
1728 (revision "0"))
1729 (package
1730 (name "go-github-com-docker-go-connections")
1731 (version (git-version "0.0.0" revision commit))
1732 (source
1733 (origin
1734 (method git-fetch)
1735 (uri (git-reference
1736 (url "https://github.com/docker/go-connections")
1737 (commit commit)))
1738 (file-name (git-file-name name version))
1739 (sha256
1740 (base32
1741 "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0"))))
1742 (build-system go-build-system)
1743 (arguments
1744 '(#:import-path "github.com/docker/go-connections"))
1745 (home-page "https://github.com/docker/go-connections")
1746 (synopsis "Networking library for Go")
1747 (description
1748 "This package provides a library to work with network connections in
1749 the Go language. In particular it provides tools to deal with network address
1750 translation (NAT), proxies, sockets, and transport layer security (TLS).")
1751 (license license:asl2.0))))
1752
1753 (define-public go-github-com-docker-machine
1754 (let ((commit "7b7a141da84480342357c51838be142bf183b095")
1755 (revision "0"))
1756 (package
1757 (name "go-github-com-docker-machine")
1758 (version (git-version "0.0.0" revision commit))
1759 (source
1760 (origin
1761 (method git-fetch)
1762 (uri (git-reference
1763 (url "https://github.com/docker/machine")
1764 (commit commit)))
1765 (file-name (git-file-name name version))
1766 (sha256
1767 (base32
1768 "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s"))))
1769 (build-system go-build-system)
1770 (arguments
1771 '(#:import-path "github.com/docker/machine"))
1772 (home-page "https://github.com/docker/machine")
1773 (synopsis "Machine management for a container-centric world")
1774 (description
1775 "@dfn{Machine} lets you create Docker hosts on your computer, on
1776 hosting providers, and inside your data center. It creates servers, installs
1777 Docker on them, then configures the Docker client to talk to them.")
1778 (license license:asl2.0))))
1779
1780 (define-public go-github-com-gorhill-cronexpr
1781 (let ((commit "f0984319b44273e83de132089ae42b1810f4933b")
1782 (revision "0"))
1783 (package
1784 (name "go-github-com-gorhill-cronexpr")
1785 (version (git-version "0.0.0" revision commit))
1786 (source
1787 (origin
1788 (method git-fetch)
1789 (uri (git-reference
1790 (url "https://github.com/gorhill/cronexpr")
1791 (commit commit)))
1792 (file-name (git-file-name name version))
1793 (sha256
1794 (base32
1795 "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2"))))
1796 (build-system go-build-system)
1797 (arguments
1798 '(#:import-path "github.com/gorhill/cronexpr"))
1799 (home-page "https://github.com/gorhill/cronexpr")
1800 (synopsis "Cron expression parser in the Go language")
1801 (description
1802 "This package provides a cron expression parser in the Go language.
1803 Given a cron expression and a time stamp, you can get the next time stamp
1804 which satisfies the cron expression.")
1805 (license (list license:gpl3+
1806 license:asl2.0)))))
1807
1808 (define-public go-gopkg-in-check-v1
1809 (let ((commit "788fd78401277ebd861206a03c884797c6ec5541")
1810 (revision "1"))
1811 (package
1812 (name "go-gopkg-in-check-v1")
1813 (version (git-version "1.0.0" revision commit))
1814 (source
1815 (origin
1816 (method git-fetch)
1817 (uri (git-reference
1818 (url "https://github.com/go-check/check")
1819 (commit commit)))
1820 (file-name (git-file-name name version))
1821 (sha256
1822 (base32
1823 "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"))))
1824 (build-system go-build-system)
1825 (arguments
1826 '(#:import-path "gopkg.in/check.v1"))
1827 (propagated-inputs
1828 `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty)))
1829 (home-page "https://gopkg.in/check.v1")
1830 (synopsis "Test framework for the Go language")
1831 (description "This package provides a test library for the Go language.")
1832 (license license:asl2.0))))
1833
1834 (define-public go-gopkg-in-ini-v1
1835 (package
1836 (name "go-gopkg-in-ini-v1")
1837 (version "1.56.0")
1838 (source
1839 (origin
1840 (method git-fetch)
1841 (uri (git-reference
1842 (url "https://github.com/go-ini/ini")
1843 (commit (string-append "v" version))))
1844 (file-name (git-file-name name version))
1845 (sha256
1846 (base32
1847 "0j5z0cngg6mq2f9id083jcdi7k6r2h35714pashv6sdv2q7bmfc5"))))
1848 (build-system go-build-system)
1849 (arguments
1850 '(#:import-path "gopkg.in/ini.v1"
1851 ;; Requires large unpackaged test framework
1852 #:tests? #f))
1853 (home-page "https://gopkg.in/ini.v1")
1854 (synopsis "Go library for ini files")
1855 (description "Go library for ini files")
1856 (license license:asl2.0)))
1857
1858 (define-public go-gopkg-in-yaml-v2
1859 (package
1860 (name "go-gopkg-in-yaml-v2")
1861 (version "2.2.2")
1862 (source
1863 (origin
1864 (method git-fetch)
1865 (uri (git-reference
1866 (url "https://gopkg.in/yaml.v2.git")
1867 (commit (string-append "v" version))))
1868 (file-name (git-file-name name version))
1869 (sha256
1870 (base32
1871 "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))))
1872 (build-system go-build-system)
1873 (arguments
1874 '(#:import-path "gopkg.in/yaml.v2"))
1875 (native-inputs
1876 `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)))
1877 (home-page "https://gopkg.in/yaml.v2")
1878 (synopsis "YAML reader and writer for the Go language")
1879 (description
1880 "This package provides a Go library for encode and decode YAML
1881 values.")
1882 (license license:asl2.0)))
1883
1884 (define-public go-github-com-mattn-go-isatty
1885 (package
1886 (name "go-github-com-mattn-go-isatty")
1887 (version "0.0.11")
1888 (source
1889 (origin
1890 (method git-fetch)
1891 (uri (git-reference
1892 (url "https://github.com/mattn/go-isatty")
1893 (commit (string-append "v" version))))
1894 (file-name (git-file-name name version))
1895 (sha256
1896 (base32
1897 "0h671sv7hfprja495kavazkalkx7xzaqksjh13brcnwq67ijrali"))))
1898 (build-system go-build-system)
1899 (propagated-inputs
1900 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
1901 (arguments
1902 '(#:import-path "github.com/mattn/go-isatty"))
1903 (home-page "https://github.com/mattn/go-isatty")
1904 (synopsis "Provide @code{isatty} for Golang")
1905 (description "This package provides @code{isatty}, a Go module that can
1906 tell you whether a file descriptor points to a terminal and the type of the
1907 terminal.")
1908 (license license:expat)))
1909
1910 (define-public go-github-com-mattn-go-colorable
1911 (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade")
1912 (revision "0"))
1913 (package
1914 (name "go-github-com-mattn-go-colorable")
1915 (version (git-version "0.0.0" revision commit))
1916 (source
1917 (origin
1918 (method git-fetch)
1919 (uri (git-reference
1920 (url "https://github.com/mattn/go-colorable")
1921 (commit commit)))
1922 (file-name (git-file-name name version))
1923 (sha256
1924 (base32
1925 "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r"))))
1926 (build-system go-build-system)
1927 (native-inputs
1928 `(("go-github-com-mattn-go-isatty"
1929 ,go-github-com-mattn-go-isatty)))
1930 (arguments
1931 '(#:import-path "github.com/mattn/go-colorable"))
1932 (home-page "https://github.com/mattn/go-colorable")
1933 (synopsis "Handle ANSI color escapes on Windows")
1934 (description "This package provides @code{colorable}, a module that
1935 makes it possible to handle ANSI color escapes on Windows.")
1936 (license license:expat))))
1937
1938 (define-public go-github-com-mattn-go-pointer
1939 (let ((commit "a0a44394634f41e4992b173b24f14fecd3318a67")
1940 (revision "1"))
1941 (package
1942 (name "go-github-com-mattn-go-pointer")
1943 (version (git-version "0.0.0" revision commit))
1944 (source
1945 (origin
1946 (method git-fetch)
1947 (uri (git-reference
1948 (url "https://github.com/mattn/go-pointer")
1949 (commit commit)))
1950 (sha256
1951 (base32
1952 "09w7hcyc0zz2g23vld6jbcmq4ar27xakp1ldjvh549i5izf2anhz"))
1953 (file-name (git-file-name name version))))
1954 (build-system go-build-system)
1955 (arguments
1956 '(#:import-path "github.com/mattn/go-pointer"))
1957 (home-page "https://github.com/mattn/go-pointer")
1958 (synopsis "Utility for cgo")
1959 (description
1960 "This package allows for a cgo argument to be passed a Go pointer.")
1961 (license license:expat))))
1962
1963 (define-public go-github-com-mgutz-ansi
1964 (let ((commit "9520e82c474b0a04dd04f8a40959027271bab992")
1965 (revision "0"))
1966 (package
1967 (name "go-github-com-mgutz-ansi")
1968 (version (git-version "0.0.0" revision commit))
1969 (source
1970 (origin
1971 (method git-fetch)
1972 (uri (git-reference
1973 (url
1974 "https://github.com/mgutz/ansi")
1975 (commit commit)))
1976 (file-name (git-file-name name version))
1977 (sha256
1978 (base32
1979 "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j"))))
1980 (build-system go-build-system)
1981 (native-inputs
1982 `(("go-github-com-mattn-go-isatty"
1983 ,go-github-com-mattn-go-isatty)
1984 ("go-github-com-mattn-go-colorable"
1985 ,go-github-com-mattn-go-colorable)))
1986 (arguments
1987 '(#:import-path "github.com/mgutz/ansi"))
1988 (home-page "https://github.com/mgutz/ansi")
1989 (synopsis "Small, fast library to create ANSI colored strings and codes")
1990 (description "This package provides @code{ansi}, a Go module that can
1991 generate ANSI colored strings.")
1992 (license license:expat))))
1993
1994 (define-public go-github-com-aarzilli-golua
1995 (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d")
1996 (revision "0"))
1997 (package
1998 (name "go-github-com-aarzilli-golua")
1999 (version (git-version "0.0.0" revision commit))
2000 (source
2001 (origin
2002 (method git-fetch)
2003 (uri (git-reference
2004 (url
2005 "https://github.com/aarzilli/golua")
2006 (commit commit)))
2007 (file-name (git-file-name name version))
2008 (sha256
2009 (base32
2010 "1d9hr29i36cza98afj3g6rs3l7xbkprwzz0blcxsr9dd7nak20di"))))
2011 (build-system go-build-system)
2012 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
2013 ;; when this package required as input for another one, it will have to
2014 ;; be built again. Thus its CGO requirements must be made available in
2015 ;; the environment, that is, they must be propagated.
2016 (propagated-inputs
2017 `(("lua" ,lua)))
2018 (arguments
2019 `(#:unpack-path "github.com/aarzilli/golua"
2020 #:import-path "github.com/aarzilli/golua/lua"
2021 #:phases
2022 (modify-phases %standard-phases
2023 ;; While it's possible to fix the CGO_LDFLAGS with the "-tags"
2024 ;; command line argument, go-1.10+ does not re-use the produced pkg
2025 ;; for dependencies, which means we would need to propagate the
2026 ;; same "-tags" argument to all golua referrers. A substitution is
2027 ;; more convenient here. We also need to propagate the lua
2028 ;; dependency to make it available to referrers.
2029 (add-after 'unpack 'fix-lua-ldflags
2030 (lambda _
2031 (substitute* "src/github.com/aarzilli/golua/lua/lua.go"
2032 (("#cgo linux,!llua,!luaa LDFLAGS: -llua5.3")
2033 "#cgo linux,!llua,!luaa LDFLAGS: -llua")))))))
2034 (home-page "https://github.com/aarzilli/golua")
2035 (synopsis "Go Bindings for the Lua C API")
2036 (description "This package provides @code{lua}, a Go module that can
2037 run a Lua virtual machine.")
2038 (license license:expat))))
2039
2040 (define-public go-gitlab-com-ambrevar-golua-unicode
2041 (let ((commit "97ce517e7a1fe2407a90c317a9c74b173d396144")
2042 (revision "0"))
2043 (package
2044 (name "go-gitlab-com-ambrevar-golua-unicode")
2045 (version (git-version "0.0.0" revision commit))
2046 (source
2047 (origin
2048 (method git-fetch)
2049 (uri (git-reference
2050 (url
2051 "https://gitlab.com/ambrevar/golua")
2052 (commit commit)))
2053 (file-name (git-file-name name version))
2054 (sha256
2055 (base32
2056 "1izcp7p8nagjwqd13shb0020w7xhppib1a3glw2d1468bflhksnm"))))
2057 (build-system go-build-system)
2058 (native-inputs
2059 `(("lua" ,lua)
2060 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
2061 (arguments
2062 `(#:unpack-path "gitlab.com/ambrevar/golua"
2063 #:import-path "gitlab.com/ambrevar/golua/unicode"
2064 #:phases
2065 (modify-phases %standard-phases
2066 (replace 'check
2067 (lambda* (#:key import-path #:allow-other-keys)
2068 (setenv "USER" "homeless-dude")
2069 (invoke "go" "test" import-path))))))
2070 (home-page "https://gitlab.com/ambrevar/golua")
2071 (synopsis "Add Unicode support to Golua")
2072 (description "This extension to Arzilli's Golua adds Unicode support to
2073 all functions from the Lua string library. Lua patterns are replaced by Go
2074 regexps. This breaks compatibility with Lua, but Unicode support breaks it
2075 anyways and Go regexps are more powerful.")
2076 (license license:expat))))
2077
2078 (define-public go-github-com-yookoala-realpath
2079 (let ((commit "d19ef9c409d9817c1e685775e53d361b03eabbc8")
2080 (revision "0"))
2081 (package
2082 (name "go-github-com-yookoala-realpath")
2083 (version (git-version "0.0.0" revision commit))
2084 (source
2085 (origin
2086 (method git-fetch)
2087 (uri (git-reference
2088 (url
2089 "https://github.com/yookoala/realpath")
2090 (commit commit)))
2091 (file-name (git-file-name name version))
2092 (sha256
2093 (base32
2094 "0qvz1dcdldf53rq69fli76z5k1vr7prx9ds1d5rpzgs68kwn40nw"))))
2095 (build-system go-build-system)
2096 (arguments
2097 `(#:import-path "github.com/yookoala/realpath"))
2098 (home-page "https://github.com/yookoala/realpath")
2099 (synopsis "@code{realpath} for Golang")
2100 (description "This package provides @code{realpath}, a Go module that
2101 when provided with a valid relative path / alias path, it will return you with
2102 a string of its real absolute path in the system.")
2103 (license license:expat))))
2104
2105 (define-public go-gitlab-com-ambrevar-damerau
2106 (let ((commit "883829e1f25fad54015772ea663e69017cf22352")
2107 (revision "0"))
2108 (package
2109 (name "go-gitlab-com-ambrevar-damerau")
2110 (version (git-version "0.0.0" revision commit))
2111 (source
2112 (origin
2113 (method git-fetch)
2114 (uri (git-reference
2115 (url
2116 "https://gitlab.com/ambrevar/damerau")
2117 (commit commit)))
2118 (file-name (git-file-name name version))
2119 (sha256
2120 (base32
2121 "1b9p8fypc914ij1afn6ir346zsgfqrc5mqc1k3d53n4snypq27qv"))))
2122 (build-system go-build-system)
2123 (arguments
2124 `(#:import-path "gitlab.com/ambrevar/damerau"))
2125 (home-page "https://gitlab.com/ambrevar/damerau")
2126 (synopsis "Damerau-Levenshtein distance for Golang")
2127 (description "This is a spelling corrector implementing the
2128 Damerau-Levenshtein distance. Takes a string value input from the user.
2129 Looks for an identical word on a list of words, if none is found, look for a
2130 similar word.")
2131 (license license:expat))))
2132
2133 (define-public go-github-com-stevedonovan-luar
2134 (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
2135 (revision "0"))
2136 (package
2137 (name "go-github-com-stevedonovan-luar")
2138 (version (git-version "0.0.0" revision commit))
2139 (source
2140 (origin
2141 (method git-fetch)
2142 (uri (git-reference
2143 (url
2144 "https://github.com/stevedonovan/luar")
2145 (commit commit)))
2146 (file-name (git-file-name name version))
2147 (sha256
2148 (base32
2149 "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
2150 (build-system go-build-system)
2151 (native-inputs
2152 `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
2153 (arguments
2154 `(#:tests? #f ; Upstream tests are broken.
2155 #:import-path "github.com/stevedonovan/luar"))
2156 (home-page "https://github.com/stevedonovan/luar")
2157 (synopsis "Lua reflection bindings for Go")
2158 (description "Luar is designed to make using Lua from Go more
2159 convenient. Go structs, slices and maps can be automatically converted to Lua
2160 tables and vice-versa. The resulting conversion can either be a copy or a
2161 proxy. In the latter case, any change made to the result will reflect on the
2162 source.
2163
2164 Any Go function can be made available to Lua scripts, without having to write
2165 C-style wrappers.
2166
2167 Luar support cyclic structures (lists, etc.).
2168
2169 User-defined types can be made available to Lua as well: their exported
2170 methods can be called and usual operations such as indexing or arithmetic can
2171 be performed.")
2172 (license license:expat))))
2173
2174 (define-public go-github-com-michiwend-golang-pretty
2175 (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4")
2176 (revision "0"))
2177 (package
2178 (name "go-github-com-michiwend-golang-pretty")
2179 (version (git-version "0.0.0" revision commit))
2180 (source
2181 (origin
2182 (method git-fetch)
2183 (uri (git-reference
2184 (url
2185 "https://github.com/michiwend/golang-pretty")
2186 (commit commit)))
2187 (file-name (git-file-name name version))
2188 (sha256
2189 (base32
2190 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4"))))
2191 (build-system go-build-system)
2192 (native-inputs
2193 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
2194 (arguments
2195 `(#:tests? #f ; Upstream tests seem to be broken.
2196 #:import-path "github.com/michiwend/golang-pretty"))
2197 (home-page "https://github.com/michiwend/golang-pretty")
2198 (synopsis "Pretty printing for Go values")
2199 (description "Package @code{pretty} provides pretty-printing for Go
2200 values. This is useful during debugging, to avoid wrapping long output lines
2201 in the terminal.
2202
2203 It provides a function, @code{Formatter}, that can be used with any function
2204 that accepts a format string. It also provides convenience wrappers for
2205 functions in packages @code{fmt} and @code{log}.")
2206 (license license:expat))))
2207
2208 (define-public go-github-com-michiwend-gomusicbrainz
2209 (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d")
2210 (revision "0"))
2211 (package
2212 (name "go-github-com-michiwend-gomusicbrainz")
2213 (version (git-version "0.0.0" revision commit))
2214 (source
2215 (origin
2216 (method git-fetch)
2217 (uri (git-reference
2218 (url
2219 "https://github.com/michiwend/gomusicbrainz")
2220 (commit commit)))
2221 (file-name (git-file-name name version))
2222 (sha256
2223 (base32
2224 "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn"))))
2225 (build-system go-build-system)
2226 (native-inputs
2227 `(("go-github-com-michiwend-golang-pretty" ,go-github-com-michiwend-golang-pretty)
2228 ("go-github-com-kr-text" ,go-github-com-kr-text)))
2229 (arguments
2230 `(#:import-path "github.com/michiwend/gomusicbrainz"))
2231 (home-page "https://github.com/michiwend/gomusicbrainz")
2232 (synopsis "MusicBrainz WS2 client library for Golang")
2233 (description "Currently GoMusicBrainz provides methods to perform search
2234 and lookup requests. Browse requests are not supported yet.")
2235 (license license:expat))))
2236
2237 (define-public go-github-com-wtolson-go-taglib
2238 (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
2239 (revision "0"))
2240 (package
2241 (name "go-github-com-wtolson-go-taglib")
2242 (version (git-version "0.0.0" revision commit))
2243 (source
2244 (origin
2245 (method git-fetch)
2246 (uri (git-reference
2247 (url
2248 "https://github.com/wtolson/go-taglib")
2249 (commit commit)))
2250 (file-name (git-file-name name version))
2251 (sha256
2252 (base32
2253 "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2"))))
2254 (build-system go-build-system)
2255 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
2256 ;; when this package required as input for another one, it will have to
2257 ;; be built again. Thus its CGO requirements must be made available in
2258 ;; the environment, that is, they must be propagated.
2259 (propagated-inputs
2260 `(("pkg-config" ,pkg-config)
2261 ("taglib" ,taglib)))
2262 (arguments
2263 `(#:import-path "github.com/wtolson/go-taglib"
2264 ;; Tests don't pass "vet" on Go since 1.11. See
2265 ;; https://github.com/wtolson/go-taglib/issues/12.
2266 #:phases
2267 (modify-phases %standard-phases
2268 (replace 'check
2269 (lambda* (#:key import-path #:allow-other-keys)
2270 (invoke "go" "test"
2271 "-vet=off"
2272 import-path))))))
2273 (home-page "https://github.com/wtolson/go-taglib")
2274 (synopsis "Go wrapper for taglib")
2275 (description "Go wrapper for taglib")
2276 (license license:unlicense))))
2277
2278 (define-public go-github-com-gogo-protobuf
2279 (package
2280 (name "go-github-com-gogo-protobuf")
2281 (version "1.3.1")
2282 (source (origin
2283 (method git-fetch)
2284 (uri (git-reference
2285 (url "https://github.com/gogo/protobuf")
2286 (commit (string-append "v" version))))
2287 (file-name (git-file-name name version))
2288 (sha256
2289 (base32
2290 "0x77x64sxjgfhmbijqfzmj8h4ar25l2w97h01q3cqs1wk7zfnkhp"))))
2291 (build-system go-build-system)
2292 (arguments
2293 `(#:import-path "github.com/gogo/protobuf"
2294 ; Source-only package
2295 #:tests? #f
2296 #:phases
2297 (modify-phases %standard-phases
2298 (delete 'build))))
2299 (synopsis "Protocol Buffers for Go with Gadgets")
2300 (description "Gogoprotobuf is a fork of golang/protobuf with extra code
2301 generation features. This code generation is used to achieve:
2302 @itemize
2303 @item fast marshalling and unmarshalling
2304 @item more canonical Go structures
2305 @item goprotobuf compatibility
2306 @item less typing by optionally generating extra helper code
2307 @item peace of mind by optionally generating test and benchmark code
2308 @item other serialization formats
2309 @end itemize")
2310 (home-page "https://github.com/gogo/protobuf")
2311 (license license:bsd-3)))
2312
2313 (define-public go-github-com-libp2p-go-flow-metrics
2314 (let ((commit "7e5a55af485341567f98d6847a373eb5ddcdcd43")
2315 (revision "0"))
2316 (package
2317 (name "go-github-com-libp2p-go-flow-metrics")
2318 (version (git-version "0.2.0" revision commit))
2319 (source
2320 (origin
2321 (method git-fetch)
2322 (uri (git-reference
2323 (url "https://github.com/libp2p/go-flow-metrics")
2324 (commit commit)))
2325 (file-name (git-file-name name version))
2326 (sha256
2327 (base32
2328 "1p87iyk6q6f3g3xkncssx400qlld8f2z93qiz8m1f97grfyhjif1"))))
2329 (build-system go-build-system)
2330 (arguments
2331 `(#:import-path "github.com/libp2p/go-flow-metrics"
2332 ;; TODO: Tests hang.
2333 #:tests? #f))
2334 (home-page
2335 "https://github.com/libp2p/go-flow-metrics")
2336 (synopsis "Simple library for tracking flow metrics")
2337 (description "A simple alternative to rcrowley's @command{go-metrics}
2338 that's a lot faster (and only does simple bandwidth metrics).")
2339 (license license:expat))))
2340
2341 (define-public go-github-com-davecgh-go-spew
2342 (package
2343 (name "go-github-com-davecgh-go-spew")
2344 (version "1.1.1")
2345 (source
2346 (origin
2347 (method git-fetch)
2348 (uri (git-reference
2349 (url "https://github.com/davecgh/go-spew")
2350 (commit (string-append "v" version))))
2351 (file-name (git-file-name name version))
2352 (sha256
2353 (base32
2354 "0hka6hmyvp701adzag2g26cxdj47g21x6jz4sc6jjz1mn59d474y"))))
2355 (build-system go-build-system)
2356 (arguments
2357 '(#:unpack-path "github.com/davecgh/go-spew"
2358 #:import-path "github.com/davecgh/go-spew/spew"))
2359 (home-page "https://github.com/davecgh/go-spew")
2360 (synopsis "Deep pretty printer for Go data structures to aid in debugging")
2361 (description "Package @command{spew} implements a deep pretty printer
2362 for Go data structures to aid in debugging.
2363
2364 A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
2365
2366 @itemize
2367 @item Pointers are dereferenced and followed.
2368 @item Circular data structures are detected and handled properly.
2369 @item Custom Stringer/error interfaces are optionally invoked, including on
2370 unexported types.
2371 @item Custom types which only implement the Stringer/error interfaces via a
2372 pointer receiver are optionally invoked when passing non-pointer variables.
2373 @item Byte arrays and slices are dumped like the hexdump -C command which
2374 includes offsets, byte values in hex, and ASCII output (only when using Dump
2375 style).
2376 @end itemize\n")
2377 (license license:isc)))
2378
2379 (define-public go-github-com-btcsuite-btclog
2380 (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a")
2381 (revision "0"))
2382 (package
2383 (name "go-github-com-btcsuite-btclog")
2384 (version (git-version "0.0.3" revision commit))
2385 (source
2386 (origin
2387 (method git-fetch)
2388 (uri (git-reference
2389 (url "https://github.com/btcsuite/btclog")
2390 (commit commit)))
2391 (file-name (git-file-name name version))
2392 (sha256
2393 (base32
2394 "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk"))))
2395 (build-system go-build-system)
2396 (arguments
2397 '(#:import-path "github.com/btcsuite/btclog"))
2398 (home-page "https://github.com/btcsuite/btclog")
2399 (synopsis "Subsystem aware logger for Go")
2400 (description "Package @command{btclog} defines a logger interface and
2401 provides a default implementation of a subsystem-aware leveled logger
2402 implementing the same interface.")
2403 (license license:isc))))
2404
2405 (define-public go-github-com-btcsuite-btcd-btcec
2406 (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0")
2407 (revision "0"))
2408 (package
2409 (name "go-github-com-btcsuite-btcd-btcec")
2410 (version (git-version "0.12.0-beta" revision commit))
2411 (source
2412 (origin
2413 (method git-fetch)
2414 (uri (git-reference
2415 (url "https://github.com/btcsuite/btcd")
2416 (commit commit)))
2417 (file-name (git-file-name name version))
2418 (sha256
2419 (base32
2420 "04s92gsy71w1jirlr5lkk9y6r5cparbas7nmf6ywbp7kq7fn8ajn"))))
2421 (build-system go-build-system)
2422 (arguments
2423 '(#:unpack-path "github.com/btcsuite/btcd"
2424 #:import-path "github.com/btcsuite/btcd/btcec"))
2425 (native-inputs
2426 `(("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))
2427 (home-page "https://github.com/btcsuite/btcd")
2428 (synopsis "Elliptic curve cryptography to work with Bitcoin")
2429 (description "Package @command{btcec} implements elliptic curve
2430 cryptography needed for working with Bitcoin (secp256k1 only for now). It is
2431 designed so that it may be used with the standard crypto/ecdsa packages
2432 provided with Go. A comprehensive suite of test is provided to ensure proper
2433 functionality. Package @command{btcec} was originally based on work from
2434 ThePiachu which is licensed under the same terms as Go, but it has
2435 significantly diverged since then. The @command{btcsuite} developers original
2436 is licensed under the liberal ISC license.
2437
2438 Although this package was primarily written for btcd, it has intentionally
2439 been designed so it can be used as a standalone package for any projects
2440 needing to use secp256k1 elliptic curve cryptography.")
2441 (license license:isc))))
2442
2443 (define-public go-github-com-minio-sha256-simd
2444 (package
2445 (name "go-github-com-minio-sha256-simd")
2446 (version "0.1.1")
2447 (source
2448 (origin
2449 (method git-fetch)
2450 (uri (git-reference
2451 (url "https://github.com/minio/sha256-simd")
2452 (commit (string-append "v" version))))
2453 (file-name (git-file-name name version))
2454 (sha256
2455 (base32
2456 "1j0iqsckm97g4l79vd4mc7apbmkdar23jpzqpnpdhwpfd834j8lp"))))
2457 (build-system go-build-system)
2458 (arguments
2459 '(#:import-path "github.com/minio/sha256-simd"))
2460 (home-page "https://github.com/minio/sha256-simd")
2461 (synopsis "Accelerate SHA256 computations in pure Go")
2462 (description "Accelerate SHA256 computations in pure Go using AVX512 and
2463 AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x
2464 improvement (over 3 GB/s per core) in comparison to AVX2.
2465
2466 This package is designed as a replacement for @command{crypto/sha256}. For
2467 Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also
2468 supported). For ARM CPUs with the Cryptography Extensions, advantage is taken
2469 of the SHA2 instructions resulting in a massive performance improvement.
2470
2471 This package uses Golang assembly. The AVX512 version is based on the Intel's
2472 \"multi-buffer crypto library for IPSec\" whereas the other Intel
2473 implementations are described in \"Fast SHA-256 Implementations on Intel
2474 Architecture Processors\" by J. Guilford et al.")
2475 (license license:asl2.0)))
2476
2477 (define-public go-github-com-libp2p-go-libp2p-crypto
2478 (let ((commit "7240b40a3ddc47c4d17c15baabcbe45e5219171b")
2479 (revision "0"))
2480 (package
2481 (name "go-github-com-libp2p-go-libp2p-crypto")
2482 (version (git-version "2.0.1" revision commit))
2483 (source
2484 (origin
2485 (method git-fetch)
2486 (uri (git-reference
2487 (url "https://github.com/libp2p/go-libp2p-crypto")
2488 (commit commit)))
2489 (file-name (git-file-name name version))
2490 (sha256
2491 (base32
2492 "0qwpy57qv5143l9dlfwfvpqsxdd2i4zwnawx1w4pmgxxim3nw1wb"))))
2493 (build-system go-build-system)
2494 (arguments
2495 '(#:import-path "github.com/libp2p/go-libp2p-crypto"))
2496 (native-inputs
2497 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
2498 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2499 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2500 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)))
2501 (home-page
2502 "https://github.com/libp2p/go-libp2p-crypto")
2503 (synopsis "Various cryptographic utilities used by IPFS")
2504 (description "Various cryptographic utilities used by IPFS")
2505 (license license:expat))))
2506
2507 (define-public go-github-com-mr-tron-base58
2508 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312")
2509 (revision "0"))
2510 (package
2511 (name "go-github-com-mr-tron-base58")
2512 (version (git-version "1.1.0" revision commit))
2513 (source
2514 (origin
2515 (method git-fetch)
2516 (uri (git-reference
2517 (url "https://github.com/mr-tron/base58")
2518 (commit commit)))
2519 (file-name (git-file-name name version))
2520 (sha256
2521 (base32
2522 "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa"))))
2523 (build-system go-build-system)
2524 (arguments
2525 `(#:unpack-path "github.com/mr-tron/base58"
2526 #:import-path "github.com/mr-tron/base58/base58"))
2527 (home-page "https://github.com/mr-tron/base58")
2528 (synopsis "Fast implementation of base58 encoding on Golang")
2529 (description "Fast implementation of base58 encoding on Golang. A
2530 trivial @command{big.Int} encoding benchmark results in 6 times faster
2531 encoding and 8 times faster decoding.")
2532 (license license:expat))))
2533
2534 (define-public go-github-com-gxed-hashland-keccakpg
2535 (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8")
2536 (revision "0"))
2537 (package
2538 (name "go-github-com-gxed-hashland-keccakpg")
2539 (version (git-version "0.0.0" revision commit))
2540 (source
2541 (origin
2542 (method git-fetch)
2543 (uri (git-reference
2544 (url "https://github.com/gxed/hashland")
2545 (commit commit)))
2546 (file-name (git-file-name name version))
2547 (sha256
2548 (base32
2549 "1q23y4lacsz46k9gmgfw4iwwydw36j2601rbidmmswl94grpc386"))))
2550 (build-system go-build-system)
2551 (arguments
2552 '(#:unpack-path "github.com/gxed/hashland"
2553 #:import-path "github.com/gxed/hashland/keccakpg"))
2554 (home-page "https://github.com/gxed/hashland")
2555 (synopsis "Implements the Keccak (SHA-3) hash algorithm in Go")
2556 (description "Package @command{keccak} implements the Keccak (SHA-3)
2557 hash algorithm. See http://keccak.noekeon.org.")
2558 (license license:expat))))
2559
2560 (define-public go-github-com-minio-blake2b-simd
2561 (let ((commit "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4")
2562 (revision "0"))
2563 (package
2564 (name "go-github-com-minio-blake2b-simd")
2565 (version (git-version "0.0.0" revision commit))
2566 (source
2567 (origin
2568 (method git-fetch)
2569 (uri (git-reference
2570 (url "https://github.com/minio/blake2b-simd")
2571 (commit commit)))
2572 (file-name (git-file-name name version))
2573 (sha256
2574 (base32
2575 "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd"))))
2576 (build-system go-build-system)
2577 (arguments
2578 '(#:import-path "github.com/minio/blake2b-simd"))
2579 (home-page "https://github.com/minio/blake2b-simd")
2580 (synopsis "Fast hashing in pure Go of BLAKE2b with SIMD instructions")
2581 (description "This package was initially based on the pure go BLAKE2b
2582 implementation of Dmitry Chestnykh and merged with the (cgo dependent) AVX
2583 optimized BLAKE2 implementation (which in turn is based on the official
2584 implementation. It does so by using Go's Assembler for amd64 architectures
2585 with a golang only fallback for other architectures.
2586
2587 In addition to AVX there is also support for AVX2 as well as SSE. Best
2588 performance is obtained with AVX2 which gives roughly a 4X performance
2589 increase approaching hashing speeds of 1GB/sec on a single core.")
2590 (license license:asl2.0))))
2591
2592 (define-public go-github-com-spaolacci-murmur3
2593 (package
2594 (name "go-github-com-spaolacci-murmur3")
2595 (version "1.1.0")
2596 (source
2597 (origin
2598 (method git-fetch)
2599 (uri (git-reference
2600 (url "https://github.com/spaolacci/murmur3")
2601 (commit (string-append "v" version))))
2602 (file-name (git-file-name name version))
2603 (sha256
2604 (base32
2605 "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25"))))
2606 (build-system go-build-system)
2607 (arguments
2608 '(#:import-path "github.com/spaolacci/murmur3"))
2609 (home-page "https://github.com/spaolacci/murmur3")
2610 (synopsis "Native MurmurHash3 Go implementation")
2611 (description "Native Go implementation of Austin Appleby's third MurmurHash
2612 revision (aka MurmurHash3).
2613
2614 Reference algorithm has been slightly hacked as to support the streaming mode
2615 required by Go's standard Hash interface.")
2616 (license license:bsd-3)))
2617
2618 (define-public go-github-com-twmb-murmur3
2619 (package
2620 (name "go-github-com-twmb-murmur3")
2621 (version "1.1.3")
2622 (source
2623 (origin
2624 (method git-fetch)
2625 (uri (git-reference
2626 (url "https://github.com/twmb/murmur3")
2627 (commit (string-append "v" version))))
2628 (file-name (git-file-name name version))
2629 (sha256
2630 (base32
2631 "00riapwkyf23l5wyis47mbr8rwr4yrjw491jfc30wpzs111c1gyy"))))
2632 (build-system go-build-system)
2633 (arguments
2634 '(#:import-path "github.com/twmb/murmur3"))
2635 (home-page "https://github.com/twmb/murmur3")
2636 (synopsis "Native MurmurHash3 Go implementation")
2637 (description "Native Go implementation of Austin Appleby's third
2638 MurmurHash revision (aka MurmurHash3).
2639
2640 Reference algorithm has been slightly hacked as to support the streaming mode
2641 required by Go's standard Hash interface.")
2642 (license license:bsd-3)))
2643
2644 (define-public go-github-com-multiformats-go-multihash
2645 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
2646 (revision "0"))
2647 (package
2648 (name "go-github-com-multiformats-go-multihash")
2649 (version (git-version "1.0.8" revision commit))
2650 (source
2651 (origin
2652 (method git-fetch)
2653 (uri (git-reference
2654 (url "https://github.com/multiformats/go-multihash")
2655 (commit commit)))
2656 (file-name (git-file-name name version))
2657 (sha256
2658 (base32
2659 "02wd9akrwy4y5m0nig9m24p14bjjgb4n1djydrq8cm4yhbvjrrk0"))))
2660 (build-system go-build-system)
2661 (arguments
2662 '(#:import-path "github.com/multiformats/go-multihash"))
2663 (native-inputs
2664 `(("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2665 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2666 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2667 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2668 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2669 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2670 (home-page "https://github.com/multiformats/go-multihash")
2671 (synopsis "Multihash implementation in Go")
2672 (description "Multihash implementation in Go.")
2673 (license license:expat))))
2674
2675 (define-public go-github-com-libp2p-go-libp2p-peer
2676 (let ((commit "993d742bc29dcf4894b7730ba610fd78900be76c")
2677 (revision "0"))
2678 (package
2679 (name "go-github-com-libp2p-go-libp2p-peer")
2680 (version (git-version "2.3.8" revision commit))
2681 (source
2682 (origin
2683 (method git-fetch)
2684 (uri (git-reference
2685 (url "https://github.com/libp2p/go-libp2p-peer")
2686 (commit commit)))
2687 (file-name (git-file-name name version))
2688 (sha256
2689 (base32
2690 "1h96qjdi0i1wbr0jliap2903mycphas3ny0zdrm77yca9plcnphh"))))
2691 (build-system go-build-system)
2692 (arguments
2693 '(#:import-path "github.com/libp2p/go-libp2p-peer"))
2694 (native-inputs
2695 `(("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
2696 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2697 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2698 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2699 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2700 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2701 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2702 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2703 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2704 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2705 (home-page "https://github.com/libp2p/go-libp2p-peer")
2706 (synopsis "PKI based identities for use in go-libp2p")
2707 (description "PKI based identities for use in @command{go-libp2p}.")
2708 (license license:expat))))
2709
2710 (define-public go-github-com-libp2p-go-libp2p-protocol
2711 (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b")
2712 (revision "0"))
2713 (package
2714 (name "go-github-com-libp2p-go-libp2p-protocol")
2715 (version (git-version "1.0.0" revision commit))
2716 (source
2717 (origin
2718 (method git-fetch)
2719 (uri (git-reference
2720 (url "https://github.com/libp2p/go-libp2p-protocol")
2721 (commit commit)))
2722 (file-name (git-file-name name version))
2723 (sha256
2724 (base32
2725 "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld"))))
2726 (build-system go-build-system)
2727 (arguments
2728 '(#:import-path
2729 "github.com/libp2p/go-libp2p-protocol"))
2730 (home-page "https://github.com/libp2p/go-libp2p-protocol")
2731 (synopsis "Type for protocol strings in Golang")
2732 (description "Just a type for protocol strings. Nothing more.")
2733 (license license:expat))))
2734
2735 (define-public go-github-com-libp2p-go-libp2p-metrics
2736 (let ((commit "a10ff6e75dae3c868023867e8caa534a04bdc624")
2737 (revision "0"))
2738 (package
2739 (name "go-github-com-libp2p-go-libp2p-metrics")
2740 (version (git-version "2.1.6" revision commit))
2741 (source
2742 (origin
2743 (method git-fetch)
2744 (uri (git-reference
2745 (url "https://github.com/libp2p/go-libp2p-metrics")
2746 (commit commit)))
2747 (file-name (git-file-name name version))
2748 (sha256
2749 (base32
2750 "05wy0cq4h6yg9bzgapcvm2criwriicbswx80ma82gyn4a9fdrk8m"))))
2751 (build-system go-build-system)
2752 (arguments
2753 '(#:import-path "github.com/libp2p/go-libp2p-metrics"))
2754 (native-inputs
2755 `(("go-github-com-libp2p-go-flow-metrics" ,go-github-com-libp2p-go-flow-metrics)
2756 ("go-github-com-libp2p-go-libp2p-peer" ,go-github-com-libp2p-go-libp2p-peer)
2757 ("go-github-com-libp2p-go-libp2p-protocol" ,go-github-com-libp2p-go-libp2p-protocol)
2758 ("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
2759 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2760 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2761 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2762 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
2763 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2764 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2765 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2766 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2767 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2768 (home-page "https://github.com/libp2p/go-libp2p-metrics")
2769 (synopsis "Connection wrapper for go-libp2p that provides bandwidth metrics")
2770 (description "A connection wrapper for @command{go-libp2p} that provides bandwidth
2771 statistics for wrapped connections.")
2772 (license license:expat))))
2773
2774 (define-public go-github-com-mitchellh-go-homedir
2775 (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4")
2776 (revision "0"))
2777 (package
2778 (name "go-github-com-mitchellh-go-homedir")
2779 (version (git-version "1.0.0" revision commit))
2780 (source
2781 (origin
2782 (method git-fetch)
2783 (uri (git-reference
2784 (url "https://github.com/mitchellh/go-homedir")
2785 (commit commit)))
2786 (file-name (git-file-name name version))
2787 (sha256
2788 (base32
2789 "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq"))))
2790 (build-system go-build-system)
2791 (arguments
2792 (quote (#:import-path "github.com/mitchellh/go-homedir"
2793 ;; TODO: Tests fail because it tries to access home.
2794 #:tests? #f)))
2795 (home-page "https://github.com/mitchellh/go-homedir")
2796 (synopsis "Go library for detecting and expanding the user's home directory without cgo")
2797 (description "This is a Go library for detecting the user's home
2798 directory without the use of @command{cgo}, so the library can be used in
2799 cross-compilation environments.
2800
2801 Usage is simple, just call homedir.Dir() to get the home directory for a user,
2802 and homedir.Expand() to expand the @command{~} in a path to the home
2803 directory.
2804
2805 Why not just use @command{os/user}? The built-in @command{os/user} package
2806 requires cgo on Darwin systems. This means that any Go code that uses that
2807 package cannot cross compile. But 99% of the time the use for
2808 @command{os/user} is just to retrieve the home directory, which we can do for
2809 the current user without cgo. This library does that, enabling
2810 cross-compilation.")
2811 (license license:expat))))
2812
2813 (define-public go-github-com-mitchellh-mapstructure
2814 (package
2815 (name "go-github-com-mitchellh-mapstructure")
2816 (version "1.1.2") ;; NOTE: Updating to 1.3.1 breaks tests on viper-1.7.0
2817 (source
2818 (origin
2819 (method git-fetch)
2820 (uri (git-reference
2821 (url "https://github.com/mitchellh/mapstructure")
2822 (commit (string-append "v" version))))
2823 (file-name (git-file-name name version))
2824 (sha256
2825 (base32
2826 "03bpv28jz9zhn4947saqwi328ydj7f6g6pf1m2d4m5zdh5jlfkrr"))))
2827 (build-system go-build-system)
2828 (arguments
2829 `(#:import-path "github.com/mitchellh/mapstructure"))
2830 (home-page "https://github.com/mitchellh/mapstructure")
2831 (synopsis "Go library for decoding generic map values")
2832 (description "Go library for decoding generic map values")
2833 (license license:expat)))
2834
2835 (define-public go-github-com-mitchellh-reflectwalk
2836 (package
2837 (name "go-github-com-mitchellh-reflectwalk")
2838 (version "1.0.1")
2839 (source (origin
2840 (method git-fetch)
2841 (uri (git-reference
2842 (url "https://github.com/mitchellh/reflectwalk")
2843 (commit (string-append "v" version))))
2844 (file-name (git-file-name name version))
2845 (sha256
2846 (base32
2847 "0pa6a3nhzwv5s5yqcmsmsfhdp5ggxsg2wa86f3akawxrhrkjarnx"))))
2848 (build-system go-build-system)
2849 (arguments
2850 `(#:import-path "github.com/mitchellh/reflectwalk"))
2851 (home-page "https://github.com/mitchellh/reflectwalk/")
2852 (synopsis "Walk a value in Go using reflection")
2853 (description "reflectwalk is a Go library for \"walking\" a value in Go
2854 using reflection, in the same way a directory tree can be \"walked\" on the
2855 file system. Walking a complex structure can allow you to do manipulations on
2856 unknown structures such as those decoded from JSON.")
2857 (license license:expat)))
2858
2859 (define-public go-github-com-mitchellh-copystructure
2860 (package
2861 (name "go-github-com-mitchellh-copystructure")
2862 (version "1.0.0")
2863 (source
2864 (origin
2865 (method git-fetch)
2866 (uri (git-reference
2867 (url "https://github.com/mitchellh/copystructure")
2868 (commit (string-append "v" version))))
2869 (file-name (git-file-name name version))
2870 (sha256
2871 (base32
2872 "05njg92w1088v4yl0js0zdrpfq6k37i9j14mxkr3p90p5yd9rrrr"))))
2873 (build-system go-build-system)
2874 (arguments
2875 `(#:import-path "github.com/mitchellh/copystructure"))
2876 (native-inputs
2877 `(("go-github-com-mitchellh-reflectwalk" ,go-github-com-mitchellh-reflectwalk)))
2878 (home-page "https://github.com/mitchellh/copystructure")
2879 (synopsis "Go library for decoding deep copying values")
2880 (description "@code{copystructure} is a Go library for deep copying values
2881 in Go.
2882
2883 This allows you to copy Go values that may contain reference values such as
2884 maps, slices, or pointers, and copy their data as well instead of just their
2885 references.")
2886 (license license:expat)))
2887
2888 (define-public go-github-com-multiformats-go-multiaddr
2889 (let ((commit "fe1c46f8be5af4aff4db286e08839295bd922efb")
2890 (revision "0"))
2891 (package
2892 (name "go-github-com-multiformats-go-multiaddr")
2893 (version (git-version "1.3.0" revision commit))
2894 (source
2895 (origin
2896 (method git-fetch)
2897 (uri (git-reference
2898 (url "https://github.com/multiformats/go-multiaddr")
2899 (commit commit)))
2900 (file-name (git-file-name name version))
2901 (sha256
2902 (base32
2903 "0p5f8h098a4yjjmzsgqs7vhx1iqifb8izwg3559cr4h7clkpzznh"))))
2904 (build-system go-build-system)
2905 (arguments
2906 '(#:import-path
2907 "github.com/multiformats/go-multiaddr"))
2908 (native-inputs
2909 `(("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2910 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2911 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2912 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2913 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2914 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2915 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2916 (home-page "https://github.com/multiformats/go-multiaddr")
2917 (synopsis "Composable and future-proof network addresses")
2918 (description "Multiaddr is a standard way to represent addresses that
2919 does the following:
2920
2921 @itemize
2922 @item Support any standard network protocols.
2923 @item Self-describe (include protocols).
2924 @item Have a binary packed format.
2925 @item Have a nice string representation.
2926 @item Encapsulate well.
2927 @end itemize\n")
2928 (license license:expat))))
2929
2930 (define-public go-github-com-multiformats-go-multiaddr-net
2931 (let ((commit "1cb9a0e8a6de3c8a10f6cee60d01d793603c4f7e")
2932 (revision "0"))
2933 (package
2934 (name "go-github-com-multiformats-go-multiaddr-net")
2935 (version (git-version "1.6.3" revision commit))
2936 (source
2937 (origin
2938 (method git-fetch)
2939 (uri (git-reference
2940 (url "https://github.com/multiformats/go-multiaddr-net")
2941 (commit commit)))
2942 (file-name (git-file-name name version))
2943 (sha256
2944 (base32
2945 "1ypgi47xdz3bh8lh7f8cmk7w3ql9g4izx5l3kzdg9gda1xn5zxq3"))))
2946 (build-system go-build-system)
2947 (arguments
2948 (quote (#:import-path "github.com/multiformats/go-multiaddr-net"
2949 ;; TODO: Tests fail because they try to access the network.
2950 #:tests? #f)))
2951 (native-inputs
2952 `(("go-github-com-multiformats-go-multiaddr" ,go-github-com-multiformats-go-multiaddr)
2953 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2954 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2955 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2956 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2957 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2958 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
2959 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2960 (home-page "https://github.com/multiformats/go-multiaddr-net")
2961 (synopsis "Multiaddress net tools")
2962 (description "This package provides Multiaddr specific versions of
2963 common functions in stdlib's @command{net} package. This means wrappers of
2964 standard net symbols like @command{net.Dial} and @command{net.Listen}, as well
2965 as conversion to and from @command{net.Addr}.")
2966 (license license:expat))))
2967
2968 (define-public go-github-com-whyrusleeping-tar-utils
2969 (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc")
2970 (revision "0"))
2971 (package
2972 (name "go-github-com-whyrusleeping-tar-utils")
2973 (version (git-version "0.0.0" revision commit))
2974 (source
2975 (origin
2976 (method git-fetch)
2977 (uri (git-reference
2978 (url "https://github.com/whyrusleeping/tar-utils")
2979 (commit commit)))
2980 (file-name (git-file-name name version))
2981 (sha256
2982 (base32
2983 "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s"))))
2984 (build-system go-build-system)
2985 (arguments
2986 '(#:import-path
2987 "github.com/whyrusleeping/tar-utils"))
2988 (home-page "https://github.com/whyrusleeping/tar-utils")
2989 (synopsis "Tar utilities extracted from go-ipfs codebase")
2990 (description "Tar utilities extracted from @command{go-ipfs} codebase.")
2991 (license license:expat))))
2992
2993 (define-public go-github-com-cheekybits-is
2994 (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
2995 (revision "0"))
2996 (package
2997 (name "go-github-com-cheekybits-is")
2998 (version (git-version "0.0.0" revision commit))
2999 (source
3000 (origin
3001 (method git-fetch)
3002 (uri (git-reference
3003 (url "https://github.com/cheekybits/is")
3004 (commit commit)))
3005 (file-name (git-file-name name version))
3006 (sha256
3007 (base32
3008 "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d"))))
3009 (build-system go-build-system)
3010 (arguments
3011 '(#:import-path "github.com/cheekybits/is"))
3012 (home-page "https://github.com/cheekybits/is")
3013 (synopsis "Mini testing helper for Go")
3014 (description "A mini testing helper for Go.
3015
3016 @itemize
3017 @item It has a simple interface (@command{is.OK} and @command{is.Equal}).
3018 @item It plugs into existing Go toolchain (uses @command{testing.T}).
3019 @item It's obvious for newcomers.
3020 @item It also gives you @command{is.Panic} and @command{is.PanicWith} helpers
3021 - because testing panics is ugly.
3022 @end itemize\n")
3023 (license license:expat))))
3024
3025 (define-public go-github-com-sabhiram-go-gitignore
3026 (let ((commit "d3107576ba9425fc1c85f4b3569c4631b805a02e")
3027 (revision "0"))
3028 (package
3029 (name "go-github-com-sabhiram-go-gitignore")
3030 (version (git-version "1.0.2" revision commit))
3031 (source
3032 (origin
3033 (method git-fetch)
3034 (uri (git-reference
3035 (url "https://github.com/sabhiram/go-gitignore")
3036 (commit commit)))
3037 (file-name (git-file-name name version))
3038 (sha256
3039 (base32
3040 "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l"))))
3041 (build-system go-build-system)
3042 (arguments
3043 '(#:import-path
3044 "github.com/sabhiram/go-gitignore"))
3045 (native-inputs
3046 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
3047 (home-page "https://github.com/sabhiram/go-gitignore")
3048 (synopsis "Gitignore parser for Go")
3049 (description "A @command{.gitignore} parser for Go.")
3050 (license license:expat))))
3051
3052 (define-public go-github-com-urfave-cli
3053 (package
3054 (name "go-github-com-urfave-cli")
3055 (version "1.22.2")
3056 (source
3057 (origin
3058 (method git-fetch)
3059 (uri (git-reference
3060 (url "https://github.com/urfave/cli")
3061 (commit (string-append "v" version))))
3062 (file-name (git-file-name name version))
3063 (sha256
3064 (base32
3065 "10mcnvi5qmn00vpyk6si8gjka7p654wr9hac4zc9w5h3ickhvbdc"))))
3066 (build-system go-build-system)
3067 (arguments
3068 '(#:import-path "github.com/urfave/cli"))
3069 (propagated-inputs
3070 `(("go-github-com-go-md2man" ,go-github-com-go-md2man)))
3071 (home-page "https://github.com/urfave/cli")
3072 (synopsis "Simple, fast, and fun package for building command line apps in Go")
3073 (description "@command{cli} is a simple, fast, and fun package for
3074 building command line apps in Go. The goal is to enable developers to write
3075 fast and distributable command line applications in an expressive way.")
3076 (license license:expat)))
3077
3078 (define-public go-github-com-go-md2man
3079 (package
3080 (name "go-github-com-go-md2man")
3081 (version "2.0.0")
3082 (source
3083 (origin
3084 (method git-fetch)
3085 (uri (git-reference
3086 (url "https://github.com/cpuguy83/go-md2man")
3087 (commit (string-append "v" version))))
3088 (file-name (git-file-name name version))
3089 (sha256
3090 (base32
3091 "0r1f7v475dxxgzqci1mxfliwadcrk86ippflx9n411325l4g3ghv"))
3092 (modules '((guix build utils)))
3093 (snippet '(begin
3094 (delete-file-recursively "vendor")
3095 #t))))
3096 (build-system go-build-system)
3097 (arguments
3098 '(#:import-path "github.com/cpuguy83/go-md2man"))
3099 (propagated-inputs
3100 `(("go-github-com-russross-blackfriday" ,go-github-com-russross-blackfriday)))
3101 (home-page "https://github.com/cpuguy83/go-md2man")
3102 (synopsis "Convert markdown into roff")
3103 (description "Go-md2man is a Go program that converts markdown to roff for
3104 the purpose of building man pages.")
3105 (license license:expat)))
3106
3107 (define-public go-github-com-russross-blackfriday
3108 (package
3109 (name "go-github-com-russross-blackfriday")
3110 (version "2.0.1")
3111 (source
3112 (origin
3113 (method git-fetch)
3114 (uri (git-reference
3115 (url "https://github.com/russross/blackfriday")
3116 (commit (string-append "v" version))))
3117 (file-name (git-file-name name version))
3118 (sha256
3119 (base32
3120 "0nlz7isdd4rgnwzs68499hlwicxz34j2k2a0b8jy0y7ycd2bcr5j"))))
3121 (build-system go-build-system)
3122 (arguments
3123 '(#:import-path "github.com/russross/blackfriday"))
3124 (propagated-inputs
3125 `(("go-github-com-shurcool-sanitized-anchor-name"
3126 ,go-github-com-shurcool-sanitized-anchor-name)))
3127 (native-inputs
3128 `(("go-github-com-pmezard-go-difflib" ,go-github-com-pmezard-go-difflib)))
3129 (home-page "https://github.com/russross/blackfriday")
3130 (synopsis "Markdown processor in Go")
3131 (description "Blackfriday is a Markdown processor in Go.")
3132 (license license:bsd-2)))
3133
3134 (define-public go-github-com-shurcool-sanitized-anchor-name
3135 (package
3136 (name "go-github-com-shurcool-sanitized-anchor-name")
3137 (version "1.0.0")
3138 (source
3139 (origin
3140 (method git-fetch)
3141 (uri (git-reference
3142 (url "https://github.com/shurcooL/sanitized_anchor_name")
3143 (commit (string-append "v" version))))
3144 (file-name (git-file-name name version))
3145 (sha256
3146 (base32
3147 "1gv9p2nr46z80dnfjsklc6zxbgk96349sdsxjz05f3z6wb6m5l8f"))))
3148 (build-system go-build-system)
3149 (arguments
3150 '(#:import-path "github.com/shurcooL/sanitized_anchor_name"))
3151 (home-page "https://github.com/shurcooL/sanitized_anchor_name")
3152 (synopsis "Create sanitized anchor names")
3153 (description "This package provides a Go program for creating sanitized
3154 anchor names.")
3155 (license license:expat)))
3156
3157 (define-public go-github-com-pmezard-go-difflib
3158 (package
3159 (name "go-github-com-pmezard-go-difflib")
3160 (version "1.0.0")
3161 (source (origin
3162 (method git-fetch)
3163 (uri (git-reference
3164 (url "https://github.com/pmezard/go-difflib")
3165 (commit (string-append "v" version))))
3166 (file-name (git-file-name name version))
3167 (sha256
3168 (base32
3169 "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw"))))
3170 (build-system go-build-system)
3171 (arguments
3172 '(#:import-path "github.com/pmezard/go-difflib/difflib"
3173 #:unpack-path "github.com/pmezard/go-difflib/"))
3174 (home-page "https://github.com/pmezard/go-difflib")
3175 (synopsis "Go diff implementation")
3176 (description "This package provides unified and context-aware diffs in Go.")
3177 (license license:bsd-3)))
3178
3179 (define-public go-github-com-whyrusleeping-json-filter
3180 (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
3181 (revision "0"))
3182 (package
3183 (name "go-github-com-whyrusleeping-json-filter")
3184 (version (git-version "0.0.0" revision commit))
3185 (source
3186 (origin
3187 (method git-fetch)
3188 (uri (git-reference
3189 (url "https://github.com/whyrusleeping/json-filter")
3190 (commit commit)))
3191 (file-name (git-file-name name version))
3192 (sha256
3193 (base32
3194 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
3195 (build-system go-build-system)
3196 (arguments
3197 '(#:import-path
3198 "github.com/whyrusleeping/json-filter"))
3199 (home-page "https://github.com/whyrusleeping/json-filter")
3200 (synopsis "Library to query JSON objects marshalled into map[string]interface")
3201 (description "A library to query JSON objects marshalled into
3202 @command{map[string]interface{}}.")
3203 (license license:expat))))
3204
3205 (define-public go-github-com-whyrusleeping-progmeter
3206 (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04")
3207 (revision "0"))
3208 (package
3209 (name "go-github-com-whyrusleeping-progmeter")
3210 (version (git-version "0.0.0" revision commit))
3211 (source
3212 (origin
3213 (method git-fetch)
3214 (uri (git-reference
3215 (url "https://github.com/whyrusleeping/progmeter")
3216 (commit commit)))
3217 (file-name (git-file-name name version))
3218 (sha256
3219 (base32
3220 "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb"))))
3221 (build-system go-build-system)
3222 (arguments
3223 '(#:import-path
3224 "github.com/whyrusleeping/progmeter"))
3225 (home-page "https://github.com/whyrusleeping/progmeter")
3226 (synopsis "Progress meter for Go")
3227 (description "Progress meter for Go.")
3228 (license license:expat))))
3229
3230 (define-public go-github-com-whyrusleeping-stump
3231 (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5")
3232 (revision "0"))
3233 (package
3234 (name "go-github-com-whyrusleeping-stump")
3235 (version (git-version "0.0.0" revision commit))
3236 (source
3237 (origin
3238 (method git-fetch)
3239 (uri (git-reference
3240 (url "https://github.com/whyrusleeping/stump")
3241 (commit commit)))
3242 (file-name (git-file-name name version))
3243 (sha256
3244 (base32
3245 "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n"))))
3246 (build-system go-build-system)
3247 (arguments
3248 '(#:import-path "github.com/whyrusleeping/stump"))
3249 (home-page "https://github.com/whyrusleeping/stump")
3250 (synopsis "Very basic logging package for Go")
3251 (description "A simple log library, for when you don't really care to
3252 have super fancy logs.")
3253 (license license:expat))))
3254
3255 (define-public go-github-com-kr-fs
3256 (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba")
3257 (revision "0"))
3258 (package
3259 (name "go-github-com-kr-fs")
3260 (version (git-version "0.1.0" revision commit))
3261 (source
3262 (origin
3263 (method git-fetch)
3264 (uri (git-reference
3265 (url "https://github.com/kr/fs")
3266 (commit commit)))
3267 (file-name (git-file-name name version))
3268 (sha256
3269 (base32
3270 "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"))))
3271 (build-system go-build-system)
3272 (arguments
3273 '(#:import-path "github.com/kr/fs"))
3274 (home-page "https://github.com/kr/fs")
3275 (synopsis "File-system-related functions for Go")
3276 (description
3277 "The fs package provides file-system-related Go functions.")
3278 (license license:bsd-3))))
3279
3280 (define-public go-github-com-direnv-go-dotenv
3281 (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
3282 (revision "0"))
3283 (package
3284 (name "go-github-com-direnv-go-dotenv")
3285 (version (git-version "0.0.0" revision commit))
3286 (source
3287 (origin
3288 (method git-fetch)
3289 (uri (git-reference
3290 (url "https://github.com/direnv/go-dotenv")
3291 (commit commit)))
3292 (file-name (git-file-name name version))
3293 (sha256
3294 (base32
3295 "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6"))))
3296 (build-system go-build-system)
3297 (arguments
3298 '(#:import-path "github.com/direnv/go-dotenv"))
3299 (home-page "https://github.com/direnv/go-dotenv")
3300 (synopsis "Go dotenv parsing library")
3301 (description "This package provides a library for parsing the dotenv
3302 format in Go.")
3303 (license license:expat))))
3304
3305 (define-public go-github-com-kr-pretty
3306 (package
3307 (name "go-github-com-kr-pretty")
3308 (version "0.2.0")
3309 (source (origin
3310 (method git-fetch)
3311 (uri (git-reference
3312 (url "https://github.com/kr/pretty")
3313 (commit (string-append "v" version))))
3314 (file-name (git-file-name name version))
3315 (sha256
3316 (base32
3317 "1ywbfzz1h3a3qd8rpkiqwi1dm4w8ls9ijb4x1b7567grns9f0vnp"))))
3318 (build-system go-build-system)
3319 (propagated-inputs
3320 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
3321 (arguments
3322 '(#:import-path "github.com/kr/pretty"))
3323 (synopsis "A pretty printer for Go values")
3324 (description "This package provides a pretty printer for Go values.")
3325 (home-page "https://github.com/kr/pretty")
3326 (license license:expat)))
3327
3328 (define-public go-github-com-kr-text
3329 (package
3330 (name "go-github-com-kr-text")
3331 (version "0.1.0")
3332 (source (origin
3333 (method git-fetch)
3334 (uri (git-reference
3335 (url "https://github.com/kr/text")
3336 (commit (string-append "v" version))))
3337 (file-name (git-file-name name version))
3338 (sha256
3339 (base32
3340 "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"))))
3341 (build-system go-build-system)
3342 (arguments
3343 '(#:import-path "github.com/kr/text"))
3344 (synopsis "Text formatting in Go")
3345 (description "This package provides a text formatting functions in Go.")
3346 (home-page "https://github.com/kr/text")
3347 (license license:expat)))
3348
3349 (define-public go-golang-org-sql-mock
3350 (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b")
3351 (version "1.3.3")
3352 (revision "1"))
3353 (package
3354 (name "go-golang-org-sql-mock")
3355 (version (git-version version revision commit))
3356 (source (origin
3357 (method git-fetch)
3358 (uri (git-reference
3359 (url "https://github.com/DATA-DOG/go-sqlmock")
3360 (commit commit)))
3361 (file-name (git-file-name name version))
3362 (sha256
3363 (base32
3364 "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs"))))
3365 (build-system go-build-system)
3366 (arguments
3367 '(#:import-path "github.com/DATA-DOG/go-sqlmock"))
3368 (synopsis "Mock library implementing @code{sql/driver}")
3369 (description "This library simulates SQL-driver behavior in tests
3370 without requiring a real database connection.")
3371 (home-page "https://github.com/DATA-DOG/go-sqlmock")
3372 (license license:expat))))
3373
3374 (define-public go-golang-org-colorful
3375 (package
3376 (name "go-golang-org-colorful")
3377 (version "1.0.2")
3378 (source (origin
3379 (method git-fetch)
3380 (uri (git-reference
3381 (url "https://github.com/lucasb-eyer/go-colorful")
3382 (commit (string-append "v" version))))
3383 (file-name (git-file-name name version))
3384 (sha256
3385 (base32
3386 "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2"))))
3387 (build-system go-build-system)
3388 (arguments
3389 '(#:import-path "github.com/lucasb-eyer/go-colorful"))
3390 (native-inputs
3391 `(("go-golang-org-sql-mock" ,go-golang-org-sql-mock)))
3392 (synopsis "Convert between colorspaces and generate colors")
3393 (description "This package implements Go's @code{color.Color} interface
3394 and provides a means of converting colors stored as RGB to various
3395 colorspaces.")
3396 (home-page "https://github.com/lucasb-eyer/go-colorful")
3397 (license license:expat)))
3398
3399 (define-public go-github-com-gdamore-encoding
3400 (package
3401 (name "go-github-com-gdamore-encoding")
3402 (version "1.0.0")
3403 (source
3404 (origin
3405 (method git-fetch)
3406 (uri (git-reference
3407 (url "https://github.com/gdamore/encoding")
3408 (commit (string-append "v" version))))
3409 (file-name (git-file-name name version))
3410 (sha256
3411 (base32
3412 "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9"))))
3413 (build-system go-build-system)
3414 (arguments
3415 '(#:import-path "github.com/gdamore/encoding"))
3416 (inputs
3417 `(("go-golang-org-x-text" ,go-golang-org-x-text)))
3418 (home-page "https://github.com/gdamore/encoding")
3419 (synopsis "Provide encodings missing from Go")
3420 (description "This package provides useful encodings not included in the
3421 standard @code{Text} package, including some for dealing with I/O streams from
3422 non-UTF-friendly sources.")
3423 (license license:expat)))
3424
3425 (define-public go-github-com-gdamore-tcell
3426 (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e")
3427 (version "1.1.2")
3428 (revision "1"))
3429 (package
3430 (name "go-github-com-gdamore-tcell")
3431 (version (git-version version revision commit))
3432 (source
3433 (origin
3434 (method git-fetch)
3435 (uri (git-reference
3436 (url "https://github.com/gdamore/tcell")
3437 (commit commit)))
3438 (file-name (git-file-name name version))
3439 (sha256
3440 (base32
3441 "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d"))))
3442 (build-system go-build-system)
3443 (arguments
3444 `(#:import-path "github.com/gdamore/tcell"
3445 #:phases
3446 (modify-phases %standard-phases
3447 (add-before 'reset-gzip-timestamps 'make-files-writable
3448 (lambda* (#:key outputs #:allow-other-keys)
3449 ;; Make sure .gz files are writable so that the
3450 ;; 'reset-gzip-timestamps' phase can do its work.
3451 (let ((out (assoc-ref outputs "out")))
3452 (for-each make-file-writable
3453 (find-files out "\\.gz$"))
3454 #t))))))
3455 (inputs
3456 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
3457 ("go-golang-org-colorful" ,go-golang-org-colorful)
3458 ("go-golang-org-x-text" ,go-golang-org-x-text)
3459 ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding)))
3460 (home-page "https://github.com/gdamore/tcell")
3461 (synopsis "Provide a cell-based view for text terminals")
3462 (description "This package includes a full parser and expander for
3463 terminfo capability strings to avoid hard-coding escape strings for
3464 formatting. It also favors portability, and includes support for all POSIX
3465 systems.")
3466 (license license:expat))))
3467
3468 (define-public go-github-com-mattn-go-shellwords
3469 (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2")
3470 (version "1.0.5")
3471 (revision "1"))
3472 (package
3473 (name "go-github-com-mattn-go-shellwords")
3474 (version (git-version version revision commit))
3475 (source
3476 (origin
3477 (method git-fetch)
3478 (uri (git-reference
3479 (url "https://github.com/mattn/go-shellwords")
3480 (commit commit)))
3481 (file-name (git-file-name name version))
3482 (sha256
3483 (base32
3484 "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d"))))
3485 (build-system go-build-system)
3486 (arguments
3487 `(#:import-path "github.com/mattn/go-shellwords"
3488 ;; TODO: can't make homeless-shelter:
3489 ;; go: disabling cache (/homeless-shelter/.cache/go-build) due to
3490 ;; initialization failure: mkdir /homeless-shelter: permission denied
3491
3492 ;; This doesn't seem to work:
3493
3494 ;; #:phases
3495 ;; (modify-phases %standard-phases
3496 ;; (replace 'check
3497 ;; (lambda* (#:key import-path #:allow-other-keys)
3498 ;; (setenv "HOME" "/tmp")
3499 ;; (invoke "go" "test" import-path))))
3500
3501 ;; TODO: There are also a couple of tests that have stymied Debian in
3502 ;; the past. They seem to work when run locally.
3503
3504 #:tests? #f
3505 ))
3506 (home-page "https://github.com/mattn/go-shellwords")
3507 (synopsis "Parse lines into shell words")
3508 (description "This package parses text into shell arguments. Based on
3509 the @code{cpan} module @code{Parse::CommandLine}.")
3510 (license license:expat))))
3511
3512 (define-public go-github-com-burntsushi-locker
3513 (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
3514 (revision "0"))
3515 (package
3516 (name "go-github-com-burntsushi-locker")
3517 (version (git-version "0.0.0" revision commit))
3518 (source
3519 (origin
3520 (method git-fetch)
3521 (uri (git-reference
3522 (url "https://github.com/BurntSushi/locker")
3523 (commit commit)))
3524 (file-name (git-file-name name version))
3525 (sha256
3526 (base32
3527 "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
3528 (build-system go-build-system)
3529 (arguments
3530 '(#:import-path "github.com/BurntSushi/locker"))
3531 (home-page "https://github.com/BurntSushi/locker")
3532 (synopsis "Manage named ReadWrite mutexes in Go")
3533 (description "Golang package for conveniently using named read/write
3534 locks. These appear to be especially useful for synchronizing access to
3535 session based information in web applications.
3536
3537 The common use case is to use the package level functions, which use a package
3538 level set of locks (safe to use from multiple goroutines
3539 simultaneously). However, you may also create a new separate set of locks
3540 test.
3541
3542 All locks are implemented with read-write mutexes. To use them like a regular
3543 mutex, simply ignore the RLock/RUnlock functions.")
3544 (license license:unlicense))))
3545
3546 (define-public go-github-com-marten-seemann-qtls
3547 (package
3548 (name "go-github-com-marten-seemann-qtls")
3549 (version "0.4.1")
3550 (source (origin
3551 (method git-fetch)
3552 (uri (git-reference
3553 (url "https://github.com/marten-seemann/qtls")
3554 (commit (string-append "v" version))))
3555 (file-name (git-file-name name version))
3556 (sha256
3557 (base32
3558 "0dz60y98nm7l70hamq0v2vrs2dspyr5yqhnrds2dfh7hchxvq76j"))))
3559 (build-system go-build-system)
3560 (arguments
3561 '(#:import-path "github.com/marten-seemann/qtls"
3562 ;; The test suite requires networking.
3563 #:tests? #f))
3564 (propagated-inputs
3565 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
3566 (synopsis "TLS 1.3 with QUIC in Go")
3567 (description "This package provides @code{qtls}, a QUIC-capable variant of
3568 the Go standard library's TLS 1.3 implementation.")
3569 (home-page "https://github.com/marten-seemann/qtls")
3570 (license license:bsd-3)))
3571
3572 (define-public go-github-com-marten-seemann-chacha20
3573 (package
3574 (name "go-github-com-marten-seemann-chacha20")
3575 (version "0.2.0")
3576 (source (origin
3577 (method git-fetch)
3578 (uri (git-reference
3579 (url "https://github.com/marten-seemann/chacha20")
3580 (commit (string-append "v" version))))
3581 (file-name (git-file-name name version))
3582 (sha256
3583 (base32
3584 "0x1j4cvbap45zk962qkjalc1h3axhzzdy9cdzhcjmprmm1ql4gjm"))))
3585 (build-system go-build-system)
3586 (arguments
3587 '(#:import-path "github.com/marten-seemann/chacha20"))
3588 (synopsis "ChaCha20 in Go")
3589 (description "This package is an external copy of the Go standard library's
3590 internal ChaCha20 package.")
3591 (home-page "https://github.com/marten-seemann/chacha20")
3592 (license license:bsd-3)))
3593
3594 (define-public go-github-com-cheekybits-genny
3595 (package
3596 (name "go-github-com-cheekybits-genny")
3597 (version "1.0.0")
3598 (source (origin
3599 (method git-fetch)
3600 (uri (git-reference
3601 (url "https://github.com/cheekybits/genny")
3602 (commit (string-append "v" version))))
3603 (file-name (git-file-name name version))
3604 (sha256
3605 (base32
3606 "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87"))))
3607 (build-system go-build-system)
3608 (arguments
3609 '(#:import-path "github.com/cheekybits/genny"))
3610 (propagated-inputs
3611 `(("go-golang-org-x-tools" ,go-golang-org-x-tools)))
3612 (synopsis "Generics for Go")
3613 (description "This package provides @code{genny}, a Go language
3614 implementation of generics.")
3615 (home-page "https://github.com/cheekybits/genny/")
3616 (license license:expat)))
3617
3618 (define-public go-github-com-lucas-clemente-quic-go
3619 (package
3620 (name "go-github-com-lucas-clemente-quic-go")
3621 (version "0.14.4")
3622 (source (origin
3623 (method git-fetch)
3624 (uri (git-reference
3625 (url "https://github.com/lucas-clemente/quic-go")
3626 (commit (string-append "v" version))))
3627 (file-name (git-file-name name version))
3628 (sha256
3629 (base32
3630 "04l3gqbc3gh079n8vgnrsf8ypgv8sl63xjf28jqfrb45v2l73vyz"))))
3631 (build-system go-build-system)
3632 (arguments
3633 '(#:import-path "github.com/lucas-clemente/quic-go"
3634 ;; XXX More packages required...
3635 #:tests? #f))
3636 (propagated-inputs
3637 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
3638 ("go-github-com-cheekybits-genny" ,go-github-com-cheekybits-genny)
3639 ("go-github-com-marten-seemann-chacha20" ,go-github-com-marten-seemann-chacha20)
3640 ("go-github-com-marten-seemann-qtls" ,go-github-com-marten-seemann-qtls)
3641 ("go-github-com-golang-protobuf-proto" ,go-github-com-golang-protobuf-proto)))
3642 (synopsis "QUIC in Go")
3643 (description "This package provides a Go language implementation of the QUIC
3644 network protocol.")
3645 (home-page "https://github.com/lucas-clemente/quic-go")
3646 (license license:expat)))
3647
3648 (define-public go-github-com-francoispqt-gojay
3649 (package
3650 (name "go-github-com-francoispqt-gojay")
3651 (version "1.2.13")
3652 (source (origin
3653 (method git-fetch)
3654 (uri (git-reference
3655 (url "https://github.com/francoispqt/gojay")
3656 (commit (string-append "v" version))))
3657 (file-name (git-file-name name version))
3658 (sha256
3659 (base32
3660 "1ix95qdyajfmxhf9y52vjrih63f181pjs4v5as8905s4d5vmkd06"))))
3661 (build-system go-build-system)
3662 (arguments
3663 '(#:import-path "github.com/francoispqt/gojay"))
3664 (propagated-inputs
3665 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
3666 (synopsis "JSON encoder/decoder with powerful stream API for Golang")
3667 (description "GoJay is a performant JSON encoder/decoder for Golang. It has
3668 a simple API and doesn't use reflection. It relies on small interfaces to
3669 decode/encode structures and slices.")
3670 (home-page "https://github.com/francoispqt/gojay")
3671 (license license:expat)))
3672
3673 (define-public go-github-com-pkg-errors
3674 (package
3675 (name "go-github-com-pkg-errors")
3676 (version "0.9.1")
3677 (source (origin
3678 (method git-fetch)
3679 (uri (git-reference
3680 (url "https://github.com/pkg/errors")
3681 (commit (string-append "v" version))))
3682 (file-name (git-file-name name version))
3683 (sha256
3684 (base32
3685 "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq"))))
3686 (build-system go-build-system)
3687 (arguments
3688 `(#:import-path "github.com/pkg/errors"))
3689 (synopsis "Go error handling primitives")
3690 (description "This package provides @code{error}, which offers simple
3691 error handling primitives in Go.")
3692 (home-page "https://github.com/pkg/errors")
3693 (license license:bsd-2)))
3694
3695 (define-public go-github-com-maruel-panicparse
3696 (package
3697 (name "go-github-com-maruel-panicparse")
3698 (version "1.3.0")
3699 (source (origin
3700 (method git-fetch)
3701 (uri (git-reference
3702 (url "https://github.com/maruel/panicparse")
3703 (commit (string-append "v" version))))
3704 (file-name (git-file-name name version))
3705 (sha256
3706 (base32
3707 "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq"))))
3708 (build-system go-build-system)
3709 (arguments
3710 '(#:import-path "github.com/maruel/panicparse"))
3711 (synopsis "Toolkit for parsing Go stack traces")
3712 (description "This package provides a toolkit for parsing Go language panic
3713 stack traces. It simplifies the traces to make salient information more visible
3714 and aid debugging.")
3715 (home-page "https://github.com/maruel/panicparse")
3716 (license license:asl2.0)))
3717
3718 (define-public go-github-com-robfig-cron
3719 (package
3720 (name "go-github-com-robfig-cron")
3721 (version "3.0.1")
3722 (source
3723 (origin
3724 (method git-fetch)
3725 (uri (git-reference
3726 (url "https://github.com/robfig/cron")
3727 (commit (string-append "v" version))))
3728 (file-name (git-file-name name version))
3729 (sha256
3730 (base32
3731 "1agzbw2dfk2d1mpmddr85s5vh6ygm8kqrvfg87i9d2wqnlsnliqm"))))
3732 (build-system go-build-system)
3733 (arguments
3734 `(#:import-path "github.com/robfig/cron"))
3735 (home-page "https://godoc.org/github.com/robfig/cron")
3736 (synopsis "Cron library for Go")
3737 (description "This package provides a cron library for Go. It implements
3738 a cron spec parser and job runner.")
3739 (license license:expat)))
3740
3741 (define-public go-github-com-shirou-gopsutil
3742 (let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399")
3743 (revision "0"))
3744 (package
3745 (name "go-github-com-shirou-gopsutil")
3746 (version (git-version "v2.19.7" revision commit))
3747 (source (origin
3748 (method git-fetch)
3749 (uri (git-reference
3750 (url "https://github.com/shirou/gopsutil")
3751 (commit commit))) ; XXX
3752 (file-name (git-file-name name version))
3753 (sha256
3754 (base32
3755 "0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws"))))
3756 (build-system go-build-system)
3757 (arguments
3758 '(#:import-path "github.com/shirou/gopsutil"))
3759 (synopsis "Process and system monitoring in Go")
3760 (description "This package provides a library for retrieving information
3761 on running processes and system utilization (CPU, memory, disks, network,
3762 sensors).")
3763 (home-page "https://github.com/shirou/gopsutil")
3764 (license license:bsd-3))))
3765
3766 (define-public go-github-com-danwakefield-fnmatch
3767 (let ((commit "cbb64ac3d964b81592e64f957ad53df015803288")
3768 (revision "0"))
3769 (package
3770 (name "go-github-com-danwakefield-fnmatch")
3771 (version (git-version "0.0.0" revision commit))
3772 (source
3773 (origin
3774 (method git-fetch)
3775 (uri (git-reference
3776 (url "https://github.com/danwakefield/fnmatch")
3777 (commit commit)))
3778 (sha256
3779 (base32
3780 "0cbf511ppsa6hf59mdl7nbyn2b2n71y0bpkzbmfkdqjhanqh1lqz"))
3781 (file-name (git-file-name name version))))
3782 (build-system go-build-system)
3783 (arguments
3784 '(#:import-path "github.com/danwakefield/fnmatch"))
3785 (home-page "https://github.com/danwakefield/fnmatch")
3786 (synopsis "Updated clone of kballards golang fnmatch gist")
3787 (description "This package provides an updated clone of kballards golang
3788 fnmatch gist (https://gist.github.com/kballard/272720).")
3789 (license license:bsd-2))))
3790
3791 (define-public go-github-com-ddevault-go-libvterm
3792 (let ((commit "b7d861da381071e5d3701e428528d1bfe276e78f")
3793 (revision "0"))
3794 (package
3795 (name "go-github-com-ddevault-go-libvterm")
3796 (version (git-version "0.0.0" revision commit))
3797 (source
3798 (origin
3799 (method git-fetch)
3800 (uri (git-reference
3801 (url "https://github.com/ddevault/go-libvterm")
3802 (commit commit)))
3803 (sha256
3804 (base32
3805 "06vv4pgx0i6hjdjcar4ch18hp9g6q6687mbgkvs8ymmbacyhp7s6"))
3806 (file-name (git-file-name name version))))
3807 (build-system go-build-system)
3808 (arguments
3809 '(#:import-path "github.com/ddevault/go-libvterm"))
3810 (propagated-inputs
3811 `(("go-github-com-mattn-go-pointer" ,go-github-com-mattn-go-pointer)))
3812 (home-page "https://github.com/ddevault/go-libvterm")
3813 (synopsis "Go binding to libvterm")
3814 (description
3815 "This is a fork of another go-libvterm library for use with aerc.")
3816 (license license:expat))))
3817
3818 (define-public go-github-com-emersion-go-imap
3819 (package
3820 (name "go-github-com-emersion-go-imap")
3821 (version "1.0.0")
3822 (source
3823 (origin
3824 (method git-fetch)
3825 (uri (git-reference
3826 (url "https://github.com/emersion/go-imap")
3827 (commit (string-append "v" version))))
3828 (sha256
3829 (base32
3830 "1id8j2d0rn9sj8y62xhyygqpk5ygrcl9jlfx92sm1jsvxsm3kywq"))
3831 (file-name (git-file-name name version))))
3832 (build-system go-build-system)
3833 (arguments
3834 '(#:import-path "github.com/emersion/go-imap"))
3835 (native-inputs
3836 `(("go-golang-org-x-text" ,go-golang-org-x-text)))
3837 (home-page "https://github.com/emersion/go-imap")
3838 (synopsis "IMAP4rev1 library written in Go")
3839 (description "This package provides an IMAP4rev1 library written in Go. It
3840 can be used to build a client and/or a server.")
3841 (license license:expat)))
3842
3843 (define-public go-github-com-emersion-go-sasl
3844 (let ((commit "240c8404624e076f633766c16adbe96c7ac516b7")
3845 (revision "0"))
3846 (package
3847 (name "go-github-com-emersion-go-sasl")
3848 (version (git-version "0.0.0" revision commit))
3849 (source
3850 (origin
3851 (method git-fetch)
3852 (uri (git-reference
3853 (url "https://github.com/emersion/go-sasl")
3854 (commit commit)))
3855 (sha256
3856 (base32
3857 "1py18p3clp474xhx6ypyp0bgv6n1dfm24m95cyyqb0k3vibar6ih"))
3858 (file-name (git-file-name name version))))
3859 (build-system go-build-system)
3860 (arguments
3861 '(#:import-path "github.com/emersion/go-sasl"))
3862 (home-page "https://github.com/emersion/go-sasl")
3863 (synopsis "SASL library written in Go")
3864 (description "This package provides a SASL library written in Go.")
3865 (license license:expat))))
3866
3867 (define-public go-github-com-emersion-go-imap-idle
3868 (let ((commit "2704abd7050ed7f2143753554ee23affdf847bd9")
3869 (revision "0"))
3870 (package
3871 (name "go-github-com-emersion-go-imap-idle")
3872 (version (git-version "0.0.0" revision commit))
3873 (source
3874 (origin
3875 (method git-fetch)
3876 (uri (git-reference
3877 (url "https://github.com/emersion/go-imap-idle")
3878 (commit commit)))
3879 (sha256
3880 (base32
3881 "0blwcadmxgqsdwgr9m4jqfbpfa2viw5ah19xbybpa1z1z4aj5cbc"))
3882 (file-name (git-file-name name version))))
3883 (build-system go-build-system)
3884 (arguments
3885 '(#:import-path "github.com/emersion/go-imap-idle"))
3886 (native-inputs
3887 `(("go-github-com-emersion-go-imap" ,go-github-com-emersion-go-imap)
3888 ("go-github-com-emersion-go-sasl" ,go-github-com-emersion-go-sasl)
3889 ("go-golang-org-x-text" ,go-golang-org-x-text)))
3890 (home-page "https://github.com/emersion/go-imap-idle")
3891 (synopsis "IDLE extension for go-imap")
3892 (description "This package provides an IDLE extension for go-imap.")
3893 (license license:expat))))
3894
3895 (define-public go-github-com-fatih-color
3896 (package
3897 (name "go-github-com-fatih-color")
3898 (version "1.8.0")
3899 (source (origin
3900 (method git-fetch)
3901 (uri (git-reference
3902 (url "https://github.com/fatih/color")
3903 (commit (string-append "v" version))))
3904 (file-name (git-file-name name version))
3905 (sha256
3906 (base32
3907 "1zc0zlilf03h121f9jqq3ar0hfm7706547zysxp2qxbm920pz7h0"))))
3908 (build-system go-build-system)
3909 (arguments
3910 '(#:import-path "github.com/fatih/color"))
3911 (synopsis "Print colored text in Go")
3912 (description "This package provides an ANSI color package to output
3913 colorized or SGR defined output to the standard output.")
3914 (home-page "https://godoc.org/github.com/fatih/color")
3915 (license license:expat)))
3916
3917 (define-public go-github-com-google-go-cmp-cmp
3918 (package
3919 (name "go-github-com-google-go-cmp-cmp")
3920 (version "0.3.1")
3921 (source (origin
3922 (method git-fetch)
3923 (uri (git-reference
3924 (url "https://github.com/google/go-cmp")
3925 (commit (string-append "v" version))))
3926 (file-name (git-file-name name version))
3927 (sha256
3928 (base32
3929 "1caw49i0plkjxir7kdf5qhwls3krqwfmi7g4h392rdfwi3kfahx1"))))
3930 (build-system go-build-system)
3931 (arguments
3932 '(#:import-path "github.com/google/go-cmp/cmp"
3933 #:unpack-path "github.com/google/go-cmp"))
3934 (synopsis "Determine equality of values in Go")
3935 (description "This package provides a more powerful and safer
3936 alternative to @code{reflect.DeepEqual} for comparing whether two values
3937 are semantically equal in Go (for writing tests).")
3938 (home-page "https://godoc.org/github.com/google/go-cmp/cmp")
3939 (license license:asl2.0)))
3940
3941 (define-public go-github-com-google-uuid
3942 (package
3943 (name "go-github-com-google-uuid")
3944 (version "1.1.1")
3945 (source (origin
3946 (method git-fetch)
3947 (uri (git-reference
3948 (url "https://github.com/google/uuid")
3949 (commit (string-append "v" version))))
3950 (file-name (git-file-name name version))
3951 (sha256
3952 (base32
3953 "0hfxcf9frkb57k6q0rdkrmnfs78ms21r1qfk9fhlqga2yh5xg8zb"))))
3954 (build-system go-build-system)
3955 (arguments
3956 '(#:import-path "github.com/google/uuid"))
3957 (home-page "https://github.com/google/uuid/")
3958 (synopsis "Generate and inspect UUIDs based on RFC 4122 and DCE 1.1")
3959 (description "The uuid package generates and inspects UUIDs based on RFC
3960 4122 and DCE 1.1: Authentication and Security Services.")
3961 (license license:bsd-3)))
3962
3963 (define-public go-github-com-google-goterm
3964 (let ((commit "fc88cf888a3fa99ecc23d1efc1a44284268457d3")
3965 (revision "1"))
3966 (package
3967 (name "go-github-com-google-goterm")
3968 (version (git-version "0.0.1" revision commit))
3969 (source (origin
3970 (method git-fetch)
3971 (uri (git-reference
3972 (url "https://github.com/google/goterm")
3973 (commit commit)))
3974 (file-name (git-file-name name version))
3975 (sha256
3976 (base32
3977 "0809sf02dhg2bjhsz43pmlb5d7nbsnwxls3lw01zw5p7ri9bqwfb"))))
3978 (build-system go-build-system)
3979 (arguments
3980 `(#:import-path "github.com/google/goterm/term"
3981 #:unpack-path "github.com/google/goterm"))
3982 (home-page "https://github.com/google/goterm/")
3983 (synopsis "PTY creation and termios get/set attributes")
3984 (description "The term package implements PTY creation and termios get/set
3985 attributes. It also contains some convenience functions for colors, SSH to
3986 and from termios translations, readCh, reading passwords, etc.")
3987 (license license:bsd-3))))
3988
3989 (define-public go-github-com-google-go-querystring
3990 (let ((commit "992e8021cf787c100d55520d5c906e01536c0a19") ;fix format in tests
3991 (revision "1"))
3992 (package
3993 (name "go-github-com-google-go-querystring")
3994 (version "1.0.0")
3995 (source (origin
3996 (method git-fetch)
3997 (uri (git-reference
3998 (url "https://github.com/google/go-querystring")
3999 (commit commit)))
4000 (file-name (git-file-name name version))
4001 (sha256
4002 (base32
4003 "0mbx4jvf7nz4sk2fgqfq1llz4xb3vc4625b4x398mspr3a5077rs"))))
4004 (build-system go-build-system)
4005 (arguments
4006 `(#:import-path "github.com/google/go-querystring/query"
4007 #:unpack-path "github.com/google/go-querystring"))
4008 (home-page "https://github.com/google/go-querystring/")
4009 (synopsis "Library for encoding structs into URL query parameters")
4010 (description "@code{go-querystring} is Go library for encoding structs
4011 into URL query parameters.")
4012 (license license:bsd-3))))
4013
4014 (define-public go-github-com-google-go-github
4015 (package
4016 (name "go-github-com-google-go-github")
4017 (version "26.1.3")
4018 (source (origin
4019 (method git-fetch)
4020 (uri (git-reference
4021 (url "https://github.com/google/go-github")
4022 (commit (string-append "v" version))))
4023 (file-name (git-file-name name version))
4024 (sha256
4025 (base32
4026 "0x0zz1vcmllp6r6l2qin9b2llm5cxbf6n84rf99h8wrmhvzs2ipi"))))
4027 (build-system go-build-system)
4028 (arguments
4029 `(#:tests? #f ;application/octet-stream instead of text/plain
4030 #:import-path "github.com/google/go-github/v26/github"
4031 #:unpack-path "github.com/google/go-github/v26"))
4032 (native-inputs
4033 `(("go-github-com-google-go-querystring" ,go-github-com-google-go-querystring)
4034 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
4035 (home-page "https://github.com/google/go-github/")
4036 (synopsis "Client library for accessing the GitHub API v3")
4037 (description "@code{go-github} is a Go client library for accessing the
4038 GitHub API v3.")
4039 (license license:bsd-3)))
4040
4041 (define-public go-github-com-google-renameio
4042 (package
4043 (name "go-github-com-google-renameio")
4044 (version "0.1.0")
4045 (source (origin
4046 (method git-fetch)
4047 (uri (git-reference
4048 (url "https://github.com/google/renameio")
4049 (commit (string-append "v" version))))
4050 (file-name (git-file-name name version))
4051 (sha256
4052 (base32
4053 "1ki2x5a9nrj17sn092d6n4zr29lfg5ydv4xz5cp58z6cw8ip43jx"))))
4054 (build-system go-build-system)
4055 (arguments
4056 `(#:import-path "github.com/google/renameio"))
4057 (home-page "https://github.com/google/renameio/")
4058 (synopsis "Atomically create or replace a file or symbolic link")
4059 (description "@code{renameio} Go package provides a way to atomically
4060 create or replace a file or symbolic link.")
4061 (license license:asl2.0)))
4062
4063 (define-public go-golang.org-x-sync-errgroup
4064 (let ((commit "cd5d95a43a6e21273425c7ae415d3df9ea832eeb")
4065 (revision "0"))
4066 (package
4067 (name "go-golang.org-x-sync-errgroup")
4068 (version (git-version "0.0.0" revision commit))
4069 (source (origin
4070 (method git-fetch)
4071 (uri (git-reference
4072 (url "https://go.googlesource.com/sync")
4073 (commit commit)))
4074 (file-name (git-file-name name version))
4075 (sha256
4076 (base32
4077 "1nqkyz2y1qvqcma52ijh02s8aiqmkfb95j08f6zcjhbga3ds6hds"))))
4078 (build-system go-build-system)
4079 (arguments
4080 '(#:import-path "golang.org/x/sync/errgroup"
4081 #:unpack-path "golang.org/x/sync"))
4082 (synopsis "Synchronization, error propagation, and Context cancellation
4083 for groups of goroutines working on subtasks of a common task.")
4084 (description "This package provides synchronization, error propagation,
4085 and Context cancellation for groups of goroutines working on subtasks of a
4086 common task.")
4087 (home-page "https://godoc.org/golang.org/x/sync/errgroup")
4088 (license license:bsd-3))))
4089
4090 (define (go-gotest-tools-source version sha256-base32-hash)
4091 (origin
4092 (method git-fetch)
4093 (uri (git-reference
4094 (url "https://github.com/gotestyourself/gotest.tools")
4095 (commit (string-append "v" version))))
4096 (file-name (git-file-name "go-gotest-tools" version))
4097 (sha256
4098 (base32 sha256-base32-hash))))
4099
4100 ;; Note that version 3.0.0 is incompatible to 2.3.0.
4101 ;; See also <https://github.com/gotestyourself/gotest.tools/issues/166>.
4102 (define (go-gotest-tools-package suffix)
4103 (package
4104 (name (string-append "go-gotest-tools-"
4105 (string-replace-substring suffix "/" "-")))
4106 (version "2.3.0")
4107 (source
4108 (go-gotest-tools-source version
4109 "0071rjxp4xzcr3vprkaj1hdk35a3v45bx8v0ipk16wwc5hx84i2i"))
4110 (build-system go-build-system)
4111 (arguments
4112 `(#:import-path ,(string-append "gotest.tools/" suffix)
4113 #:unpack-path "gotest.tools"))
4114 (synopsis "@code{gotest-tools} part")
4115 (description "This package provides a part of @code{gotest-tools}.")
4116 (home-page "https://github.com/gotestyourself/gotest.tools")
4117 (license license:asl2.0)))
4118
4119 (define-public go-gotest-tools-internal-format
4120 (package (inherit (go-gotest-tools-package "internal/format"))
4121 (native-inputs
4122 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
4123 ("go-github-com-google-go-cmp-cmp"
4124 ,go-github-com-google-go-cmp-cmp)))
4125 (synopsis "Formats messages for use with gotest-tools")
4126 (description "This package provides a way to format messages for use
4127 with gotest-tools.")))
4128
4129 (define-public go-gotest-tools-internal-difflib
4130 (package (inherit (go-gotest-tools-package "internal/difflib"))
4131 (synopsis "Differences for use with gotest-tools")
4132 (description "This package computes differences for use
4133 with gotest-tools.")))
4134
4135 (define-public go-gotest-tools-internal-source
4136 (package (inherit (go-gotest-tools-package "internal/source"))
4137 (native-inputs
4138 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
4139 ("go-github-com-google-go-cmp-cmp" ,go-github-com-google-go-cmp-cmp)))
4140 (synopsis "Source code AST formatters for gotest-tools")
4141 (description "This package provides source code AST formatters for
4142 gotest-tools.")))
4143
4144 (define-public go-gotest-tools-assert
4145 (package (inherit (go-gotest-tools-package "assert"))
4146 (name "go-gotest-tools-assert")
4147 (arguments
4148 `(#:tests? #f ; Test failure concerning message formatting (FIXME)
4149 #:import-path "gotest.tools/assert"
4150 #:unpack-path "gotest.tools"))
4151 ;(propagated-inputs
4152 ; `(("go-gotest-tools-internal-format" ,go-gotest-tools-internal-format)))
4153 (native-inputs
4154 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
4155 ("go-github-com-google-go-cmp-cmp"
4156 ,go-github-com-google-go-cmp-cmp)))
4157 (synopsis "Compare values and fail a test when a comparison fails")
4158 (description "This package provides a way to compare values and fail a
4159 test when a comparison fails.")
4160 (home-page "https://github.com/gotestyourself/gotest.tools")
4161 (license license:asl2.0)))
4162
4163 (define-public gotestsum
4164 (package
4165 (name "gotestsum")
4166 (version "0.4.0")
4167 (source (origin
4168 (method git-fetch)
4169 (uri (git-reference
4170 (url "https://github.com/gotestyourself/gotestsum")
4171 (commit (string-append "v" version))))
4172 (file-name (git-file-name name version))
4173 (sha256
4174 (base32
4175 "0y71qr3ss3hgc8c7nmvpwk946xy1jc5d8whsv6y77wb24ncla7n0"))))
4176 (build-system go-build-system)
4177 (arguments
4178 '(#:import-path "gotest.tools/gotestsum"))
4179 (native-inputs
4180 `(("go-github-com-fatih-color" ,go-github-com-fatih-color)
4181 ("go-golang.org-x-sync-errgroup" ,go-golang.org-x-sync-errgroup)
4182 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
4183 ("go-github-com-sirupsen-logrus"
4184 ,go-github-com-sirupsen-logrus)
4185 ("go-github-com-spf13-pflag" ,go-github-com-spf13-pflag)
4186 ("go-github-com-jonboulle-clockwork"
4187 ,go-github-com-jonboulle-clockwork)
4188 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
4189 ("go-gotest-tools-assert" ,go-gotest-tools-assert)
4190 ("go-github-com-google-go-cmp-cmp"
4191 ,go-github-com-google-go-cmp-cmp)
4192 ;; TODO: This would be better as a propagated-input of
4193 ;; go-gotest-tools-assert, but that does not work for
4194 ;; some reason.
4195 ("go-gotest-tools-internal-format"
4196 ,go-gotest-tools-internal-format)
4197 ("go-gotest-tools-internal-difflib"
4198 ,go-gotest-tools-internal-difflib)
4199 ("go-gotest-tools-internal-source"
4200 ,go-gotest-tools-internal-source)
4201 ("go-github-com-google-go-cmp-cmp"
4202 ,go-github-com-google-go-cmp-cmp)))
4203 (synopsis "Go test runner with output optimized for humans")
4204 (description "This package provides a @code{go test} runner with output
4205 optimized for humans, JUnit XML for CI integration, and a summary of the
4206 test results.")
4207 (home-page "https://github.com/gotestyourself/gotestsum")
4208 (license license:asl2.0)))
4209
4210 (define-public go-github-com-golang-protobuf-proto
4211 (package
4212 (name "go-github-com-golang-protobuf-proto")
4213 (version "1.3.1")
4214 (source (origin
4215 (method git-fetch)
4216 (uri (git-reference
4217 (url "https://github.com/golang/protobuf")
4218 (commit (string-append "v" version))))
4219 (file-name (git-file-name name version))
4220 (sha256
4221 (base32
4222 "15am4s4646qy6iv0g3kkqq52rzykqjhm4bf08dk0fy2r58knpsyl"))))
4223 (build-system go-build-system)
4224 (arguments
4225 '(#:import-path "github.com/golang/protobuf/proto"
4226 #:unpack-path "github.com/golang/protobuf"
4227 ;; Requires unpackaged golang.org/x/sync/errgroup
4228 #:tests? #f))
4229 (synopsis "Go support for Protocol Buffers")
4230 (description "This package provides Go support for the Protocol Buffers
4231 data serialization format.")
4232 (home-page "https://github.com/golang/protobuf")
4233 (license license:bsd-3)))
4234
4235 (define-public go-github-com-mattn-go-zglob
4236 (package
4237 (name "go-github-com-mattn-go-zglob")
4238 (version "0.0.3")
4239 (source (origin
4240 (method git-fetch)
4241 (uri (git-reference
4242 (url "https://github.com/mattn/go-zglob")
4243 (commit (string-append "v" version))))
4244 (file-name (git-file-name name version))
4245 (sha256
4246 (base32
4247 "1923lvakm66mzy62jmngdvcmbmiqclinsvnghs3907rgygnx1qc1"))))
4248 (build-system go-build-system)
4249 (arguments
4250 `(#:import-path "github.com/mattn/go-zglob"))
4251 (home-page "https://github.com/mattn/go-zglob")
4252 (synopsis "Glob library that descends into other directories")
4253 (description " A glob library that implements descending into other
4254 directories. It is optimized for filewalking. ")
4255 (license license:expat)))
4256
4257 (define-public go-github-com-willf-bitset
4258 (package
4259 (name "go-github-com-willf-bitset")
4260 (version "1.1.10")
4261 (source (origin
4262 (method git-fetch)
4263 (uri (git-reference
4264 (url "https://github.com/willf/bitset")
4265 (commit (string-append "v" version))))
4266 (file-name (git-file-name name version))
4267 (sha256
4268 (base32
4269 "0wpaxg6va3qwd0hq0b8rpb1hswvzzbfm2h8sjmcsdpbkydjjx9zg"))))
4270 (build-system go-build-system)
4271 (arguments
4272 '(#:import-path "github.com/willf/bitset"))
4273 (synopsis "Bitsets in Go")
4274 (description "This package provides a Go implementation of bitsets, which
4275 are a mapping between non-negative integers and boolean values focused on
4276 efficient space usage.")
4277 (home-page "https://github.com/willf/bitset")
4278 (license license:bsd-3)))
4279
4280 (define-public go-github-com-willf-bloom
4281 (package
4282 (name "go-github-com-willf-bloom")
4283 (version "2.0.3")
4284 (source (origin
4285 (method git-fetch)
4286 (uri (git-reference
4287 (url "https://github.com/willf/bloom")
4288 (commit (string-append "v" version))))
4289 (file-name (git-file-name name version))
4290 (sha256
4291 (base32
4292 "0ygan8pgcay7wx3cs3ja8rdqj7nly7v3and97ddcc66020jxchzg"))))
4293 (build-system go-build-system)
4294 (arguments
4295 '(#:import-path "github.com/willf/bloom"
4296 #:phases
4297 (modify-phases %standard-phases
4298 (add-after 'unpack 'patch-import-path
4299 (lambda _
4300 ;; See 'go.mod' in the source distribution of Syncthing 1.5.0 for
4301 ;; more information.
4302 ;; <https://github.com/spaolacci/murmur3/issues/29>
4303 (substitute* "src/github.com/willf/bloom/bloom.go"
4304 (("spaolacci") "twmb"))
4305 #t)))))
4306 (propagated-inputs
4307 `(("go-github-com-twmb-murmur3" ,go-github-com-twmb-murmur3)
4308 ("go-github-com-willf-bitset" ,go-github-com-willf-bitset)))
4309 (synopsis "Bloom filters in Go")
4310 (description "This package provides a Go implementation of bloom filters,
4311 based on murmurhash.")
4312 (home-page "https://github.com/willf/bloom")
4313 (license license:bsd-2)))
4314
4315 (define-public go-golang-org-rainycape-unidecode
4316 (let ((commit "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c")
4317 (revision "1"))
4318 (package
4319 (name "go-golang-org-rainycape-unidecode")
4320 (version (git-version "0.0.0" revision commit))
4321 (source (origin
4322 (method git-fetch)
4323 (uri (git-reference
4324 (url "https://github.com/rainycape/unidecode")
4325 (commit commit)))
4326 (file-name (string-append "go-golang-org-rainycape-unidecode-"
4327 version "-checkout"))
4328 (sha256
4329 (base32
4330 "1wvzdijd640blwkgmw6h09frkfa04kcpdq87n2zh2ymj1dzla5v5"))))
4331 (build-system go-build-system)
4332 (arguments
4333 `(#:import-path "golang.org/rainycape/unidecode"))
4334 (home-page "https://github.com/rainycape/unidecode")
4335 (synopsis "Unicode transliterator in Golang")
4336 (description "Unicode transliterator in Golang - Replaces non-ASCII
4337 characters with their ASCII approximations.")
4338 (license license:asl2.0))))
4339
4340 (define-public go-github-com-golang-freetype
4341 (let ((commit "e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4")
4342 (revision "1"))
4343 (package
4344 (name "go-github-com-golang-freetype")
4345 (version (git-version "0.0.0" revision commit))
4346 (source (origin
4347 (method git-fetch)
4348 (uri (git-reference
4349 (url "https://github.com/golang/freetype")
4350 (commit commit)))
4351 (file-name (string-append "go-github-com-golang-freetype-"
4352 version "-checkout"))
4353 (sha256
4354 (base32
4355 "194w3djc6fv1rgcjqds085b9fq074panc5vw582bcb8dbfzsrqxc"))))
4356 (build-system go-build-system)
4357 (arguments
4358 `(#:import-path "github.com/golang/freetype"))
4359 (propagated-inputs
4360 `(("go-golang-org-x-image" ,go-golang-org-x-image)))
4361 (home-page "https://github.com/golang/freetype")
4362 (synopsis "Freetype font rasterizer in the Go programming language")
4363 (description "The Freetype font rasterizer in the Go programming language.")
4364 (license (list license:freetype
4365 license:gpl2+)))))
4366
4367 (define-public go-github-com-fogleman-gg
4368 (package
4369 (name "go-github-com-fogleman-gg")
4370 (version "1.3.0")
4371 (source (origin
4372 (method git-fetch)
4373 (uri (git-reference
4374 (url "https://github.com/fogleman/gg")
4375 (commit (string-append "v" version))))
4376 (file-name (git-file-name name version))
4377 (sha256
4378 (base32
4379 "1nkldjghbqnzj2djfaxhiv35kk341xhcrj9m2dwq65v684iqkk8n"))))
4380 (build-system go-build-system)
4381 (arguments
4382 `(#:tests? #f ; Issue with test flags.
4383 #:import-path "github.com/fogleman/gg"))
4384 (propagated-inputs
4385 `(("go-github-com-golang-freetype" ,go-github-com-golang-freetype)))
4386 (home-page "https://github.com/fogleman/gg")
4387 (synopsis "2D rendering in Go")
4388 (description "@code{gg} is a library for rendering 2D graphics in pure Go.")
4389 (license license:expat)))
4390
4391 (define-public go-github-com-gedex-inflector
4392 (let ((commit "16278e9db8130ac7ec405dc174cfb94344f16325")
4393 (revision "1"))
4394 (package
4395 (name "go-github-com-gedex-inflector")
4396 (version (git-version "0.0.0" revision commit))
4397 (source (origin
4398 (method git-fetch)
4399 (uri (git-reference
4400 (url "https://github.com/gedex/inflector")
4401 (commit commit)))
4402 (file-name (string-append "go-github-com-gedex-inflector-"
4403 version "-checkout"))
4404 (sha256
4405 (base32
4406 "05hjqw1m71vww4914d9h6nqa9jw3lgjzwsy7qaffl02s2lh1amks"))))
4407 (build-system go-build-system)
4408 (arguments
4409 `(#:import-path "github.com/gedex/inflector"))
4410 (home-page "https://github.com/gedex/inflector")
4411 (synopsis "Go library that pluralizes and singularizes English nouns")
4412 (description "Go library that pluralizes and singularizes English nouns.")
4413 (license license:bsd-2))))
4414
4415 (define-public go-github-com-klauspost-cpuid
4416 (package
4417 (name "go-github-com-klauspost-cpuid")
4418 (version "1.2.3")
4419 (source (origin
4420 (method git-fetch)
4421 (uri (git-reference
4422 (url "https://github.com/klauspost/cpuid")
4423 (commit (string-append "v" version))))
4424 (file-name (git-file-name name version))
4425 (sha256
4426 (base32
4427 "1s510210wdj5dkamii1qrk7v87k4qpdcrrjzflp5ha9iscw6b06l"))))
4428 (build-system go-build-system)
4429 (arguments
4430 `(#:import-path "github.com/klauspost/cpuid"))
4431 (home-page "https://github.com/klauspost/cpuid")
4432 (synopsis "CPU feature identification for Go")
4433 (description "@code{cpuid} provides information about the CPU running the
4434 current program. CPU features are detected on startup, and kept for fast access
4435 through the life of the application. Currently x86 / x64 (AMD64) is supported,
4436 and no external C (cgo) code is used, which should make the library very eas
4437 to use.")
4438 (license license:expat)))
4439
4440 (define-public go-github-com-pbnjay-memory
4441 (let ((commit "974d429e7ae40c89e7dcd41cfcc22a0bfbe42510")
4442 (revision "1"))
4443 (package
4444 (name "go-github-com-pbnjay-memory")
4445 (version (git-version "0.0.0" revision commit))
4446 (source (origin
4447 (method git-fetch)
4448 (uri (git-reference
4449 (url "https://github.com/pbnjay/memory")
4450 (commit commit)))
4451 (file-name (string-append "go-github-com-pbnjay-memory-"
4452 version "-checkout"))
4453 (sha256
4454 (base32
4455 "0kazg5psdn90pqadrzma5chdwh0l2by9z31sspr47gx93fhjmkkq"))))
4456 (build-system go-build-system)
4457 (arguments
4458 `(#:import-path "github.com/pbnjay/memory"))
4459 (home-page "https://github.com/gedex/inflector")
4460 (synopsis "Go library to report total system memory")
4461 (description "@code{memory} provides a single method reporting total
4462 physical system memory accessible to the kernel. It does not account for memory
4463 used by other processes.")
4464 (license license:bsd-3))))
4465
4466 (define-public go-github-com-surge-glog
4467 (let ((commit "2578deb2b95c665e6b1ebabf304ce2085c9e1985")
4468 (revision "1"))
4469 (package
4470 (name "go-github-com-surge-glog")
4471 (version (git-version "0.0.0" revision commit))
4472 (source (origin
4473 (method git-fetch)
4474 (uri (git-reference
4475 (url "https://github.com/surge/glog")
4476 (commit commit)))
4477 (file-name (string-append "go-github-com-surge-glog-"
4478 version "-checkout"))
4479 (sha256
4480 (base32
4481 "1bxcwxvsvr2hfpjz9hrrn0wrgykwmrbyk567102k3vafw9xdcwk4"))))
4482 (build-system go-build-system)
4483 (arguments
4484 `(#:import-path "github.com/surge/glog"))
4485 (home-page "https://github.com/surge/glog")
4486 (synopsis "Leveled execution logs for Go")
4487 (description "Leveled execution logs for Go.")
4488 (license license:asl2.0))))
4489
4490 (define-public go-github-com-surgebase-porter2
4491 (let ((commit "56e4718818e8dc4ea5ba6348402fc7661863732a")
4492 (revision "1"))
4493 (package
4494 (name "go-github-com-surgebase-porter2")
4495 (version (git-version "0.0.0" revision commit))
4496 (source (origin
4497 (method git-fetch)
4498 (uri (git-reference
4499 (url "https://github.com/surgebase/porter2")
4500 (commit commit)))
4501 (file-name (string-append "go-github-com-surgebase-porter2-"
4502 version "-checkout"))
4503 (sha256
4504 (base32
4505 "1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2"))))
4506 (build-system go-build-system)
4507 (arguments
4508 `(#:import-path "github.com/surgebase/porter2"))
4509 (native-inputs
4510 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
4511 ("go-github-com-surge-glog" ,go-github-com-surge-glog)))
4512 (home-page "https://github.com/surgebase/porter2")
4513 (synopsis "Go library implementing english Porter2 stemmer")
4514 (description "Porter2 implements the
4515 @url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english
4516 Porter2 stemmer}. It is written completely using finite state machines to do
4517 suffix comparison, rather than the string-based or tree-based approaches.")
4518 (license license:asl2.0))))
4519
4520 (define-public go-github-com-masterminds-goutils
4521 (package
4522 (name "go-github-com-masterminds-goutils")
4523 (version "1.1.0")
4524 (source (origin
4525 (method git-fetch)
4526 (uri (git-reference
4527 (url "https://github.com/Masterminds/goutils")
4528 (commit (string-append "v" version))))
4529 (file-name (git-file-name name version))
4530 (sha256
4531 (base32
4532 "180px47gj936qyk5bkv5mbbgiil9abdjq6kwkf7sq70vyi9mcfiq"))))
4533 (build-system go-build-system)
4534 (arguments
4535 `(#:import-path "github.com/Masterminds/goutils"))
4536 (home-page "https://github.com/Masterminds/goutils/")
4537 (synopsis "Utility functions to manipulate strings")
4538 (description "GoUtils provides utility functions to manipulate strings in
4539 various ways. It is a Go implementation of some string manipulation libraries
4540 of Java Apache Commons.")
4541 (license license:asl2.0)))
4542
4543 (define-public go-github-com-masterminds-semver
4544 (package
4545 (name "go-github-com-masterminds-semver")
4546 (version "3.1.0")
4547 (source (origin
4548 (method git-fetch)
4549 (uri (git-reference
4550 (url "https://github.com/Masterminds/semver")
4551 (commit (string-append "v" version))))
4552 (file-name (git-file-name name version))
4553 (sha256
4554 (base32
4555 "1g1wizfdy29d02l9dh8gsb029yr4m4swp13swf0pnh9ryh5f1msz"))))
4556 (build-system go-build-system)
4557 (arguments
4558 `(#:import-path "github.com/Masterminds/semver"))
4559 (home-page "https://github.com/Masterminds/semver/")
4560 (synopsis "@code{semver} helps to work with semantic versions")
4561 (description "The semver package provides the ability to work with
4562 semantic versions. Specifically it provides the ability to:
4563 @itemize
4564 @item Parse semantic versions
4565 @item Sort semantic versions
4566 @item Check if a semantic version fits within a set of constraints
4567 @item Optionally work with a @code{v} prefix
4568 @end itemize\n")
4569 (license license:expat)))
4570
4571 (define-public go-github-com-huandu-xstrings
4572 (package
4573 (name "go-github-com-huandu-xstrings")
4574 (version "1.3.2")
4575 (source (origin
4576 (method git-fetch)
4577 (uri (git-reference
4578 (url "https://github.com/huandu/xstrings")
4579 (commit (string-append "v" version))))
4580 (file-name (git-file-name name version))
4581 (sha256
4582 (base32
4583 "0pwar6rc0fqb6pll38a44s81g5kb65vbg71jg5lx8caphjnikq5r"))))
4584 (build-system go-build-system)
4585 (arguments
4586 `(#:import-path "github.com/huandu/xstrings"))
4587 (home-page "https://github.com/huandu/xstrings/")
4588 (synopsis "Collection of string functions")
4589 (description "Go package xstrings is a collection of string functions,
4590 which are widely used in other languages but absent in Go package strings.")
4591 (license license:expat)))
4592
4593 (define-public go-github-com-imdario-mergo
4594 (package
4595 (name "go-github-com-imdario-mergo")
4596 (version "0.3.10")
4597 (source (origin
4598 (method git-fetch)
4599 (uri (git-reference
4600 (url "https://github.com/imdario/mergo")
4601 (commit (string-append "v" version))))
4602 (file-name (git-file-name name version))
4603 (sha256
4604 (base32
4605 "09h765p8yby9r8s0a3hv5kl8n2i382mda76wmvk48w1cc1w9s92p"))))
4606 (build-system go-build-system)
4607 (arguments
4608 `(#:import-path "github.com/imdario/mergo"))
4609 (native-inputs
4610 `(("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2)))
4611 (home-page "https://github.com/imdario/mergo/")
4612 (synopsis "Helper to merge structs and maps in Golang")
4613 (description "Helper to merge structs and maps in Golang. Useful for
4614 configuration default values, avoiding messy if-statements.
4615
4616 Mergo merges same-type structs and maps by setting default values in
4617 zero-value fields. Mergo won't merge unexported (private) fields. It will do
4618 recursively any exported one. It also won't merge structs inside
4619 maps (because they are not addressable using Go reflection).")
4620 (license license:bsd-3)))
4621
4622 (define-public go-github-com-masterminds-sprig
4623 (package
4624 (name "go-github-com-masterminds-sprig")
4625 (version "3.1.0")
4626 (source (origin
4627 (method git-fetch)
4628 (uri (git-reference
4629 (url "https://github.com/Masterminds/sprig")
4630 (commit (string-append "v" version))))
4631 (file-name (git-file-name name version))
4632 (sha256
4633 (base32
4634 "0wwi8n2adjc5jlga25lqq0hrz4jcgd5vpll68y2dfji034caaq18"))))
4635 (build-system go-build-system)
4636 (arguments
4637 `(#:tests? #f ;network tests only
4638 #:import-path "github.com/Masterminds/sprig"))
4639 (native-inputs
4640 `(("go-github-com-masterminds-goutils" ,go-github-com-masterminds-goutils)
4641 ("go-github-com-masterminds-semver" ,go-github-com-masterminds-semver)
4642 ("go-github-com-google-uuid" ,go-github-com-google-uuid)
4643 ("go-github-com-huandu-xstrings" ,go-github-com-huandu-xstrings)
4644 ("go-github-com-imdario-mergo" ,go-github-com-imdario-mergo)
4645 ("go-github-com-mitchellh-reflectwalk" ,go-github-com-mitchellh-reflectwalk)
4646 ("go-github-com-mitchellh-copystructure" ,go-github-com-mitchellh-copystructure)
4647 ("go-github-com-spf13-cast" ,go-github-com-spf13-cast)
4648 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
4649 ("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
4650 (home-page "https://github.com/Masterminds/sprig/")
4651 (synopsis "Template functions for Go templates")
4652 (description "Sprig is a library that provides more than 100 commonly used
4653 template functions.")
4654 (license license:expat)))
4655
4656 (define-public go-github-com-bmatcuk-doublestar
4657 (package
4658 (name "go-github-com-bmatcuk-doublestar")
4659 (version "1.3.0")
4660 (source (origin
4661 (method git-fetch)
4662 (uri (git-reference
4663 (url "https://github.com/bmatcuk/doublestar")
4664 (commit (string-append "v" version))))
4665 (file-name (git-file-name name version))
4666 (sha256
4667 (base32
4668 "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144"))))
4669 (build-system go-build-system)
4670 (arguments
4671 `(#:import-path "github.com/bmatcuk/doublestar"))
4672 (home-page "https://github.com/bmatcuk/doublestar/")
4673 (synopsis "Path pattern matching and globbing supporting doublestar")
4674 (description "@code{doublestar} is a Go implementation of path pattern
4675 matching and globbing with support for \"doublestar\" patterns.")
4676 (license license:expat)))
4677
4678 (define-public go-github-com-dlclark-regexp2
4679 (package
4680 (name "go-github-com-dlclark-regexp2")
4681 (version "1.2.0")
4682 (source (origin
4683 (method git-fetch)
4684 (uri (git-reference
4685 (url "https://github.com/dlclark/regexp2")
4686 (commit (string-append "v" version))))
4687 (file-name (git-file-name name version))
4688 (sha256
4689 (base32
4690 "011l1prsywvhhi0yc7qmpsca1cwavmawyyld5kjzi0ff9ghvj4ng"))))
4691 (build-system go-build-system)
4692 (arguments
4693 `(#:import-path "github.com/dlclark/regexp2"))
4694 (home-page "https://github.com/dlclark/regexp2/")
4695 (synopsis "Full featured regular expressions for Go")
4696 (description "Regexp2 is a feature-rich RegExp engine for Go.")
4697 (license license:expat)))
4698
4699 (define-public go-github-com-alecthomas-colour
4700 (package
4701 (name "go-github-com-alecthomas-colour")
4702 (version "0.1.0")
4703 (source (origin
4704 (method git-fetch)
4705 (uri (git-reference
4706 (url "https://github.com/alecthomas/colour")
4707 (commit (string-append "v" version))))
4708 (file-name (git-file-name name version))
4709 (sha256
4710 (base32
4711 "10zbm12j40ppia4b5ql2blmsps5jhh5d7ffphxx843qk7wlbqnjb"))))
4712 (build-system go-build-system)
4713 (arguments
4714 `(#:import-path "github.com/alecthomas/colour"))
4715 (native-inputs
4716 `(("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)))
4717 (home-page "https://github.com/alecthomas/colour/")
4718 (synopsis "Colour terminal text for Go")
4719 (description "Package colour provides Quake-style colour formatting for
4720 Unix terminals.
4721
4722 The package level functions can be used to write to stdout (or strings or
4723 other files). If stdout is not a terminal, colour formatting will be
4724 stripped.")
4725 (license license:expat)))
4726
4727 (define-public go-github-com-alecthomas-repr
4728 (let ((commit "4184120f674c8860a5b48142509a2411a0a1766f")
4729 (revision "1"))
4730 (package
4731 (name "go-github-com-alecthomas-repr")
4732 (version (git-version "0.0.1" revision commit))
4733 (source (origin
4734 (method git-fetch)
4735 (uri (git-reference
4736 (url "https://github.com/alecthomas/repr")
4737 (commit commit)))
4738 (file-name (git-file-name name version))
4739 (sha256
4740 (base32
4741 "1z0gdkjryxg1ps5fh4ybzip27g9lzdldz4hxqp5j7s2frbzaa9s7"))))
4742 (build-system go-build-system)
4743 (arguments
4744 `(#:import-path "github.com/alecthomas/repr"))
4745 (native-inputs
4746 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
4747 (home-page "https://github.com/alecthomas/repr/")
4748 (synopsis "Represent Go values in an almost direct form")
4749 (description "This package attempts to represent Go values in a form that
4750 can be used almost directly in Go source code.")
4751 (license license:expat))))
4752
4753 (define-public go-github-com-sergi-go-diff
4754 (package
4755 (name "go-github-com-sergi-go-diff")
4756 (version "1.1.0")
4757 (source (origin
4758 (method git-fetch)
4759 (uri (git-reference
4760 (url "https://github.com/sergi/go-diff")
4761 (commit (string-append "v" version))))
4762 (file-name (git-file-name name version))
4763 (sha256
4764 (base32
4765 "0ir8ali2vx0j7pipmlfd6k8c973akyy2nmbjrf008fm800zcp7z2"))))
4766 (build-system go-build-system)
4767 (arguments
4768 `(#:import-path "github.com/sergi/go-diff/diffmatchpatch"
4769 #:unpack-path "github.com/sergi/go-diff"))
4770 (native-inputs
4771 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
4772 (home-page "https://github.com/sergi/go-diff/")
4773 (synopsis "Algorithms to perform operations for synchronizing plain text")
4774 (description "@code{go-diff} offers algorithms to perform operations required for
4775 synchronizing plain text:
4776 @itemize
4777 @item compare two texts and return their differences
4778 @item perform fuzzy matching of text
4779 @item apply patches onto text
4780 @end itemize\n")
4781 (license license:expat)))
4782
4783 (define-public go-github-com-alecthomas-assert
4784 (let ((commit "405dbfeb8e38effee6e723317226e93fff912d06")
4785 (revision "1"))
4786 (package
4787 (name "go-github-com-alecthomas-assert")
4788 (version (git-version "0.0.1" revision commit))
4789 (source (origin
4790 (method git-fetch)
4791 (uri (git-reference
4792 (url "https://github.com/alecthomas/assert")
4793 (commit commit)))
4794 (file-name (git-file-name name version))
4795 (sha256
4796 (base32
4797 "1l567pi17k593nrd1qlbmiq8z9jy3qs60px2a16fdpzjsizwqx8l"))))
4798 (build-system go-build-system)
4799 (arguments
4800 `(#:import-path "github.com/alecthomas/assert"))
4801 (native-inputs
4802 `(("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4803 ("go-github-com-alecthomas-colour" ,go-github-com-alecthomas-colour)
4804 ("go-github-com-alecthomas-repr" ,go-github-com-alecthomas-repr)
4805 ("go-github-com-sergi-go-diff" ,go-github-com-sergi-go-diff)))
4806 (home-page "https://github.com/alecthomas/assert/")
4807 (synopsis "Go assertion library")
4808 (description "Assertion library that:
4809 @itemize
4810 @item makes spotting differences in equality much easier
4811 @item uses repr and diffmatchpatch to display structural differences in colour
4812 @item aborts tests on first assertion failure
4813 @end itemize\n")
4814 (license license:expat))))
4815
4816 (define-public go-github-com-alecthomas-chroma
4817 (package
4818 (name "go-github-com-alecthomas-chroma")
4819 (version "0.8.0")
4820 (source (origin
4821 (method git-fetch)
4822 (uri (git-reference
4823 (url "https://github.com/alecthomas/chroma")
4824 (commit (string-append "v" version))))
4825 (file-name (git-file-name name version))
4826 (sha256
4827 (base32
4828 "066a6rdmf670d3v5sc7chbn7db09ldgxjympb03pcqwk644dixb1"))))
4829 (build-system go-build-system)
4830 (arguments
4831 `(#:import-path "github.com/alecthomas/chroma"))
4832 (native-inputs
4833 `(("go-github-com-dlclark-regexp2" ,go-github-com-dlclark-regexp2)
4834 ("go-github-com-alecthomas-assert" ,go-github-com-alecthomas-assert)
4835 ("go-github-com-alecthomas-colour" ,go-github-com-alecthomas-colour)
4836 ("go-github-com-alecthomas-repr" ,go-github-com-alecthomas-repr)
4837 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4838 ("go-github-com-sergi-go-diff" ,go-github-com-sergi-go-diff)))
4839 (home-page "https://github.com/alecthomas/chroma/")
4840 (synopsis "General purpose syntax highlighter in pure Go")
4841 (description "Chroma takes source code and other structured text and
4842 converts it into syntax highlighted HTML, ANSI-coloured text, etc.")
4843 (license license:expat)))
4844
4845 (define-public go-github-com-andybalholm-cascadia
4846 (package
4847 (name "go-github-com-andybalholm-cascadia")
4848 (version "1.0.0")
4849 (source (origin
4850 (method git-fetch)
4851 (uri (git-reference
4852 (url "https://github.com/andybalholm/cascadia")
4853 (commit (string-append "v" version))))
4854 (file-name (git-file-name name version))
4855 (sha256
4856 (base32
4857 "09j8cavbhqqdxjqrkwbc40g8p0i49zf3184rpjm5p2rjbprcghcc"))))
4858 (build-system go-build-system)
4859 (arguments
4860 `(#:import-path "github.com/andybalholm/cascadia"))
4861 (native-inputs
4862 `(("go-golang-org-x-net" ,go-golang-org-x-net)))
4863 (home-page "https://github.com/andybalholm/cascadia/")
4864 (synopsis "CSS selectors for HTML")
4865 (description "The Cascadia package implements CSS selectors for use with
4866 the parse trees produced by the html package.")
4867 (license license:bsd-2)))
4868
4869 (define-public go-github-com-puerkitobio-goquery
4870 (package
4871 (name "go-github-com-puerkitobio-goquery")
4872 (version "1.5.1")
4873 (source (origin
4874 (method git-fetch)
4875 (uri (git-reference
4876 (url "https://github.com/PuerkitoBio/goquery")
4877 (commit (string-append "v" version))))
4878 (file-name (git-file-name name version))
4879 (sha256
4880 (base32
4881 "08nf88cg663slzqr51k2jxlm1krnh86nrzwbk6v41ccq5jkfm7fx"))))
4882 (build-system go-build-system)
4883 (arguments
4884 `(#:import-path "github.com/PuerkitoBio/goquery"))
4885 (native-inputs
4886 `(("go-github-com-andybalholm-cascadia" ,go-github-com-andybalholm-cascadia)
4887 ("go-golang-org-x-net" ,go-golang-org-x-net)))
4888 (home-page "https://github.com/PuerkitoBio/goquery")
4889 (synopsis "Features similar to jQuery to the Go language")
4890 (description "@code{goquery} brings a syntax and a set of features similar
4891 to jQuery to the Go language.")
4892 (license license:bsd-3)))
4893
4894 (define-public go-github-com-aymerick-douceur
4895 (package
4896 (name "go-github-com-aymerick-douceur")
4897 (version "0.2.0")
4898 (source (origin
4899 (method git-fetch)
4900 (uri (git-reference
4901 (url "https://github.com/aymerick/douceur/")
4902 (commit (string-append "v" version))))
4903 (file-name (git-file-name name version))
4904 (sha256
4905 (base32
4906 "1hfysznib0fqbp8vqxpk0xiggpp0ayk2bsddi36vbg6f8zq5f81n"))))
4907 (build-system go-build-system)
4908 (arguments
4909 `(#:import-path "github.com/aymerick/douceur"))
4910 (native-inputs
4911 `(("go-github-com-puerkitobio-goquery" ,go-github-com-puerkitobio-goquery)
4912 ("go-github-com-andybalholm-cascadia" ,go-github-com-andybalholm-cascadia)
4913 ("go-golang-org-x-net" ,go-golang-org-x-net)
4914 ("go-github-com-gorilla-css" ,go-github-com-gorilla-css)))
4915 (home-page "https://github.com/aymerick/douceur/")
4916 (synopsis "CSS parser and inliner")
4917 (description "This package provides a CSS parser and inliner.")
4918 (license license:expat)))
4919
4920 (define-public go-github-com-chris-ramon-douceur
4921 (package
4922 (name "go-github-com-chris-ramon-douceur")
4923 (version "0.2.0")
4924 (source (origin
4925 (method git-fetch)
4926 (uri (git-reference
4927 (url "https://github.com/chris-ramon/douceur")
4928 (commit (string-append "v" version))))
4929 (file-name (git-file-name name version))
4930 (sha256
4931 (base32
4932 "1hfysznib0fqbp8vqxpk0xiggpp0ayk2bsddi36vbg6f8zq5f81n"))))
4933 (build-system go-build-system)
4934 (arguments
4935 `(#:import-path "github.com/chris-ramon/douceur"))
4936 (native-inputs
4937 `(("go-github-com-aymerick-douceur" ,go-github-com-aymerick-douceur)
4938 ("go-github-com-puerkitobio-goquery" ,go-github-com-puerkitobio-goquery)
4939 ("go-github-com-andybalholm-cascadia" ,go-github-com-andybalholm-cascadia)
4940 ("go-golang-org-x-net" ,go-golang-org-x-net)
4941 ("go-github-com-gorilla-css" ,go-github-com-gorilla-css)))
4942 (home-page "https://github.com/chris-ramon/douceur/")
4943 (synopsis "CSS parser and inliner")
4944 (description "This package provides a CSS parser and inliner.")
4945 (license license:expat)))
4946
4947 (define-public go-github-com-microcosm-cc-bluemonday
4948 (package
4949 (name "go-github-com-microcosm-cc-bluemonday")
4950 (version "1.0.3")
4951 (source (origin
4952 (method git-fetch)
4953 (uri (git-reference
4954 (url "https://github.com/microcosm-cc/bluemonday")
4955 (commit (string-append "v" version))))
4956 (file-name (git-file-name name version))
4957 (sha256
4958 (base32
4959 "071ph097c1iwbcc33x6kblj9rxb1r4mp3qfkrj4qw5mg7qcqxydk"))))
4960 (build-system go-build-system)
4961 (arguments
4962 `(#:import-path "github.com/microcosm-cc/bluemonday"))
4963 (native-inputs
4964 `(("go-github-com-chris-ramon-douceur" ,go-github-com-chris-ramon-douceur)
4965 ("go-github-com-aymerick-douceur" ,go-github-com-aymerick-douceur)
4966 ("go-github-com-gorilla-css" ,go-github-com-gorilla-css)
4967 ("go-golang-org-x-net" ,go-golang-org-x-net)))
4968 (home-page "https://github.com/microcosm-cc/bluemonday/")
4969 (synopsis "HTML sanitizer")
4970 (description "@code{bluemonday} is a HTML sanitizer implemented in Go.")
4971 (license license:bsd-3)))
4972
4973 (define-public go-github-com-muesli-reflow-wordwrap
4974 (package
4975 (name "go-github-com-muesli-reflow-wordwrap")
4976 (version "0.1.0")
4977 (source (origin
4978 (method git-fetch)
4979 (uri (git-reference
4980 (url "https://github.com/muesli/reflow")
4981 (commit (string-append "v" version))))
4982 (file-name (git-file-name "go-github-com-muesli-reflow" version))
4983 (sha256
4984 (base32
4985 "1vhynm2n1az13fn03lp0gi28p9mznq1mblglh8f2rb9y1vkd2dqr"))))
4986 (build-system go-build-system)
4987 (arguments
4988 `(#:import-path "github.com/muesli/reflow/wordwrap"
4989 #:unpack-path "github.com/muesli/reflow"))
4990 (native-inputs
4991 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)))
4992 (home-page "https://github.com/muesli/reflow/")
4993 (synopsis "Collection of methods helping to transform blocks of text")
4994 (description "This package provides a collection of ANSI-aware methods and
4995 io.Writers helping you to transform blocks of text.")
4996 (license license:expat)))
4997
4998 (define-public go-github-com-muesli-reflow-ansi
4999 (package
5000 (inherit go-github-com-muesli-reflow-wordwrap)
5001 (name "go-github-com-muesli-reflow-ansi")
5002 (arguments
5003 `(#:import-path "github.com/muesli/reflow/ansi"
5004 #:unpack-path "github.com/muesli/reflow"))))
5005
5006 (define-public go-github-com-muesli-reflow-indent
5007 (package
5008 (inherit go-github-com-muesli-reflow-wordwrap)
5009 (name "go-github-com-muesli-reflow-indent")
5010 (arguments
5011 `(#:import-path "github.com/muesli/reflow/indent"
5012 #:unpack-path "github.com/muesli/reflow"))))
5013
5014 (define-public go-github-com-muesli-reflow-padding
5015 (package
5016 (inherit go-github-com-muesli-reflow-wordwrap)
5017 (name "go-github-com-muesli-reflow-padding")
5018 (arguments
5019 `(#:import-path "github.com/muesli/reflow/padding"
5020 #:unpack-path "github.com/muesli/reflow"))))
5021
5022 (define-public go-github-com-muesli-termenv
5023 (package
5024 (name "go-github-com-muesli-termenv")
5025 (version "0.7.0")
5026 (source (origin
5027 (method git-fetch)
5028 (uri (git-reference
5029 (url "https://github.com/muesli/termenv")
5030 (commit (string-append "v" version))))
5031 (file-name (git-file-name name version))
5032 (sha256
5033 (base32
5034 "09fwrdhy7c9qlf70h97f5inh6xvkfq1vi8fwx9q7bwmjjbiykk8m"))))
5035 (build-system go-build-system)
5036 (arguments
5037 `(#:import-path "github.com/muesli/termenv"))
5038 (native-inputs
5039 `(("go-github-com-google-goterm" ,go-github-com-google-goterm)
5040 ("go-golang-org-colorful" ,go-golang-org-colorful)
5041 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
5042 ("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)))
5043 (home-page "https://github.com/muesli/termenv/")
5044 (synopsis "Advanced styling options on the terminal")
5045 (description "termenv lets you safely use advanced styling options on the
5046 terminal. It gathers information about the terminal environment in terms of
5047 its ANSI and color support and offers you convenient methods to colorize and
5048 style your output, without you having to deal with all kinds of weird ANSI
5049 escape sequences and color conversions.")
5050 (license license:expat)))
5051
5052 (define-public go-github-com-olekukonko-tablewriter
5053 (package
5054 (name "go-github-com-olekukonko-tablewriter")
5055 (version "0.0.4")
5056 (source (origin
5057 (method git-fetch)
5058 (uri (git-reference
5059 (url "https://github.com/olekukonko/tablewriter")
5060 (commit (string-append "v" version))))
5061 (file-name (git-file-name name version))
5062 (sha256
5063 (base32
5064 "02r0n2b9yh3x8xyf48k17dxlwj234hlgjycylbjxi6qg08hfmz2x"))))
5065 (build-system go-build-system)
5066 (arguments
5067 `(#:import-path "github.com/olekukonko/tablewriter"))
5068 (native-inputs
5069 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)))
5070 (home-page "https://github.com/olekukonko/tablewriter/")
5071 (synopsis "Generate ASCII table")
5072 (description "This package allows to generate ASCII table. Features:
5073 @itemize
5074 @item automatic Padding
5075 @item support Multiple Lines
5076 @item supports Alignment
5077 @item support Custom Separators
5078 @item automatic Alignment of numbers and percentage
5079 @item write directly to http , file etc via @code{io.Writer}
5080 @item read directly from CSV file
5081 @item optional row line via @code{SetRowLine}
5082 @item normalise table header
5083 @item make CSV Headers optional
5084 @item enable or disable table border
5085 @item set custom footer support
5086 @item optional identical cells merging
5087 @item set custom caption
5088 @item optional reflowing of paragrpahs in multi-line cells
5089 @end itemize\n")
5090 (license license:expat)))
5091
5092 (define-public go-github-com-yuin-goldmark
5093 (package
5094 (name "go-github-com-yuin-goldmark")
5095 (version "1.2.1")
5096 (source (origin
5097 (method git-fetch)
5098 (uri (git-reference
5099 (url "https://github.com/yuin/goldmark")
5100 (commit (string-append "v" version))))
5101 (file-name (git-file-name name version))
5102 (sha256
5103 (base32
5104 "12rsnsf65drcp0jfw2jl9w589vsn3pxdk1zh3v9q908iigngrcmy"))))
5105 (build-system go-build-system)
5106 (arguments
5107 `(#:import-path "github.com/yuin/goldmark"))
5108 (home-page "https://github.com/yuin/goldmark/")
5109 (synopsis "Markdown parser")
5110 (description "This package provides a markdown parser.")
5111 (license license:expat)))
5112
5113 (define-public go-github-com-charmbracelet-glamour
5114 (package
5115 (name "go-github-com-charmbracelet-glamour")
5116 (version "0.2.0")
5117 (source (origin
5118 (method git-fetch)
5119 (uri (git-reference
5120 (url "https://github.com/charmbracelet/glamour")
5121 (commit (string-append "v" version))))
5122 (file-name (git-file-name name version))
5123 (sha256
5124 (base32
5125 "1idq8d13rp1hx2a1xak31fwl9fmi09p2x4ymvzl7aj850saw5w0z"))))
5126 (build-system go-build-system)
5127 (arguments
5128 `(#:import-path "github.com/charmbracelet/glamour"))
5129 (native-inputs
5130 `(("go-github-com-alecthomas-chroma" ,go-github-com-alecthomas-chroma)
5131 ("go-github-com-danwakefield-fnmatch" ,go-github-com-danwakefield-fnmatch)
5132 ("go-github-com-dlclark-regexp2" ,go-github-com-dlclark-regexp2)
5133 ("go-github-com-microcosm-cc-bluemonday" ,go-github-com-microcosm-cc-bluemonday)
5134 ("go-github-com-chris-ramon-douceur" ,go-github-com-chris-ramon-douceur)
5135 ("go-github-com-aymerick-douceur" ,go-github-com-aymerick-douceur)
5136 ("go-github-com-gorilla-css" ,go-github-com-gorilla-css)
5137 ("go-github-com-muesli-reflow-ansi" ,go-github-com-muesli-reflow-ansi)
5138 ("go-github-com-muesli-reflow-wordwrap" ,go-github-com-muesli-reflow-wordwrap)
5139 ("go-github-com-muesli-reflow-indent" ,go-github-com-muesli-reflow-indent)
5140 ("go-github-com-muesli-reflow-padding" ,go-github-com-muesli-reflow-padding)
5141 ("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
5142 ("go-github-com-muesli-termenv" ,go-github-com-muesli-termenv)
5143 ("go-github-com-google-goterm" ,go-github-com-google-goterm)
5144 ("go-golang-org-colorful" ,go-golang-org-colorful)
5145 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
5146 ("go-github-com-olekukonko-tablewriter" ,go-github-com-olekukonko-tablewriter)
5147 ("go-github-com-yuin-goldmark" ,go-github-com-yuin-goldmark)
5148 ("go-golang-org-x-net" ,go-golang-org-x-net)))
5149 (home-page "https://github.com/charmbracelet/glamour/")
5150 (synopsis "Write handsome command-line tools with glamour")
5151 (description "@code{glamour} lets you render markdown documents and
5152 templates on ANSI compatible terminals. You can create your own stylesheet or
5153 use one of our glamourous default themes.")
5154 (license license:expat)))
5155
5156 (define-public go-github-com-coreos-go-semver
5157 (package
5158 (name "go-github-com-coreos-go-semver")
5159 (version "0.3.0")
5160 (source (origin
5161 (method git-fetch)
5162 (uri (git-reference
5163 (url "https://github.com/coreos/go-semver")
5164 (commit (string-append "v" version))))
5165 (file-name (git-file-name name version))
5166 (sha256
5167 (base32
5168 "0770h1mpig2j5sbiha3abnwaw8p6dg9i87r8pc7cf6m4kwml3sc9"))))
5169 (build-system go-build-system)
5170 (arguments
5171 `(#:import-path "github.com/coreos/go-semver"))
5172 (home-page "https://github.com/coreos/go-semver/")
5173 (synopsis "Semantic versioning library")
5174 (description "@code{go-semver} is a semantic versioning library for Go.
5175 It lets you parse and compare two semantic version strings.")
5176 (license license:asl2.0)))
5177
5178 (define-public go-github-com-emirpasic-gods
5179 (package
5180 (name "go-github-com-emirpasic-gods")
5181 (version "1.12.0")
5182 (source (origin
5183 (method git-fetch)
5184 (uri (git-reference
5185 (url "https://github.com/emirpasic/gods")
5186 (commit (string-append "v" version))))
5187 (file-name (git-file-name name version))
5188 (sha256
5189 (base32
5190 "0i5qqq7ajvw3mikr95zl9rsnfsjanzwpqqs6kzzplsfgsifybar1"))))
5191 (build-system go-build-system)
5192 (arguments
5193 `(#:import-path "github.com/emirpasic/gods"
5194 ; Source-only package
5195 #:tests? #f
5196 #:phases
5197 (modify-phases %standard-phases
5198 (delete 'build))))
5199 (home-page "https://github.com/emirpasic/gods/")
5200 (synopsis "Implementation of various data structures and algorithms in Go")
5201 (description "This package provides implementation of various data
5202 structures and algorithms in Go.")
5203 (license license:bsd-2)))
5204
5205 (define-public go-gopkg-in-warnings
5206 (package
5207 (name "go-gopkg-in-warnings")
5208 (version "0.1.2")
5209 (source (origin
5210 (method git-fetch)
5211 (uri (git-reference
5212 (url "https://github.com/go-warnings/warnings")
5213 (commit (string-append "v" version))))
5214 (file-name (git-file-name name version))
5215 (sha256
5216 (base32
5217 "1kzj50jn708cingn7a13c2wdlzs6qv89dr2h4zj8d09647vlnd81"))))
5218 (build-system go-build-system)
5219 (arguments
5220 `(#:import-path "gopkg.in/warnings.v0"))
5221 (home-page "https://gopkg.in/warnings.v0")
5222 (synopsis "Error handling with non-fatal errors")
5223 (description "Package warnings implements error handling with non-fatal
5224 errors (warnings).")
5225 (license license:bsd-2)))
5226
5227 (define-public go-github-com-go-git-gcfg
5228 (package
5229 (name "go-github-com-go-git-gcfg")
5230 (version "1.5.0")
5231 (source (origin
5232 (method git-fetch)
5233 (uri (git-reference
5234 (url "https://github.com/go-git/gcfg")
5235 (commit (string-append "v" version))))
5236 (file-name (git-file-name name version))
5237 (sha256
5238 (base32
5239 "1lb14z4j35pwz2b2rbykkpsq515spwbndb00gwn2xlrzn949xb83"))))
5240 (arguments
5241 `(#:import-path "github.com/go-git/gcfg"))
5242 (native-inputs
5243 `(("go-gopkg-in-warnings" ,go-gopkg-in-warnings)
5244 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)))
5245 (build-system go-build-system)
5246 (home-page "https://github.com/go-git/gcfg/")
5247 (synopsis "Gcfg reads INI-style configuration files into Go structs")
5248 (description "Gcfg reads INI-style configuration files into Go structs.")
5249 (license license:bsd-3)))
5250
5251 (define-public go-github-com-go-git-go-billy
5252 (package
5253 (name "go-github-com-go-git-go-billy")
5254 (version "5.0.0")
5255 (source (origin
5256 (method git-fetch)
5257 (uri (git-reference
5258 (url "https://github.com/go-git/go-billy")
5259 (commit (string-append "v" version))))
5260 (file-name (git-file-name name version))
5261 (sha256
5262 (base32
5263 "1wdzczfk1n50dl2zpgf46m69b0sm8qkan5xyv82pk9x53zm1dmdx"))))
5264 (build-system go-build-system)
5265 (arguments
5266 `(#:import-path "github.com/go-git/go-billy/v5"))
5267 (native-inputs
5268 `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)))
5269 (home-page "https://github.com/go-git/go-billy/")
5270 (synopsis "File system abstraction for Go")
5271 (description "Billy implements an interface based on the OS's standard
5272 library to develop applications without depending on the underlying storage.
5273 This makes it virtually free to implement mocks and testing over
5274 file system operations.")
5275 (license license:asl2.0)))
5276
5277 (define-public go-github-com-jbenet-go-context
5278 (let ((commit "d14ea06fba99483203c19d92cfcd13ebe73135f4")
5279 (revision "1"))
5280 (package
5281 (name "go-github-com-jbenet-go-context")
5282 (version (git-version "0.0.1" revision commit))
5283 (source (origin
5284 (method git-fetch)
5285 (uri (git-reference
5286 (url "https://github.com/jbenet/go-context")
5287 (commit commit)))
5288 (file-name (git-file-name name version))
5289 (sha256
5290 (base32
5291 "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl"))))
5292 (build-system go-build-system)
5293 (arguments
5294 `(#:import-path "github.com/jbenet/go-context"
5295 ; Source-only package
5296 #:tests? #f
5297 #:phases
5298 (modify-phases %standard-phases
5299 (delete 'build))))
5300 (home-page "https://github.com/jbenet/go-context/")
5301 (synopsis "@code{jbenet's} context extensions")
5302 (description "This package provides @code{jbenet's} context
5303 extensions.")
5304 (license license:expat))))
5305
5306 (define-public go-github-com-kevinburke-ssh-config
5307 (package
5308 (name "go-github-com-kevinburke-ssh-config")
5309 (version "1.0")
5310 (source (origin
5311 (method git-fetch)
5312 (uri (git-reference
5313 (url "https://github.com/kevinburke/ssh_config")
5314 (commit version)))
5315 (file-name (git-file-name name version))
5316 (sha256
5317 (base32
5318 "05jvz5r58a057zxvic9dyr9v2wilha8l6366npwkqgxmnmk9sh5f"))))
5319 (arguments
5320 `(#:import-path "github.com/kevinburke/ssh_config"))
5321 (build-system go-build-system)
5322 (home-page "https://github.com/kevinburke/ssh_config/")
5323 (synopsis "Parser for @file{ssh_config} files")
5324 (description "This is a Go parser for @file{ssh_config} files.
5325 Importantly, this parser attempts to preserve comments in a given file, so you
5326 can manipulate a @file{ssh_config} file from a program.")
5327 (license license:expat)))
5328
5329 (define-public go-github-com-xanzy-ssh-agent
5330 (package
5331 (name "go-github-com-xanzy-ssh-agent")
5332 (version "0.2.1")
5333 (source (origin
5334 (method git-fetch)
5335 (uri (git-reference
5336 (url "https://github.com/xanzy/ssh-agent")
5337 (commit (string-append "v" version))))
5338 (file-name (git-file-name name version))
5339 (sha256
5340 (base32
5341 "1chjlnv5d6svpymxgsr62d992m2xi6jb5lybjc5zn1h3hv1m01av"))))
5342 (build-system go-build-system)
5343 (arguments
5344 `(#:import-path "github.com/xanzy/ssh-agent"))
5345 (native-inputs
5346 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
5347 (home-page "https://github.com/xanzy/ssh-agent/")
5348 (synopsis "Control ssh-agent from Go")
5349 (description "Package agent implements the ssh-agent protocol, and
5350 provides both a client and a server. The client can talk to a standard
5351 ssh-agent that uses UNIX sockets, and one could implement an alternative
5352 ssh-agent process using the sample server. ")
5353 (license license:asl2.0)))
5354
5355 (define-public go-github-com-alcortesm-tgz
5356 (let ((commit "9c5fe88206d7765837fed3732a42ef88fc51f1a1")
5357 (revision "1"))
5358 (package
5359 (name "go-github-com-alcortesm-tgz")
5360 (version (git-version "0.0.1" revision commit))
5361 (source (origin
5362 (method git-fetch)
5363 (uri (git-reference
5364 (url "https://github.com/alcortesm/tgz")
5365 (commit commit)))
5366 (file-name (git-file-name name version))
5367 (sha256
5368 (base32
5369 "04dcwnz2c2i4wbq2vx3g2wrdgqpncr2r1h6p1k08rdwk4bq1h8c5"))
5370 (modules '((guix build utils)))
5371 (snippet
5372 '(begin
5373 (substitute* "tgz_test.go"
5374 ;; Fix format error
5375 (("t.Fatalf\\(\"%s: unexpected error extracting: %s\", err\\)")
5376 "t.Fatalf(\"%s: unexpected error extracting: %s\", com, err)"))
5377 #t))))
5378 (build-system go-build-system)
5379 (arguments
5380 `(#:import-path "github.com/alcortesm/tgz"
5381 #:phases
5382 (modify-phases %standard-phases
5383 (add-after 'unpack 'make-git-checkout-writable
5384 (lambda* (#:key outputs #:allow-other-keys)
5385 (for-each make-file-writable (find-files "."))
5386 (for-each make-file-writable (find-files (assoc-ref outputs "out")))
5387 #t)))))
5388 (home-page "https://github.com/alcortesm/tgz/")
5389 (synopsis "Go library to extract tgz files to temporal directories")
5390 (description "This package provides a Go library to extract tgz files to
5391 temporal directories.")
5392 (license license:expat))))
5393
5394 (define-public go-github-com-go-git-go-git-fixtures
5395 (package
5396 (name "go-github-com-go-git-go-git-fixtures")
5397 (version "4.0.1")
5398 (source (origin
5399 (method git-fetch)
5400 (uri (git-reference
5401 (url "https://github.com/go-git/go-git-fixtures")
5402 (commit (string-append "v" version))))
5403 (file-name (git-file-name name version))
5404 (sha256
5405 (base32
5406 "002yb1s2mxq2xijkl39ip1iyc3l52k23ikyi9ijfl4bgqxy79ljg"))))
5407 (build-system go-build-system)
5408 (arguments
5409 `(#:import-path "github.com/go-git/go-git-fixtures/v4"
5410 #:phases
5411 (modify-phases %standard-phases
5412 (delete 'reset-gzip-timestamps))))
5413 (native-inputs
5414 `(("go-github-com-alcortesm-tgz" ,go-github-com-alcortesm-tgz)
5415 ("go-github-com-go-git-go-billy" ,go-github-com-go-git-go-billy)
5416 ("go-golang-org-x-sys" ,go-golang-org-x-sys)
5417 ("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)))
5418 (home-page "https://github.com/go-git/go-git-fixtures/")
5419 (synopsis "Fixtures used by @code{go-git}")
5420 (description "This package provides fixtures used by @code{go-git}.")
5421 (license license:asl2.0)))
5422
5423 (define-public go-github-com-pkg-diff
5424 (let ((commit "531926345625d489a6b56f860a569e68245ace36")
5425 (revision "1"))
5426 (package
5427 (name "go-github-com-pkg-diff")
5428 (version (git-version "0.0.1" revision commit))
5429 (source (origin
5430 (method git-fetch)
5431 (uri (git-reference
5432 (url "https://github.com/pkg/diff")
5433 (commit commit)))
5434 (file-name (git-file-name name version))
5435 (sha256
5436 (base32
5437 "1770m7qhww6lm0wj1v3mhv6hwa2v92p4w2fqxj1xyrg5dd58d944"))))
5438 (build-system go-build-system)
5439 (arguments
5440 `(#:import-path "github.com/pkg/diff"))
5441 (native-inputs
5442 `(("go-github-com-sergi-go-diff" ,go-github-com-sergi-go-diff)))
5443 (home-page "https://github.com/pkg/diff/")
5444 (synopsis "Create and print diffs")
5445 (description
5446 "This package provides a Go library to create and print diffs.")
5447 (license license:bsd-3))))
5448
5449 (define-public go-github-com-twpayne-go-shell
5450 (package
5451 (name "go-github-com-twpayne-go-shell")
5452 (version "0.3.0")
5453 (source (origin
5454 (method git-fetch)
5455 (uri (git-reference
5456 (url "https://github.com/twpayne/go-shell")
5457 (commit (string-append "v" version))))
5458 (file-name (git-file-name name version))
5459 (sha256
5460 (base32
5461 "1hv0ggy3935iddjnmpp9vl0kqjknxpnbmm9w7xr3gds7fpbxz6yp"))))
5462 (build-system go-build-system)
5463 (arguments
5464 `(#:import-path "github.com/twpayne/go-shell"))
5465 (home-page "https://github.com/twpayne/go-shell/")
5466 (synopsis "Shell across multiple platforms")
5467 (description
5468 "Package @code{shell} returns a user's shell across multiple platforms.")
5469 (license license:expat)))
5470
5471 (define-public go-github-com-twpayne-go-vfs
5472 (package
5473 (name "go-github-com-twpayne-go-vfs")
5474 (version "1.5.0")
5475 (source (origin
5476 (method git-fetch)
5477 (uri (git-reference
5478 (url "https://github.com/twpayne/go-vfs")
5479 (commit (string-append "v" version))))
5480 (file-name (git-file-name name version))
5481 (sha256
5482 (base32
5483 "19dm3gi45znwaqbzxhwcgkiz8059bwa3ank80hc6qhdl579bpjnz"))))
5484 (build-system go-build-system)
5485 (arguments
5486 `(#:import-path "github.com/twpayne/go-vfs"))
5487 (native-inputs
5488 `(("go-github-com-bmatcuk-doublestar" ,go-github-com-bmatcuk-doublestar)))
5489 (home-page "https://github.com/twpayne/go-vfs/")
5490 (synopsis "Abstraction of the @code{os} and @code{ioutil} Go packages")
5491 (description "Package @code{vfs} provides an abstraction of the @code{os}
5492 and @code{ioutil} packages that is easy to test.")
5493 (license license:expat)))
5494
5495 (define-public go-github-com-twpayne-go-vfsafero
5496 (package
5497 (name "go-github-com-twpayne-go-vfsafero")
5498 (version "1.0.0")
5499 (source (origin
5500 (method git-fetch)
5501 (uri (git-reference
5502 (url "https://github.com/twpayne/go-vfsafero")
5503 (commit (string-append "v" version))))
5504 (file-name (git-file-name name version))
5505 (sha256
5506 (base32
5507 "18jwxhlrjd06z8xzg9ij0irl4f79jfy5jpwiz6xqlhzb1fja19pw"))))
5508 (build-system go-build-system)
5509 (arguments
5510 `(#:import-path "github.com/twpayne/go-vfsafero"))
5511 (native-inputs
5512 `(("go-github-com-twpayne-go-vfs" ,go-github-com-twpayne-go-vfs)
5513 ("go-github-com-spf13-afero" ,go-github-com-spf13-afero)))
5514 (home-page "https://github.com/twpayne/go-vfsafero/")
5515 (synopsis "Compatibility later between @code{go-vfs} and @code{afero}")
5516 (description
5517 "Package @code{vfsafero} provides a compatibility later between
5518 @code{go-github-com-twpayne-go-vfs} and @code{go-github-com-spf13-afero}.")
5519 (license license:expat)))
5520
5521 (define-public go-github-com-twpayne-go-xdg
5522 (package
5523 (name "go-github-com-twpayne-go-xdg")
5524 (version "3.1.0")
5525 (source (origin
5526 (method git-fetch)
5527 (uri (git-reference
5528 (url "https://github.com/twpayne/go-xdg")
5529 (commit (string-append "v" version))))
5530 (file-name (git-file-name name version))
5531 (sha256
5532 (base32
5533 "0j8q7yzixs6jlaad0lpa8hs6b240gm2cmy0yxgnprrbpa0y2r7ln"))))
5534 (build-system go-build-system)
5535 (arguments
5536 `(#:import-path "github.com/twpayne/go-xdg/v3"))
5537 (native-inputs
5538 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
5539 ("go-github-com-twpayne-go-vfs" ,go-github-com-twpayne-go-vfs)))
5540 (home-page "https://github.com/twpayne/go-xdg/")
5541 (synopsis "Functions related to freedesktop.org")
5542 (description "Package @code{xdg} provides functions related to
5543 @uref{freedesktop.org}.")
5544 (license license:expat)))
5545
5546 (define-public go-github-com-godbus-dbus
5547 (package
5548 (name "go-github-com-godbus-dbus")
5549 (version "5.0.3")
5550 (source (origin
5551 (method git-fetch)
5552 (uri (git-reference
5553 (url "https://github.com/godbus/dbus")
5554 (commit (string-append "v" version))))
5555 (file-name (git-file-name name version))
5556 (sha256
5557 (base32
5558 "1bkc904073k807yxg6mvqaxrr6ammmhginr9p54jfb55mz3hfw3s"))))
5559 (build-system go-build-system)
5560 (arguments
5561 `(#:tests? #f ;no /var/run/dbus/system_bus_socket
5562 #:import-path "github.com/godbus/dbus"))
5563 (native-inputs
5564 `(("dbus" ,dbus))) ;dbus-launch
5565 (home-page "https://github.com/godbus/dbus/")
5566 (synopsis "Native Go client bindings for the D-Bus")
5567 (description "@code{dbus} is a library that implements native Go client
5568 bindings for the D-Bus message bus system.")
5569 (license license:bsd-2)))
5570
5571 (define-public go-github-com-zalando-go-keyring
5572 (package
5573 (name "go-github-com-zalando-go-keyring")
5574 (version "0.1.0")
5575 (source (origin
5576 (method git-fetch)
5577 (uri (git-reference
5578 (url "https://github.com/zalando/go-keyring")
5579 (commit (string-append "v" version))))
5580 (file-name (git-file-name name version))
5581 (sha256
5582 (base32
5583 "0kj54nkiyccy6m9iy9a53f6412a54xk96j88jaiq35yzdgfa4z3p"))))
5584 (build-system go-build-system)
5585 (arguments
5586 `(#:tests? #f ;XXX: Fix dbus tests
5587 #:import-path "github.com/zalando/go-keyring"))
5588 (native-inputs
5589 `(("go-github-com-godbus-dbus" ,go-github-com-godbus-dbus)
5590 ("dbus" ,dbus)))
5591 (home-page "https://github.com/zalando/go-keyring/")
5592 (synopsis "Library for working with system keyring")
5593 (description "@code{go-keyring} is a library for setting, getting and
5594 deleting secrets from the system keyring.")
5595 (license license:expat)))
5596
5597 (define-public go-etcd-io-bbolt
5598 (package
5599 (name "go-etcd-io-bbolt")
5600 (version "1.3.5")
5601 (source (origin
5602 (method git-fetch)
5603 (uri (git-reference
5604 (url "https://github.com/etcd-io/bbolt")
5605 (commit (string-append "v" version))))
5606 (file-name (git-file-name name version))
5607 (sha256
5608 (base32
5609 "1h64gipvcg7060byv5wjlf524kqwj12p3v08kfh4ygv46vpm8p2r"))))
5610 (build-system go-build-system)
5611 (arguments
5612 `(#:import-path "go.etcd.io/bbolt"))
5613 (home-page "https://pkg.go.dev/go.etcd.io/bbolt/")
5614 (synopsis "Low-level key/value store in Go")
5615 (description "This package implements a low-level key/value store in Go.")
5616 (license license:expat)))
5617
5618 (define-public go-github-com-rogpeppe-go-internal
5619 (package
5620 (name "go-github-com-rogpeppe-go-internal")
5621 (version "1.6.1")
5622 (source (origin
5623 (method git-fetch)
5624 (uri (git-reference
5625 (url "https://github.com/rogpeppe/go-internal")
5626 (commit (string-append "v" version))))
5627 (file-name (git-file-name name version))
5628 (sha256
5629 (base32
5630 "00j2vpp1bsggdvw1winkz23mg0q6drjiir5q0k49pmqx1sh7106l"))))
5631 (build-system go-build-system)
5632 (arguments
5633 `(#:import-path "github.com/rogpeppe/go-internal"
5634 ; Source-only package
5635 #:tests? #f
5636 #:phases
5637 (modify-phases %standard-phases
5638 (delete 'build))))
5639 (home-page "https://github.com/rogpeppe/go-internal/")
5640 (synopsis "Internal packages from the Go standard library")
5641 (description "This repository factors out an opinionated selection of
5642 internal packages and functionality from the Go standard library. Currently
5643 this consists mostly of packages and testing code from within the Go tool
5644 implementation.
5645
5646 Included are the following:
5647 @itemize
5648 @item dirhash: calculate hashes over directory trees the same way that the Go tool does.
5649 @item goproxytest: a GOPROXY implementation designed for test use.
5650 @item gotooltest: Use the Go tool inside test scripts (see testscript below)
5651 @item imports: list of known architectures and OSs, and support for reading import import statements.
5652 @item modfile: read and write go.mod files while preserving formatting and comments.
5653 @item module: module paths and versions.
5654 @item par: do work in parallel.
5655 @item semver: semantic version parsing.
5656 @item testenv: information on the current testing environment.
5657 @item testscript: script-based testing based on txtar files
5658 @item txtar: simple text-based file archives for testing.
5659 @end itemize\n")
5660 (license license:bsd-3)))
5661
5662 (define-public gopkg-in-errgo-fmt-errors
5663 (package
5664 (name "gopkg-in-errgo-fmt-errors")
5665 (version "2.1.0")
5666 (source (origin
5667 (method git-fetch)
5668 (uri (git-reference
5669 (url "https://github.com/go-errgo/errgo")
5670 (commit (string-append "v" version))))
5671 (file-name (git-file-name name version))
5672 (sha256
5673 (base32
5674 "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2"))))
5675 (build-system go-build-system)
5676 (arguments
5677 `(#:import-path "gopkg.in/errgo.v2/fmt/errors"
5678 #:tests? #f
5679 ;; Source-only package
5680 #:phases
5681 (modify-phases %standard-phases
5682 (delete 'build))))
5683 (home-page "https://godoc.org/gopkg.in/errgo.v2")
5684 (synopsis "Functions that use the fmt package to format error messages")
5685 (description "This package is the same as @code{gopkg.in/errgo.v2/errors}
5686 except that it adds convenience functions that use the fmt package to format
5687 error messages.")
5688 (license license:bsd-3)))