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