Commit | Line | Data |
---|---|---|
56a37713 LF |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2016 Petter <petter@mykolab.ch> | |
29519750 | 3 | ;;; Copyright © 2016, 2017, 2018, 2019 Leo Famulari <leo@famulari.name> |
56a37713 LF |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages syncthing) | |
21 | #:use-module (guix build-system go) | |
cca22eb3 | 22 | #:use-module (guix build-system trivial) |
56a37713 | 23 | #:use-module (guix packages) |
947453a8 | 24 | #:use-module (guix download) |
56a37713 | 25 | #:use-module (guix git-download) |
269d0858 | 26 | #:use-module (guix licenses) |
fd115bee | 27 | #:use-module (gnu packages) |
269d0858 | 28 | #:use-module (gnu packages golang)) |
56a37713 | 29 | |
947453a8 LF |
30 | (define-public syncthing |
31 | (package | |
32 | (name "syncthing") | |
61407649 | 33 | (version "1.1.4") |
947453a8 LF |
34 | (source (origin |
35 | (method url-fetch) | |
36 | (uri (string-append "https://github.com/syncthing/syncthing" | |
37 | "/releases/download/v" version | |
38 | "/syncthing-source-v" version ".tar.gz")) | |
39 | (sha256 | |
40 | (base32 | |
61407649 | 41 | "0pkb9vdb10lnlk6sgg6hxgkdjnvxx90cfdf8vgrc5sljzm5qhr6l")) |
21d06acd LF |
42 | (modules '((guix build utils))) |
43 | ;; Delete bundled ("vendored") free software source code. | |
44 | (snippet '(begin | |
45 | (delete-file-recursively "vendor") | |
46 | #t)))) | |
947453a8 | 47 | (build-system go-build-system) |
c330c27f LF |
48 | ;; The primary Syncthing executable goes to "out", while the auxiliary |
49 | ;; server programs and utility tools go to "utils". This reduces the size | |
50 | ;; of "out" by ~80 MiB. | |
51 | (outputs '("out" "utils")) | |
21d06acd LF |
52 | ;; When updating Syncthing, check 'go.mod' in the source distribution to |
53 | ;; ensure we are using the correct versions of these dependencies. | |
54 | (inputs | |
55 | `(("go-github-com-audriusbutkevicius-go-nat-pmp" | |
56 | ,go-github-com-audriusbutkevicius-go-nat-pmp) | |
57 | ("go-github-com-bkaradzic-go-lz4" ,go-github-com-bkaradzic-go-lz4) | |
58 | ("go-github-com-calmh-du" ,go-github-com-calmh-du) | |
59 | ("go-github-com-calmh-xdr" ,go-github-com-calmh-xdr) | |
60 | ("go-github-com-chmduquesne-rollinghash" | |
61 | ,go-github-com-chmduquesne-rollinghash) | |
62 | ("go-github-com-gobwas-glob" ,go-github-com-gobwas-glob) | |
63 | ("go-github-com-golang-groupcache-lru" | |
64 | ,go-github-com-golang-groupcache-lru) | |
65 | ("go-github-com-jackpal-gateway" ,go-github-com-jackpal-gateway) | |
66 | ("go-github-com-kballard-go-shellquote" | |
67 | ,go-github-com-kballard-go-shellquote) | |
68 | ("go-github-com-lib-pq" ,go-github-com-lib-pq) | |
69 | ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd) | |
70 | ("go-github-com-oschwald-geoip2-golang" | |
71 | ,go-github-com-oschwald-geoip2-golang) | |
72 | ("go-github-com-pkg-errors" ,go-github-com-pkg-errors) | |
73 | ("go-github-com-rcrowley-go-metrics" ,go-github-com-rcrowley-go-metrics) | |
74 | ("go-github-com-sasha-s-go-deadlock" ,go-github-com-sasha-s-go-deadlock) | |
75 | ("go-github-com-syncthing-notify" ,go-github-com-syncthing-notify) | |
76 | ("go-github-com-syndtr-goleveldb" ,go-github-com-syndtr-goleveldb) | |
77 | ("go-github-com-thejerf-suture" ,go-github-com-thejerf-suture) | |
78 | ("go-golang-org-x-time-rate" ,go-golang-org-x-time-rate) | |
79 | ("go-gopkg.in-ldap.v2" ,go-gopkg.in-ldap.v2) | |
80 | ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf) | |
81 | ("go-github-com-gogo-protobuf-gogoproto" | |
82 | ,go-github-com-gogo-protobuf-gogoproto) | |
83 | ("go-github-com-gogo-protobuf-protoc-gen-gogo" | |
84 | ,go-github-com-gogo-protobuf-protoc-gen-gogo) | |
85 | ("go-github-com-prometheus-client-golang-prometheus" | |
86 | ,go-github-com-prometheus-client-golang-prometheus) | |
87 | ("go-golang-org-x-net-bpf" ,go-golang-org-x-net-bpf) | |
88 | ("go-golang-org-x-net-internal-iana" ,go-golang-org-x-net-internal-iana) | |
89 | ("go-golang-org-x-net-internal-socket" | |
90 | ,go-golang-org-x-net-internal-socket) | |
91 | ("go-golang-org-x-net-internal-socks" | |
92 | ,go-golang-org-x-net-internal-socks) | |
93 | ("go-golang-org-x-net-ipv4" ,go-golang-org-x-net-ipv4) | |
94 | ("go-golang-org-x-net-ipv6" ,go-golang-org-x-net-ipv6) | |
95 | ("go-golang-org-x-net-proxy" ,go-golang-org-x-net-proxy) | |
96 | ("go-golang-org-x-text-unicode-norm" ,go-golang-org-x-text-unicode-norm) | |
97 | ("go-golang-org-x-text-transform" ,go-golang-org-x-text-transform) | |
98 | ("go-github-com-audriusbutkevicius-recli" | |
99 | ,go-github-com-audriusbutkevicius-recli) | |
100 | ("go-github-com-urfave-cli" ,go-github-com-urfave-cli) | |
101 | ("go-github-com-vitrun-qart-qr" ,go-github-com-vitrun-qart-qr) | |
102 | ("go-github-com-vitrun-qart-coding" ,go-github-com-vitrun-qart-coding) | |
103 | ("go-github-com-vitrun-qart-gf256" ,go-github-com-vitrun-qart-gf256) | |
104 | ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty) | |
105 | ("go-golang-org-x-crypto-bcrypt" ,go-golang-org-x-crypto-bcrypt) | |
106 | ("go-golang-org-x-crypto-blowfish" ,go-golang-org-x-crypto-blowfish) | |
107 | ("go-github-com-flynn-archive-go-shlex" | |
108 | ,go-github-com-flynn-archive-go-shlex) | |
109 | ||
110 | ;; For tests | |
111 | ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff))) | |
112 | ||
947453a8 LF |
113 | (arguments |
114 | `(#:import-path "github.com/syncthing/syncthing" | |
1899ef0b LF |
115 | ;; We don't need to install the source code for end-user applications. |
116 | #:install-source? #f | |
947453a8 LF |
117 | #:phases |
118 | (modify-phases %standard-phases | |
947453a8 LF |
119 | (add-before 'build 'increase-test-timeout |
120 | (lambda _ | |
121 | (substitute* "src/github.com/syncthing/syncthing/build.go" | |
7d15490c | 122 | (("120s") "999s")) |
947453a8 LF |
123 | #t)) |
124 | ||
125 | (replace 'build | |
c7c0b3a9 | 126 | (lambda _ |
947453a8 | 127 | (with-directory-excursion "src/github.com/syncthing/syncthing" |
1feaca62 | 128 | (invoke "go" "run" "build.go" "-no-upgrade")))) |
947453a8 LF |
129 | |
130 | (replace 'check | |
131 | (lambda _ | |
132 | (with-directory-excursion "src/github.com/syncthing/syncthing" | |
1feaca62 | 133 | (invoke "go" "run" "build.go" "test")))) |
947453a8 LF |
134 | |
135 | (replace 'install | |
c330c27f LF |
136 | (lambda* (#:key outputs #:allow-other-keys) |
137 | (let ((out (assoc-ref outputs "out")) | |
138 | (utils (assoc-ref outputs "utils")) | |
139 | (src "src/github.com/syncthing/syncthing/bin/")) | |
140 | (install-file (string-append src "/syncthing") | |
141 | (string-append out "/bin")) | |
142 | (delete-file (string-append src "/syncthing")) | |
143 | (copy-recursively "src/github.com/syncthing/syncthing/bin/" | |
144 | (string-append utils "/bin")) | |
145 | #t))) | |
947453a8 LF |
146 | |
147 | (add-after 'install 'install-docs | |
148 | (lambda* (#:key outputs #:allow-other-keys) | |
149 | (let* ((out (assoc-ref outputs "out")) | |
c330c27f LF |
150 | (utils (assoc-ref outputs "utils")) |
151 | (man "/share/man") | |
152 | (man-section (string-append man "/man")) | |
947453a8 | 153 | (src "src/github.com/syncthing/syncthing/man/")) |
c330c27f | 154 | ;; Install all the man pages to "out". |
947453a8 LF |
155 | (for-each |
156 | (lambda (file) | |
157 | (install-file file | |
c330c27f LF |
158 | (string-append out man-section |
159 | (string-take-right file 1)))) | |
947453a8 | 160 | (find-files src "\\.[1-9]")) |
c330c27f LF |
161 | ;; Copy all the man pages to "utils" |
162 | (copy-recursively (string-append out man) | |
163 | (string-append utils man)) | |
164 | ;; Delete extraneous man pages from "out" and "utils", | |
165 | ;; respectively. | |
166 | (delete-file (string-append out man "/man1/stdiscosrv.1")) | |
167 | (delete-file (string-append out man "/man1/strelaysrv.1")) | |
168 | (delete-file (string-append utils man "/man1/syncthing.1")) | |
947453a8 | 169 | #t)))))) |
162a1374 | 170 | (synopsis "Decentralized continuous file system synchronization") |
947453a8 LF |
171 | (description "Syncthing is a peer-to-peer file synchronization tool that |
172 | supports a wide variety of computing platforms. It uses the Block Exchange | |
173 | Protocol.") | |
174 | (home-page "https://github.com/syncthing/syncthing") | |
175 | (license mpl2.0))) | |
176 | ||
56a37713 LF |
177 | (define-public go-github-com-audriusbutkevicius-go-nat-pmp |
178 | (let ((commit "452c97607362b2ab5a7839b8d1704f0396b640ca") | |
179 | (revision "0")) | |
180 | (package | |
181 | (name "go-github-com-audriusbutkevicius-go-nat-pmp") | |
182 | (version (git-version "0.0.0" revision commit)) | |
183 | (source (origin | |
184 | (method git-fetch) | |
185 | (uri (git-reference | |
186 | (url "https://github.com/AudriusButkevicius/go-nat-pmp") | |
187 | (commit commit))) | |
188 | (file-name (git-file-name name version)) | |
189 | (sha256 | |
190 | (base32 "1accmpl1llk16a19nlyy991fqrgfay6l53gb64hgmdfmqljdvbk7")))) | |
191 | (build-system go-build-system) | |
192 | (arguments | |
193 | `(#:import-path "github.com/AudriusButkevicius/go-nat-pmp")) | |
194 | (synopsis "Port mapping and discovery of external IP address") | |
a8d47651 | 195 | (description "This package provides a Go client for the NAT-PMP internet |
56a37713 LF |
196 | protocol for port mapping and discovering the external IP address of a |
197 | firewall.") | |
198 | (home-page "https://github.com/AudriusButkevicius/go-nat-pmp") | |
199 | (license asl2.0)))) | |
67b46818 | 200 | |
4e9e74be LF |
201 | (define-public go-github-com-audriusbutkevicius-recli |
202 | (package | |
203 | (name "go-github-com-audriusbutkevicius-recli") | |
204 | (version "0.0.5") | |
205 | (source (origin | |
206 | (method git-fetch) | |
207 | (uri (git-reference | |
208 | (url "https://github.com/AudriusButkevicius/recli") | |
209 | (commit (string-append "v" version)))) | |
210 | (file-name (git-file-name name version)) | |
211 | (sha256 | |
212 | (base32 | |
213 | "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf")))) | |
214 | (build-system go-build-system) | |
215 | (inputs | |
216 | `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors) | |
217 | ("go-github-com-urfave-cli" ,go-github-com-urfave-cli))) | |
218 | (arguments | |
219 | `(#:import-path "github.com/AudriusButkevicius/recli")) | |
220 | (synopsis "Reflection-based CLI generator") | |
221 | (description "For a given struct, @code{recli} builds a set of | |
222 | @code{urfave/cli} commands which allows you to modify it from the command line. | |
223 | It is useful for generating command line clients for your application | |
224 | configuration that is stored in a Go struct.") | |
225 | (home-page "https://github.com/AudriusButkevicius/recli") | |
226 | (license mpl2.0))) | |
227 | ||
67b46818 LF |
228 | (define-public go-github-com-bkaradzic-go-lz4 |
229 | (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a") | |
230 | (revision "0")) | |
231 | (package | |
232 | (name "go-github-com-bkaradzic-go-lz4") | |
233 | (version (git-version "0.0.0" revision commit)) | |
234 | (source (origin | |
235 | (method git-fetch) | |
236 | (uri (git-reference | |
237 | (url "https://github.com/bkaradzic/go-lz4") | |
238 | (commit commit))) | |
239 | (file-name (git-file-name name version)) | |
240 | (sha256 | |
241 | (base32 | |
242 | "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb")))) | |
243 | (build-system go-build-system) | |
244 | (arguments | |
245 | `(#:import-path "github.com/bkaradzic/go-lz4")) | |
246 | (synopsis "LZ4 compression algorithm") | |
247 | (description "This package provides @code{go-lz4}, a Go implementation of | |
248 | the LZ4 compression algorithm.") | |
249 | (home-page "https://github.com/bkaradzic/go-lz4") | |
250 | (license bsd-2)))) | |
add56f34 LF |
251 | |
252 | (define-public go-github-com-calmh-du | |
253 | (package | |
254 | (name "go-github-com-calmh-du") | |
255 | (version "1.0.1") | |
256 | (source (origin | |
257 | (method git-fetch) | |
258 | (uri (git-reference | |
259 | (url "https://github.com/calmh/du") | |
260 | (commit (string-append "v" version)))) | |
261 | (file-name (git-file-name name version)) | |
262 | (sha256 | |
263 | (base32 | |
264 | "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2")))) | |
265 | (build-system go-build-system) | |
266 | (arguments | |
267 | `(#:import-path "github.com/calmh/du")) | |
268 | (synopsis "Get total and available disk space of a given volume") | |
269 | (description "This is a Go implementation of `du`. It provides disk usage | |
270 | information, such as how much storage space is available, free, and used.") | |
271 | (home-page "https://github.com/calmh/du") | |
272 | (license public-domain))) | |
1e28085e LF |
273 | |
274 | (define-public go-github-com-calmh-xdr | |
fef131b4 LF |
275 | (package |
276 | (name "go-github-com-calmh-xdr") | |
277 | (version "1.1.0") | |
278 | (source (origin | |
279 | (method git-fetch) | |
280 | (uri (git-reference | |
281 | (url "https://github.com/calmh/xdr") | |
282 | (commit (string-append "v" version)))) | |
283 | (file-name (git-file-name name version)) | |
284 | (sha256 | |
285 | (base32 | |
286 | "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh")))) | |
287 | (build-system go-build-system) | |
288 | (arguments | |
289 | `(#:import-path "github.com/calmh/xdr")) | |
290 | (synopsis "XDR marshalling and unmarshalling") | |
291 | (description "XDR is an External Data Representation (XDR) | |
1e28085e LF |
292 | marshalling and unmarshalling library in Go. It uses code generation and not |
293 | reflection.") | |
fef131b4 LF |
294 | (home-page "https://github.com/calmh/xdr") |
295 | (license expat))) | |
ab3e1589 LF |
296 | |
297 | (define-public go-github-com-d4l3k-messagediff | |
edda279f LF |
298 | (package |
299 | (name "go-github-com-d4l3k-messagediff") | |
300 | (version "1.2.1") | |
301 | (source (origin | |
302 | (method git-fetch) | |
303 | (uri (git-reference | |
304 | (url "https://github.com/d4l3k/messagediff") | |
305 | (commit (string-append "v" version)))) | |
306 | (file-name (git-file-name name version)) | |
307 | (sha256 | |
308 | (base32 | |
309 | "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v")))) | |
310 | (build-system go-build-system) | |
311 | (arguments | |
312 | `(#:import-path "github.com/d4l3k/messagediff")) | |
313 | (synopsis "Diff arbitrary Go structs") | |
314 | (description "Messagediff is a library for calculating diffs of arbitrary | |
ab3e1589 | 315 | structs in the Go programming language.") |
edda279f LF |
316 | (home-page "https://github.com/d4l3k/messagediff") |
317 | (license expat))) | |
a3a5b012 | 318 | |
4d93ebb3 LF |
319 | (define-public go-github-com-gobwas-glob |
320 | (let ((commit "51eb1ee00b6d931c66d229ceeb7c31b985563420") | |
321 | (revision "0")) | |
322 | (package | |
323 | (name "go-github-com-gobwas-glob") | |
324 | (version (git-version "0.0.0" revision commit)) | |
325 | (source (origin | |
326 | (method git-fetch) | |
327 | (uri (git-reference | |
328 | (url "https://github.com/gobwas/glob") | |
329 | (commit commit))) | |
330 | (file-name (git-file-name name version)) | |
331 | (sha256 | |
332 | (base32 | |
333 | "090wzpwsjana1qas8ipwh1pj959gvc4b7vwybzi01f3bmd79jwlp")))) | |
334 | (build-system go-build-system) | |
335 | (arguments | |
336 | `(#:import-path "github.com/gobwas/glob")) | |
337 | (synopsis "Go globbing library") | |
c9bb314b | 338 | (description "This package provides a Go implementation of globs.") |
4d93ebb3 LF |
339 | (home-page "https://github.com/gobwas/glob") |
340 | (license expat)))) | |
07e88fc6 | 341 | |
ede4f50c LF |
342 | |
343 | (define-public go-github-com-golang-groupcache-lru | |
e83994f2 LF |
344 | (let ((commit "84a468cf14b4376def5d68c722b139b881c450a4") |
345 | (revision "1")) | |
ede4f50c LF |
346 | (package |
347 | (name "go-github-com-golang-groupcache-lru") | |
348 | (version (git-version "0.0.0" revision commit)) | |
349 | (source (origin | |
350 | (method git-fetch) | |
351 | (uri (git-reference | |
352 | (url "https://github.com/golang/groupcache") | |
353 | (commit commit))) | |
354 | (file-name (git-file-name name version)) | |
355 | (sha256 | |
356 | (base32 | |
e83994f2 | 357 | "1ky1r9qh54yi9zp2769qrjngzndgd8fn7mja2qfac285n06chmcn")))) |
ede4f50c LF |
358 | (build-system go-build-system) |
359 | (arguments | |
360 | `(#:import-path "github.com/golang/groupcache/lru" | |
361 | #:unpack-path "github.com/golang/groupcache")) | |
362 | (synopsis "Groupcache is a caching and cache-filling library") | |
363 | (description "Groupcache is a caching and cache-filling library, intended | |
364 | as a replacement for memcached in many cases. It provides a data loading | |
365 | mechanism with caching and de-duplication that works across a set of peer | |
366 | processes.") | |
367 | (home-page "https://github.com/golang/groupcache") | |
368 | (license asl2.0)))) | |
b32eab0b LF |
369 | |
370 | (define-public go-github-com-golang-snappy | |
371 | (let ((commit "553a641470496b2327abcac10b36396bd98e45c9") | |
372 | (revision "0")) | |
373 | (package | |
374 | (name "go-github-com-golang-snappy") | |
375 | (version (git-version "0.0.0" revision commit)) | |
376 | (source (origin | |
377 | (method git-fetch) | |
378 | (uri (git-reference | |
379 | (url "https://github.com/golang/snappy") | |
380 | (commit commit))) | |
381 | (file-name (git-file-name name version)) | |
382 | (sha256 | |
383 | (base32 | |
384 | "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk")))) | |
385 | (build-system go-build-system) | |
386 | (arguments | |
387 | `(#:import-path "github.com/golang/snappy")) | |
388 | (synopsis "Snappy compression format in the Go programming language") | |
389 | (description "This package provides a Go implementation of the Snappy | |
390 | compression format.") | |
391 | (home-page "https://github.com/golang/snappy") | |
392 | (license bsd-3)))) | |
7b92093d LF |
393 | |
394 | (define-public go-github-com-jackpal-gateway | |
395 | (let ((commit "5795ac81146e01d3fab7bcf21c043c3d6a32b006") | |
396 | (revision "0")) | |
397 | (package | |
398 | (name "go-github-com-jackpal-gateway") | |
399 | (version (git-version "0.0.0" revision commit)) | |
400 | (source (origin | |
401 | (method git-fetch) | |
402 | (uri (git-reference | |
403 | (url "https://github.com/jackpal/gateway") | |
404 | (commit commit))) | |
405 | (file-name (git-file-name name version)) | |
406 | (sha256 | |
407 | (base32 | |
408 | "0fkwkwmhfadwk3cha8616bhqxfkr9gjjnynhhxyldlphixgs3f25")))) | |
409 | (build-system go-build-system) | |
410 | (arguments | |
411 | `(#:import-path "github.com/jackpal/gateway")) | |
412 | (synopsis "Discover the address of a LAN gateway") | |
413 | (description "@code{gateway} is a Go library for discovering the IP | |
414 | address of the default LAN gateway.") | |
415 | (home-page "https://github.com/jackpal/gateway") | |
416 | (license bsd-3)))) | |
7577a1d5 | 417 | |
340e1a9a | 418 | (define-public go-github-com-lib-pq |
d73cbbda LF |
419 | (package |
420 | (name "go-github-com-lib-pq") | |
a92e9cca | 421 | (version "1.1.1") |
d73cbbda LF |
422 | (source (origin |
423 | (method git-fetch) | |
424 | (uri (git-reference | |
425 | (url "https://github.com/lib/pq") | |
426 | (commit (string-append "v" version)))) | |
427 | (file-name (git-file-name name version)) | |
428 | (sha256 | |
429 | (base32 | |
a92e9cca | 430 | "0g64wlg1l1ybq4x44idksl4pgm055s58jxc6r6x4qhqm5q76h0km")))) |
d73cbbda LF |
431 | (build-system go-build-system) |
432 | (arguments | |
433 | `(#:import-path "github.com/lib/pq" | |
434 | ;; The tests seem to fail without access to the network or a running | |
435 | ;; Postgres instance. | |
436 | #:tests? #f)) | |
437 | (synopsis "Golang Postgres driver for Go's database/sql") | |
a2ca130a | 438 | (description "This package provides a pure Go Postgres driver for Go's |
340e1a9a | 439 | database/sql package.") |
d73cbbda LF |
440 | (home-page "https://github.com/lib/pq") |
441 | (license expat))) | |
4a9c4dbe | 442 | |
0921b230 | 443 | (define-public go-github-com-oschwald-geoip2-golang |
d277b9bc LF |
444 | (package |
445 | (name "go-github-com-oschwald-geoip2-golang") | |
70f3a384 | 446 | (version "1.3.0") |
d277b9bc LF |
447 | (source (origin |
448 | (method git-fetch) | |
449 | (uri (git-reference | |
450 | (url "https://github.com/oschwald/geoip2-golang") | |
451 | (commit (string-append "v" version)))) | |
452 | (file-name (git-file-name name version)) | |
453 | (sha256 | |
454 | (base32 | |
70f3a384 | 455 | "0jivzl15jb8n16rm1b2w97kf7vna5dd3kcz865wfi233qay075j2")))) |
d277b9bc LF |
456 | (build-system go-build-system) |
457 | (propagated-inputs | |
458 | `(("go-github-com-oschwald-maxminddb-golang" | |
459 | ,go-github-com-oschwald-maxminddb-golang) | |
460 | ("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
461 | (arguments | |
462 | `(#:import-path "github.com/oschwald/geoip2-golang" | |
463 | #:tests? #f)) ; Requires some unpackaged software and test data | |
464 | (synopsis "MaxMind GeoIP2 reader") | |
662ab81d | 465 | (description "This package provides a library for reading MaxMind |
0921b230 | 466 | GeoLite2 and GeoIP2 databases in Go.") |
d277b9bc LF |
467 | (home-page "https://github.com/oschwald/geoip2-golang") |
468 | (license isc))) | |
0921b230 | 469 | |
a57778f5 | 470 | (define-public go-github-com-oschwald-maxminddb-golang |
ac909141 | 471 | (let ((commit "26fe5ace1c706491c2936119e1dc69c1a9c04d7f") |
a57778f5 LF |
472 | (revision "0")) |
473 | (package | |
474 | (name "go-github-com-oschwald-maxminddb-golang") | |
ac909141 | 475 | (version (git-version "1.2.0" revision commit)) |
a57778f5 LF |
476 | (source (origin |
477 | (method git-fetch) | |
478 | (uri (git-reference | |
479 | (url "https://github.com/oschwald/maxminddb-golang") | |
480 | (commit commit))) | |
481 | (file-name (git-file-name name version)) | |
482 | (sha256 | |
483 | (base32 | |
ac909141 | 484 | "1i6d935f3cv9djpjvc2ibh8aps8jqvg454b9pkwg2h98al759ggk")))) |
a57778f5 LF |
485 | (build-system go-build-system) |
486 | (propagated-inputs | |
487 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
488 | (arguments | |
489 | `(#:import-path "github.com/oschwald/maxminddb-golang" | |
490 | #:tests? #f)) ; Requires some unpackaged software and test data | |
491 | (synopsis "MaxMind DB Reader for Go") | |
492 | (description "This is a Go reader for the MaxMind DB format. Although | |
493 | this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a | |
494 | higher-level API for doing so.") | |
495 | (home-page "https://github.com/oschwald/maxminddb-golang") | |
496 | (license isc)))) | |
497 | ||
6bc1eb11 LF |
498 | (define-public go-github-com-stathat-go |
499 | (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e") | |
500 | (revision "0")) | |
501 | (package | |
502 | (name "go-github-com-stathat-go") | |
503 | (version (git-version "0.0.0" revision commit)) | |
504 | (source (origin | |
505 | (method git-fetch) | |
506 | (uri (git-reference | |
507 | (url "https://github.com/stathat/go") | |
508 | (commit commit))) | |
509 | (file-name (git-file-name name version)) | |
510 | (sha256 | |
511 | (base32 | |
512 | "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) | |
513 | (build-system go-build-system) | |
514 | (arguments | |
515 | `(#:import-path "github.com/stathat/go")) | |
516 | (synopsis "Post statistics to StatHat") | |
517 | (description "This is a Go package for posting to a StatHat account.") | |
518 | (home-page "https://github.com/stathat/go") | |
519 | (license expat)))) | |
520 | ||
1a4795f9 | 521 | (define-public go-github-com-rcrowley-go-metrics |
d2c7971d LF |
522 | (let ((commit "e181e095bae94582363434144c61a9653aff6e50") |
523 | (revision "1")) | |
1a4795f9 LF |
524 | (package |
525 | (name "go-github-com-rcrowley-go-metrics") | |
526 | (version (git-version "0.0.0" revision commit)) | |
527 | (source (origin | |
528 | (method git-fetch) | |
529 | (uri (git-reference | |
530 | (url "https://github.com/rcrowley/go-metrics") | |
531 | (commit commit))) | |
532 | (file-name (git-file-name name version)) | |
533 | (sha256 | |
534 | (base32 | |
d2c7971d | 535 | "1pwkyw801hy7n94skzk6h177zqcil6ayrmb5gs3jdpsfayh8ia5w")))) |
1a4795f9 LF |
536 | (build-system go-build-system) |
537 | (arguments | |
538 | `(#:import-path "github.com/rcrowley/go-metrics")) | |
539 | (propagated-inputs | |
540 | `(("go-github-com-stathat-go" ,go-github-com-stathat-go))) | |
541 | (synopsis "Go port of Coda Hale's Metrics library") | |
542 | (description "This package provides a Go implementation of Coda Hale's | |
543 | Metrics library.") | |
544 | (home-page "https://github.com/rcrowley/go-metrics") | |
545 | (license bsd-2)))) | |
546 | ||
8d7e9924 | 547 | (define-public go-github-com-sasha-s-go-deadlock |
767579d1 LF |
548 | (package |
549 | (name "go-github-com-sasha-s-go-deadlock") | |
550 | (version "0.2.0") | |
551 | (source (origin | |
552 | (method git-fetch) | |
553 | (uri (git-reference | |
554 | (url "https://github.com/sasha-s/go-deadlock") | |
555 | (commit (string-append "v" version)))) | |
556 | (file-name (git-file-name name version)) | |
557 | (sha256 | |
558 | (base32 | |
559 | "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg")))) | |
560 | (build-system go-build-system) | |
561 | (arguments | |
562 | `(#:import-path "github.com/sasha-s/go-deadlock")) | |
563 | (propagated-inputs | |
564 | `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid))) | |
565 | (synopsis "Deadlock detection in go") | |
566 | (description "This package provides tools for detecting deadlocks at | |
8d7e9924 | 567 | run-time in Go.") |
767579d1 LF |
568 | (home-page "https://github.com/sasha-s/go-deadlock") |
569 | (license asl2.0))) | |
8d7e9924 | 570 | |
c864a4a7 | 571 | (define-public go-github-com-syndtr-goleveldb |
619db5cf LF |
572 | (let ((commit "34011bf325bce385408353a30b101fe5e923eb6e") |
573 | (revision "2")) | |
c864a4a7 LF |
574 | (package |
575 | (name "go-github-com-syndtr-goleveldb") | |
576 | (version (git-version "0.0.0" revision commit)) | |
577 | (source (origin | |
578 | (method git-fetch) | |
579 | (uri (git-reference | |
580 | (url "https://github.com/syndtr/goleveldb") | |
581 | (commit commit))) | |
582 | (file-name (git-file-name name version)) | |
583 | (sha256 | |
584 | (base32 | |
619db5cf | 585 | "097ja0vyj6p27zrxha9nhk09fj977xsvhmd3bk2hbyvnbw4znnhd")))) |
c864a4a7 LF |
586 | (build-system go-build-system) |
587 | (propagated-inputs | |
588 | `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy))) | |
589 | (arguments | |
590 | `(#:import-path "github.com/syndtr/goleveldb/leveldb" | |
591 | #:unpack-path "github.com/syndtr/goleveldb" | |
592 | #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package | |
593 | (synopsis "LevelDB key/value database") | |
594 | (description "This is an implementation of the LevelDB key / value | |
595 | database in Go.") | |
596 | (home-page "https://github.com/syndtr/goleveldb") | |
597 | (license bsd-2)))) | |
598 | ||
f7612f0f | 599 | (define-public go-github-com-thejerf-suture |
ac51900d LF |
600 | (package |
601 | (name "go-github-com-thejerf-suture") | |
602 | (version "3.0.2") | |
603 | (source (origin | |
604 | (method git-fetch) | |
605 | (uri (git-reference | |
606 | (url "https://github.com/thejerf/suture") | |
607 | (commit (string-append "v" version)))) | |
608 | (file-name (git-file-name name version)) | |
609 | (sha256 | |
610 | (base32 | |
611 | "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh")))) | |
612 | (build-system go-build-system) | |
613 | (arguments | |
614 | `(#:import-path "github.com/thejerf/suture")) | |
615 | (synopsis "Supervisor trees for Go") | |
616 | (description "Suture provides Erlang-ish supervisor trees for Go. | |
f7612f0f LF |
617 | \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together |
618 | when it's trying to die. | |
619 | ||
620 | It is intended to deal gracefully with the real failure cases that can occur | |
621 | with supervision trees (such as burning all your CPU time endlessly restarting | |
622 | dead services), while also making no unnecessary demands on the \"service\" | |
623 | code, and providing hooks to perform adequate logging with in a production | |
624 | environment") | |
ac51900d LF |
625 | (home-page "https://github.com/thejerf/suture") |
626 | (license expat))) | |
f7612f0f | 627 | |
292a6b0d LF |
628 | (define-public go-github-com-vitrun-qart-coding |
629 | (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") | |
630 | (revision "0")) | |
631 | (package | |
632 | (name "go-github-com-vitrun-qart-coding") | |
633 | (version (git-version "0.0.0" revision commit)) | |
634 | (source (origin | |
635 | (method git-fetch) | |
636 | (uri (git-reference | |
637 | (url "https://github.com/vitrun/qart") | |
638 | (commit commit))) | |
639 | (file-name (string-append "go-github-com-vitrun-qart-" | |
640 | version "-checkout")) | |
641 | (sha256 | |
642 | (base32 | |
643 | "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc")))) | |
644 | (build-system go-build-system) | |
645 | (arguments | |
646 | `(#:import-path "github.com/vitrun/qart/coding" | |
647 | #:unpack-path "github.com/vitrun/qart")) | |
648 | (synopsis "Low-level QR coding library") | |
649 | (description "This package provides a library for embedding | |
650 | human-meaningful graphics in QR codes. However, instead of scribbling on | |
651 | redundant pieces and relying on error correction to preserve the meaning, | |
652 | @code{qart} engineers the encoded values to create the picture in a code with no | |
653 | inherent errors. This @code{qart} component, @code{coding}, implements | |
654 | low-level QR coding details.") | |
655 | (home-page "https://github.com/vitrun/qart/") | |
656 | (license bsd-3)))) | |
657 | ||
6934827a LF |
658 | (define-public go-github-com-vitrun-qart-gf256 |
659 | (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") | |
660 | (revision "0")) | |
661 | (package | |
662 | (name "go-github-com-vitrun-qart-gf256") | |
663 | (version (git-version "0.0.0" revision commit)) | |
664 | (source (origin | |
665 | (method git-fetch) | |
666 | (uri (git-reference | |
667 | (url "https://github.com/vitrun/qart") | |
668 | (commit commit))) | |
669 | (file-name (string-append "go-github-com-vitrun-qart-" | |
670 | version "-checkout")) | |
671 | (sha256 | |
672 | (base32 | |
673 | "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc")))) | |
674 | (build-system go-build-system) | |
675 | (arguments | |
676 | `(#:import-path "github.com/vitrun/qart/gf256" | |
677 | #:unpack-path "github.com/vitrun/qart")) | |
678 | (synopsis "Qart library for Galois Field GF(256) math") | |
679 | (description "This package, a component of @code{qart}, provides @code{gf256}, | |
680 | implements arithmetic over the Galois Field GF(256).") | |
681 | (home-page "https://github.com/vitrun/qart") | |
892ced6d LF |
682 | (license bsd-3)))) |
683 | ||
684 | (define-public go-github-com-vitrun-qart-qr | |
685 | (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") | |
686 | (revision "0")) | |
687 | (package | |
688 | (name "go-github-com-vitrun-qart-qr") | |
689 | (version (git-version "0.0.0" revision commit)) | |
690 | (source (origin | |
691 | (method git-fetch) | |
692 | (uri (git-reference | |
693 | (url "https://github.com/vitrun/qart") | |
694 | (commit commit))) | |
695 | (file-name (string-append "go-github-com-vitrun-qart-" | |
696 | version "-checkout")) | |
697 | (sha256 | |
698 | (base32 | |
699 | "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc")))) | |
700 | (build-system go-build-system) | |
701 | (arguments | |
702 | `(#:import-path "github.com/vitrun/qart/qr" | |
703 | #:unpack-path "github.com/vitrun/qart")) | |
704 | (synopsis "Qart component for generating QR codes") | |
892ced6d LF |
705 | (description "This package provides a library for embedding |
706 | human-meaningful graphics in QR codes. However, instead of scribbling on | |
707 | redundant pieces and relying on error correction to preserve the meaning, | |
708 | @code{qart} engineers the encoded values to create the picture in a code with no | |
709 | inherent errors. This @code{qart} component, @code{qr}, provides QR code | |
710 | generation.") | |
711 | (home-page "https://github.com/vitrun/qart") | |
6934827a LF |
712 | (license bsd-3)))) |
713 | ||
78d1b85a LF |
714 | ;; XXX Syncthing actually imports 'github.com/chmduquesne/rollinghash/adler32'. |
715 | ;; Normally we'd package this module indpendenctly but the adler32 module itself | |
716 | ;; imports 'github.com/chmduquesne/rollinghash/', so this is the easy way out. | |
717 | (define-public go-github-com-chmduquesne-rollinghash | |
2fcd1c84 LF |
718 | (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81") |
719 | (revision "0")) | |
2785690a | 720 | (package |
78d1b85a | 721 | (name "go-github-com-chmduquesne-rollinghash") |
2fcd1c84 | 722 | (version (git-version "4.0.0" revision commit)) |
2785690a LF |
723 | (source |
724 | (origin | |
725 | (method git-fetch) | |
726 | (uri (git-reference | |
727 | (url "https://github.com/chmduquesne/rollinghash.git") | |
728 | (commit commit))) | |
729 | (file-name (git-file-name name version)) | |
730 | (sha256 | |
731 | (base32 | |
2fcd1c84 | 732 | "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr")))) |
2785690a LF |
733 | (build-system go-build-system) |
734 | (arguments | |
78d1b85a LF |
735 | '(#:import-path "github.com/chmduquesne/rollinghash/")) |
736 | (synopsis "Rolling hashes in Go") | |
737 | (description "This package provides a Go implementation of several rolling | |
738 | hashes.") | |
2785690a LF |
739 | (home-page "https://github.com/chmduquesne/rollinghash") |
740 | (license expat)))) | |
3d86b557 | 741 | |
936e02b4 | 742 | (define-public go-github-com-pkg-errors |
c36177c6 LF |
743 | (package |
744 | (name "go-github-com-pkg-errors") | |
745 | (version "0.8.1") | |
746 | (source (origin | |
747 | (method git-fetch) | |
748 | (uri (git-reference | |
749 | (url "https://github.com/pkg/errors.git") | |
750 | (commit (string-append "v" version)))) | |
751 | (file-name (git-file-name name version)) | |
752 | (sha256 | |
753 | (base32 | |
754 | "0g5qcb4d4fd96midz0zdk8b9kz8xkzwfa8kr1cliqbg8sxsy5vd1")))) | |
755 | (build-system go-build-system) | |
756 | (arguments | |
757 | `(#:import-path "github.com/pkg/errors")) | |
758 | (synopsis "Go error handling primitives") | |
2e785aa0 | 759 | (description "This package provides @code{error}, which offers simple |
936e02b4 | 760 | error handling primitives in Go.") |
c36177c6 LF |
761 | (home-page "https://github.com/pkg/errors") |
762 | (license bsd-2))) | |
936e02b4 | 763 | |
73a2f841 LF |
764 | (define-public go-github-com-petermattis-goid |
765 | (let ((commit "3db12ebb2a599ba4a96bea1c17b61c2f78a40e02") | |
766 | (revision "0")) | |
767 | (package | |
768 | (name "go-github-com-petermattis-goid") | |
769 | (version (git-version "0.0.0" revision commit)) | |
770 | (source (origin | |
771 | (method git-fetch) | |
772 | (uri (git-reference | |
773 | (url "https://github.com/petermattis/goid.git") | |
774 | (commit commit))) | |
775 | (file-name (git-file-name name version)) | |
776 | (sha256 | |
777 | ||
778 | (base32 | |
779 | "0z18a3mr72c52g7g94n08gxw0ksnaafbfwdl5p5jav2sffirb0kd")))) | |
780 | (build-system go-build-system) | |
781 | (arguments | |
782 | '(#:import-path "github.com/petermattis/goid")) | |
783 | (synopsis "Identify the running goroutine") | |
b55b96a7 | 784 | (description "This package offers a method of programmatically retrieving |
73a2f841 LF |
785 | the current goroutine's ID.") |
786 | (home-page "https://github.com/petermattis/goid") | |
787 | (license asl2.0)))) | |
71415e23 | 788 | |
89d91ee2 LF |
789 | (define-public go-github-com-kballard-go-shellquote |
790 | (let ((commit "cd60e84ee657ff3dc51de0b4f55dd299a3e136f2") | |
791 | (revision "0")) | |
792 | (package | |
793 | (name "go-github-com-kballard-go-shellquote") | |
794 | (version (git-version "0.0.0" revision commit)) | |
795 | (source (origin | |
796 | (method git-fetch) | |
797 | (uri (git-reference | |
798 | (url "https://github.com/kballard/go-shellquote.git") | |
799 | (commit commit))) | |
800 | (file-name (git-file-name name version)) | |
801 | (sha256 | |
802 | (base32 | |
803 | "1xjpin4jq1zl84dcn96xhjmn9bsfyszf6g9aqyj2dc0xfi6c88y0")))) | |
804 | (build-system go-build-system) | |
805 | (arguments | |
806 | '(#:import-path "github.com/kballard/go-shellquote")) | |
807 | (synopsis "Shell-style string joins and splits") | |
808 | (description "Shellquote provides utilities for joining/splitting strings | |
809 | using sh's word-splitting rules.") | |
810 | (home-page "https://github.com/kballard/go-shellquote") | |
811 | (license expat)))) | |
a3d98dd8 | 812 | |
2849c665 | 813 | (define-public go-github-com-syncthing-notify |
061387ea LF |
814 | (let ((commit "4e389ea6c0d84e6195eb585ffaf62c8c143306ae") |
815 | (revision "4")) | |
52ff28e4 | 816 | (package |
2849c665 | 817 | (name "go-github-com-syncthing-notify") |
52ff28e4 LF |
818 | (version (git-version "0.0.0" revision commit)) |
819 | (source (origin | |
820 | (method git-fetch) | |
821 | (uri (git-reference | |
2849c665 | 822 | (url "https://github.com/syncthing/notify") |
52ff28e4 LF |
823 | (commit commit))) |
824 | (file-name (git-file-name name version)) | |
825 | (sha256 | |
826 | (base32 | |
061387ea | 827 | "19gvl14s1l9m82f8c2xsjcr8lmbqrvw1mxkayvfcpimvxfz0j61i")))) |
52ff28e4 LF |
828 | (build-system go-build-system) |
829 | (arguments | |
2849c665 | 830 | '(#:import-path "github.com/syncthing/notify")) |
52ff28e4 LF |
831 | (propagated-inputs |
832 | `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix))) | |
3bd840e4 | 833 | (synopsis "File system event notification library") |
162a1374 | 834 | (description "This package provides @code{notify}, a file system event |
52ff28e4 | 835 | notification library in Go.") |
2849c665 | 836 | (home-page "https://github.com/syncthing/notify") |
52ff28e4 | 837 | (license expat)))) |
63aade45 | 838 | |
a04434f2 LF |
839 | (define-public go-github-com-beorn7-perks-quantile |
840 | (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9") | |
841 | (revision "0")) | |
842 | (package | |
843 | (name "go-github-com-beorn7-perks-quantile") | |
844 | (version (git-version "0.0.0" revision commit)) | |
845 | (source (origin | |
846 | (method git-fetch) | |
847 | (uri (git-reference | |
848 | (url "https://github.com/beorn7/perks.git") | |
849 | (commit commit))) | |
850 | (file-name (git-file-name name version)) | |
851 | (sha256 | |
852 | (base32 | |
853 | "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y")))) | |
854 | (build-system go-build-system) | |
855 | (arguments | |
856 | '(#:import-path "github.com/beorn7/perks/quantile" | |
857 | #:unpack-path "github.com/beorn7/perks")) | |
858 | (synopsis "Compute approximate quantiles over an unbounded data stream") | |
859 | (description "Perks contains the Go package @code{quantile} that computes | |
860 | approximate quantiles over an unbounded data stream within low memory and CPU | |
861 | bounds.") | |
862 | (home-page "https://github.com/beorn7/perks") | |
863 | (license expat)))) | |
339e44da LF |
864 | |
865 | (define-public go-github-com-golang-protobuf-proto | |
866 | (let ((commit "1e59b77b52bf8e4b449a57e6f79f21226d571845") | |
867 | (revision "0")) | |
868 | (package | |
869 | (name "go-github-com-golang-protobuf-proto") | |
870 | (version (git-version "0.0.0" revision commit)) | |
871 | (source (origin | |
872 | (method git-fetch) | |
873 | (uri (git-reference | |
874 | (url "https://github.com/golang/protobuf.git") | |
875 | (commit commit))) | |
876 | (file-name (git-file-name name version)) | |
877 | (sha256 | |
878 | (base32 | |
879 | "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8")))) | |
880 | (build-system go-build-system) | |
881 | (arguments | |
882 | '(#:import-path "github.com/golang/protobuf/proto" | |
883 | #:unpack-path "github.com/golang/protobuf" | |
884 | #:tests? #f ; requires unpackaged golang.org/x/sync/errgroup | |
885 | )) | |
886 | (synopsis "Go support for Protocol Buffers") | |
887 | (description "This package provides Go support for the Protocol Buffers | |
888 | data serialization format.") | |
889 | (home-page "https://github.com/golang/protobuf") | |
890 | (license bsd-3)))) | |
4b6b1a38 LF |
891 | |
892 | (define-public go-github-com-prometheus-client-model-go | |
893 | (let ((commit "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c") | |
894 | (revision "0")) | |
895 | (package | |
896 | (name "go-github-com-prometheus-client-model-go") | |
897 | (version (git-version "0.0.2" revision commit)) | |
898 | (source (origin | |
899 | (method git-fetch) | |
900 | (uri (git-reference | |
901 | (url "https://github.com/prometheus/client_model.git") | |
902 | (commit commit))) | |
903 | (file-name (git-file-name name version)) | |
904 | (sha256 | |
905 | (base32 | |
906 | "19y4ywsivhpxj7ikf2j0gm9k3cmyw37qcbfi78n526jxcc7kw998")))) | |
907 | (build-system go-build-system) | |
908 | (arguments | |
909 | '(#:import-path "github.com/prometheus/client_model/go" | |
910 | #:unpack-path "github.com/prometheus/client_model")) | |
911 | (propagated-inputs | |
912 | `(("go-github-com-golang-protobuf-proto" | |
913 | ,go-github-com-golang-protobuf-proto))) | |
914 | (synopsis "Data model artifacts for Prometheus") | |
915 | (description "This package provides data model artifacts for Prometheus.") | |
916 | (home-page "https://github.com/prometheus/client_model") | |
917 | (license asl2.0)))) | |
1da227b0 LF |
918 | |
919 | (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil | |
920 | (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c") | |
921 | (revision "0")) | |
922 | (package | |
923 | (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil") | |
924 | (version (git-version "1.0.0" revision commit)) | |
925 | (source | |
926 | (origin | |
927 | (method git-fetch) | |
928 | (uri | |
929 | (git-reference | |
930 | (url "https://github.com/matttproud/golang_protobuf_extensions.git") | |
931 | (commit commit))) | |
932 | (file-name (git-file-name name version)) | |
933 | (sha256 | |
934 | (base32 | |
935 | "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya")))) | |
936 | (build-system go-build-system) | |
937 | (arguments | |
938 | '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil" | |
939 | #:unpack-path "github.com/matttproud/golang_protobuf_extensions")) | |
940 | (propagated-inputs | |
941 | `(("go-github-com-golang-protobuf-proto" | |
942 | ,go-github-com-golang-protobuf-proto))) | |
943 | (synopsis "Streaming Protocol Buffers in Go") | |
944 | (description "This package provides various Protocol Buffer | |
945 | extensions for the Go language, namely support for record length-delimited | |
946 | message streaming.") | |
947 | (home-page "https://github.com/matttproud/golang_protobuf_extensions") | |
948 | (license asl2.0)))) | |
270590bd LF |
949 | |
950 | (define-public go-github-com-prometheus-common-expfmt | |
951 | (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca") | |
952 | (revision "0")) | |
953 | (package | |
954 | (name "go-github-com-prometheus-common-expfmt") | |
955 | (version (git-version "0.0.0" revision commit)) | |
956 | (source (origin | |
957 | (method git-fetch) | |
958 | (uri (git-reference | |
959 | (url "https://github.com/prometheus/common.git") | |
960 | (commit commit))) | |
961 | (file-name (git-file-name name version)) | |
962 | (sha256 | |
963 | (base32 | |
964 | "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j")))) | |
965 | (build-system go-build-system) | |
966 | (arguments | |
967 | '(#:import-path "github.com/prometheus/common/expfmt" | |
968 | #:unpack-path "github.com/prometheus/common" | |
969 | #:phases | |
970 | (modify-phases %standard-phases | |
971 | (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable | |
972 | (lambda* (#:key outputs #:allow-other-keys) | |
973 | (map (lambda (file) | |
974 | (make-file-writable file)) | |
975 | (find-files | |
976 | (string-append (assoc-ref outputs "out") | |
977 | "/src/github.com/prometheus/common/expfmt/testdata/") | |
978 | ".*\\.gz$")) | |
46a37b59 PN |
979 | #t)) |
980 | (replace 'check | |
981 | ;; Tests don't pass "vet" on go-1.11. See | |
982 | ;; https://github.com/syncthing/syncthing/issues/5311. | |
983 | (lambda* (#:key import-path #:allow-other-keys) | |
984 | (invoke "go" "test" | |
985 | "-vet=off" | |
986 | import-path)))))) | |
270590bd LF |
987 | (propagated-inputs |
988 | `(("go-github-com-golang-protobuf-proto" | |
989 | ,go-github-com-golang-protobuf-proto) | |
990 | ("go-github-com-matttproud-golang-protobuf-extensions-pbutil" | |
991 | ,go-github-com-matttproud-golang-protobuf-extensions-pbutil) | |
992 | ("go-github-com-prometheus-client-model-go" | |
993 | ,go-github-com-prometheus-client-model-go))) | |
994 | (synopsis "Prometheus metrics") | |
995 | (description "This package provides tools for reading and writing | |
996 | Prometheus metrics.") | |
997 | (home-page "https://github.com/prometheus/common") | |
998 | (license asl2.0)))) | |
13dca4a5 | 999 | |
bafdb0fa LF |
1000 | (define-public go-github-com-prometheus-common-model |
1001 | (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca") | |
1002 | (revision "0")) | |
1003 | (package | |
1004 | (name "go-github-com-prometheus-common-model") | |
1005 | (version (git-version "0.0.0" revision commit)) | |
1006 | (source (origin | |
1007 | (method git-fetch) | |
1008 | (uri (git-reference | |
1009 | (url "https://github.com/prometheus/common.git") | |
1010 | (commit commit))) | |
1011 | (file-name (git-file-name name version)) | |
1012 | (sha256 | |
1013 | (base32 | |
1014 | "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j")))) | |
1015 | (build-system go-build-system) | |
1016 | (arguments | |
1017 | '(#:import-path "github.com/prometheus/common/model" | |
1018 | #:unpack-path "github.com/prometheus/common")) | |
1019 | (synopsis "Prometheus component") | |
1020 | (description "This package provides a component of the Go Prometheus | |
1021 | implementation.") | |
1022 | (home-page "https://github.com/prometheus/common") | |
1023 | (license asl2.0)))) | |
1024 | ||
13dca4a5 LF |
1025 | (define-public go-github-com-prometheus-procfs |
1026 | (let ((commit "b15cd069a83443be3154b719d0cc9fe8117f09fb") | |
1027 | (revision "0")) | |
1028 | (package | |
1029 | (name "go-github-com-prometheus-procfs") | |
1030 | (version (git-version "0.0.0" revision commit)) | |
1031 | (source (origin | |
1032 | (method git-fetch) | |
1033 | (uri (git-reference | |
1034 | (url "https://github.com/prometheus/procfs.git") | |
1035 | (commit commit))) | |
1036 | (file-name (git-file-name name version)) | |
1037 | (sha256 | |
1038 | (base32 | |
1039 | "1cr45wg2m40bj2za8f32mq09rjlcnk5kfam0h0hr8wcb015k4wxj")))) | |
1040 | (build-system go-build-system) | |
1041 | (arguments | |
1042 | '(#:import-path "github.com/prometheus/procfs")) | |
1043 | (synopsis "Go library for reading @file{/proc}") | |
3bd840e4 TGR |
1044 | (description "The @code{procfs} Go package provides functions to retrieve |
1045 | system, kernel, and process metrics from the @file{/proc} pseudo file system.") | |
13dca4a5 LF |
1046 | (home-page "https://github.com/prometheus/procfs") |
1047 | (license asl2.0)))) | |
bfbe868d LF |
1048 | |
1049 | (define-public go-github-com-client-golang-prometheus-promhttp | |
bfbe868d LF |
1050 | (package |
1051 | (name "go-github-com-client-golang-prometheus-promhttp") | |
94b1e5e0 | 1052 | (version "0.9.2") |
bfbe868d LF |
1053 | (source (origin |
1054 | (method git-fetch) | |
1055 | (uri (git-reference | |
1056 | (url "https://github.com/prometheus/client_golang.git") | |
94b1e5e0 | 1057 | (commit (string-append "v" version)))) |
bfbe868d LF |
1058 | (file-name (git-file-name name version)) |
1059 | (sha256 | |
1060 | (base32 | |
94b1e5e0 | 1061 | "02b4yg6rfag0m3j0i39sillcm5xczwv8h133vn12yr8qw04cnigs")))) |
bfbe868d LF |
1062 | (build-system go-build-system) |
1063 | (arguments | |
1064 | '(#:tests? #f ; The tests require internet access | |
1065 | #:import-path "github.com/prometheus/client_golang/prometheus/promhttp" | |
1066 | #:unpack-path "github.com/prometheus/client_golang")) | |
1067 | (propagated-inputs | |
1068 | `(("go-github-com-beorn7-perks-quantile" | |
1069 | ,go-github-com-beorn7-perks-quantile) | |
1070 | ("go-github-com-golang-protobuf-proto" | |
1071 | ,go-github-com-golang-protobuf-proto) | |
94b1e5e0 LF |
1072 | ("go-github-com-prometheus-common-model" |
1073 | ,go-github-com-prometheus-common-model) | |
bfbe868d LF |
1074 | ("go-github-com-prometheus-client-model-go" |
1075 | ,go-github-com-prometheus-client-model-go) | |
94b1e5e0 LF |
1076 | ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg" |
1077 | ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg) | |
bfbe868d LF |
1078 | ("go-github-com-prometheus-common-expfmt" |
1079 | ,go-github-com-prometheus-common-expfmt) | |
1080 | ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs))) | |
1081 | (synopsis "HTTP server and client tools for Prometheus") | |
1082 | (description "This package @code{promhttp} provides HTTP client and | |
1083 | server tools for Prometheus metrics.") | |
1084 | (home-page "https://github.com/prometheus/client_golang") | |
94b1e5e0 | 1085 | (license asl2.0))) |
fa22168b | 1086 | |
94b1e5e0 | 1087 | (define-public go-github-com-prometheus-client-golang-prometheus |
fa22168b LF |
1088 | (package |
1089 | (name "go-github-com-prometheus-client-golang-prometheus") | |
94b1e5e0 | 1090 | (version "0.9.2") |
fa22168b LF |
1091 | (source (origin |
1092 | (method git-fetch) | |
1093 | (uri (git-reference | |
1094 | (url "https://github.com/prometheus/client_golang.git") | |
94b1e5e0 | 1095 | (commit (string-append "v" version)))) |
fa22168b LF |
1096 | (file-name (git-file-name name version)) |
1097 | (sha256 | |
1098 | (base32 | |
94b1e5e0 | 1099 | "02b4yg6rfag0m3j0i39sillcm5xczwv8h133vn12yr8qw04cnigs")))) |
fa22168b LF |
1100 | (build-system go-build-system) |
1101 | (arguments | |
1102 | '(#:import-path "github.com/prometheus/client_golang/prometheus" | |
f224ea36 LF |
1103 | #:unpack-path "github.com/prometheus/client_golang" |
1104 | #:tests? #f)) ; 'TestHandler' test fails in this non-critical dependency | |
fa22168b LF |
1105 | (propagated-inputs |
1106 | `(("go-github-com-beorn7-perks-quantile" | |
1107 | ,go-github-com-beorn7-perks-quantile) | |
94b1e5e0 | 1108 | ("go-github-com-prometheus-common-model" ,go-github-com-prometheus-common-model) |
fa22168b LF |
1109 | ("go-github-com-prometheus-client-model-go" |
1110 | ,go-github-com-prometheus-client-model-go) | |
1111 | ("go-github-com-prometheus-common-expfmt" | |
1112 | ,go-github-com-prometheus-common-expfmt) | |
1113 | ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs) | |
94b1e5e0 LF |
1114 | ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg" |
1115 | ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg))) | |
fa22168b LF |
1116 | (synopsis "Prometheus instrumentation library for Go applications") |
1117 | (description "This package provides the Go client library for the | |
1118 | Prometheus monitoring and alerting system. It has two separate parts, one for | |
1119 | instrumenting application code, and one for creating clients that talk to the | |
1120 | Prometheus HTTP API.") | |
1121 | (home-page "https://github.com/prometheus/client_golang") | |
94b1e5e0 | 1122 | (license asl2.0))) |
712d01bb LF |
1123 | |
1124 | (define-public go-gopkg.in-asn1-ber.v1 | |
1125 | (package | |
1126 | (name "go-gopkg.in-asn1-ber.v1") | |
1127 | (version "1.2") | |
1128 | (source (origin | |
1129 | (method git-fetch) | |
1130 | (uri (git-reference | |
1131 | (url "https://gopkg.in/asn1-ber.v1") | |
1132 | (commit (string-append "v" version)))) | |
1133 | (file-name (git-file-name name version)) | |
1134 | (sha256 | |
1135 | (base32 | |
1136 | "1y8bvzbxpw0lfnn7pbcdwzqj4l90qj6xf88dvv9pxd9yl5g6cskx")))) | |
1137 | (build-system go-build-system) | |
1138 | (arguments | |
66fa8f0f PN |
1139 | '(#:import-path "gopkg.in/asn1-ber.v1" |
1140 | ;; Tests don't pass "vet" on go-1.11. See | |
1141 | ;; https://github.com/go-asn1-ber/asn1-ber/issues/20. | |
1142 | #:phases | |
1143 | (modify-phases %standard-phases | |
1144 | (replace 'check | |
1145 | (lambda* (#:key import-path #:allow-other-keys) | |
1146 | (invoke "go" "test" | |
1147 | "-vet=off" | |
1148 | import-path)))))) | |
712d01bb LF |
1149 | (synopsis "ASN.1 BER encoding and decoding in Go") |
1150 | (description "This package provides ASN.1 BER encoding and decoding in the | |
1151 | Go language.") | |
1152 | (home-page "https://gopkg.in/asn1-ber.v1") | |
1153 | (license expat))) | |
4cb2112d LF |
1154 | |
1155 | (define-public go-gopkg.in-ldap.v2 | |
1156 | (package | |
1157 | (name "go-gopkg.in-ldap.v2") | |
1158 | (version "2.5.1") | |
1159 | (source (origin | |
1160 | (method git-fetch) | |
1161 | (uri (git-reference | |
1162 | (url "https://gopkg.in/ldap.v2") | |
1163 | (commit (string-append "v" version)))) | |
1164 | (file-name (git-file-name name version)) | |
1165 | (sha256 | |
1166 | (base32 | |
1167 | "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h")))) | |
1168 | (build-system go-build-system) | |
1169 | (arguments | |
1170 | '(#:import-path "gopkg.in/ldap.v2" | |
1171 | #:tests? #f)) ; the test suite requires network access | |
1172 | (propagated-inputs | |
1173 | `(("go-gopkg.in-asn1-ber.v1" ,go-gopkg.in-asn1-ber.v1))) | |
1174 | (synopsis "LDAP v3 functionality for Go") | |
1175 | (description "This package provides basic LDAP v3 functionality in the Go | |
1176 | language.") | |
1177 | (home-page "https://gopkg.in/ldap.v2") | |
1178 | (license expat))) | |
7dc89dc6 LF |
1179 | |
1180 | (define-public go-github-com-flynn-archive-go-shlex | |
1181 | (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff") | |
1182 | (revision "0")) | |
1183 | (package | |
1184 | (name "go-github-com-flynn-archive-go-shlex") | |
1185 | (version (git-version "0.0.0" revision commit)) | |
1186 | (source (origin | |
1187 | (method git-fetch) | |
1188 | (uri (git-reference | |
1189 | (url "https://github.com/flynn-archive/go-shlex.git") | |
1190 | (commit commit))) | |
1191 | (file-name (git-file-name name version)) | |
1192 | (sha256 | |
1193 | (base32 | |
1194 | "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia")))) | |
1195 | (build-system go-build-system) | |
1196 | (arguments | |
1197 | '(#:import-path "github.com/flynn-archive/go-shlex")) | |
1198 | (synopsis "Go lexer") | |
1199 | (description "Shlex is a simple lexer for go that supports shell-style | |
1200 | quoting, commenting, and escaping.") | |
1201 | (home-page "https://github.com/flynn-archive/go-shlex") | |
1202 | (license asl2.0)))) | |
9d81bab8 LF |
1203 | |
1204 | (define-public go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg | |
1205 | (package | |
1206 | (name "go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg") | |
1207 | (version "0.2.0") | |
1208 | (source (origin | |
1209 | (method git-fetch) | |
1210 | (uri (git-reference | |
1211 | (url "https://github.com/prometheus/common.git") | |
1212 | (commit (string-append "v" version)))) | |
1213 | (file-name (git-file-name name version)) | |
1214 | (sha256 | |
1215 | (base32 | |
1216 | "02kym6lcfnlq23qbv277jr0q1n7jj0r14gqg93c7wn7gc44jv3vp")))) | |
1217 | (build-system go-build-system) | |
1218 | (arguments | |
1219 | '(#:import-path "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg" | |
1220 | #:unpack-path "github.com/prometheus/common")) | |
1221 | (synopsis "Internal Prometheus component") | |
1222 | (description "This package is an internal component of Prometheus.") | |
1223 | (home-page "https://github.com/prometheus/common") | |
1224 | (license asl2.0))) |