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