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