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