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