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