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