1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
3 ;;; Copyright © 2016, 2017, 2018, 2019 Leo Famulari <leo@famulari.name>
5 ;;; This file is part of GNU Guix.
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.
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.
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/>.
20 (define-module (gnu packages syncthing)
21 #:use-module (guix build-system go)
22 #:use-module (guix build-system trivial)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix licenses)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages golang))
30 (define-public syncthing
36 (uri (string-append "https://github.com/syncthing/syncthing"
37 "/releases/download/v" version
38 "/syncthing-source-v" version ".tar.gz"))
41 "1b6fidpkwfa2bm6hlv4p0bzxa1ha6s88vajczhryhqi5vjfxafri"))
42 (modules '((guix build utils)))
43 ;; Delete bundled ("vendored") free software source code.
45 (delete-file-recursively "vendor")
47 (build-system go-build-system)
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"))
52 ;; When updating Syncthing, check 'go.mod' in the source distribution to
53 ;; ensure we are using the correct versions of these dependencies.
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" ,go-golang-org-x-crypto)
106 ("go-github-com-flynn-archive-go-shlex"
107 ,go-github-com-flynn-archive-go-shlex)
108 ("go-github-com-getsentry-raven-go" ,go-github-com-getsentry-raven-go)
109 ("go-github-com-maruel-panicparse" ,go-github-com-maruel-panicparse)
110 ("go-github-com-ccding-go-stun" ,go-github-com-ccding-go-stun)
111 ("go-github-com-audriusbutkevicius-pfilter" ,go-github-com-audriusbutkevicius-pfilter)
112 ("go-github-com-lucas-clemente-quic-go" ,go-github-com-lucas-clemente-quic-go)
115 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
118 `(#:import-path "github.com/syncthing/syncthing"
119 ;; We don't need to install the source code for end-user applications.
122 (modify-phases %standard-phases
123 (add-before 'build 'increase-test-timeout
125 (substitute* "src/github.com/syncthing/syncthing/build.go"
131 (with-directory-excursion "src/github.com/syncthing/syncthing"
132 (invoke "go" "run" "build.go" "-no-upgrade"))))
136 (with-directory-excursion "src/github.com/syncthing/syncthing"
137 (invoke "go" "run" "build.go" "test"))))
140 (lambda* (#:key outputs #:allow-other-keys)
141 (let ((out (assoc-ref outputs "out"))
142 (utils (assoc-ref outputs "utils"))
143 (src "src/github.com/syncthing/syncthing/bin/"))
144 (install-file (string-append src "/syncthing")
145 (string-append out "/bin"))
146 (delete-file (string-append src "/syncthing"))
147 (copy-recursively "src/github.com/syncthing/syncthing/bin/"
148 (string-append utils "/bin"))
151 (add-after 'install 'install-docs
152 (lambda* (#:key outputs #:allow-other-keys)
153 (let* ((out (assoc-ref outputs "out"))
154 (utils (assoc-ref outputs "utils"))
156 (man-section (string-append man "/man"))
157 (src "src/github.com/syncthing/syncthing/man/"))
158 ;; Install all the man pages to "out".
162 (string-append out man-section
163 (string-take-right file 1))))
164 (find-files src "\\.[1-9]"))
165 ;; Copy all the man pages to "utils"
166 (copy-recursively (string-append out man)
167 (string-append utils man))
168 ;; Delete extraneous man pages from "out" and "utils",
170 (delete-file (string-append out man "/man1/stdiscosrv.1"))
171 (delete-file (string-append out man "/man1/strelaysrv.1"))
172 (delete-file (string-append utils man "/man1/syncthing.1"))
174 (synopsis "Decentralized continuous file system synchronization")
175 (description "Syncthing is a peer-to-peer file synchronization tool that
176 supports a wide variety of computing platforms. It uses the Block Exchange
178 (home-page "https://github.com/syncthing/syncthing")
181 (define-public go-github-com-audriusbutkevicius-go-nat-pmp
182 (let ((commit "452c97607362b2ab5a7839b8d1704f0396b640ca")
185 (name "go-github-com-audriusbutkevicius-go-nat-pmp")
186 (version (git-version "0.0.0" revision commit))
190 (url "https://github.com/AudriusButkevicius/go-nat-pmp")
192 (file-name (git-file-name name version))
194 (base32 "1accmpl1llk16a19nlyy991fqrgfay6l53gb64hgmdfmqljdvbk7"))))
195 (build-system go-build-system)
197 `(#:import-path "github.com/AudriusButkevicius/go-nat-pmp"))
198 (synopsis "Port mapping and discovery of external IP address")
199 (description "This package provides a Go client for the NAT-PMP internet
200 protocol for port mapping and discovering the external IP address of a
202 (home-page "https://github.com/AudriusButkevicius/go-nat-pmp")
205 (define-public go-github-com-audriusbutkevicius-recli
207 (name "go-github-com-audriusbutkevicius-recli")
212 (url "https://github.com/AudriusButkevicius/recli")
213 (commit (string-append "v" version))))
214 (file-name (git-file-name name version))
217 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
218 (build-system go-build-system)
220 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
221 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
223 `(#:import-path "github.com/AudriusButkevicius/recli"))
224 (synopsis "Reflection-based CLI generator")
225 (description "For a given struct, @code{recli} builds a set of
226 @code{urfave/cli} commands which allows you to modify it from the command line.
227 It is useful for generating command line clients for your application
228 configuration that is stored in a Go struct.")
229 (home-page "https://github.com/AudriusButkevicius/recli")
232 (define-public go-github-com-bkaradzic-go-lz4
233 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
236 (name "go-github-com-bkaradzic-go-lz4")
237 (version (git-version "0.0.0" revision commit))
241 (url "https://github.com/bkaradzic/go-lz4")
243 (file-name (git-file-name name version))
246 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
247 (build-system go-build-system)
249 `(#:import-path "github.com/bkaradzic/go-lz4"))
250 (synopsis "LZ4 compression algorithm")
251 (description "This package provides @code{go-lz4}, a Go implementation of
252 the LZ4 compression algorithm.")
253 (home-page "https://github.com/bkaradzic/go-lz4")
256 (define-public go-github-com-calmh-du
258 (name "go-github-com-calmh-du")
263 (url "https://github.com/calmh/du")
264 (commit (string-append "v" version))))
265 (file-name (git-file-name name version))
268 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
269 (build-system go-build-system)
271 `(#:import-path "github.com/calmh/du"))
272 (synopsis "Get total and available disk space of a given volume")
273 (description "This is a Go implementation of `du`. It provides disk usage
274 information, such as how much storage space is available, free, and used.")
275 (home-page "https://github.com/calmh/du")
276 (license public-domain)))
278 (define-public go-github-com-calmh-xdr
280 (name "go-github-com-calmh-xdr")
285 (url "https://github.com/calmh/xdr")
286 (commit (string-append "v" version))))
287 (file-name (git-file-name name version))
290 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
291 (build-system go-build-system)
293 `(#:import-path "github.com/calmh/xdr"))
294 (synopsis "XDR marshalling and unmarshalling")
295 (description "XDR is an External Data Representation (XDR)
296 marshalling and unmarshalling library in Go. It uses code generation and not
298 (home-page "https://github.com/calmh/xdr")
301 (define-public go-github-com-d4l3k-messagediff
303 (name "go-github-com-d4l3k-messagediff")
308 (url "https://github.com/d4l3k/messagediff")
309 (commit (string-append "v" version))))
310 (file-name (git-file-name name version))
313 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
314 (build-system go-build-system)
316 `(#:import-path "github.com/d4l3k/messagediff"))
317 (synopsis "Diff arbitrary Go structs")
318 (description "Messagediff is a library for calculating diffs of arbitrary
319 structs in the Go programming language.")
320 (home-page "https://github.com/d4l3k/messagediff")
323 (define-public go-github-com-gobwas-glob
324 (let ((commit "51eb1ee00b6d931c66d229ceeb7c31b985563420")
327 (name "go-github-com-gobwas-glob")
328 (version (git-version "0.0.0" revision commit))
332 (url "https://github.com/gobwas/glob")
334 (file-name (git-file-name name version))
337 "090wzpwsjana1qas8ipwh1pj959gvc4b7vwybzi01f3bmd79jwlp"))))
338 (build-system go-build-system)
340 `(#:import-path "github.com/gobwas/glob"))
341 (synopsis "Go globbing library")
342 (description "This package provides a Go implementation of globs.")
343 (home-page "https://github.com/gobwas/glob")
347 (define-public go-github-com-golang-groupcache-lru
348 (let ((commit "84a468cf14b4376def5d68c722b139b881c450a4")
351 (name "go-github-com-golang-groupcache-lru")
352 (version (git-version "0.0.0" revision commit))
356 (url "https://github.com/golang/groupcache")
358 (file-name (git-file-name name version))
361 "1ky1r9qh54yi9zp2769qrjngzndgd8fn7mja2qfac285n06chmcn"))))
362 (build-system go-build-system)
364 `(#:import-path "github.com/golang/groupcache/lru"
365 #:unpack-path "github.com/golang/groupcache"))
366 (synopsis "Groupcache is a caching and cache-filling library")
367 (description "Groupcache is a caching and cache-filling library, intended
368 as a replacement for memcached in many cases. It provides a data loading
369 mechanism with caching and de-duplication that works across a set of peer
371 (home-page "https://github.com/golang/groupcache")
374 (define-public go-github-com-golang-snappy
375 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
378 (name "go-github-com-golang-snappy")
379 (version (git-version "0.0.0" revision commit))
383 (url "https://github.com/golang/snappy")
385 (file-name (git-file-name name version))
388 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
389 (build-system go-build-system)
391 `(#:import-path "github.com/golang/snappy"))
392 (synopsis "Snappy compression format in the Go programming language")
393 (description "This package provides a Go implementation of the Snappy
394 compression format.")
395 (home-page "https://github.com/golang/snappy")
398 (define-public go-github-com-jackpal-gateway
399 (let ((commit "5795ac81146e01d3fab7bcf21c043c3d6a32b006")
402 (name "go-github-com-jackpal-gateway")
403 (version (git-version "0.0.0" revision commit))
407 (url "https://github.com/jackpal/gateway")
409 (file-name (git-file-name name version))
412 "0fkwkwmhfadwk3cha8616bhqxfkr9gjjnynhhxyldlphixgs3f25"))))
413 (build-system go-build-system)
415 `(#:import-path "github.com/jackpal/gateway"))
416 (synopsis "Discover the address of a LAN gateway")
417 (description "@code{gateway} is a Go library for discovering the IP
418 address of the default LAN gateway.")
419 (home-page "https://github.com/jackpal/gateway")
422 (define-public go-github-com-lib-pq
424 (name "go-github-com-lib-pq")
429 (url "https://github.com/lib/pq")
430 (commit (string-append "v" version))))
431 (file-name (git-file-name name version))
434 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
435 (build-system go-build-system)
437 `(#:import-path "github.com/lib/pq"
438 ;; The tests seem to fail without access to the network or a running
439 ;; Postgres instance.
441 (synopsis "Golang Postgres driver for Go's database/sql")
442 (description "This package provides a pure Go Postgres driver for Go's
443 database/sql package.")
444 (home-page "https://github.com/lib/pq")
447 (define-public go-github-com-oschwald-geoip2-golang
449 (name "go-github-com-oschwald-geoip2-golang")
454 (url "https://github.com/oschwald/geoip2-golang")
455 (commit (string-append "v" version))))
456 (file-name (git-file-name name version))
459 "0jivzl15jb8n16rm1b2w97kf7vna5dd3kcz865wfi233qay075j2"))))
460 (build-system go-build-system)
462 `(("go-github-com-oschwald-maxminddb-golang"
463 ,go-github-com-oschwald-maxminddb-golang)
464 ("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
466 `(#:import-path "github.com/oschwald/geoip2-golang"
467 #:tests? #f)) ; Requires some unpackaged software and test data
468 (synopsis "MaxMind GeoIP2 reader")
469 (description "This package provides a library for reading MaxMind
470 GeoLite2 and GeoIP2 databases in Go.")
471 (home-page "https://github.com/oschwald/geoip2-golang")
474 (define-public go-github-com-oschwald-maxminddb-golang
475 (let ((commit "26fe5ace1c706491c2936119e1dc69c1a9c04d7f")
478 (name "go-github-com-oschwald-maxminddb-golang")
479 (version (git-version "1.2.0" revision commit))
483 (url "https://github.com/oschwald/maxminddb-golang")
485 (file-name (git-file-name name version))
488 "1i6d935f3cv9djpjvc2ibh8aps8jqvg454b9pkwg2h98al759ggk"))))
489 (build-system go-build-system)
491 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
493 `(#:import-path "github.com/oschwald/maxminddb-golang"
494 #:tests? #f)) ; Requires some unpackaged software and test data
495 (synopsis "MaxMind DB Reader for Go")
496 (description "This is a Go reader for the MaxMind DB format. Although
497 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
498 higher-level API for doing so.")
499 (home-page "https://github.com/oschwald/maxminddb-golang")
502 (define-public go-github-com-stathat-go
503 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
506 (name "go-github-com-stathat-go")
507 (version (git-version "0.0.0" revision commit))
511 (url "https://github.com/stathat/go")
513 (file-name (git-file-name name version))
516 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
517 (build-system go-build-system)
519 `(#:import-path "github.com/stathat/go"))
520 (synopsis "Post statistics to StatHat")
521 (description "This is a Go package for posting to a StatHat account.")
522 (home-page "https://github.com/stathat/go")
525 (define-public go-github-com-rcrowley-go-metrics
526 (let ((commit "e181e095bae94582363434144c61a9653aff6e50")
529 (name "go-github-com-rcrowley-go-metrics")
530 (version (git-version "0.0.0" revision commit))
534 (url "https://github.com/rcrowley/go-metrics")
536 (file-name (git-file-name name version))
539 "1pwkyw801hy7n94skzk6h177zqcil6ayrmb5gs3jdpsfayh8ia5w"))))
540 (build-system go-build-system)
542 `(#:import-path "github.com/rcrowley/go-metrics"))
544 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
545 (synopsis "Go port of Coda Hale's Metrics library")
546 (description "This package provides a Go implementation of Coda Hale's
548 (home-page "https://github.com/rcrowley/go-metrics")
551 (define-public go-github-com-sasha-s-go-deadlock
553 (name "go-github-com-sasha-s-go-deadlock")
558 (url "https://github.com/sasha-s/go-deadlock")
559 (commit (string-append "v" version))))
560 (file-name (git-file-name name version))
563 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
564 (build-system go-build-system)
566 `(#:import-path "github.com/sasha-s/go-deadlock"))
568 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
569 (synopsis "Deadlock detection in go")
570 (description "This package provides tools for detecting deadlocks at
572 (home-page "https://github.com/sasha-s/go-deadlock")
575 (define-public go-github-com-syndtr-goleveldb
576 (let ((commit "c3a204f8e96543bb0cc090385c001078f184fc46")
579 (name "go-github-com-syndtr-goleveldb")
580 (version (git-version "1.0.1" revision commit))
584 (url "https://github.com/syndtr/goleveldb")
586 (file-name (git-file-name name version))
589 "18cac90dim2z5g28vazzibxa058q2ynihsmf0vbscwzba6l5s5ms"))))
590 (build-system go-build-system)
592 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
594 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
595 #:unpack-path "github.com/syndtr/goleveldb"
596 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
597 (synopsis "LevelDB key/value database")
598 (description "This is an implementation of the LevelDB key / value
600 (home-page "https://github.com/syndtr/goleveldb")
603 (define-public go-github-com-thejerf-suture
605 (name "go-github-com-thejerf-suture")
610 (url "https://github.com/thejerf/suture")
611 (commit (string-append "v" version))))
612 (file-name (git-file-name name version))
615 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
616 (build-system go-build-system)
618 `(#:import-path "github.com/thejerf/suture"))
619 (synopsis "Supervisor trees for Go")
620 (description "Suture provides Erlang-ish supervisor trees for Go.
621 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
622 when it's trying to die.
624 It is intended to deal gracefully with the real failure cases that can occur
625 with supervision trees (such as burning all your CPU time endlessly restarting
626 dead services), while also making no unnecessary demands on the \"service\"
627 code, and providing hooks to perform adequate logging with in a production
629 (home-page "https://github.com/thejerf/suture")
632 (define-public go-github-com-vitrun-qart-coding
633 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
636 (name "go-github-com-vitrun-qart-coding")
637 (version (git-version "0.0.0" revision commit))
641 (url "https://github.com/vitrun/qart")
643 (file-name (string-append "go-github-com-vitrun-qart-"
644 version "-checkout"))
647 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
648 (build-system go-build-system)
650 `(#:import-path "github.com/vitrun/qart/coding"
651 #:unpack-path "github.com/vitrun/qart"))
652 (synopsis "Low-level QR coding library")
653 (description "This package provides a library for embedding
654 human-meaningful graphics in QR codes. However, instead of scribbling on
655 redundant pieces and relying on error correction to preserve the meaning,
656 @code{qart} engineers the encoded values to create the picture in a code with no
657 inherent errors. This @code{qart} component, @code{coding}, implements
658 low-level QR coding details.")
659 (home-page "https://github.com/vitrun/qart/")
662 (define-public go-github-com-vitrun-qart-gf256
663 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
666 (name "go-github-com-vitrun-qart-gf256")
667 (version (git-version "0.0.0" revision commit))
671 (url "https://github.com/vitrun/qart")
673 (file-name (string-append "go-github-com-vitrun-qart-"
674 version "-checkout"))
677 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
678 (build-system go-build-system)
680 `(#:import-path "github.com/vitrun/qart/gf256"
681 #:unpack-path "github.com/vitrun/qart"))
682 (synopsis "Qart library for Galois Field GF(256) math")
683 (description "This package, a component of @code{qart}, provides @code{gf256},
684 implements arithmetic over the Galois Field GF(256).")
685 (home-page "https://github.com/vitrun/qart")
688 (define-public go-github-com-vitrun-qart-qr
689 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
692 (name "go-github-com-vitrun-qart-qr")
693 (version (git-version "0.0.0" revision commit))
697 (url "https://github.com/vitrun/qart")
699 (file-name (string-append "go-github-com-vitrun-qart-"
700 version "-checkout"))
703 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
704 (build-system go-build-system)
706 `(#:import-path "github.com/vitrun/qart/qr"
707 #:unpack-path "github.com/vitrun/qart"))
708 (synopsis "Qart component for generating QR codes")
709 (description "This package provides a library for embedding
710 human-meaningful graphics in QR codes. However, instead of scribbling on
711 redundant pieces and relying on error correction to preserve the meaning,
712 @code{qart} engineers the encoded values to create the picture in a code with no
713 inherent errors. This @code{qart} component, @code{qr}, provides QR code
715 (home-page "https://github.com/vitrun/qart")
718 ;; XXX Syncthing actually imports 'github.com/chmduquesne/rollinghash/adler32'.
719 ;; Normally we'd package this module indpendenctly but the adler32 module itself
720 ;; imports 'github.com/chmduquesne/rollinghash/', so this is the easy way out.
721 (define-public go-github-com-chmduquesne-rollinghash
722 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
725 (name "go-github-com-chmduquesne-rollinghash")
726 (version (git-version "4.0.0" revision commit))
731 (url "https://github.com/chmduquesne/rollinghash.git")
733 (file-name (git-file-name name version))
736 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
737 (build-system go-build-system)
739 '(#:import-path "github.com/chmduquesne/rollinghash/"))
740 (synopsis "Rolling hashes in Go")
741 (description "This package provides a Go implementation of several rolling
743 (home-page "https://github.com/chmduquesne/rollinghash")
746 (define-public go-github-com-petermattis-goid
747 (let ((commit "3db12ebb2a599ba4a96bea1c17b61c2f78a40e02")
750 (name "go-github-com-petermattis-goid")
751 (version (git-version "0.0.0" revision commit))
755 (url "https://github.com/petermattis/goid.git")
757 (file-name (git-file-name name version))
761 "0z18a3mr72c52g7g94n08gxw0ksnaafbfwdl5p5jav2sffirb0kd"))))
762 (build-system go-build-system)
764 '(#:import-path "github.com/petermattis/goid"))
765 (synopsis "Identify the running goroutine")
766 (description "This package offers a method of programmatically retrieving
767 the current goroutine's ID.")
768 (home-page "https://github.com/petermattis/goid")
771 (define-public go-github-com-kballard-go-shellquote
772 (let ((commit "cd60e84ee657ff3dc51de0b4f55dd299a3e136f2")
775 (name "go-github-com-kballard-go-shellquote")
776 (version (git-version "0.0.0" revision commit))
780 (url "https://github.com/kballard/go-shellquote.git")
782 (file-name (git-file-name name version))
785 "1xjpin4jq1zl84dcn96xhjmn9bsfyszf6g9aqyj2dc0xfi6c88y0"))))
786 (build-system go-build-system)
788 '(#:import-path "github.com/kballard/go-shellquote"))
789 (synopsis "Shell-style string joins and splits")
790 (description "Shellquote provides utilities for joining/splitting strings
791 using sh's word-splitting rules.")
792 (home-page "https://github.com/kballard/go-shellquote")
795 (define-public go-github-com-syncthing-notify
796 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
799 (name "go-github-com-syncthing-notify")
800 (version (git-version "0.0.0" revision commit))
804 (url "https://github.com/syncthing/notify")
806 (file-name (git-file-name name version))
809 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
810 (build-system go-build-system)
812 '(#:import-path "github.com/syncthing/notify"))
814 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
815 (synopsis "File system event notification library")
816 (description "This package provides @code{notify}, a file system event
817 notification library in Go.")
818 (home-page "https://github.com/syncthing/notify")
821 (define-public go-github-com-beorn7-perks-quantile
822 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
825 (name "go-github-com-beorn7-perks-quantile")
826 (version (git-version "0.0.0" revision commit))
830 (url "https://github.com/beorn7/perks.git")
832 (file-name (git-file-name name version))
835 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
836 (build-system go-build-system)
838 '(#:import-path "github.com/beorn7/perks/quantile"
839 #:unpack-path "github.com/beorn7/perks"))
840 (synopsis "Compute approximate quantiles over an unbounded data stream")
841 (description "Perks contains the Go package @code{quantile} that computes
842 approximate quantiles over an unbounded data stream within low memory and CPU
844 (home-page "https://github.com/beorn7/perks")
847 (define-public go-github-com-golang-protobuf-proto
849 (name "go-github-com-golang-protobuf-proto")
854 (url "https://github.com/golang/protobuf.git")
855 (commit (string-append "v" version))))
856 (file-name (git-file-name name version))
859 "15am4s4646qy6iv0g3kkqq52rzykqjhm4bf08dk0fy2r58knpsyl"))))
860 (build-system go-build-system)
862 '(#:import-path "github.com/golang/protobuf/proto"
863 #:unpack-path "github.com/golang/protobuf"
864 #:tests? #f ; requires unpackaged golang.org/x/sync/errgroup
866 (synopsis "Go support for Protocol Buffers")
867 (description "This package provides Go support for the Protocol Buffers
868 data serialization format.")
869 (home-page "https://github.com/golang/protobuf")
872 (define-public go-github-com-prometheus-client-model-go
873 (let ((commit "fd36f4220a901265f90734c3183c5f0c91daa0b8")
876 (name "go-github-com-prometheus-client-model-go")
877 (version (git-version "0.0.2" revision commit))
881 (url "https://github.com/prometheus/client_model.git")
883 (file-name (git-file-name name version))
886 "1bs5d72k361llflgl94c22n0w53j30rsfh84smgk8mbjbcmjsaa5"))))
887 (build-system go-build-system)
889 '(#:import-path "github.com/prometheus/client_model/go"
890 #:unpack-path "github.com/prometheus/client_model"))
892 `(("go-github-com-golang-protobuf-proto"
893 ,go-github-com-golang-protobuf-proto)))
894 (synopsis "Data model artifacts for Prometheus")
895 (description "This package provides data model artifacts for Prometheus.")
896 (home-page "https://github.com/prometheus/client_model")
899 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
900 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
903 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
904 (version (git-version "1.0.0" revision commit))
910 (url "https://github.com/matttproud/golang_protobuf_extensions.git")
912 (file-name (git-file-name name version))
915 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
916 (build-system go-build-system)
918 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
919 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
921 `(("go-github-com-golang-protobuf-proto"
922 ,go-github-com-golang-protobuf-proto)))
923 (synopsis "Streaming Protocol Buffers in Go")
924 (description "This package provides various Protocol Buffer
925 extensions for the Go language, namely support for record length-delimited
927 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
930 (define-public go-github-com-prometheus-common-expfmt
932 (name "go-github-com-prometheus-common-expfmt")
937 (url "https://github.com/prometheus/common.git")
938 (commit (string-append "v" version))))
939 (file-name (git-file-name name version))
942 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
943 (build-system go-build-system)
945 '(#:import-path "github.com/prometheus/common/expfmt"
946 #:unpack-path "github.com/prometheus/common"
948 (modify-phases %standard-phases
949 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
950 (lambda* (#:key outputs #:allow-other-keys)
952 (make-file-writable file))
954 (string-append (assoc-ref outputs "out")
955 "/src/github.com/prometheus/common/expfmt/testdata/")
959 ;; Tests don't pass "vet" on go-1.11. See
960 ;; https://github.com/syncthing/syncthing/issues/5311.
961 (lambda* (#:key import-path #:allow-other-keys)
966 `(("go-github-com-golang-protobuf-proto"
967 ,go-github-com-golang-protobuf-proto)
968 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
969 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
970 ("go-github-com-prometheus-client-model-go"
971 ,go-github-com-prometheus-client-model-go)))
972 (synopsis "Prometheus metrics")
973 (description "This package provides tools for reading and writing
974 Prometheus metrics.")
975 (home-page "https://github.com/prometheus/common")
978 (define-public go-github-com-prometheus-common-model
980 (name "go-github-com-prometheus-common-model")
985 (url "https://github.com/prometheus/common.git")
986 (commit (string-append "v" version))))
987 (file-name (git-file-name name version))
990 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
991 (build-system go-build-system)
993 '(#:import-path "github.com/prometheus/common/model"
994 #:unpack-path "github.com/prometheus/common"))
995 (synopsis "Prometheus component")
996 (description "This package provides a component of the Go Prometheus
998 (home-page "https://github.com/prometheus/common")
1001 (define-public go-github-com-prometheus-procfs
1003 (name "go-github-com-prometheus-procfs")
1008 (url "https://github.com/prometheus/procfs.git")
1009 (commit (string-append "v" version))))
1010 (file-name (git-file-name name version))
1013 "18c4m795fwng8f8qa395f3crvamlbk5y5afk8b5rzyisnmjq774y"))))
1014 (build-system go-build-system)
1016 '(#:import-path "github.com/prometheus/procfs"
1017 ;; The tests require Go modules, which are not yet supported in Guix's
1020 (synopsis "Go library for reading @file{/proc}")
1021 (description "The @code{procfs} Go package provides functions to retrieve
1022 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
1023 (home-page "https://github.com/prometheus/procfs")
1026 (define-public go-github-com-client-golang-prometheus-promhttp
1028 (name "go-github-com-client-golang-prometheus-promhttp")
1033 (url "https://github.com/prometheus/client_golang.git")
1034 (commit (string-append "v" version))))
1035 (file-name (git-file-name name version))
1038 "0s134fj4i7k6pxdmxwkdi7amb1882yq33spv15hg3pkpbd3h311p"))))
1039 (build-system go-build-system)
1041 '(#:tests? #f ; The tests require internet access
1042 #:import-path "github.com/prometheus/client_golang/prometheus/promhttp"
1043 #:unpack-path "github.com/prometheus/client_golang"))
1045 `(("go-github-com-beorn7-perks-quantile"
1046 ,go-github-com-beorn7-perks-quantile)
1047 ("go-github-com-golang-protobuf-proto"
1048 ,go-github-com-golang-protobuf-proto)
1049 ("go-github-com-prometheus-common-model"
1050 ,go-github-com-prometheus-common-model)
1051 ("go-github-com-prometheus-client-model-go"
1052 ,go-github-com-prometheus-client-model-go)
1053 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1054 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)
1055 ("go-github-com-prometheus-common-expfmt"
1056 ,go-github-com-prometheus-common-expfmt)
1057 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)))
1058 (synopsis "HTTP server and client tools for Prometheus")
1059 (description "This package @code{promhttp} provides HTTP client and
1060 server tools for Prometheus metrics.")
1061 (home-page "https://github.com/prometheus/client_golang")
1064 (define-public go-github-com-prometheus-client-golang-prometheus
1066 (name "go-github-com-prometheus-client-golang-prometheus")
1071 (url "https://github.com/prometheus/client_golang.git")
1072 (commit (string-append "v" version))))
1073 (file-name (git-file-name name version))
1076 "0s134fj4i7k6pxdmxwkdi7amb1882yq33spv15hg3pkpbd3h311p"))))
1077 (build-system go-build-system)
1079 '(#:import-path "github.com/prometheus/client_golang/prometheus"
1080 #:unpack-path "github.com/prometheus/client_golang"
1081 #:tests? #f)) ; 'TestHandler' test fails in this non-critical dependency
1083 `(("go-github-com-beorn7-perks-quantile"
1084 ,go-github-com-beorn7-perks-quantile)
1085 ("go-github-com-prometheus-common-model" ,go-github-com-prometheus-common-model)
1086 ("go-github-com-prometheus-client-model-go"
1087 ,go-github-com-prometheus-client-model-go)
1088 ("go-github-com-prometheus-common-expfmt"
1089 ,go-github-com-prometheus-common-expfmt)
1090 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1091 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1092 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)))
1093 (synopsis "Prometheus instrumentation library for Go applications")
1094 (description "This package provides the Go client library for the
1095 Prometheus monitoring and alerting system. It has two separate parts, one for
1096 instrumenting application code, and one for creating clients that talk to the
1097 Prometheus HTTP API.")
1098 (home-page "https://github.com/prometheus/client_golang")
1101 (define-public go-gopkg.in-asn1-ber.v1
1103 (name "go-gopkg.in-asn1-ber.v1")
1108 (url "https://gopkg.in/asn1-ber.v1")
1109 (commit (string-append "v" version))))
1110 (file-name (git-file-name name version))
1113 "1y8bvzbxpw0lfnn7pbcdwzqj4l90qj6xf88dvv9pxd9yl5g6cskx"))))
1114 (build-system go-build-system)
1116 '(#:import-path "gopkg.in/asn1-ber.v1"
1117 ;; Tests don't pass "vet" on go-1.11. See
1118 ;; https://github.com/go-asn1-ber/asn1-ber/issues/20.
1120 (modify-phases %standard-phases
1122 (lambda* (#:key import-path #:allow-other-keys)
1126 (synopsis "ASN.1 BER encoding and decoding in Go")
1127 (description "This package provides ASN.1 BER encoding and decoding in the
1129 (home-page "https://gopkg.in/asn1-ber.v1")
1132 (define-public go-gopkg.in-ldap.v2
1134 (name "go-gopkg.in-ldap.v2")
1139 (url "https://gopkg.in/ldap.v2")
1140 (commit (string-append "v" version))))
1141 (file-name (git-file-name name version))
1144 "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h"))))
1145 (build-system go-build-system)
1147 '(#:import-path "gopkg.in/ldap.v2"
1148 #:tests? #f)) ; the test suite requires network access
1150 `(("go-gopkg.in-asn1-ber.v1" ,go-gopkg.in-asn1-ber.v1)))
1151 (synopsis "LDAP v3 functionality for Go")
1152 (description "This package provides basic LDAP v3 functionality in the Go
1154 (home-page "https://gopkg.in/ldap.v2")
1157 (define-public go-github-com-flynn-archive-go-shlex
1158 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1161 (name "go-github-com-flynn-archive-go-shlex")
1162 (version (git-version "0.0.0" revision commit))
1166 (url "https://github.com/flynn-archive/go-shlex.git")
1168 (file-name (git-file-name name version))
1171 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1172 (build-system go-build-system)
1174 '(#:import-path "github.com/flynn-archive/go-shlex"))
1175 (synopsis "Go lexer")
1176 (description "Shlex is a simple lexer for go that supports shell-style
1177 quoting, commenting, and escaping.")
1178 (home-page "https://github.com/flynn-archive/go-shlex")
1181 (define-public go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg
1183 (name "go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg")
1188 (url "https://github.com/prometheus/common.git")
1189 (commit (string-append "v" version))))
1190 (file-name (git-file-name name version))
1193 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
1194 (build-system go-build-system)
1196 '(#:import-path "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg"
1197 #:unpack-path "github.com/prometheus/common"))
1198 (synopsis "Internal Prometheus component")
1199 (description "This package is an internal component of Prometheus.")
1200 (home-page "https://github.com/prometheus/common")
1203 (define-public go-github-com-audriusbutkevicius-pfilter
1204 (let ((commit "c55ef6137fc6f075801eac099cc2687ede0f101d")
1207 (name "go-github-com-audriusbutkevicius-pfilter")
1208 (version (git-version "0.0.0" revision commit))
1213 (url "https://github.com/AudriusButkevicius/pfilter.git")
1215 (file-name (git-file-name name version))
1218 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1219 (build-system go-build-system)
1221 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1222 (synopsis "Filter packets into mulitple virtual connections")
1223 (description "Pfilter is a Go package for filtering packets into multiple
1224 virtual connections from a single physical connection.")
1225 (home-page "https://github.com/AudriusButkevicius/pfilter")
1228 (define-public go-github-com-ccding-go-stun
1229 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1232 (name "go-github-com-ccding-go-stun")
1233 (version (git-version "0.0.0" revision commit))
1238 (url "https://github.com/ccding/go-stun.git")
1240 (file-name (git-file-name name version))
1243 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1244 (build-system go-build-system)
1246 '(#:import-path "github.com/ccding/go-stun"))
1247 (synopsis "STUN client implementation")
1248 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1250 (home-page "https://github.com/ccding/go-stun")