gnu: ungoogled-chromium: Update to 78.0.3904.97-0.acaf163.
[jackhill/guix/guix.git] / gnu / packages / golang.scm
CommitLineData
7a2941a8 1;;; GNU Guix --- Functional package management for GNU
1009e6e7 2;;; Copyright © 2016, 2017, 2018, 2019 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>
9c1b4316 7;;; Copyright © 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
c04ef86e 8;;; Copyright © 2017 Sergei Trofimovich <slyfox@inbox.ru>
eaca9ff0 9;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
247064c3 10;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
c4d2cffa 11;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
e60352e4 12;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
fb50664f 13;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
4715f92e 14;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
18199da4 15;;; Copyright @ 2018, 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
4ddf067f 16;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
521d736a 17;;; Copyright @ 2019 Alex Griffin <a@ajgrf.com>
e30bdd49 18;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
7a2941a8 19;;;
8a610eb6 20;;; This file is part of GNU Guix.
7a2941a8
MJ
21;;;
22;;; GNU Guix is free software; you can redistribute it and/or modify it
23;;; under the terms of the GNU General Public License as published by
24;;; the Free Software Foundation; either version 3 of the License, or (at
25;;; your option) any later version.
26;;;
27;;; GNU Guix is distributed in the hope that it will be useful, but
28;;; WITHOUT ANY WARRANTY; without even the implied warranty of
29;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30;;; GNU General Public License for more details.
31;;;
32;;; You should have received a copy of the GNU General Public License
33;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34
35(define-module (gnu packages golang)
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix utils)
38 #:use-module (guix download)
d3878e88 39 #:use-module (guix git-download)
7a2941a8
MJ
40 #:use-module (guix packages)
41 #:use-module (guix build-system gnu)
830dc251 42 #:use-module (guix build-system trivial)
d3878e88 43 #:use-module (guix build-system go)
b9388925 44 #:use-module (gnu packages)
7a2941a8
MJ
45 #:use-module (gnu packages admin)
46 #:use-module (gnu packages gcc)
47 #:use-module (gnu packages base)
48 #:use-module (gnu packages perl)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages pcre)
e25ddef5 51 #:use-module (gnu packages lua)
53182924 52 #:use-module (gnu packages mp3)
06c2d0e6 53 #:use-module (gnu packages textutils)
8ffc727e 54 #:use-module (gnu packages tls)
7a2941a8 55 #:use-module (ice-9 match)
9c359ff4 56 #:use-module (srfi srfi-1))
7a2941a8
MJ
57
58;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a
59;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2
60;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately
61;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of
62;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or
63;; gccgo-5. Mips is not officially supported, but it should work if it is
64;; bootstrapped.
65
66(define-public go-1.4
67 (package
68 (name "go")
9bc1de31 69 ;; The C-language bootstrap of Go:
521d736a
AG
70 ;; https://golang.org/doc/install/source#go14
71 (version "1.4-bootstrap-20171003")
7a2941a8
MJ
72 (source (origin
73 (method url-fetch)
74 (uri (string-append "https://storage.googleapis.com/golang/"
521d736a 75 name version ".tar.gz"))
7a2941a8
MJ
76 (sha256
77 (base32
521d736a 78 "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
7a2941a8
MJ
79 (build-system gnu-build-system)
80 (outputs '("out"
81 "doc"
82 "tests"))
83 (arguments
84 `(#:modules ((ice-9 match)
85 (guix build gnu-build-system)
1d698a8b
ST
86 (guix build utils)
87 (srfi srfi-1))
7a2941a8 88 #:tests? #f ; Tests are run by the all.bash script.
2ab321ca
EF
89 ,@(if (string-prefix? "aarch64-linux" (or (%current-system)
90 (%current-target-system)))
91 '(#:system "armhf-linux")
92 '())
7a2941a8
MJ
93 #:phases
94 (modify-phases %standard-phases
95 (delete 'configure)
96 (add-after 'patch-generated-file-shebangs 'chdir
97 (lambda _
2a49f7ad
TGR
98 (chdir "src")
99 #t))
7a2941a8
MJ
100 (add-before 'build 'prebuild
101 (lambda* (#:key inputs outputs #:allow-other-keys)
102 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
103 (ld (string-append (assoc-ref inputs "libc") "/lib"))
104 (loader (car (find-files ld "^ld-linux.+")))
105 (net-base (assoc-ref inputs "net-base"))
106 (tzdata-path
107 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
108 (output (assoc-ref outputs "out")))
109
110 ;; Removing net/ tests, which fail when attempting to access
111 ;; network resources not present in the build container.
112 (for-each delete-file
113 '("net/multicast_test.go" "net/parse_test.go"
114 "net/port_test.go"))
115
116 ;; Add libgcc to the RUNPATH.
117 (substitute* "cmd/go/build.go"
118 (("cgoldflags := \\[\\]string\\{\\}")
119 (string-append "cgoldflags := []string{"
120 "\"-rpath=" gcclib "\"}"))
121 (("ldflags := buildLdflags")
122 (string-append
123 "ldflags := buildLdflags\n"
124 "ldflags = append(ldflags, \"-r\")\n"
125 "ldflags = append(ldflags, \"" gcclib "\")\n")))
126
127 (substitute* "os/os_test.go"
128 (("/usr/bin") (getcwd))
129 (("/bin/pwd") (which "pwd")))
130
131 ;; Disable failing tests: these tests attempt to access
132 ;; commands or network resources which are neither available or
133 ;; necessary for the build to succeed.
134 (for-each
135 (match-lambda
136 ((file regex)
137 (substitute* file
138 ((regex all before test_name)
139 (string-append before "Disabled" test_name)))))
140 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
141 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
142 ("os/os_test.go" "(.+)(TestHostname.+)")
143 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
4b0bac4b 144
7a2941a8
MJ
145 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
146 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
147 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
148 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
149 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
150 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
151 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
152 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
153 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")))
154
155 (substitute* "net/lookup_unix.go"
156 (("/etc/protocols") (string-append net-base "/etc/protocols")))
157 (substitute* "time/zoneinfo_unix.go"
158 (("/usr/share/zoneinfo/") tzdata-path))
159 (substitute* (find-files "cmd" "asm.c")
160 (("/lib/ld-linux.*\\.so\\.[0-9]") loader))
161 #t)))
162
163 (replace 'build
164 (lambda* (#:key inputs outputs #:allow-other-keys)
165 ;; FIXME: Some of the .a files are not bit-reproducible.
166 (let* ((output (assoc-ref outputs "out")))
167 (setenv "CC" (which "gcc"))
168 (setenv "GOOS" "linux")
169 (setenv "GOROOT" (dirname (getcwd)))
170 (setenv "GOROOT_FINAL" output)
521d736a 171 (setenv "GO14TESTS" "1")
2a49f7ad 172 (invoke "sh" "all.bash"))))
7a2941a8
MJ
173
174 (replace 'install
175 (lambda* (#:key outputs inputs #:allow-other-keys)
176 (let* ((output (assoc-ref outputs "out"))
177 (doc_out (assoc-ref outputs "doc"))
178 (bash (string-append (assoc-ref inputs "bash") "bin/bash"))
179 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
180 (tests (string-append
181 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
182 (mkdir-p tests)
183 (copy-recursively "../test" (string-append tests "/test"))
184 (delete-file-recursively "../test")
185 (mkdir-p docs)
186 (copy-recursively "../api" (string-append docs "/api"))
187 (delete-file-recursively "../api")
188 (copy-recursively "../doc" (string-append docs "/doc"))
189 (delete-file-recursively "../doc")
190
191 (for-each (lambda (file)
192 (let ((file (string-append "../" file)))
193 (install-file file docs)
194 (delete-file file)))
195 '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS"
196 "LICENSE" "VERSION" "robots.txt"))
197 (copy-recursively "../" output)
198 #t))))))
199 (inputs
200 `(("tzdata" ,tzdata)
201 ("pcre" ,pcre)
4f615131 202 ("gcc:lib" ,gcc "lib")))
7a2941a8 203 (native-inputs
3f0ec617 204 `(("pkg-config" ,pkg-config)
7a2941a8
MJ
205 ("which" ,which)
206 ("net-base" ,net-base)
207 ("perl" ,perl)))
208
209 (home-page "https://golang.org/")
210 (synopsis "Compiler and libraries for Go, a statically-typed language")
211 (description "Go, also commonly referred to as golang, is an imperative
247064c3
TGR
212programming language designed primarily for systems programming. Go is a
213compiled, statically typed language in the tradition of C and C++, but adds
214garbage collection, various safety features, and concurrent programming features
215in the style of communicating sequential processes (@dfn{CSP}).")
2ab321ca 216 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux"))
7a2941a8 217 (license license:bsd-3)))
ec91bcb5 218
18199da4
KCB
219(define-public go-1.12
220 (package
221 (inherit go-1.4)
222 (name "go")
d673993a 223 (version "1.12.13")
18199da4
KCB
224 (source
225 (origin
226 (method url-fetch)
227 (uri (string-append "https://storage.googleapis.com/golang/"
228 name version ".src.tar.gz"))
229 (sha256
230 (base32
d673993a 231 "19zmrhydd52vhdnzlhxqklzg1mnav434dcgw9wl4iajbvfwd70sk"))))
18199da4
KCB
232 (arguments
233 (substitute-keyword-arguments (package-arguments go-1.4)
234 ((#:phases phases)
235 `(modify-phases ,phases
236 (replace 'prebuild
237 (lambda* (#:key inputs outputs #:allow-other-keys)
238 (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib"))
239 (ld (string-append (assoc-ref inputs "libc") "/lib"))
240 (loader (car (find-files ld "^ld-linux.+")))
241 (net-base (assoc-ref inputs "net-base"))
242 (tzdata-path
243 (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))
244 (output (assoc-ref outputs "out")))
245
ae71bef5
LC
246 ;; Having the patch in the 'patches' field of <origin> breaks
247 ;; the 'TestServeContent' test due to the fact that
248 ;; timestamps are reset. Thus, apply it from here.
249 (invoke "patch" "-p2" "--force" "-i"
250 (assoc-ref inputs "go-skip-gc-test.patch"))
251
18199da4
KCB
252 ;; A side effect of these test scripts is testing
253 ;; cgo. Attempts at using cgo flags and directives with these
254 ;; scripts as specified here (https://golang.org/cmd/cgo/)
255 ;; have not worked. The tests continue to state that they can
256 ;; not find object files/headers despite being present.
257 (for-each
258 delete-file
259 '("cmd/go/testdata/script/mod_case_cgo.txt"
260 "cmd/go/testdata/script/list_find.txt"
261 "cmd/go/testdata/script/list_compiled_imports.txt"
262 "cmd/go/testdata/script/cgo_syso_issue29253.txt"))
263
264 (substitute* "os/os_test.go"
265 (("/usr/bin") (getcwd))
266 (("/bin/pwd") (which "pwd"))
267 (("/bin/sh") (which "sh")))
268
269 (substitute* "cmd/vendor/golang.org/x/sys/unix/syscall_unix_test.go"
270 (("/usr/bin") "/tmp"))
271
272 ;; Add libgcc to runpath
273 (substitute* "cmd/link/internal/ld/lib.go"
274 (("!rpath.set") "true"))
275 (substitute* "cmd/go/internal/work/gccgo.go"
276 (("cgoldflags := \\[\\]string\\{\\}")
277 (string-append "cgoldflags := []string{"
278 "\"-rpath=" gcclib "\""
279 "}"))
280 (("\"-lgcc_s\", ")
281 (string-append
282 "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
283 (substitute* "cmd/go/internal/work/gc.go"
284 (("ldflags = setextld\\(ldflags, compiler\\)")
285 (string-append
286 "ldflags = setextld(ldflags, compiler)\n"
287 "ldflags = append(ldflags, \"-r\")\n"
288 "ldflags = append(ldflags, \"" gcclib "\")\n")))
289
290 ;; Disable failing tests: these tests attempt to access
291 ;; commands or network resources which are neither available
292 ;; nor necessary for the build to succeed.
293 (for-each
294 (match-lambda
295 ((file regex)
296 (substitute* file
297 ((regex all before test_name)
298 (string-append before "Disabled" test_name)))))
299 '(("net/net_test.go" "(.+)(TestShutdownUnix.+)")
300 ("net/dial_test.go" "(.+)(TestDialTimeout.+)")
301 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)")
302 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)")
303 ;; 127.0.0.1 doesn't exist
304 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)")
305 ;; 127.0.0.1 doesn't exist
306 ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)")
307 ;; /etc/services doesn't exist
308 ("net/parse_test.go" "(.+)(TestReadLine.+)")
309 ("os/os_test.go" "(.+)(TestHostname.+)")
310 ;; The user's directory doesn't exist
311 ("os/os_test.go" "(.+)(TestUserHomeDir.+)")
312 ("time/format_test.go" "(.+)(TestParseInSydney.+)")
313 ("time/format_test.go" "(.+)(TestParseInLocation.+)")
314 ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
315 ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
ec91bcb5
MJ
316 ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
317 ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)")
318 ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)")
319 ("os/exec/exec_test.go" "(.+)(TestPipes.+)")
320 ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)")
321 ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)")
322 ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)")
323 ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)")
324 ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)")
3f157443 325 ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)")
ec91bcb5
MJ
326 ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)")
327 ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)")
328 ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)")
329 ("net/lookup_test.go" "(.+)(TestLookupPort.+)")
330 ("syscall/exec_linux_test.go"
17399545 331 "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)")))
ec91bcb5 332
ec91bcb5
MJ
333 ;; fix shebang for testar script
334 ;; note the target script is generated at build time.
a6169621 335 (substitute* "../misc/cgo/testcarchive/carchive_test.go"
ec91bcb5
MJ
336 (("#!/usr/bin/env") (string-append "#!" (which "env"))))
337
338 (substitute* "net/lookup_unix.go"
339 (("/etc/protocols") (string-append net-base "/etc/protocols")))
340 (substitute* "net/port_unix.go"
341 (("/etc/services") (string-append net-base "/etc/services")))
342 (substitute* "time/zoneinfo_unix.go"
343 (("/usr/share/zoneinfo/") tzdata-path))
c04ef86e
P
344 (substitute* (find-files "cmd" "\\.go")
345 (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
ec91bcb5
MJ
346 #t)))
347 (add-before 'build 'set-bootstrap-variables
348 (lambda* (#:key outputs inputs #:allow-other-keys)
349 ;; Tell the build system where to find the bootstrap Go.
5a14b913 350 (let ((go (assoc-ref inputs "go")))
ec91bcb5 351 (setenv "GOROOT_BOOTSTRAP" go)
ec91bcb5 352 (setenv "GOGC" "400")
ec91bcb5 353 #t)))
04a95a4f
LF
354 (replace 'build
355 (lambda* (#:key inputs outputs #:allow-other-keys)
356 ;; FIXME: Some of the .a files are not bit-reproducible.
357 (let* ((output (assoc-ref outputs "out")))
358 (setenv "CC" (which "gcc"))
359 (setenv "GOOS" "linux")
360 (setenv "GOROOT" (dirname (getcwd)))
361 (setenv "GOROOT_FINAL" output)
362 (setenv "CGO_ENABLED" "1")
188b88e2 363 (invoke "sh" "all.bash"))))
04a95a4f 364
ec91bcb5
MJ
365 (replace 'install
366 ;; TODO: Most of this could be factorized with Go 1.4.
367 (lambda* (#:key outputs #:allow-other-keys)
368 (let* ((output (assoc-ref outputs "out"))
369 (doc_out (assoc-ref outputs "doc"))
370 (docs (string-append doc_out "/share/doc/" ,name "-" ,version))
371 (src (string-append
372 (assoc-ref outputs "tests") "/share/" ,name "-" ,version)))
373 (delete-file-recursively "../pkg/bootstrap")
5a14b913
LF
374 ;; Prevent installation of the build cache, which contains
375 ;; store references to most of the tools used to build Go and
376 ;; would unnecessarily increase the size of Go's closure if it
377 ;; was installed.
378 (delete-file-recursively "../pkg/obj")
ec91bcb5
MJ
379
380 (mkdir-p src)
381 (copy-recursively "../test" (string-append src "/test"))
382 (delete-file-recursively "../test")
383 (mkdir-p docs)
384 (copy-recursively "../api" (string-append docs "/api"))
385 (delete-file-recursively "../api")
386 (copy-recursively "../doc" (string-append docs "/doc"))
387 (delete-file-recursively "../doc")
388
389 (for-each
390 (lambda (file)
391 (let* ((filein (string-append "../" file))
392 (fileout (string-append docs "/" file)))
393 (copy-file filein fileout)
394 (delete-file filein)))
395 ;; Note the slightly different file names compared to 1.4.
396 '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS"
397 "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt"))
398
188b88e2
TGR
399 (copy-recursively "../" output)
400 #t)))))))
ec91bcb5
MJ
401 (native-inputs
402 `(("go" ,go-1.4)
ae71bef5 403 ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
1009e6e7
EF
404 ,@(match (%current-system)
405 ((or "armhf-linux" "aarch64-linux")
406 `(("gold" ,binutils-gold)))
407 (_ `()))
dda785f6
EF
408 ,@(package-native-inputs go-1.4)))
409 (supported-systems %supported-systems)))
ec91bcb5 410
0c3c597d 411(define-public go go-1.12)
d3878e88
LF
412
413(define-public go-github-com-alsm-ioprogress
414 (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
415 (revision "0"))
416 (package
417 (name "go-github-com-alsm-ioprogress")
418 (version (git-version "0.0.0" revision commit))
419 (source (origin
420 (method git-fetch)
421 (uri (git-reference
422 (url "https://github.com/alsm/ioprogress.git")
423 (commit commit)))
fdbece74 424 (file-name (git-file-name name version))
d3878e88
LF
425 (sha256
426 (base32
427 "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh"))))
428 (build-system go-build-system)
429 (arguments
430 '(#:import-path "github.com/alsm/ioprogress"))
431 (synopsis "Textual progress bars in Go")
432 (description "@code{ioprogress} is a Go library with implementations of
433@code{io.Reader} and @code{io.Writer} that draws progress bars. The primary use
434case for these are for command-line applications but alternate progress bar
435writers can be supplied for alternate environments.")
436 (home-page "https://github.com/alsm/ioprogress")
437 (license license:expat))))
11b12655
LF
438
439(define-public go-github-com-aki237-nscjar
440 (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06")
441 (revision "0"))
442 (package
443 (name "go-github-com-aki237-nscjar")
444 (version (git-version "0.0.0" revision commit))
445 (source (origin
446 (method git-fetch)
447 (uri (git-reference
448 (url "https://github.com/aki237/nscjar.git")
449 (commit commit)))
82f09c0e 450 (file-name (git-file-name name version))
11b12655
LF
451 (sha256
452 (base32
453 "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96"))))
454 (build-system go-build-system)
455 (arguments
456 '(#:import-path "github.com/aki237/nscjar"))
457 (synopsis "Handle Netscape / Mozilla cookies")
458 (description "@code{nscjar} is a Go library used to parse and output
459Netscape/Mozilla's old-style cookie files. It also implements a simple cookie
460jar struct to manage the cookies added to the cookie jar.")
461 (home-page "https://github.com/aki237/nscjar")
462 (license license:expat))))
12f496ba 463
60a8cbc4
CB
464(define-public go-github.com-jessevdk-go-flags
465 (package
466 (name "go-github.com-jessevdk-go-flags")
467 (version "1.3.0")
468 (source (origin
469 (method git-fetch)
470 (uri (git-reference
471 (url "https://github.com/jessevdk/go-flags")
472 (commit (string-append "v" version))))
473 (file-name (git-file-name name version))
474 (sha256
475 (base32
476 "1jk2k2l10lwrn1r3nxdvbs0yz656830j4khzirw8p4ahs7c5zz36"))))
477 (build-system go-build-system)
478 (arguments
479 '(#:import-path "github.com/jessevdk/go-flags"))
480 (synopsis "Go library for parsing command line arguments")
481 (description
482 "The @code{flags} package provides a command line option parser. The
483functionality is similar to the go builtin @code{flag} package, but
484@code{flags} provides more options and uses reflection to provide a succinct
485way of specifying command line options.")
486 (home-page "https://github.com/jessevdk/go-flags")
487 (license license:bsd-3)))
210c6d95
CB
488
489(define-public go-gopkg.in-tomb.v2
490 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
491 (revision "0"))
492 (package
493 (name "go-gopkg.in-tomb.v2")
494 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
495 (source (origin
496 (method git-fetch)
497 (uri (git-reference
498 (url "https://github.com/go-tomb/tomb.git")
499 (commit commit)))
500 (file-name (string-append name "-" version ".tar.gz"))
501 (sha256
502 (base32
503 "1sv15sri99szkdz1bkh0ir46w9n8prrwx5hfai13nrhkawfyfy10"))))
504 (build-system go-build-system)
505 (arguments
69a64ecd
CB
506 '(#:import-path "gopkg.in/tomb.v2"
507 #:phases
508 (modify-phases %standard-phases
509 (add-after 'unpack 'patch-source
510 (lambda _
511 ;; Add a missing % to fix the compilation of this test
512 (substitute* "src/gopkg.in/tomb.v2/tomb_test.go"
513 (("t.Fatalf\\(`Killf\\(\"BO%s")
514 "t.Fatalf(`Killf(\"BO%%s"))
515 #t)))))
210c6d95
CB
516 (synopsis "@code{tomb} handles clean goroutine tracking and termination")
517 (description
518 "The @code{tomb} package handles clean goroutine tracking and
519termination.")
520 (home-page "https://gopkg.in/tomb.v2")
521 (license license:bsd-3))))
da6f9d41
CB
522
523(define-public go-github.com-jtolds-gls
524 (package
525 (name "go-github.com-jtolds-gls")
f0736d47 526 (version "4.20")
da6f9d41
CB
527 (source (origin
528 (method git-fetch)
529 (uri (git-reference
530 (url "https://github.com/jtolds/gls")
531 (commit (string-append "v" version))))
532 (file-name (git-file-name name version))
533 (sha256
534 (base32
f0736d47 535 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
da6f9d41
CB
536 (build-system go-build-system)
537 (arguments
538 '(#:import-path "github.com/jtolds/gls"))
539 (synopsis "@code{gls} provides Goroutine local storage")
540 (description
541 "The @code{gls} package provides a way to store a retrieve values
542per-goroutine.")
543 (home-page "https://github.com/jtolds/gls")
544 (license license:expat)))
c4d2cffa
CB
545
546(define-public go-github-com-tj-docopt
547 (package
548 (name "go-github-com-tj-docopt")
549 (version "1.0.0")
550 (source (origin
551 (method git-fetch)
552 (uri (git-reference
553 (url "https://github.com/tj/docopt")
554 (commit (string-append "v" version))))
555 (file-name (git-file-name name version))
556 (sha256
557 (base32
558 "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080"))))
559 (build-system go-build-system)
560 (arguments
561 '(#:import-path "github.com/tj/docopt"))
562 (synopsis "Go implementation of docopt")
563 (description
564 "This library allows the user to define a command-line interface from a
5c6b576a 565program's help message rather than specifying it programmatically with
c4d2cffa
CB
566command-line parsers.")
567 (home-page "https://github.com/tj/docopt")
568 (license license:expat)))
ed0c6a76
CB
569
570(define-public go-github-com-hashicorp-hcl
571 (let ((commit "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8")
572 (revision "0"))
573 (package
574 (name "go-github-com-hashicorp-hcl")
575 (version (git-version "0.0.0" revision commit))
576 (source (origin
577 (method git-fetch)
578 (uri (git-reference
579 (url "https://github.com/hashicorp/hcl")
580 (commit commit)))
581 (file-name (git-file-name name version))
582 (sha256
583 (base32
584 "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc"))))
585 (build-system go-build-system)
586 (arguments
587 '(#:tests? #f
588 #:import-path "github.com/hashicorp/hcl"))
589 (synopsis "Go implementation of HashiCorp Configuration Language")
590 (description
591 "This package contains the main implementation of the @acronym{HCL,
592HashiCorp Configuration Language}. HCL is designed to be a language for
593expressing configuration which is easy for both humans and machines to read.")
594 (home-page "https://github.com/hashicorp/hcl")
595 (license license:mpl2.0))))
269d0858 596
33b67efe
LF
597(define-public go-golang-org-x-tools
598 (let ((commit "8b927904ee0dec805c89aaf9172f4459296ed6e8")
599 (revision "0"))
600 (package
601 (name "go-golang-org-x-tools")
602 (version (git-version "0.1.3" revision commit))
603 (source (origin
604 (method git-fetch)
605 (uri (git-reference
606 (url "https://go.googlesource.com/tools")
607 (commit commit)))
608 (file-name (string-append "go.googlesource.com-tools-"
609 version "-checkout"))
610 (sha256
611 (base32
612 "0iinb70xhcjsddgi42ia1n745lx2ibnjdm6m2v666qrk3876vpck"))))
613 (build-system go-build-system)
614 (arguments
615 `(#:import-path "golang.org/x/tools"
616 ;; Source-only package
617 #:tests? #f
618 #:phases
619 (modify-phases %standard-phases
620 ;; Source-only package
621 (delete 'build))))
622 (synopsis "Tools that support the Go programming language")
623 (description "This package provides miscellaneous tools that support the
624Go programming language.")
625 (home-page "https://go.googlesource.com/tools/")
626 (license license:bsd-3))))
5bbf203c
LF
627
628(define-public go-golang-org-x-crypto
629 (let ((commit "b7391e95e576cacdcdd422573063bc057239113d")
630 (revision "3"))
631 (package
632 (name "go-golang-org-x-crypto")
633 (version (git-version "0.0.0" revision commit))
634 (source (origin
635 (method git-fetch)
636 (uri (git-reference
637 (url "https://go.googlesource.com/crypto")
638 (commit commit)))
639 (file-name (string-append "go.googlesource.com-crypto-"
640 version "-checkout"))
641 (sha256
642 (base32
643 "1jqfh81mhgwcc6b9l0bs6rb0707s01qpvn7896i5bsmig46lc7zm"))))
644 (build-system go-build-system)
645 (arguments
646 '(#:import-path "golang.org/x/crypto"
647 ;; Source-only package
648 #:tests? #f
649 #:phases
650 (modify-phases %standard-phases
651 ;; Source-only package
652 (delete 'build)
653 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
654 (lambda* (#:key outputs #:allow-other-keys)
655 (map (lambda (file)
656 (make-file-writable file))
657 (find-files
658 (string-append (assoc-ref outputs "out")
659 "/src/golang.org/x/crypto/ed25519/testdata")
660 ".*\\.gz$"))
661 #t)))))
662 (propagated-inputs
561d391b 663 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
5bbf203c
LF
664 (synopsis "Supplementary cryptographic libraries in Go")
665 (description "This package provides supplementary cryptographic libraries
666for the Go language.")
667 (home-page "https://go.googlesource.com/crypto/")
668 (license license:bsd-3))))
33b67efe 669
561d391b 670(define-public go-golang-org-x-net
307f2c44
LF
671 (let ((commit "d28f0bde5980168871434b95cfc858db9f2a7a99")
672 (revision "3"))
269d0858 673 (package
561d391b 674 (name "go-golang-org-x-net")
269d0858
LF
675 (version (git-version "0.0.0" revision commit))
676 (source (origin
677 (method git-fetch)
678 (uri (git-reference
679 (url "https://go.googlesource.com/net")
680 (commit commit)))
681 (file-name (git-file-name name version))
682 (sha256
683 (base32
307f2c44 684 "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf"))))
269d0858
LF
685 (build-system go-build-system)
686 (arguments
561d391b
LF
687 `(#:import-path "golang.org/x/net"
688 ; Source-only package
689 #:tests? #f
690 #:phases
691 (modify-phases %standard-phases
692 (delete 'build))))
693 (synopsis "Go supplemental networking libraries")
694 (description "This package provides supplemental Go networking libraries.")
269d0858
LF
695 (home-page "https://go.googlesource.com/net")
696 (license license:bsd-3))))
697
561d391b 698(define-public go-golang-org-x-sys
8a507346
LF
699 (let ((commit "04f50cda93cbb67f2afa353c52f342100e80e625")
700 (revision "4"))
269d0858 701 (package
561d391b 702 (name "go-golang-org-x-sys")
269d0858
LF
703 (version (git-version "0.0.0" revision commit))
704 (source (origin
705 (method git-fetch)
706 (uri (git-reference
707 (url "https://go.googlesource.com/sys")
708 (commit commit)))
709 (file-name (git-file-name name version))
710 (sha256
711 (base32
8a507346 712 "0hmfsz9y1ingwsn482hlzzmzs7kr3cklm0ana0mbdk70isw2bxnw"))))
269d0858
LF
713 (build-system go-build-system)
714 (arguments
561d391b
LF
715 `(#:import-path "golang.org/x/sys"
716 ;; Source-only package
717 #:tests? #f
718 #:phases
719 (modify-phases %standard-phases
720 (delete 'build))))
269d0858 721 (synopsis "Go support for low-level system interaction")
561d391b
LF
722 (description "This package provides supplemental libraries offering Go
723support for low-level interaction with the operating system.")
269d0858
LF
724 (home-page "https://go.googlesource.com/sys")
725 (license license:bsd-3))))
726
561d391b 727(define-public go-golang-org-x-text
4a136536 728 (package
561d391b 729 (name "go-golang-org-x-text")
06c2d0e6
BL
730 (version "0.3.2")
731 (source (origin
732 (method git-fetch)
733 (uri (git-reference
734 (url "https://go.googlesource.com/text")
735 (commit (string-append "v" version))))
736 (file-name (string-append "go.googlesource.com-text-"
737 version "-checkout"))
738 (sha256
739 (base32
740 "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh"))))
741 (build-system go-build-system)
742 (arguments
561d391b
LF
743 `(#:import-path "golang.org/x/text"
744 ; Source-only package
745 #:tests? #f
746 #:phases
747 (modify-phases %standard-phases
748 (delete 'build))))
749 (synopsis "Supplemental Go text processing libraries")
750 (description "This package provides supplemental Go libraries for text
751 processing.")
06c2d0e6
BL
752 (home-page "https://go.googlesource.com/text")
753 (license license:bsd-3)))
754
561d391b 755(define-public go-golang-org-x-time
269d0858
LF
756 (let ((commit "6dc17368e09b0e8634d71cac8168d853e869a0c7")
757 (revision "1"))
758 (package
561d391b 759 (name "go-golang-org-x-time")
269d0858
LF
760 (version (git-version "0.0.0" revision commit))
761 (source (origin
762 (method git-fetch)
763 (uri (git-reference
764 (url "https://go.googlesource.com/time")
765 (commit commit)))
766 (file-name (git-file-name name version))
767 (sha256
768 (base32
769 "1fx4cf5fpdz00g3c7vxzy92hdcg0vh4yqw00qp5s52j72qixynbk"))))
770 (build-system go-build-system)
771 (arguments
561d391b
LF
772 `(#:import-path "golang.org/x/time"
773 ; Source-only package
774 #:tests? #f
775 #:phases
776 (modify-phases %standard-phases
777 (delete 'build))))
778; (propagated-inputs
779; `(("go-golang-org-x-net" ,go-golang-org-x-net)))
780 (synopsis "Supplemental Go time libraries")
781 (description "This package provides supplemental Go libraries related to
782time.")
269d0858
LF
783 (home-page "https://godoc.org/golang.org/x/time/rate")
784 (license license:bsd-3))))
e60352e4 785
fb50664f 786(define-public go-github-com-burntsushi-toml
0e558640
LF
787 (package
788 (name "go-github-com-burntsushi-toml")
789 (version "0.3.1")
790 (source
791 (origin
792 (method git-fetch)
793 (uri (git-reference
794 (url "https://github.com/BurntSushi/toml.git")
795 (commit (string-append "v" version))))
796 (file-name (git-file-name name version))
797 (sha256
798 (base32
799 "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"))))
800 (build-system go-build-system)
801 (arguments
802 '(#:import-path "github.com/BurntSushi/toml"))
803 (home-page "https://github.com/BurntSushi/toml")
804 (synopsis "Toml parser and encoder for Go")
805 (description "This package is toml parser and encoder for Go. The interface
806is similar to Go's standard library @code{json} and @code{xml} package.")
807 (license license:expat)))
8c5a69aa
PAR
808
809(define-public go-github-com-getsentry-raven-go
8ffc727e 810 (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
8c5a69aa
PAR
811 (revision "0"))
812 (package
813 (name "go-github-com-getsentry-raven-go")
8ffc727e 814 (version (git-version "0.2.0" revision commit))
8c5a69aa
PAR
815 (source
816 (origin
817 (method git-fetch)
818 (uri (git-reference
819 (url "https://github.com/getsentry/raven-go.git")
820 (commit commit)))
821 (file-name (git-file-name name version))
822 (sha256
823 (base32
8ffc727e 824 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
8c5a69aa
PAR
825 (build-system go-build-system)
826 (arguments
827 '(#:import-path "github.com/getsentry/raven-go"))
8ffc727e
LF
828 (propagated-inputs
829 `(("go-github-com-certifi-gocertifi" ,go-github-com-certifi-gocertifi)
830 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)))
831 (home-page "https://github.com/getsentry/raven-go")
8c5a69aa 832 (synopsis "Sentry client in Go")
8ffc727e 833 (description "This package is a Go client API for the Sentry event/error
8c5a69aa
PAR
834logging system.")
835 (license license:bsd-3))))
0972411a
PAR
836
837(define-public go-github-com-hashicorp-go-version
838 (let ((commit
839 "03c5bf6be031b6dd45afec16b1cf94fc8938bc77")
840 (revision "0"))
841 (package
842 (name "go-github-com-hashicorp-go-version")
843 (version (git-version "0.0.0" revision commit))
844 (source
845 (origin
846 (method git-fetch)
847 (uri (git-reference
848 (url "https://github.com/hashicorp/go-version.git")
849 (commit commit)))
850 (file-name (git-file-name name version))
851 (sha256
852 (base32
853 "0sjq57gpfznaqdrbyb2p0bn90g9h661cvr0jrk6ngags4pbw14ik"))))
854 (build-system go-build-system)
855 (arguments
856 '(#:import-path "github.com/hashicorp/go-version"))
857 (home-page
858 "https://github.com/hashicorp/go-version")
859 (synopsis "Go library for parsing and verifying versions and version
860constraints")
861 (description "This package is a library for parsing versions and version
862constraints, and verifying versions against a set of constraints. It can sort
863a collection of versions properly, handles prerelease/beta versions, can
864increment versions.")
865 (license license:mpl2.0))))
c4230cda
PAR
866
867(define-public go-github-com-jpillora-backoff
868 (let ((commit
869 "06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
870 (revision "0"))
871 (package
872 (name "go-github-com-jpillora-backoff")
873 (version (git-version "0.0.0" revision commit))
874 (source
875 (origin
876 (method git-fetch)
877 (uri (git-reference
878 (url "https://github.com/jpillora/backoff.git")
879 (commit commit)))
880 (file-name (git-file-name name version))
881 (sha256
882 (base32
883 "0xhvxr7bm47czdc5hy3kl508z3y4j91i2jm7vg774i52zych6k4l"))))
884 (build-system go-build-system)
885 (arguments
886 '(#:import-path "github.com/jpillora/backoff"))
887 (home-page "https://github.com/jpillora/backoff")
888 (synopsis "Simple exponential backoff counter in Go")
889 (description "This package is a simple exponential backoff counter in
890Go.")
891 (license license:expat))))
28380e0e
PAR
892
893(define-public go-github-com-stretchr-testify
894 (let ((commit
895 "b1f989447a57594c728884458a39abf3a73447f7")
896 (revision "0"))
897 (package
898 (name "go-github-com-stretchr-testify")
899 (version (git-version "1.1.4" revision commit))
900 (source
901 (origin
902 (method git-fetch)
903 (uri (git-reference
904 (url "https://github.com/stretchr/testify.git")
905 (commit commit)))
906 (file-name (git-file-name name version))
907 (sha256
908 (base32
909 "0p0gkqzh2p8r5g0rxm885ljl7ghih7h7hx9w562imx5ka0vdgixv"))))
910 (build-system go-build-system)
911 (arguments
912 '(#:import-path "github.com/stretchr/testify"))
913 (home-page "https://github.com/stretchr/testify")
914 (synopsis "Go helper library for tests and invariant checking")
915 (description "This package provide many tools for testifying that your
916code will behave as you intend.
917
918Features include:
919@itemize
920@item Easy assertions
921@item Mocking
922@item HTTP response trapping
923@item Testing suite interfaces and functions.
924@end itemize")
925 (license license:expat))))
21290c35
PAR
926
927(define-public go-github-com-tevino-abool
928 (let ((commit
929 "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12")
930 (revision "0"))
931 (package
932 (name "go-github-com-tevino-abool")
933 (version (git-version "0.0.0" revision commit))
934 (source
935 (origin
936 (method git-fetch)
937 (uri (git-reference
938 (url "https://github.com/tevino/abool.git")
939 (commit commit)))
940 (file-name (git-file-name name version))
941 (sha256
942 (base32
943 "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm"))))
944 (build-system go-build-system)
945 (arguments
946 '(#:import-path "github.com/tevino/abool"))
947 (home-page "https://github.com/tevino/abool")
948 (synopsis "Atomic boolean library for Go code")
949 (description "This package is atomic boolean library for Go code,
950optimized for performance yet simple to use.")
951 (license license:expat))))
7c2ebbd4 952
67836c59
PAR
953(define-public go-github-com-blang-semver
954 (let ((commit "60ec3488bfea7cca02b021d106d9911120d25fe9")
955 (revision "0"))
956 (package
957 (name "go-github-com-blang-semver")
958 (version (git-version "0.0.0" revision commit))
959 (source
960 (origin
961 (method git-fetch)
962 (uri (git-reference
963 (url "https://github.com/blang/semver.git")
964 (commit commit)))
965 (file-name (git-file-name name version))
966 (sha256
967 (base32
968 "19pli07y5592g4dyjyj0jq5rn548vc3fz0qg3624vm1j5828p1c2"))))
969 (build-system go-build-system)
970 (arguments
971 '(#:import-path "github.com/blang/semver"))
972 (home-page "https://github.com/blang/semver")
973 (synopsis "Semantic versioning library written in Go")
974 (description "Semver is a library for Semantic versioning written in Go.")
975 (license license:expat))))
976
7979f7df
PAR
977(define-public go-github-com-emicklei-go-restful
978 (let ((commit "89ef8af493ab468a45a42bb0d89a06fccdd2fb22")
979 (revision "0"))
980 (package
981 (name "go-github-com-emicklei-go-restful")
982 (version (git-version "0.0.0" revision commit))
983 (source
984 (origin
985 (method git-fetch)
986 (uri (git-reference
987 (url "https://github.com/emicklei/go-restful.git")
988 (commit commit)))
989 (file-name (git-file-name name version))
990 (sha256
991 (base32
992 "0rrlfcfq80fkxifpih6bq31vavb5mf4530xz51pp9pq1mn2fzjfh"))))
993 (build-system go-build-system)
994 (arguments
995 '(#:import-path "github.com/emicklei/go-restful"))
996 (home-page "https://github.com/emicklei/go-restful")
997 (synopsis "Build REST-style web services using Go")
998 (description "This package provides @code{go-restful}, which helps
999developers to use @code{http} methods explicitly and in a way that's consistent
1000with the HTTP protocol definition.")
1001 (license license:expat))))
73fe19ef
PAR
1002
1003(define-public go-github-com-google-cadvisor
1004 (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
1005 (revision "0"))
1006 (package
1007 (name "go-github-com-google-cadvisor")
1008 (version (git-version "0.0.0" revision commit))
1009 (source
1010 (origin
1011 (method git-fetch)
1012 (uri (git-reference
1013 (url "https://github.com/google/cadvisor.git")
1014 (commit commit)))
1015 (file-name (git-file-name name version))
1016 (sha256
1017 (base32
1018 "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55"))))
1019 (build-system go-build-system)
1020 (arguments
1021 '(#:import-path "github.com/google/cadvisor"))
1022 (home-page "https://github.com/google/cadvisor")
1023 (synopsis "Analyze resource usage of running containers")
1024 (description "The package provides @code{cadvisor}, which provides
ae03ce0f 1025information about the resource usage and performance characteristics of running
73fe19ef
PAR
1026containers.")
1027 (license license:asl2.0))))
daed2c5e
PAR
1028
1029(define-public go-github-com-google-gofuzz
1030 (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")
1031 (revision "0"))
1032 (package
1033 (name "go-github-com-google-gofuzz")
1034 (version (git-version "0.0.0" revision commit))
1035 (source
1036 (origin
1037 (method git-fetch)
1038 (uri (git-reference
1039 (url "https://github.com/google/gofuzz.git")
1040 (commit commit)))
1041 (file-name (git-file-name name version))
1042 (sha256
1043 (base32
1044 "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8"))))
1045 (build-system go-build-system)
1046 (arguments
1047 '(#:import-path "github.com/google/gofuzz"))
1048 (home-page "https://github.com/google/gofuzz")
1049 (synopsis "Fuzz testing library for Go")
1050 (description "Gofuzz is a library for populationg Go objects with random
1051values for the purpose of fuzz testing.")
1052 (license license:asl2.0))))
9cf879a5
PAR
1053
1054(define-public go-github-com-gorilla-context
1055 (let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42")
1056 (revision "0"))
1057 (package
1058 (name "go-github-com-gorilla-context")
1059 (version (git-version "0.0.0" revision commit))
1060 (source
1061 (origin
1062 (method git-fetch)
1063 (uri (git-reference
1064 (url "https://github.com/gorilla/context.git")
1065 (commit commit)))
1066 (file-name (git-file-name name version))
1067 (sha256
1068 (base32
1069 "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4"))))
1070 (build-system go-build-system)
1071 (arguments
1072 '(#:import-path "github.com/gorilla/context"))
1073 (home-page "https://github.com/gorilla/context")
1074 (synopsis "Go registry for request variables")
1075 (description "This package provides @code{gorilla/context}, which is a general purpose registry for global request variables in the Go programming language.")
1076 (license license:bsd-3))))
e8cdf560
PAR
1077
1078(define-public go-github-com-gorilla-mux
1079 (let ((commit "599cba5e7b6137d46ddf58fb1765f5d928e69604")
1080 (revision "0"))
1081 (package
1082 (name "go-github-com-gorilla-mux")
1083 (version (git-version "0.0.0" revision commit))
1084 (source
1085 (origin
1086 (method git-fetch)
1087 (uri (git-reference
1088 (url "https://github.com/gorilla/mux.git")
1089 (commit commit)))
1090 (file-name (git-file-name name version))
1091 (sha256
1092 (base32
1093 "0wd6jjii1kg5s0nk3ri6gqriz6hbd6bbcn6x4jf8n7ncrb8qsxyz"))))
1094 (build-system go-build-system)
1095 (arguments
1096 '(#:import-path "github.com/gorilla/mux"))
1097 (home-page "https://github.com/gorilla/mux")
1098 (synopsis "URL router and dispatcher for Go")
1099 (description
1100 "Gorilla/Mux implements a request router and dispatcher for matching
1101incoming requests with their respective handler.")
1102 (license license:bsd-3))))
bcb21790
PAR
1103
1104(define-public go-github-com-jonboulle-clockwork
1105 (let ((commit "e3653ace2d63753697e0e5b07b9393971c0bba9d")
1106 (revision "0"))
1107 (package
1108 (name "go-github-com-jonboulle-clockwork")
1109 (version (git-version "0.0.0" revision commit))
1110 (source
1111 (origin
1112 (method git-fetch)
1113 (uri (git-reference
1114 (url "https://github.com/jonboulle/clockwork.git")
1115 (commit commit)))
1116 (file-name (git-file-name name version))
1117 (sha256
1118 (base32
1119 "1avzqhks12a8x2yzpvjsf3k0gv9cy7zx2z88hn0scacnxkphisvc"))))
1120 (build-system go-build-system)
1121 (arguments
1122 '(#:import-path "github.com/jonboulle/clockwork"))
1123 (home-page "https://github.com/jonboulle/clockwork")
1124 (synopsis "Fake clock library for Go")
1125 (description
1126 "Replace uses of the @code{time} package with the
1127@code{clockwork.Clock} interface instead.")
1128 (license license:asl2.0))))
76a2b278
PAR
1129
1130(define-public go-github-com-spf13-pflag
1131 (let ((commit "4f9190456aed1c2113ca51ea9b89219747458dc1")
1132 (revision "0"))
1133 (package
1134 (name "go-github-com-spf13-pflag")
1135 (version (git-version "0.0.0" revision commit))
1136 (source
1137 (origin
1138 (method git-fetch)
1139 (uri (git-reference
1140 (url "https://github.com/spf13/pflag.git")
1141 (commit commit)))
1142 (file-name (git-file-name name version))
1143 (sha256
1144 (base32
1145 "12vrlcsbwjqlfc49rwky45mbcj74c0kb6z54354pzas6fwzyi1kc"))))
1146 (build-system go-build-system)
1147 (arguments
1148 '(#:import-path "github.com/spf13/pflag"))
1149 (home-page "https://github.com/spf13/pflag")
1150 (synopsis "Replacement for Go's @code{flag} package")
1151 (description
1152 "Pflag is library to replace Go's @code{flag} package. It implements
1153POSIX/GNU-style command-line options with double hyphens. It is is compatible
1154with the
1155@uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html,
1156GNU extensions} to the POSIX recommendations for command-line options.")
1157 (license license:bsd-3))))
7427b2c6
PAR
1158
1159(define-public go-github-com-sirupsen-logrus
1160 (package
1161 (name "go-github-com-sirupsen-logrus")
1162 (version "1.0.5")
1163 (source
1164 (origin
1165 (method git-fetch)
1166 (uri (git-reference
1167 (url "https://github.com/sirupsen/logrus.git")
1168 (commit (string-append "v" version))))
f1d4d79f 1169 (file-name (git-file-name name version))
7427b2c6
PAR
1170 (sha256
1171 (base32
1172 "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz"))))
1173 (build-system go-build-system)
1174 (native-inputs
561d391b
LF
1175 `(("go-golang-org-x-crypto"
1176 ,go-golang-org-x-crypto)
7427b2c6
PAR
1177 ("go-github-com-stretchr-testify"
1178 ,go-github-com-stretchr-testify)
561d391b 1179 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
7427b2c6
PAR
1180 (arguments
1181 '(#:tests? #f ;FIXME missing dependencies
1182 #:import-path "github.com/sirupsen/logrus"))
1183 (home-page "https://github.com/sirupsen/logrus")
1184 (synopsis "Structured, pluggable logging for Go")
1185 (description "Logrus is a structured logger for Go, completely API
1186compatible with the standard library logger.")
1187 (license license:expat)))
5cc2b845
LF
1188
1189(define-public go-github-com-kardianos-osext
1190 (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14")
1191 (revision "1"))
1192 (package
1193 (name "go-github-com-kardianos-osext")
1194 (version (git-version "0.0.0" revision commit))
1195 (source (origin
1196 (method git-fetch)
1197 (uri (git-reference
1198 (url "https://github.com/kardianos/osext")
1199 (commit commit)))
1200 (file-name (git-file-name name version))
1201 (sha256
1202 (base32
1203 "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz"))))
1204 (build-system go-build-system)
1205 (arguments
1206 `(#:import-path "github.com/kardianos/osext"
1207 ;; The tests are flaky:
1208 ;; <https://github.com/kardianos/osext/issues/21>
1209 #:tests? #f))
1210 (synopsis "Find the running executable")
1211 (description "Osext provides a method for finding the current executable
1212file that is running. This can be used for upgrading the current executable or
1213finding resources located relative to the executable file.")
1214 (home-page "https://github.com/kardianos/osext")
1215 (license license:bsd-3))))
aed4944d
PAR
1216
1217(define-public go-github-com-ayufan-golang-kardianos-service
1218 (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3")
1219 (revision "0"))
1220 (package
1221 (name "go-github-com-ayufan-golang-kardianos-service")
1222 (version (git-version "0.0.0" revision commit))
1223 (source
1224 (origin
1225 (method git-fetch)
1226 (uri (git-reference
1227 (url
1228 "https://github.com/ayufan/golang-kardianos-service.git")
1229 (commit commit)))
1230 (file-name (git-file-name name version))
1231 (sha256
1232 (base32
1233 "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5"))))
1234 (build-system go-build-system)
1235 (native-inputs
1236 `(("go-github-com-kardianos-osext"
1237 ,go-github-com-kardianos-osext)))
1238 (arguments
1239 '(#:tests? #f ;FIXME tests fail: Service is not running.
1240 #:import-path "github.com/ayufan/golang-kardianos-service"))
1241 (home-page "https://github.com/ayufan/golang-kardianos-service")
1242 (synopsis "Go interface to a variety of service supervisors")
1243 (description "This package provides @code{service}, a Go module that can
1244run programs as a service using a variety of supervisors, including systemd,
1245SysVinit, and more.")
1246 (license license:zlib))))
e2826118
PAR
1247
1248(define-public go-github-com-docker-distribution
1249 (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329")
1250 (revision "0"))
1251 (package
1252 (name "go-github-com-docker-distribution")
1253 (version (git-version "0.0.0" revision commit))
1254 (source
1255 ;; FIXME: This bundles many things, see
1256 ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>.
1257 (origin
1258 (method git-fetch)
1259 (uri (git-reference
1260 (url "https://github.com/docker/distribution")
1261 (commit commit)))
1262 (file-name (git-file-name name version))
1263 (sha256
1264 (base32
1265 "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6"))))
1266 (build-system go-build-system)
1267 (native-inputs
561d391b 1268 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
e2826118
PAR
1269 ("go-github-com-sirupsen-logrus"
1270 ,go-github-com-sirupsen-logrus)
561d391b
LF
1271 ("go-golang-org-x-crypto"
1272 ,go-golang-org-x-crypto)))
e2826118
PAR
1273 (arguments
1274 '(#:import-path "github.com/docker/distribution"
1275 #:phases
1276 (modify-phases %standard-phases
1277 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
1278 (lambda* (#:key outputs #:allow-other-keys)
1279 (map (lambda (file)
1280 (make-file-writable file))
1281 (find-files
1282 (assoc-ref outputs "out")
1283 ".*\\.gz$"))
1284 #t)))))
1285 (home-page
1286 "https://github.com/docker/distribution")
a95b6436 1287 (synopsis "This package is a Docker toolset to pack, ship, store, and
e2826118 1288deliver content")
a95b6436
VC
1289 (description "Docker Distribution is a Docker toolset to pack, ship,
1290store, and deliver content. It contains Docker Registry 2.0 and libraries
1291to interact with distribution components.")
e2826118 1292 (license license:asl2.0))))
01bcc94c
PAR
1293
1294(define-public go-github-com-docker-go-connections
1295 (let ((commit "3ede32e2033de7505e6500d6c868c2b9ed9f169d")
1296 (revision "0"))
1297 (package
1298 (name "go-github-com-docker-go-connections")
1299 (version (git-version "0.0.0" revision commit))
1300 (source
1301 (origin
1302 (method git-fetch)
1303 (uri (git-reference
1304 (url "https://github.com/docker/go-connections.git")
1305 (commit commit)))
1306 (file-name (git-file-name name version))
1307 (sha256
1308 (base32
1309 "0v1pkr8apwmhyzbjfriwdrs1ihlk6pw7izm57r24mf9jdmg3fyb0"))))
1310 (build-system go-build-system)
1311 (arguments
1312 '(#:import-path "github.com/docker/go-connections"))
1313 (home-page "https://github.com/docker/go-connections")
1314 (synopsis "Networking library for Go")
1315 (description
f0b32cea 1316 "This package provides a library to work with network connections in
01bcc94c
PAR
1317the Go language. In particular it provides tools to deal with network address
1318translation (NAT), proxies, sockets, and transport layer security (TLS).")
1319 (license license:asl2.0))))
af132bcc
PAR
1320
1321(define-public go-github-com-docker-machine
1322 (let ((commit "7b7a141da84480342357c51838be142bf183b095")
1323 (revision "0"))
1324 (package
1325 (name "go-github-com-docker-machine")
1326 (version (git-version "0.0.0" revision commit))
1327 (source
1328 (origin
1329 (method git-fetch)
1330 (uri (git-reference
1331 (url "https://github.com/docker/machine.git")
1332 (commit commit)))
1333 (file-name (git-file-name name version))
1334 (sha256
1335 (base32
1336 "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s"))))
1337 (build-system go-build-system)
1338 (arguments
1339 '(#:import-path "github.com/docker/machine"))
1340 (home-page "https://github.com/docker/machine")
1341 (synopsis "Machine management for a container-centric world")
1342 (description
1343 "@dfn{Machine} lets you create Docker hosts on your computer, on
1344hosting providers, and inside your data center. It creates servers, installs
1345Docker on them, then configures the Docker client to talk to them.")
1346 (license license:asl2.0))))
d850e7a0
PAR
1347
1348(define-public go-github-com-gorhill-cronexpr
1349 (let ((commit "f0984319b44273e83de132089ae42b1810f4933b")
1350 (revision "0"))
1351 (package
1352 (name "go-github-com-gorhill-cronexpr")
1353 (version (git-version "0.0.0" revision commit))
1354 (source
1355 (origin
1356 (method git-fetch)
1357 (uri (git-reference
1358 (url "https://github.com/gorhill/cronexpr.git")
1359 (commit commit)))
1360 (file-name (git-file-name name version))
1361 (sha256
1362 (base32
1363 "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2"))))
1364 (build-system go-build-system)
1365 (arguments
1366 '(#:import-path "github.com/gorhill/cronexpr"))
1367 (home-page "https://github.com/gorhill/cronexpr")
1368 (synopsis "Cron expression parser in the Go language")
1369 (description
1370 "This package provides a cron expression parser in the Go language.
1371Given a cron expression and a time stamp, you can get the next time stamp
1372which satisfies the cron expression.")
1373 (license (list license:gpl3+
1374 license:asl2.0)))))
abd47216
PAR
1375
1376(define-public go-gopkg-in-check-v1
a2dbcfdd
LF
1377 (let ((commit "788fd78401277ebd861206a03c884797c6ec5541")
1378 (revision "1"))
abd47216
PAR
1379 (package
1380 (name "go-gopkg-in-check-v1")
a2dbcfdd 1381 (version (git-version "1.0.0" revision commit))
abd47216
PAR
1382 (source
1383 (origin
1384 (method git-fetch)
1385 (uri (git-reference
1386 (url "https://github.com/go-check/check")
1387 (commit commit)))
1388 (file-name (git-file-name name version))
1389 (sha256
1390 (base32
a2dbcfdd 1391 "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"))))
abd47216
PAR
1392 (build-system go-build-system)
1393 (arguments
1394 '(#:import-path "gopkg.in/check.v1"))
a2dbcfdd
LF
1395 (propagated-inputs
1396 `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty)))
abd47216
PAR
1397 (home-page "https://gopkg.in/check.v1")
1398 (synopsis "Test framework for the Go language")
a2dbcfdd 1399 (description "This package provides a test library for the Go language.")
abd47216 1400 (license license:asl2.0))))
d2c5e912
PAR
1401
1402(define-public go-gopkg-in-yaml-v2
c17e69b3
LF
1403 (package
1404 (name "go-gopkg-in-yaml-v2")
1405 (version "2.2.2")
1406 (source
1407 (origin
1408 (method git-fetch)
1409 (uri (git-reference
1410 (url "https://gopkg.in/yaml.v2.git")
1411 (commit (string-append "v" version))))
1412 (file-name (git-file-name name version))
1413 (sha256
1414 (base32
1415 "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))))
1416 (build-system go-build-system)
1417 (arguments
1418 '(#:import-path "gopkg.in/yaml.v2"))
1419 (native-inputs
1420 `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)))
1421 (home-page "https://gopkg.in/yaml.v2")
1422 (synopsis "YAML reader and writer for the Go language")
1423 (description
1424 "This package provides a Go library for encode and decode YAML
d2c5e912 1425values.")
c17e69b3 1426 (license license:asl2.0)))
3291be81
PN
1427
1428(define-public go-github-com-mattn-go-isatty
24e3520d
LF
1429 (package
1430 (name "go-github-com-mattn-go-isatty")
36bb1d5a 1431 (version "0.0.7")
24e3520d
LF
1432 (source
1433 (origin
1434 (method git-fetch)
1435 (uri (git-reference
1436 (url "https://github.com/mattn/go-isatty")
1437 (commit (string-append "v" version))))
1438 (file-name (git-file-name name version))
1439 (sha256
1440 (base32
36bb1d5a 1441 "1i77aq4gf9as03m8fpfh8fq49n4z9j7548blrcsidm1xhslzk5xd"))))
24e3520d 1442 (build-system go-build-system)
36bb1d5a 1443 (propagated-inputs
561d391b 1444 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
24e3520d
LF
1445 (arguments
1446 '(#:import-path "github.com/mattn/go-isatty"))
1447 (home-page "https://github.com/mattn/go-isatty")
1448 (synopsis "Provide @code{isatty} for Golang")
1449 (description "This package provides @code{isatty}, a Go module that can
3291be81
PN
1450tell you whether a file descriptor points to a terminal and the type of the
1451terminal.")
24e3520d 1452 (license license:expat)))
7601b4e4
PN
1453
1454(define-public go-github-com-mattn-go-colorable
1455 (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade")
1456 (revision "0"))
1457 (package
1458 (name "go-github-com-mattn-go-colorable")
1459 (version (git-version "0.0.0" revision commit))
1460 (source
1461 (origin
1462 (method git-fetch)
1463 (uri (git-reference
1464 (url "https://github.com/mattn/go-colorable")
1465 (commit commit)))
1466 (file-name (git-file-name name version))
1467 (sha256
1468 (base32
1469 "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r"))))
1470 (build-system go-build-system)
1471 (native-inputs
1472 `(("go-github-com-mattn-go-isatty"
1473 ,go-github-com-mattn-go-isatty)))
1474 (arguments
1475 '(#:import-path "github.com/mattn/go-colorable"))
1476 (home-page "https://github.com/mattn/go-colorable")
1477 (synopsis "Handle ANSI color escapes on Windows")
1478 (description "This package provides @code{colorable}, a module that
1479makes it possible to handle ANSI color escapes on Windows.")
1480 (license license:expat))))
32cb1af6
PN
1481
1482(define-public go-github-com-mgutz-ansi
1483 (let ((commit "9520e82c474b0a04dd04f8a40959027271bab992")
1484 (revision "0"))
1485 (package
1486 (name "go-github-com-mgutz-ansi")
1487 (version (git-version "0.0.0" revision commit))
1488 (source
1489 (origin
1490 (method git-fetch)
1491 (uri (git-reference
1492 (url
1493 "https://github.com/mgutz/ansi")
1494 (commit commit)))
1495 (file-name (git-file-name name version))
1496 (sha256
1497 (base32
1498 "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j"))))
1499 (build-system go-build-system)
1500 (native-inputs
1501 `(("go-github-com-mattn-go-isatty"
1502 ,go-github-com-mattn-go-isatty)
1503 ("go-github-com-mattn-go-colorable"
1504 ,go-github-com-mattn-go-colorable)))
1505 (arguments
1506 '(#:import-path "github.com/mgutz/ansi"))
1507 (home-page "https://github.com/mgutz/ansi")
1508 (synopsis "Small, fast library to create ANSI colored strings and codes")
1509 (description "This package provides @code{ansi}, a Go module that can
1510generate ANSI colored strings.")
1511 (license license:expat))))
e25ddef5
PN
1512
1513(define-public go-github-com-aarzilli-golua
1514 (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d")
1515 (revision "0"))
1516 (package
1517 (name "go-github-com-aarzilli-golua")
1518 (version (git-version "0.0.0" revision commit))
1519 (source
1520 (origin
1521 (method git-fetch)
1522 (uri (git-reference
1523 (url
1524 "https://github.com/aarzilli/golua")
1525 (commit commit)))
1526 (file-name (git-file-name name version))
1527 (sha256
1528 (base32
1529 "1d9hr29i36cza98afj3g6rs3l7xbkprwzz0blcxsr9dd7nak20di"))))
1530 (build-system go-build-system)
5c475841
PN
1531 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
1532 ;; when this package required as input for another one, it will have to
1533 ;; be built again. Thus its CGO requirements must be made available in
1534 ;; the environment, that is, they must be propagated.
1535 (propagated-inputs
e25ddef5
PN
1536 `(("lua" ,lua)))
1537 (arguments
1538 `(#:unpack-path "github.com/aarzilli/golua"
1539 #:import-path "github.com/aarzilli/golua/lua"
1540 #:phases
1541 (modify-phases %standard-phases
5c475841
PN
1542 ;; While it's possible to fix the CGO_LDFLAGS with the "-tags"
1543 ;; command line argument, go-1.10+ does not re-use the produced pkg
1544 ;; for dependencies, which means we would need to propagate the
1545 ;; same "-tags" argument to all golua referrers. A substitution is
1546 ;; more convenient here. We also need to propagate the lua
1547 ;; dependency to make it available to referrers.
1548 (add-after 'unpack 'fix-lua-ldflags
1549 (lambda _
1550 (substitute* "src/github.com/aarzilli/golua/lua/lua.go"
1551 (("#cgo linux,!llua,!luaa LDFLAGS: -llua5.3")
1552 "#cgo linux,!llua,!luaa LDFLAGS: -llua")))))))
e25ddef5
PN
1553 (home-page "https://github.com/aarzilli/golua")
1554 (synopsis "Go Bindings for the Lua C API")
1555 (description "This package provides @code{lua}, a Go module that can
1556run a Lua virtual machine.")
1557 (license license:expat))))
f25e3b39
PN
1558
1559(define-public go-gitlab-com-ambrevar-golua-unicode
1560 (let ((commit "97ce517e7a1fe2407a90c317a9c74b173d396144")
1561 (revision "0"))
1562 (package
1563 (name "go-gitlab-com-ambrevar-golua-unicode")
1564 (version (git-version "0.0.0" revision commit))
1565 (source
1566 (origin
1567 (method git-fetch)
1568 (uri (git-reference
1569 (url
1570 "https://gitlab.com/ambrevar/golua")
1571 (commit commit)))
1572 (file-name (git-file-name name version))
1573 (sha256
1574 (base32
1575 "1izcp7p8nagjwqd13shb0020w7xhppib1a3glw2d1468bflhksnm"))))
1576 (build-system go-build-system)
1577 (native-inputs
1578 `(("lua" ,lua)
1579 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
1580 (arguments
1581 `(#:unpack-path "gitlab.com/ambrevar/golua"
1582 #:import-path "gitlab.com/ambrevar/golua/unicode"
1583 #:phases
1584 (modify-phases %standard-phases
1585 (replace 'check
1586 (lambda* (#:key import-path #:allow-other-keys)
1587 (setenv "USER" "homeless-dude")
1588 (invoke "go" "test" import-path))))))
1589 (home-page "https://gitlab.com/ambrevar/golua")
1590 (synopsis "Add Unicode support to Golua")
1591 (description "This extension to Arzilli's Golua adds Unicode support to
1592all functions from the Lua string library. Lua patterns are replaced by Go
1593regexps. This breaks compatibility with Lua, but Unicode support breaks it
1594anyways and Go regexps are more powerful.")
1595 (license license:expat))))
b4d1440f
PN
1596
1597(define-public go-github-com-yookoala-realpath
1598 (let ((commit "d19ef9c409d9817c1e685775e53d361b03eabbc8")
1599 (revision "0"))
1600 (package
1601 (name "go-github-com-yookoala-realpath")
1602 (version (git-version "0.0.0" revision commit))
1603 (source
1604 (origin
1605 (method git-fetch)
1606 (uri (git-reference
1607 (url
1608 "https://github.com/yookoala/realpath")
1609 (commit commit)))
1610 (file-name (git-file-name name version))
1611 (sha256
1612 (base32
1613 "0qvz1dcdldf53rq69fli76z5k1vr7prx9ds1d5rpzgs68kwn40nw"))))
1614 (build-system go-build-system)
1615 (arguments
1616 `(#:import-path "github.com/yookoala/realpath"))
1617 (home-page "https://github.com/yookoala/realpath")
1618 (synopsis "@code{realpath} for Golang")
1619 (description "This package provides @code{realpath}, a Go module that
1620when provided with a valid relative path / alias path, it will return you with
1621a string of its real absolute path in the system.")
0e11f5da 1622 (license license:expat))))
54b83f0e
PN
1623
1624(define-public go-gitlab-com-ambrevar-damerau
1625 (let ((commit "883829e1f25fad54015772ea663e69017cf22352")
1626 (revision "0"))
1627 (package
1628 (name "go-gitlab-com-ambrevar-damerau")
1629 (version (git-version "0.0.0" revision commit))
1630 (source
1631 (origin
1632 (method git-fetch)
1633 (uri (git-reference
1634 (url
1635 "https://gitlab.com/ambrevar/damerau")
1636 (commit commit)))
1637 (file-name (git-file-name name version))
1638 (sha256
1639 (base32
1640 "1b9p8fypc914ij1afn6ir346zsgfqrc5mqc1k3d53n4snypq27qv"))))
1641 (build-system go-build-system)
1642 (arguments
1643 `(#:import-path "gitlab.com/ambrevar/damerau"))
1644 (home-page "https://gitlab.com/ambrevar/damerau")
1645 (synopsis "Damerau-Levenshtein distance for Golang")
1646 (description "This is a spelling corrector implementing the
1647Damerau-Levenshtein distance. Takes a string value input from the user.
1648Looks for an identical word on a list of words, if none is found, look for a
1649similar word.")
1650 (license license:expat))))
c4962817
PN
1651
1652(define-public go-github-com-stevedonovan-luar
1653 (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
1654 (revision "0"))
1655 (package
1656 (name "go-github-com-stevedonovan-luar")
1657 (version (git-version "0.0.0" revision commit))
1658 (source
1659 (origin
1660 (method git-fetch)
1661 (uri (git-reference
1662 (url
1663 "https://github.com/stevedonovan/luar")
1664 (commit commit)))
1665 (file-name (git-file-name name version))
1666 (sha256
1667 (base32
1668 "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
1669 (build-system go-build-system)
1670 (native-inputs
1671 `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
1672 (arguments
1673 `(#:tests? #f ; Upstream tests are broken.
1674 #:import-path "github.com/stevedonovan/luar"))
1675 (home-page "https://github.com/stevedonovan/luar")
1676 (synopsis "Lua reflection bindings for Go")
1677 (description "Luar is designed to make using Lua from Go more
1678convenient. Go structs, slices and maps can be automatically converted to Lua
1679tables and vice-versa. The resulting conversion can either be a copy or a
1680proxy. In the latter case, any change made to the result will reflect on the
1681source.
1682
1683Any Go function can be made available to Lua scripts, without having to write
1684C-style wrappers.
1685
1686Luar support cyclic structures (lists, etc.).
1687
1688User-defined types can be made available to Lua as well: their exported
1689methods can be called and usual operations such as indexing or arithmetic can
1690be performed.")
1691 (license license:expat))))
bc3138d2 1692
9630ae34
PN
1693(define-public go-github-com-michiwend-golang-pretty
1694 (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4")
1695 (revision "0"))
1696 (package
1697 (name "go-github-com-michiwend-golang-pretty")
1698 (version (git-version "0.0.0" revision commit))
1699 (source
1700 (origin
1701 (method git-fetch)
1702 (uri (git-reference
1703 (url
1704 "https://github.com/michiwend/golang-pretty")
1705 (commit commit)))
1706 (file-name (git-file-name name version))
1707 (sha256
1708 (base32
1709 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4"))))
1710 (build-system go-build-system)
1711 (native-inputs
1712 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
1713 (arguments
1714 `(#:tests? #f ; Upstream tests seem to be broken.
1715 #:import-path "github.com/michiwend/golang-pretty"))
1716 (home-page "https://github.com/michiwend/golang-pretty")
1717 (synopsis "Pretty printing for Go values")
1718 (description "Package @code{pretty} provides pretty-printing for Go
1719values. This is useful during debugging, to avoid wrapping long output lines
1720in the terminal.
1721
1722It provides a function, @code{Formatter}, that can be used with any function
1723that accepts a format string. It also provides convenience wrappers for
1724functions in packages @code{fmt} and @code{log}.")
1725 (license license:expat))))
62879d22
PN
1726
1727(define-public go-github-com-michiwend-gomusicbrainz
1728 (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d")
1729 (revision "0"))
1730 (package
1731 (name "go-github-com-michiwend-gomusicbrainz")
1732 (version (git-version "0.0.0" revision commit))
1733 (source
1734 (origin
1735 (method git-fetch)
1736 (uri (git-reference
1737 (url
1738 "https://github.com/michiwend/gomusicbrainz")
1739 (commit commit)))
1740 (file-name (git-file-name name version))
1741 (sha256
1742 (base32
1743 "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn"))))
1744 (build-system go-build-system)
1745 (native-inputs
1746 `(("go-github-com-michiwend-golang-pretty" ,go-github-com-michiwend-golang-pretty)
1747 ("go-github-com-kr-text" ,go-github-com-kr-text)))
1748 (arguments
1749 `(#:import-path "github.com/michiwend/gomusicbrainz"))
1750 (home-page "https://github.com/michiwend/gomusicbrainz")
1751 (synopsis "MusicBrainz WS2 client library for Golang")
1752 (description "Currently GoMusicBrainz provides methods to perform search
1753and lookup requests. Browse requests are not supported yet.")
1754 (license license:expat))))
53182924
PN
1755
1756(define-public go-github-com-wtolson-go-taglib
1757 (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
1758 (revision "0"))
1759 (package
1760 (name "go-github-com-wtolson-go-taglib")
1761 (version (git-version "0.0.0" revision commit))
1762 (source
1763 (origin
1764 (method git-fetch)
1765 (uri (git-reference
1766 (url
1767 "https://github.com/wtolson/go-taglib")
1768 (commit commit)))
1769 (file-name (git-file-name name version))
1770 (sha256
1771 (base32
1772 "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2"))))
1773 (build-system go-build-system)
46a4ae22
PN
1774 ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
1775 ;; when this package required as input for another one, it will have to
1776 ;; be built again. Thus its CGO requirements must be made available in
1777 ;; the environment, that is, they must be propagated.
1778 (propagated-inputs
53182924
PN
1779 `(("pkg-config" ,pkg-config)
1780 ("taglib" ,taglib)))
1781 (arguments
46a4ae22 1782 `(#:import-path "github.com/wtolson/go-taglib"
e53f9ce2 1783 ;; Tests don't pass "vet" on Go since 1.11. See
46a4ae22
PN
1784 ;; https://github.com/wtolson/go-taglib/issues/12.
1785 #:phases
1786 (modify-phases %standard-phases
1787 (replace 'check
1788 (lambda* (#:key import-path #:allow-other-keys)
1789 (invoke "go" "test"
1790 "-vet=off"
1791 import-path))))))
53182924
PN
1792 (home-page "https://github.com/wtolson/go-taglib")
1793 (synopsis "Go wrapper for taglib")
1794 (description "Go wrapper for taglib")
1795 (license license:unlicense))))
5787e152 1796
5787e152 1797(define-public go-github-com-gogo-protobuf
2f9bbd8e
LF
1798 (package
1799 (name "go-github-com-gogo-protobuf")
1800 (version "1.2.1")
1801 (source (origin
1802 (method git-fetch)
1803 (uri (git-reference
1804 (url "https://github.com/gogo/protobuf")
1805 (commit (string-append "v" version))))
1806 (file-name (git-file-name name version))
1807 (sha256
1808 (base32
1809 "06yqa6h0kw3gr5pc3qmas7f7435a96zf7iw7p0l00r2hqf6fqq6m"))))
1810 (build-system go-build-system)
1811 (arguments
35defe61
LF
1812 `(#:import-path "github.com/gogo/protobuf"
1813 ; Source-only package
1814 #:tests? #f
1815 #:phases
1816 (modify-phases %standard-phases
1817 (delete 'build))))
2f9bbd8e
LF
1818 (synopsis "Protocol Buffers for Go with Gadgets")
1819 (description "Gogoprotobuf is a fork of golang/protobuf with extra code
5787e152
PN
1820generation features. This code generation is used to achieve:
1821@itemize
1822@item fast marshalling and unmarshalling
1823@item more canonical Go structures
1824@item goprotobuf compatibility
1825@item less typing by optionally generating extra helper code
1826@item peace of mind by optionally generating test and benchmark code
1827@item other serialization formats
1828@end itemize")
2f9bbd8e
LF
1829 (home-page "https://github.com/gogo/protobuf")
1830 (license license:bsd-3)))
5787e152 1831
386bd7ba
PN
1832(define-public go-github-com-libp2p-go-flow-metrics
1833 (let ((commit "7e5a55af485341567f98d6847a373eb5ddcdcd43")
1834 (revision "0"))
1835 (package
1836 (name "go-github-com-libp2p-go-flow-metrics")
1837 (version (git-version "0.2.0" revision commit))
1838 (source
1839 (origin
1840 (method git-fetch)
1841 (uri (git-reference
1842 (url "https://github.com/libp2p/go-flow-metrics.git")
1843 (commit commit)))
1844 (file-name (git-file-name name version))
1845 (sha256
1846 (base32
1847 "1p87iyk6q6f3g3xkncssx400qlld8f2z93qiz8m1f97grfyhjif1"))))
1848 (build-system go-build-system)
1849 (arguments
1850 `(#:import-path "github.com/libp2p/go-flow-metrics"
1851 ;; TODO: Tests hang.
1852 #:tests? #f))
1853 (home-page
1854 "https://github.com/libp2p/go-flow-metrics")
1855 (synopsis "Simple library for tracking flow metrics")
1856 (description "A simple alternative to rcrowley's @command{go-metrics}
1857that's a lot faster (and only does simple bandwidth metrics).")
1858 (license license:expat))))
6a95e3a3
PN
1859
1860(define-public go-github-com-davecgh-go-spew
1861 (let ((commit "d8f796af33cc11cb798c1aaeb27a4ebc5099927d")
1862 (revision "0"))
1863 (package
1864 (name "go-github-com-davecgh-go-spew")
1865 (version (git-version "0.0.0" revision commit))
1866 (source
1867 (origin
1868 (method git-fetch)
1869 (uri (git-reference
1870 (url "https://github.com/davecgh/go-spew.git")
1871 (commit commit)))
1872 (file-name (git-file-name name version))
1873 (sha256
1874 (base32
1875 "19z27f306fpsrjdvkzd61w1bdazcdbczjyjck177g33iklinhpvx"))))
1876 (build-system go-build-system)
1877 (arguments
1878 '(#:unpack-path "github.com/davecgh/go-spew"
1879 #:import-path "github.com/davecgh/go-spew/spew"))
1880 (home-page "https://github.com/davecgh/go-spew")
1881 (synopsis "Deep pretty printer for Go data structures to aid in debugging")
1882 (description "Package @command{spew} implements a deep pretty printer
1883for Go data structures to aid in debugging.
1884
1885A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
1886
1887@itemize
1888@item Pointers are dereferenced and followed.
1889@item Circular data structures are detected and handled properly.
1890@item Custom Stringer/error interfaces are optionally invoked, including on
1891unexported types.
1892@item Custom types which only implement the Stringer/error interfaces via a
1893pointer receiver are optionally invoked when passing non-pointer variables.
1894@item Byte arrays and slices are dumped like the hexdump -C command which
1895includes offsets, byte values in hex, and ASCII output (only when using Dump
1896style).
1897@end itemize\n")
1898 (license license:isc))))
171c3259
PN
1899
1900(define-public go-github-com-btcsuite-btclog
1901 (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a")
1902 (revision "0"))
1903 (package
1904 (name "go-github-com-btcsuite-btclog")
1905 (version (git-version "0.0.3" revision commit))
1906 (source
1907 (origin
1908 (method git-fetch)
1909 (uri (git-reference
1910 (url "https://github.com/btcsuite/btclog.git")
1911 (commit commit)))
1912 (file-name (git-file-name name version))
1913 (sha256
1914 (base32
1915 "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk"))))
1916 (build-system go-build-system)
1917 (arguments
1918 '(#:import-path "github.com/btcsuite/btclog"))
1919 (home-page "https://github.com/btcsuite/btclog")
1920 (synopsis "Subsystem aware logger for Go")
1921 (description "Package @command{btclog} defines a logger interface and
1922provides a default implementation of a subsystem-aware leveled logger
1923implementing the same interface.")
1924 (license license:isc))))
d5599afa
PN
1925
1926(define-public go-github-com-btcsuite-btcd-btcec
1927 (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0")
1928 (revision "0"))
1929 (package
1930 (name "go-github-com-btcsuite-btcd-btcec")
1931 (version (git-version "0.12.0-beta" revision commit))
1932 (source
1933 (origin
1934 (method git-fetch)
1935 (uri (git-reference
1936 (url "https://github.com/btcsuite/btcd.git")
1937 (commit commit)))
1938 (file-name (git-file-name name version))
1939 (sha256
1940 (base32
1941 "04s92gsy71w1jirlr5lkk9y6r5cparbas7nmf6ywbp7kq7fn8ajn"))))
1942 (build-system go-build-system)
1943 (arguments
1944 '(#:unpack-path "github.com/btcsuite/btcd"
1945 #:import-path "github.com/btcsuite/btcd/btcec"))
1946 (native-inputs
1947 `(("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))
1948 (home-page "https://github.com/btcsuite/btcd")
1949 (synopsis "Elliptic curve cryptography to work with Bitcoin")
1950 (description "Package @command{btcec} implements elliptic curve
1951cryptography needed for working with Bitcoin (secp256k1 only for now). It is
1952designed so that it may be used with the standard crypto/ecdsa packages
1953provided with Go. A comprehensive suite of test is provided to ensure proper
1954functionality. Package @command{btcec} was originally based on work from
1955ThePiachu which is licensed under the same terms as Go, but it has
2ec41781 1956significantly diverged since then. The @command{btcsuite} developers original
d5599afa
PN
1957is licensed under the liberal ISC license.
1958
1959Although this package was primarily written for btcd, it has intentionally
1960been designed so it can be used as a standalone package for any projects
1961needing to use secp256k1 elliptic curve cryptography.")
1962 (license license:isc))))
ff2d11c3
PN
1963
1964(define-public go-github-com-minio-sha256-simd
0c28ee8c
LF
1965 (let ((commit "cc1980cb03383b1d46f518232672584432d7532d")
1966 (revision "3"))
ff2d11c3
PN
1967 (package
1968 (name "go-github-com-minio-sha256-simd")
1969 (version (git-version "0.0.0" revision commit))
1970 (source
1971 (origin
1972 (method git-fetch)
1973 (uri (git-reference
1974 (url "https://github.com/minio/sha256-simd.git")
1975 (commit commit)))
1976 (file-name (git-file-name name version))
1977 (sha256
1978 (base32
0c28ee8c 1979 "04fp98nal0wsb26zwhw82spn5camxslc68g3xp8g4af9w6k9g31j"))))
ff2d11c3
PN
1980 (build-system go-build-system)
1981 (arguments
1982 '(#:import-path "github.com/minio/sha256-simd"))
1983 (home-page "https://github.com/minio/sha256-simd")
1984 (synopsis "Accelerate SHA256 computations in pure Go")
1985 (description "Accelerate SHA256 computations in pure Go using AVX512 and
1986AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x
1987improvement (over 3 GB/s per core) in comparison to AVX2.
1988
1989This package is designed as a replacement for @command{crypto/sha256}. For
1990Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also
1991supported). For ARM CPUs with the Cryptography Extensions, advantage is taken
1992of the SHA2 instructions resulting in a massive performance improvement.
1993
1994This package uses Golang assembly. The AVX512 version is based on the Intel's
1995\"multi-buffer crypto library for IPSec\" whereas the other Intel
1996implementations are described in \"Fast SHA-256 Implementations on Intel
1997Architecture Processors\" by J. Guilford et al.")
1998 (license license:asl2.0))))
71f36804
PN
1999
2000(define-public go-github-com-libp2p-go-libp2p-crypto
2001 (let ((commit "7240b40a3ddc47c4d17c15baabcbe45e5219171b")
2002 (revision "0"))
2003 (package
2004 (name "go-github-com-libp2p-go-libp2p-crypto")
2005 (version (git-version "2.0.1" revision commit))
2006 (source
2007 (origin
2008 (method git-fetch)
2009 (uri (git-reference
2010 (url "https://github.com/libp2p/go-libp2p-crypto.git")
2011 (commit commit)))
2012 (file-name (git-file-name name version))
2013 (sha256
2014 (base32
2015 "0qwpy57qv5143l9dlfwfvpqsxdd2i4zwnawx1w4pmgxxim3nw1wb"))))
2016 (build-system go-build-system)
2017 (arguments
2018 '(#:import-path "github.com/libp2p/go-libp2p-crypto"))
2019 (native-inputs
561d391b 2020 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
71f36804 2021 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
35defe61 2022 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
71f36804
PN
2023 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)))
2024 (home-page
2025 "https://github.com/libp2p/go-libp2p-crypto")
2026 (synopsis "Various cryptographic utilities used by IPFS")
2027 (description "Various cryptographic utilities used by IPFS")
2028 (license license:expat))))
15272a50
PN
2029
2030(define-public go-github-com-mr-tron-base58
2031 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312")
2032 (revision "0"))
2033 (package
2034 (name "go-github-com-mr-tron-base58")
2035 (version (git-version "1.1.0" revision commit))
2036 (source
2037 (origin
2038 (method git-fetch)
2039 (uri (git-reference
2040 (url "https://github.com/mr-tron/base58.git")
2041 (commit commit)))
2042 (file-name (git-file-name name version))
2043 (sha256
2044 (base32
2045 "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa"))))
2046 (build-system go-build-system)
2047 (arguments
2048 `(#:unpack-path "github.com/mr-tron/base58"
2049 #:import-path "github.com/mr-tron/base58/base58"))
2050 (home-page "https://github.com/mr-tron/base58")
2051 (synopsis "Fast implementation of base58 encoding on Golang")
2052 (description "Fast implementation of base58 encoding on Golang. A
2053trivial @command{big.Int} encoding benchmark results in 6 times faster
2054encoding and 8 times faster decoding.")
2055 (license license:expat))))
27d59d8b
PN
2056
2057(define-public go-github-com-gxed-hashland-keccakpg
2058 (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8")
2059 (revision "0"))
2060 (package
2061 (name "go-github-com-gxed-hashland-keccakpg")
2062 (version (git-version "0.0.0" revision commit))
2063 (source
2064 (origin
2065 (method git-fetch)
2066 (uri (git-reference
2067 (url "https://github.com/gxed/hashland.git")
2068 (commit commit)))
2069 (file-name (git-file-name name version))
2070 (sha256
2071 (base32
2072 "1q23y4lacsz46k9gmgfw4iwwydw36j2601rbidmmswl94grpc386"))))
2073 (build-system go-build-system)
2074 (arguments
2075 '(#:unpack-path "github.com/gxed/hashland"
2076 #:import-path "github.com/gxed/hashland/keccakpg"))
2077 (home-page "https://github.com/gxed/hashland")
2078 (synopsis "Implements the Keccak (SHA-3) hash algorithm in Go")
2079 (description "Package @command{keccak} implements the Keccak (SHA-3)
2080hash algorithm. See http://keccak.noekeon.org.")
2081 (license license:expat))))
90f2a848
PN
2082
2083(define-public go-github-com-minio-blake2b-simd
2084 (let ((commit "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4")
2085 (revision "0"))
2086 (package
2087 (name "go-github-com-minio-blake2b-simd")
2088 (version (git-version "0.0.0" revision commit))
2089 (source
2090 (origin
2091 (method git-fetch)
2092 (uri (git-reference
2093 (url "https://github.com/minio/blake2b-simd.git")
2094 (commit commit)))
2095 (file-name (git-file-name name version))
2096 (sha256
2097 (base32
2098 "0b6jbnj62c0gmmfd4zdmh8xbg01p80f13yygir9xprqkzk6fikmd"))))
2099 (build-system go-build-system)
2100 (arguments
2101 '(#:import-path "github.com/minio/blake2b-simd"))
2102 (home-page "https://github.com/minio/blake2b-simd")
2103 (synopsis "Fast hashing in pure Go of BLAKE2b with SIMD instructions")
2104 (description "This package was initially based on the pure go BLAKE2b
2105implementation of Dmitry Chestnykh and merged with the (cgo dependent) AVX
2106optimized BLAKE2 implementation (which in turn is based on the official
2107implementation. It does so by using Go's Assembler for amd64 architectures
2108with a golang only fallback for other architectures.
2109
2110In addition to AVX there is also support for AVX2 as well as SSE. Best
2111performance is obtained with AVX2 which gives roughly a 4X performance
2112increase approaching hashing speeds of 1GB/sec on a single core.")
2113 (license license:asl2.0))))
9a7f1575
PN
2114
2115(define-public go-github-com-spaolacci-murmur3
2116 (let ((commit "f09979ecbc725b9e6d41a297405f65e7e8804acc")
2117 (revision "0"))
2118 (package
2119 (name "go-github-com-spaolacci-murmur3")
2120 (version (git-version "1.1" revision commit))
2121 (source
2122 (origin
2123 (method git-fetch)
2124 (uri (git-reference
2125 (url "https://github.com/spaolacci/murmur3.git")
2126 (commit commit)))
2127 (file-name (git-file-name name version))
2128 (sha256
2129 (base32
2130 "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25"))))
2131 (build-system go-build-system)
2132 (arguments
2133 '(#:import-path "github.com/spaolacci/murmur3"))
2134 (home-page "https://github.com/spaolacci/murmur3")
2135 (synopsis "Native MurmurHash3 Go implementation")
2136 (description "Native Go implementation of Austin Appleby's third
2137MurmurHash revision (aka MurmurHash3).
2138
2139Reference algorithm has been slightly hacked as to support the streaming mode
2140required by Go's standard Hash interface.")
2141 (license license:bsd-3))))
2e42e587
PN
2142
2143(define-public go-github-com-multiformats-go-multihash
2144 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
2145 (revision "0"))
2146 (package
2147 (name "go-github-com-multiformats-go-multihash")
2148 (version (git-version "1.0.8" revision commit))
2149 (source
2150 (origin
2151 (method git-fetch)
2152 (uri (git-reference
2153 (url "https://github.com/multiformats/go-multihash.git")
2154 (commit commit)))
2155 (file-name (git-file-name name version))
2156 (sha256
2157 (base32
2158 "02wd9akrwy4y5m0nig9m24p14bjjgb4n1djydrq8cm4yhbvjrrk0"))))
2159 (build-system go-build-system)
2160 (arguments
2161 '(#:import-path "github.com/multiformats/go-multihash"))
2162 (native-inputs
2163 `(("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2164 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2165 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2166 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2167 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
561d391b 2168 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2e42e587
PN
2169 (home-page "https://github.com/multiformats/go-multihash")
2170 (synopsis "Multihash implementation in Go")
2171 (description "Multihash implementation in Go.")
2172 (license license:expat))))
1db1e3c7
PN
2173
2174(define-public go-github-com-libp2p-go-libp2p-peer
2175 (let ((commit "993d742bc29dcf4894b7730ba610fd78900be76c")
2176 (revision "0"))
2177 (package
2178 (name "go-github-com-libp2p-go-libp2p-peer")
2179 (version (git-version "2.3.8" revision commit))
2180 (source
2181 (origin
2182 (method git-fetch)
2183 (uri (git-reference
2184 (url "https://github.com/libp2p/go-libp2p-peer.git")
2185 (commit commit)))
2186 (file-name (git-file-name name version))
2187 (sha256
2188 (base32
2189 "1h96qjdi0i1wbr0jliap2903mycphas3ny0zdrm77yca9plcnphh"))))
2190 (build-system go-build-system)
2191 (arguments
2192 '(#:import-path "github.com/libp2p/go-libp2p-peer"))
2193 (native-inputs
2194 `(("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
35defe61 2195 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
1db1e3c7
PN
2196 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2197 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2198 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
2199 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2200 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2201 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2202 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
561d391b 2203 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
1db1e3c7
PN
2204 (home-page "https://github.com/libp2p/go-libp2p-peer")
2205 (synopsis "PKI based identities for use in go-libp2p")
2206 (description "PKI based identities for use in @command{go-libp2p}.")
2207 (license license:expat))))
43a5c177
PN
2208
2209(define-public go-github-com-libp2p-go-libp2p-protocol
2210 (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b")
2211 (revision "0"))
2212 (package
2213 (name "go-github-com-libp2p-go-libp2p-protocol")
2214 (version (git-version "1.0.0" revision commit))
2215 (source
2216 (origin
2217 (method git-fetch)
2218 (uri (git-reference
2219 (url "https://github.com/libp2p/go-libp2p-protocol.git")
2220 (commit commit)))
2221 (file-name (git-file-name name version))
2222 (sha256
2223 (base32
2224 "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld"))))
2225 (build-system go-build-system)
2226 (arguments
2227 '(#:import-path
2228 "github.com/libp2p/go-libp2p-protocol"))
2229 (home-page "https://github.com/libp2p/go-libp2p-protocol")
2230 (synopsis "Type for protocol strings in Golang")
2231 (description "Just a type for protocol strings. Nothing more.")
2232 (license license:expat))))
77d8a917
PN
2233
2234(define-public go-github-com-libp2p-go-libp2p-metrics
2235 (let ((commit "a10ff6e75dae3c868023867e8caa534a04bdc624")
2236 (revision "0"))
2237 (package
2238 (name "go-github-com-libp2p-go-libp2p-metrics")
2239 (version (git-version "2.1.6" revision commit))
2240 (source
2241 (origin
2242 (method git-fetch)
2243 (uri (git-reference
2244 (url "https://github.com/libp2p/go-libp2p-metrics.git")
2245 (commit commit)))
2246 (file-name (git-file-name name version))
2247 (sha256
2248 (base32
2249 "05wy0cq4h6yg9bzgapcvm2criwriicbswx80ma82gyn4a9fdrk8m"))))
2250 (build-system go-build-system)
2251 (arguments
2252 '(#:import-path "github.com/libp2p/go-libp2p-metrics"))
2253 (native-inputs
2254 `(("go-github-com-libp2p-go-flow-metrics" ,go-github-com-libp2p-go-flow-metrics)
2255 ("go-github-com-libp2p-go-libp2p-peer" ,go-github-com-libp2p-go-libp2p-peer)
2256 ("go-github-com-libp2p-go-libp2p-protocol" ,go-github-com-libp2p-go-libp2p-protocol)
2257 ("go-github-com-libp2p-go-libp2p-crypto" ,go-github-com-libp2p-go-libp2p-crypto)
2258 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2259 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2260 ("go-github-com-btcsuite-btcd-btcec" ,go-github-com-btcsuite-btcd-btcec)
35defe61 2261 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
77d8a917
PN
2262 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2263 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2264 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2265 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
561d391b 2266 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
77d8a917
PN
2267 (home-page "https://github.com/libp2p/go-libp2p-metrics")
2268 (synopsis "Connection wrapper for go-libp2p that provides bandwidth metrics")
2269 (description "A connection wrapper for @command{go-libp2p} that provides bandwidth
2270statistics for wrapped connections.")
2271 (license license:expat))))
8cb91281
PN
2272
2273(define-public go-github-com-mitchellh-go-homedir
2274 (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4")
2275 (revision "0"))
2276 (package
2277 (name "go-github-com-mitchellh-go-homedir")
2278 (version (git-version "1.0.0" revision commit))
2279 (source
2280 (origin
2281 (method git-fetch)
2282 (uri (git-reference
2283 (url "https://github.com/mitchellh/go-homedir.git")
2284 (commit commit)))
2285 (file-name (git-file-name name version))
2286 (sha256
2287 (base32
2288 "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq"))))
2289 (build-system go-build-system)
2290 (arguments
2291 (quote (#:import-path "github.com/mitchellh/go-homedir"
2292 ;; TODO: Tests fail because it tries to access home.
2293 #:tests? #f)))
2294 (home-page "https://github.com/mitchellh/go-homedir")
2295 (synopsis "Go library for detecting and expanding the user's home directory without cgo")
2296 (description "This is a Go library for detecting the user's home
2297directory without the use of @command{cgo}, so the library can be used in
2298cross-compilation environments.
2299
2300Usage is simple, just call homedir.Dir() to get the home directory for a user,
2301and homedir.Expand() to expand the @command{~} in a path to the home
2302directory.
2303
2304Why not just use @command{os/user}? The built-in @command{os/user} package
2305requires cgo on Darwin systems. This means that any Go code that uses that
2306package cannot cross compile. But 99% of the time the use for
2307@command{os/user} is just to retrieve the home directory, which we can do for
2308the current user without cgo. This library does that, enabling
2309cross-compilation.")
2310 (license license:expat))))
e53121b3
PN
2311
2312(define-public go-github-com-multiformats-go-multiaddr
2313 (let ((commit "fe1c46f8be5af4aff4db286e08839295bd922efb")
2314 (revision "0"))
2315 (package
2316 (name "go-github-com-multiformats-go-multiaddr")
2317 (version (git-version "1.3.0" revision commit))
2318 (source
2319 (origin
2320 (method git-fetch)
2321 (uri (git-reference
2322 (url "https://github.com/multiformats/go-multiaddr.git")
2323 (commit commit)))
2324 (file-name (git-file-name name version))
2325 (sha256
2326 (base32
2327 "0p5f8h098a4yjjmzsgqs7vhx1iqifb8izwg3559cr4h7clkpzznh"))))
2328 (build-system go-build-system)
2329 (arguments
2330 '(#:import-path
2331 "github.com/multiformats/go-multiaddr"))
2332 (native-inputs
2333 `(("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2334 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2335 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2336 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2337 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2338 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
561d391b 2339 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
e53121b3
PN
2340 (home-page "https://github.com/multiformats/go-multiaddr")
2341 (synopsis "Composable and future-proof network addresses")
2342 (description "Multiaddr is a standard way to represent addresses that
2343does the following:
2344
2345@itemize
2346@item Support any standard network protocols.
2347@item Self-describe (include protocols).
2348@item Have a binary packed format.
2349@item Have a nice string representation.
2350@item Encapsulate well.
2351@end itemize\n")
2352 (license license:expat))))
66fb6e29
PN
2353
2354(define-public go-github-com-multiformats-go-multiaddr-net
2355 (let ((commit "1cb9a0e8a6de3c8a10f6cee60d01d793603c4f7e")
2356 (revision "0"))
2357 (package
2358 (name "go-github-com-multiformats-go-multiaddr-net")
2359 (version (git-version "1.6.3" revision commit))
2360 (source
2361 (origin
2362 (method git-fetch)
2363 (uri (git-reference
2364 (url "https://github.com/multiformats/go-multiaddr-net.git")
2365 (commit commit)))
2366 (file-name (git-file-name name version))
2367 (sha256
2368 (base32
2369 "1ypgi47xdz3bh8lh7f8cmk7w3ql9g4izx5l3kzdg9gda1xn5zxq3"))))
2370 (build-system go-build-system)
2371 (arguments
2372 (quote (#:import-path "github.com/multiformats/go-multiaddr-net"
2373 ;; TODO: Tests fail because they try to access the network.
2374 #:tests? #f)))
2375 (native-inputs
2376 `(("go-github-com-multiformats-go-multiaddr" ,go-github-com-multiformats-go-multiaddr)
2377 ("go-github-com-multiformats-go-multihash" ,go-github-com-multiformats-go-multihash)
2378 ("go-github-com-gxed-hashland-keccakpg" ,go-github-com-gxed-hashland-keccakpg)
2379 ("go-github-com-minio-blake2b-simd" ,go-github-com-minio-blake2b-simd)
2380 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
2381 ("go-github-com-mr-tron-base58" ,go-github-com-mr-tron-base58)
2382 ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
561d391b 2383 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
66fb6e29
PN
2384 (home-page "https://github.com/multiformats/go-multiaddr-net")
2385 (synopsis "Multiaddress net tools")
2386 (description "This package provides Multiaddr specific versions of
2387common functions in stdlib's @command{net} package. This means wrappers of
2388standard net symbols like @command{net.Dial} and @command{net.Listen}, as well
2389as conversion to and from @command{net.Addr}.")
2390 (license license:expat))))
38d346dc
PN
2391
2392(define-public go-github-com-whyrusleeping-tar-utils
2393 (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc")
2394 (revision "0"))
2395 (package
2396 (name "go-github-com-whyrusleeping-tar-utils")
2397 (version (git-version "0.0.0" revision commit))
2398 (source
2399 (origin
2400 (method git-fetch)
2401 (uri (git-reference
2402 (url "https://github.com/whyrusleeping/tar-utils.git")
2403 (commit commit)))
2404 (file-name (git-file-name name version))
2405 (sha256
2406 (base32
2407 "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s"))))
2408 (build-system go-build-system)
2409 (arguments
2410 '(#:import-path
2411 "github.com/whyrusleeping/tar-utils"))
2412 (home-page "https://github.com/whyrusleeping/tar-utils")
2413 (synopsis "Tar utilities extracted from go-ipfs codebase")
2414 (description "Tar utilities extracted from @command{go-ipfs} codebase.")
2415 (license license:expat))))
ad8d4637
PN
2416
2417(define-public go-github-com-cheekybits-is
2418 (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
2419 (revision "0"))
2420 (package
2421 (name "go-github-com-cheekybits-is")
2422 (version (git-version "0.0.0" revision commit))
2423 (source
2424 (origin
2425 (method git-fetch)
2426 (uri (git-reference
2427 (url "https://github.com/cheekybits/is.git")
2428 (commit commit)))
2429 (file-name (git-file-name name version))
2430 (sha256
2431 (base32
2432 "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d"))))
2433 (build-system go-build-system)
2434 (arguments
2435 '(#:import-path "github.com/cheekybits/is"))
2436 (home-page "https://github.com/cheekybits/is")
2437 (synopsis "Mini testing helper for Go")
2438 (description "A mini testing helper for Go.
2439
2440@itemize
2441@item It has a simple interface (@command{is.OK} and @command{is.Equal}).
2442@item It plugs into existing Go toolchain (uses @command{testing.T}).
2443@item It's obvious for newcomers.
2444@item It also gives you @command{is.Panic} and @command{is.PanicWith} helpers
2445- because testing panics is ugly.
2446@end itemize\n")
2447 (license license:expat))))
20f48e4b
PN
2448
2449(define-public go-github-com-sabhiram-go-gitignore
2450 (let ((commit "d3107576ba9425fc1c85f4b3569c4631b805a02e")
2451 (revision "0"))
2452 (package
2453 (name "go-github-com-sabhiram-go-gitignore")
2454 (version (git-version "1.0.2" revision commit))
2455 (source
2456 (origin
2457 (method git-fetch)
2458 (uri (git-reference
2459 (url "https://github.com/sabhiram/go-gitignore.git")
2460 (commit commit)))
2461 (file-name (git-file-name name version))
2462 (sha256
2463 (base32
2464 "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l"))))
2465 (build-system go-build-system)
2466 (arguments
2467 '(#:import-path
2468 "github.com/sabhiram/go-gitignore"))
2469 (native-inputs
2470 `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
2471 (home-page "https://github.com/sabhiram/go-gitignore")
2472 (synopsis "Gitignore parser for Go")
2473 (description "A @command{.gitignore} parser for Go.")
2474 (license license:expat))))
b5bb0b50
PN
2475
2476(define-public go-github-com-urfave-cli
a8ad05d4
LF
2477 (package
2478 (name "go-github-com-urfave-cli")
2479 (version "1.21.0")
2480 (source
2481 (origin
2482 (method git-fetch)
2483 (uri (git-reference
2484 (url "https://github.com/urfave/cli.git")
2485 (commit (string-append "v" version))))
2486 (file-name (git-file-name name version))
2487 (sha256
2488 (base32
2489 "104jldhxn6d97l5vsbsl0q8hgy1bxrahbr6dbfqrlppva51jmydd"))))
2490 (build-system go-build-system)
2491 (arguments
2492 '(#:import-path "github.com/urfave/cli"))
2493 (home-page "https://github.com/urfave/cli")
2494 (synopsis "Simple, fast, and fun package for building command line apps in Go")
2495 (description "@command{cli} is a simple, fast, and fun package for
b5bb0b50
PN
2496building command line apps in Go. The goal is to enable developers to write
2497fast and distributable command line applications in an expressive way.")
a8ad05d4 2498 (license license:expat)))
7bd9020e
PN
2499
2500(define-public go-github-com-whyrusleeping-json-filter
2501 (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
2502 (revision "0"))
2503 (package
2504 (name "go-github-com-whyrusleeping-json-filter")
2505 (version (git-version "0.0.0" revision commit))
2506 (source
2507 (origin
2508 (method git-fetch)
2509 (uri (git-reference
2510 (url "https://github.com/whyrusleeping/json-filter.git")
2511 (commit commit)))
2512 (file-name (git-file-name name version))
2513 (sha256
2514 (base32
2515 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
2516 (build-system go-build-system)
2517 (arguments
2518 '(#:import-path
2519 "github.com/whyrusleeping/json-filter"))
2520 (home-page "https://github.com/whyrusleeping/json-filter")
2521 (synopsis "Library to query JSON objects marshalled into map[string]interface")
2522 (description "A library to query JSON objects marshalled into
2523@command{map[string]interface{}}.")
2524 (license license:expat))))
38566e97
PN
2525
2526(define-public go-github-com-whyrusleeping-progmeter
2527 (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04")
2528 (revision "0"))
2529 (package
2530 (name "go-github-com-whyrusleeping-progmeter")
2531 (version (git-version "0.0.0" revision commit))
2532 (source
2533 (origin
2534 (method git-fetch)
2535 (uri (git-reference
2536 (url "https://github.com/whyrusleeping/progmeter.git")
2537 (commit commit)))
2538 (file-name (git-file-name name version))
2539 (sha256
2540 (base32
2541 "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb"))))
2542 (build-system go-build-system)
2543 (arguments
2544 '(#:import-path
2545 "github.com/whyrusleeping/progmeter"))
2546 (home-page "https://github.com/whyrusleeping/progmeter")
2547 (synopsis "Progress meter for Go")
2548 (description "Progress meter for Go.")
2549 (license license:expat))))
56eb7bd3
PN
2550
2551(define-public go-github-com-whyrusleeping-stump
2552 (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5")
2553 (revision "0"))
2554 (package
2555 (name "go-github-com-whyrusleeping-stump")
2556 (version (git-version "0.0.0" revision commit))
2557 (source
2558 (origin
2559 (method git-fetch)
2560 (uri (git-reference
2561 (url "https://github.com/whyrusleeping/stump.git")
2562 (commit commit)))
2563 (file-name (git-file-name name version))
2564 (sha256
2565 (base32
2566 "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n"))))
2567 (build-system go-build-system)
2568 (arguments
2569 '(#:import-path "github.com/whyrusleeping/stump"))
2570 (home-page "https://github.com/whyrusleeping/stump")
2571 (synopsis "Very basic logging package for Go")
2572 (description "A simple log library, for when you don't really care to
2573have super fancy logs.")
2574 (license license:expat))))
5b6c3ad0
PN
2575
2576(define-public go-github-com-kr-fs
2577 (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba")
2578 (revision "0"))
2579 (package
2580 (name "go-github-com-kr-fs")
2581 (version (git-version "0.1.0" revision commit))
2582 (source
2583 (origin
2584 (method git-fetch)
2585 (uri (git-reference
2586 (url "https://github.com/kr/fs.git")
2587 (commit commit)))
2588 (file-name (git-file-name name version))
2589 (sha256
2590 (base32
2591 "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q"))))
2592 (build-system go-build-system)
2593 (arguments
2594 '(#:import-path "github.com/kr/fs"))
2595 (home-page "https://github.com/kr/fs")
52beae7b
TGR
2596 (synopsis "File-system-related functions for Go")
2597 (description
2598 "The fs package provides file-system-related Go functions.")
5b6c3ad0 2599 (license license:bsd-3))))
bc58bb9b
LF
2600
2601(define-public go-github-com-direnv-go-dotenv
2602 (let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
2603 (revision "0"))
2604 (package
2605 (name "go-github-com-direnv-go-dotenv")
2606 (version (git-version "0.0.0" revision commit))
2607 (source
2608 (origin
2609 (method git-fetch)
2610 (uri (git-reference
2611 (url "https://github.com/direnv/go-dotenv")
2612 (commit commit)))
2613 (file-name (git-file-name name version))
2614 (sha256
2615 (base32
2616 "00wn4fc2lma0csf6ryvlc6k9jbpbifm4n7i3kkd2xrfw5qlm29b6"))))
2617 (build-system go-build-system)
2618 (arguments
2619 '(#:import-path "github.com/direnv/go-dotenv"))
2620 (home-page "https://github.com/direnv/go-dotenv")
2621 (synopsis "Go dotenv parsing library")
2622 (description "This package provides a library for parsing the dotenv
2623format in Go.")
2624 (license license:expat))))
56f610f5 2625
aa413ff8
LF
2626(define-public go-github-com-kr-pretty
2627 (package
2628 (name "go-github-com-kr-pretty")
2629 (version "0.1.0")
2630 (source (origin
2631 (method git-fetch)
2632 (uri (git-reference
2633 (url "https://github.com/kr/pretty.git")
2634 (commit (string-append "v" version))))
2635 (file-name (git-file-name name version))
2636 (sha256
2637 (base32
2638 "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp"))))
2639 (build-system go-build-system)
2640 (propagated-inputs
2641 `(("go-github-com-kr-text" ,go-github-com-kr-text)))
2642 (arguments
2643 '(#:import-path "github.com/kr/pretty"))
2644 (synopsis "A pretty printer for Go values")
2645 (description "This package provides a pretty printer for Go values.")
2646 (home-page "https://github.com/kr/pretty")
2647 (license license:expat)))
2648
56f610f5
LF
2649(define-public go-github-com-kr-text
2650 (package
2651 (name "go-github-com-kr-text")
2652 (version "0.1.0")
2653 (source (origin
2654 (method git-fetch)
2655 (uri (git-reference
2656 (url "https://github.com/kr/text.git")
2657 (commit (string-append "v" version))))
2658 (file-name (git-file-name name version))
2659 (sha256
2660 (base32
2661 "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"))))
2662 (build-system go-build-system)
2663 (arguments
2664 '(#:import-path "github.com/kr/text"))
2665 (synopsis "Text formatting in Go")
2666 (description "This package provides a text formatting functions in Go.")
2667 (home-page "https://github.com/kr/text")
2668 (license license:expat)))
4ddf067f 2669
be42a38a
BL
2670(define-public go-golang-org-sql-mock
2671 (let ((commit "e98392b8111b45f8126e00af035a0dd95dc12e8b")
2672 (version "1.3.3")
2673 (revision "1"))
2674 (package
2675 (name "go-golang-org-sql-mock")
2676 (version (git-version version revision commit))
2677 (source (origin
2678 (method git-fetch)
2679 (uri (git-reference
2680 (url "https://github.com/DATA-DOG/go-sqlmock")
2681 (commit commit)))
2682 (file-name (git-file-name name version))
2683 (sha256
2684 (base32
2685 "033vv29g2wf6fd757ajfmha30bqin3b07377037zkl051mk6mghs"))))
2686 (build-system go-build-system)
2687 (arguments
2688 '(#:import-path "github.com/DATA-DOG/go-sqlmock"))
2689 (synopsis "Mock library implementing @code{sql/driver}")
2690 (description "This library simulates SQL-driver behavior in tests
2691without requiring a real database connection.")
2692 (home-page "https://github.com/DATA-DOG/go-sqlmock")
2693 (license license:expat))))
2694
a881a087
BL
2695(define-public go-golang-org-colorful
2696 (package
2697 (name "go-golang-org-colorful")
2698 (version "1.0.2")
2699 (source (origin
2700 (method git-fetch)
2701 (uri (git-reference
2702 (url "https://github.com/lucasb-eyer/go-colorful")
2703 (commit (string-append "v" version))))
2704 (file-name (git-file-name name version))
2705 (sha256
2706 (base32
2707 "0fig06880bvk1l92j4127v4x9sar4ds7ga8959gxxghb2w70b7l2"))))
2708 (build-system go-build-system)
2709 (arguments
2710 '(#:import-path "github.com/lucasb-eyer/go-colorful"))
2711 (native-inputs
2712 `(("go-golang-org-sql-mock" ,go-golang-org-sql-mock)))
2713 (synopsis "Convert between colorspaces and generate colors")
2714 (description "This package implements Go's @code{color.Color} interface
2715and provides a means of converting colors stored as RGB to various
2716colorspaces.")
2717 (home-page "https://github.com/lucasb-eyer/go-colorful")
2718 (license license:expat)))
2719
42a0cfee
BL
2720(define-public go-github-com-gdamore-encoding
2721 (package
2722 (name "go-github-com-gdamore-encoding")
2723 (version "1.0.0")
2724 (source
2725 (origin
2726 (method git-fetch)
2727 (uri (git-reference
2728 (url "https://github.com/gdamore/encoding")
2729 (commit (string-append "v" version))))
2730 (file-name (git-file-name name version))
2731 (sha256
2732 (base32
2733 "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9"))))
2734 (build-system go-build-system)
2735 (arguments
2736 '(#:import-path "github.com/gdamore/encoding"))
2737 (inputs
561d391b 2738 `(("go-golang-org-x-text" ,go-golang-org-x-text)))
42a0cfee
BL
2739 (home-page "https://github.com/gdamore/encoding")
2740 (synopsis "Provide encodings missing from Go")
2741 (description "This package provides useful encodings not included in the
2742standard @code{Text} package, including some for dealing with I/O streams from
2743non-UTF-friendly sources.")
2744 (license license:expat)))
2745
a6689b99
BL
2746(define-public go-github-com-gdamore-tcell
2747 (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e")
2748 (version "1.1.2")
2749 (revision "1"))
2750 (package
2751 (name "go-github-com-gdamore-tcell")
2752 (version (git-version version revision commit))
2753 (source
2754 (origin
2755 (method git-fetch)
2756 (uri (git-reference
2757 (url "https://github.com/gdamore/tcell")
2758 (commit commit)))
2759 (file-name (git-file-name name version))
2760 (sha256
2761 (base32
2762 "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d"))))
2763 (build-system go-build-system)
2764 (arguments
2765 `(#:import-path "github.com/gdamore/tcell"
2766 #:phases
2767 (modify-phases %standard-phases
2768 (add-before 'reset-gzip-timestamps 'make-files-writable
2769 (lambda* (#:key outputs #:allow-other-keys)
2770 ;; Make sure .gz files are writable so that the
2771 ;; 'reset-gzip-timestamps' phase can do its work.
2772 (let ((out (assoc-ref outputs "out")))
2773 (for-each make-file-writable
2774 (find-files out "\\.gz$"))
2775 #t))))))
2776 (inputs
2777 `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
2778 ("go-golang-org-colorful" ,go-golang-org-colorful)
561d391b 2779 ("go-golang-org-x-text" ,go-golang-org-x-text)
a6689b99
BL
2780 ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding)))
2781 (home-page "https://github.com/gdamore/tcell")
2782 (synopsis "Provide a cell-based view for text terminals")
2783 (description "This package includes a full parser and expander for
2784terminfo capability strings to avoid hard-coding escape strings for
2785formatting. It also favors portability, and includes support for all POSIX
2786systems.")
2787 (license license:expat))))
2788
f8157350
BL
2789(define-public go-github-com-mattn-go-shellwords
2790 (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2")
2791 (version "1.0.5")
2792 (revision "1"))
2793 (package
2794 (name "go-github-com-mattn-go-shellwords")
2795 (version (git-version version revision commit))
2796 (source
2797 (origin
2798 (method git-fetch)
2799 (uri (git-reference
2800 (url "https://github.com/mattn/go-shellwords")
2801 (commit commit)))
2802 (file-name (git-file-name name version))
2803 (sha256
2804 (base32
2805 "08zcgr1az1n8zaxzwdd205j86hczgyc52nxfnw5avpw7rrkf7v0d"))))
2806 (build-system go-build-system)
2807 (arguments
2808 `(#:import-path "github.com/mattn/go-shellwords"
2809 ;; TODO: can't make homeless-shelter:
2810 ;; go: disabling cache (/homeless-shelter/.cache/go-build) due to
2811 ;; initialization failure: mkdir /homeless-shelter: permission denied
2812
2813 ;; This doesn't seem to work:
2814
2815 ;; #:phases
2816 ;; (modify-phases %standard-phases
2817 ;; (replace 'check
2818 ;; (lambda* (#:key import-path #:allow-other-keys)
2819 ;; (setenv "HOME" "/tmp")
2820 ;; (invoke "go" "test" import-path))))
2821
2822 ;; TODO: There are also a couple of tests that have stymied Debian in
2823 ;; the past. They seem to work when run locally.
2824
2825 #:tests? #f
2826 ))
2827 (home-page "https://github.com/mattn/go-shellwords")
2828 (synopsis "Parse lines into shell words")
2829 (description "This package parses text into shell arguments. Based on
2830the @code{cpan} module @code{Parse::CommandLine}.")
2831 (license license:expat))))
2832
4ddf067f
GB
2833(define-public go-github-com-burntsushi-locker
2834 (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
2835 (revision "0"))
2836 (package
2837 (name "go-github-com-burntsushi-locker")
2838 (version (git-version "0.0.0" revision commit))
2839 (source
2840 (origin
2841 (method git-fetch)
2842 (uri (git-reference
2843 (url "https://github.com/BurntSushi/locker")
2844 (commit commit)))
2845 (file-name (git-file-name name version))
2846 (sha256
2847 (base32
2848 "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
2849 (build-system go-build-system)
2850 (arguments
2851 '(#:import-path "github.com/BurntSushi/locker"))
2852 (home-page "https://github.com/BurntSushi/locker")
2853 (synopsis "Manage named ReadWrite mutexes in Go")
2854 (description "Golang package for conveniently using named read/write
2855locks. These appear to be especially useful for synchronizing access to
2856session based information in web applications.
2857
2858The common use case is to use the package level functions, which use a package
2859level set of locks (safe to use from multiple goroutines
2860simultaneously). However, you may also create a new separate set of locks
2861test.
2862
2863All locks are implemented with read-write mutexes. To use them like a regular
2864mutex, simply ignore the RLock/RUnlock functions.")
2865 (license license:unlicense))))
a3b1dc49
LF
2866
2867(define-public go-github-com-marten-seemann-qtls
2868 (package
2869 (name "go-github-com-marten-seemann-qtls")
2870 (version "0.2.3")
2871 (source (origin
2872 (method git-fetch)
2873 (uri (git-reference
2874 (url "https://github.com/marten-seemann/qtls")
2875 (commit (string-append "v" version))))
2876 (file-name (git-file-name name version))
2877 (sha256
2878 (base32
2879 "0b9p7bwkm9hfg1mb565q4nw5k7xyks0z2xagz5fp95azy2psbnfg"))))
2880 (build-system go-build-system)
2881 (arguments
2882 '(#:import-path "github.com/marten-seemann/qtls"
2883 ;; The test suite requires networking.
2884 #:tests? #f))
2885 (propagated-inputs
2886 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
2887 (synopsis "TLS 1.3 with QUIC in Go")
2888 (description "This package provides @code{qtls}, a QUIC-capable variant of
2889the Go standard library's TLS 1.3 implementation.")
2890 (home-page "https://github.com/marten-seemann/qtls")
2891 (license license:bsd-3)))
8201afdf
LF
2892
2893(define-public go-github-com-cheekybits-genny
2894 (package
2895 (name "go-github-com-cheekybits-genny")
2896 (version "1.0.0")
2897 (source (origin
2898 (method git-fetch)
2899 (uri (git-reference
2900 (url "https://github.com/cheekybits/genny")
2901 (commit (string-append "v" version))))
2902 (file-name (git-file-name name version))
2903 (sha256
2904 (base32
2905 "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87"))))
2906 (build-system go-build-system)
2907 (arguments
2908 '(#:import-path "github.com/cheekybits/genny"))
2909 (propagated-inputs
2910 `(("go-golang-org-x-tools" ,go-golang-org-x-tools)))
2911 (synopsis "Generics for Go")
2912 (description "This package provides @code{genny}, a Go language
2913implementation of generics.")
2914 (home-page "https://github.com/cheekybits/genny/")
2915 (license license:expat)))
6d766bec
LF
2916
2917(define-public go-github-com-lucas-clemente-quic-go
2918 (package
2919 (name "go-github-com-lucas-clemente-quic-go")
2920 (version "0.11.2")
2921 (source (origin
2922 (method git-fetch)
2923 (uri (git-reference
2924 (url "https://github.com/lucas-clemente/quic-go")
2925 (commit (string-append "v" version))))
2926 (file-name (git-file-name name version))
2927 (sha256
2928 (base32
2929 "0gqm5mc8alg84ra7yxach34il1jvcij8f76qdqcahnd3d2nhjbia"))))
2930 (build-system go-build-system)
2931 (arguments
2932 '(#:import-path "github.com/lucas-clemente/quic-go"
2933 ;; XXX More packages required...
2934 #:tests? #f))
2935 (propagated-inputs
2936 `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
2937 ("go-github-com-cheekybits-genny" ,go-github-com-cheekybits-genny)
2938 ("go-github-com-marten-seemann-qtls" ,go-github-com-marten-seemann-qtls)))
2939 (synopsis "QUIC in Go")
2940 (description "This package provides a Go language implementation of the QUIC
2941network protocol.")
2942 (home-page "https://github.com/lucas-clemente/quic-go")
2943 (license license:expat)))
2da5275f
LF
2944
2945(define-public go-github-com-pkg-errors
8c6be10a
LF
2946 (let ((commit "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7")
2947 (revision "0"))
2948 (package
2949 (name "go-github-com-pkg-errors")
2950 (version (git-version "0.8.1" revision commit))
2951 (source (origin
2952 (method git-fetch)
2953 (uri (git-reference
2954 (url "https://github.com/pkg/errors.git")
2955 (commit commit)))
2956 (file-name (git-file-name name version))
2957 (sha256
2958 (base32
2959 "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"))))
2960 (build-system go-build-system)
2961 (arguments
2962 `(#:import-path "github.com/pkg/errors"))
2963 (synopsis "Go error handling primitives")
2964 (description "This package provides @code{error}, which offers simple
2da5275f 2965error handling primitives in Go.")
8c6be10a
LF
2966 (home-page "https://github.com/pkg/errors")
2967 (license license:bsd-2))))
d0ced446
LF
2968
2969(define-public go-github-com-maruel-panicparse
2970 (package
2971 (name "go-github-com-maruel-panicparse")
e7189e0b 2972 (version "1.3.0")
d0ced446
LF
2973 (source (origin
2974 (method git-fetch)
2975 (uri (git-reference
2976 (url "https://github.com/maruel/panicparse")
2977 (commit (string-append "v" version))))
2978 (file-name (git-file-name name version))
2979 (sha256
2980 (base32
e7189e0b 2981 "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq"))))
d0ced446
LF
2982 (build-system go-build-system)
2983 (arguments
2984 '(#:import-path "github.com/maruel/panicparse"))
2985 (synopsis "Toolkit for parsing Go stack traces")
2986 (description "This package provides a toolkit for parsing Go language panic
2987stack traces. It simplifies the traces to make salient information more visible
2988and aid debugging.")
2989 (home-page "https://github.com/maruel/panicparse")
2990 (license license:asl2.0)))
e30bdd49
AI
2991
2992(define-public go-github-com-robfig-cron
2993 (package
2994 (name "go-github-com-robfig-cron")
2995 (version "3.0.0")
2996 (source
2997 (origin
2998 (method git-fetch)
2999 (uri (git-reference
3000 (url "https://github.com/robfig/cron")
3001 (commit (string-append "v" version))))
3002 (file-name (git-file-name name version))
3003 (sha256
3004 (base32
3005 "0bvq5gxkhyj21lq32nma23i4dpwp7bswnp2yks6372ilkcyisx2z"))))
3006 (build-system go-build-system)
3007 (arguments
3008 `(#:import-path "github.com/robfig/cron"))
3009 (home-page "https://godoc.org/github.com/robfig/cron")
3010 (synopsis "Cron library for Go")
3011 (description "This package provides a cron library for Go. It implements
3012a cron spec parser and job runner.")
3013 (license license:expat)))
9a2f2334
LF
3014
3015(define-public go-github-com-shirou-gopsutil
3016 (let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399")
3017 (revision "0"))
3018 (package
3019 (name "go-github-com-shirou-gopsutil")
3020 (version (git-version "v2.19.7" revision commit))
3021 (source (origin
3022 (method git-fetch)
3023 (uri (git-reference
3024 (url "https://github.com/shirou/gopsutil")
3025 (commit commit))) ; XXX
f1d4d79f 3026 (file-name (git-file-name name version))
9a2f2334
LF
3027 (sha256
3028 (base32
3029 "0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws"))))
3030 (build-system go-build-system)
3031 (arguments
3032 '(#:import-path "github.com/shirou/gopsutil"))
3033 (synopsis "Process and system monitoring in Go")
3034 (description "This package provides a library for retrieving information
3035on running processes and system utilization (CPU, memory, disks, network,
3036sensors).")
3037 (home-page "https://github.com/shirou/gopsutil")
3038 (license license:bsd-3))))