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 "0pkb9vdb10lnlk6sgg6hxgkdjnvxx90cfdf8vgrc5sljzm5qhr6l"))
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-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)
111 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
114 `(#:import-path "github.com/syncthing/syncthing"
115 ;; We don't need to install the source code for end-user applications.
118 (modify-phases %standard-phases
119 (add-before 'build 'increase-test-timeout
121 (substitute* "src/github.com/syncthing/syncthing/build.go"
127 (with-directory-excursion "src/github.com/syncthing/syncthing"
128 (invoke "go" "run" "build.go" "-no-upgrade"))))
132 (with-directory-excursion "src/github.com/syncthing/syncthing"
133 (invoke "go" "run" "build.go" "test"))))
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"))
147 (add-after 'install 'install-docs
148 (lambda* (#:key outputs #:allow-other-keys)
149 (let* ((out (assoc-ref outputs "out"))
150 (utils (assoc-ref outputs "utils"))
152 (man-section (string-append man "/man"))
153 (src "src/github.com/syncthing/syncthing/man/"))
154 ;; Install all the man pages to "out".
158 (string-append out man-section
159 (string-take-right file 1))))
160 (find-files src "\\.[1-9]"))
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",
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"))
170 (synopsis "Decentralized continuous file system synchronization")
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
174 (home-page "https://github.com/syncthing/syncthing")
177 (define-public go-github-com-audriusbutkevicius-go-nat-pmp
178 (let ((commit "452c97607362b2ab5a7839b8d1704f0396b640ca")
181 (name "go-github-com-audriusbutkevicius-go-nat-pmp")
182 (version (git-version "0.0.0" revision commit))
186 (url "https://github.com/AudriusButkevicius/go-nat-pmp")
188 (file-name (git-file-name name version))
190 (base32 "1accmpl1llk16a19nlyy991fqrgfay6l53gb64hgmdfmqljdvbk7"))))
191 (build-system go-build-system)
193 `(#:import-path "github.com/AudriusButkevicius/go-nat-pmp"))
194 (synopsis "Port mapping and discovery of external IP address")
195 (description "This package provides a Go client for the NAT-PMP internet
196 protocol for port mapping and discovering the external IP address of a
198 (home-page "https://github.com/AudriusButkevicius/go-nat-pmp")
201 (define-public go-github-com-audriusbutkevicius-recli
203 (name "go-github-com-audriusbutkevicius-recli")
208 (url "https://github.com/AudriusButkevicius/recli")
209 (commit (string-append "v" version))))
210 (file-name (git-file-name name version))
213 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
214 (build-system go-build-system)
216 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
217 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
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")
228 (define-public go-github-com-bkaradzic-go-lz4
229 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
232 (name "go-github-com-bkaradzic-go-lz4")
233 (version (git-version "0.0.0" revision commit))
237 (url "https://github.com/bkaradzic/go-lz4")
239 (file-name (git-file-name name version))
242 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
243 (build-system go-build-system)
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")
252 (define-public go-github-com-calmh-du
254 (name "go-github-com-calmh-du")
259 (url "https://github.com/calmh/du")
260 (commit (string-append "v" version))))
261 (file-name (git-file-name name version))
264 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
265 (build-system go-build-system)
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)))
274 (define-public go-github-com-calmh-xdr
276 (name "go-github-com-calmh-xdr")
281 (url "https://github.com/calmh/xdr")
282 (commit (string-append "v" version))))
283 (file-name (git-file-name name version))
286 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
287 (build-system go-build-system)
289 `(#:import-path "github.com/calmh/xdr"))
290 (synopsis "XDR marshalling and unmarshalling")
291 (description "XDR is an External Data Representation (XDR)
292 marshalling and unmarshalling library in Go. It uses code generation and not
294 (home-page "https://github.com/calmh/xdr")
297 (define-public go-github-com-d4l3k-messagediff
299 (name "go-github-com-d4l3k-messagediff")
304 (url "https://github.com/d4l3k/messagediff")
305 (commit (string-append "v" version))))
306 (file-name (git-file-name name version))
309 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
310 (build-system go-build-system)
312 `(#:import-path "github.com/d4l3k/messagediff"))
313 (synopsis "Diff arbitrary Go structs")
314 (description "Messagediff is a library for calculating diffs of arbitrary
315 structs in the Go programming language.")
316 (home-page "https://github.com/d4l3k/messagediff")
319 (define-public go-github-com-gobwas-glob
320 (let ((commit "51eb1ee00b6d931c66d229ceeb7c31b985563420")
323 (name "go-github-com-gobwas-glob")
324 (version (git-version "0.0.0" revision commit))
328 (url "https://github.com/gobwas/glob")
330 (file-name (git-file-name name version))
333 "090wzpwsjana1qas8ipwh1pj959gvc4b7vwybzi01f3bmd79jwlp"))))
334 (build-system go-build-system)
336 `(#:import-path "github.com/gobwas/glob"))
337 (synopsis "Go globbing library")
338 (description "This package provides a Go implementation of globs.")
339 (home-page "https://github.com/gobwas/glob")
343 (define-public go-github-com-golang-groupcache-lru
344 (let ((commit "84a468cf14b4376def5d68c722b139b881c450a4")
347 (name "go-github-com-golang-groupcache-lru")
348 (version (git-version "0.0.0" revision commit))
352 (url "https://github.com/golang/groupcache")
354 (file-name (git-file-name name version))
357 "1ky1r9qh54yi9zp2769qrjngzndgd8fn7mja2qfac285n06chmcn"))))
358 (build-system go-build-system)
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
367 (home-page "https://github.com/golang/groupcache")
370 (define-public go-github-com-golang-snappy
371 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
374 (name "go-github-com-golang-snappy")
375 (version (git-version "0.0.0" revision commit))
379 (url "https://github.com/golang/snappy")
381 (file-name (git-file-name name version))
384 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
385 (build-system go-build-system)
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")
394 (define-public go-github-com-jackpal-gateway
395 (let ((commit "5795ac81146e01d3fab7bcf21c043c3d6a32b006")
398 (name "go-github-com-jackpal-gateway")
399 (version (git-version "0.0.0" revision commit))
403 (url "https://github.com/jackpal/gateway")
405 (file-name (git-file-name name version))
408 "0fkwkwmhfadwk3cha8616bhqxfkr9gjjnynhhxyldlphixgs3f25"))))
409 (build-system go-build-system)
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")
418 (define-public go-github-com-lib-pq
420 (name "go-github-com-lib-pq")
425 (url "https://github.com/lib/pq")
426 (commit (string-append "v" version))))
427 (file-name (git-file-name name version))
430 "0g64wlg1l1ybq4x44idksl4pgm055s58jxc6r6x4qhqm5q76h0km"))))
431 (build-system go-build-system)
433 `(#:import-path "github.com/lib/pq"
434 ;; The tests seem to fail without access to the network or a running
435 ;; Postgres instance.
437 (synopsis "Golang Postgres driver for Go's database/sql")
438 (description "This package provides a pure Go Postgres driver for Go's
439 database/sql package.")
440 (home-page "https://github.com/lib/pq")
443 (define-public go-github-com-oschwald-geoip2-golang
445 (name "go-github-com-oschwald-geoip2-golang")
450 (url "https://github.com/oschwald/geoip2-golang")
451 (commit (string-append "v" version))))
452 (file-name (git-file-name name version))
455 "0jivzl15jb8n16rm1b2w97kf7vna5dd3kcz865wfi233qay075j2"))))
456 (build-system go-build-system)
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)))
462 `(#:import-path "github.com/oschwald/geoip2-golang"
463 #:tests? #f)) ; Requires some unpackaged software and test data
464 (synopsis "MaxMind GeoIP2 reader")
465 (description "This package provides a library for reading MaxMind
466 GeoLite2 and GeoIP2 databases in Go.")
467 (home-page "https://github.com/oschwald/geoip2-golang")
470 (define-public go-github-com-oschwald-maxminddb-golang
471 (let ((commit "26fe5ace1c706491c2936119e1dc69c1a9c04d7f")
474 (name "go-github-com-oschwald-maxminddb-golang")
475 (version (git-version "1.2.0" revision commit))
479 (url "https://github.com/oschwald/maxminddb-golang")
481 (file-name (git-file-name name version))
484 "1i6d935f3cv9djpjvc2ibh8aps8jqvg454b9pkwg2h98al759ggk"))))
485 (build-system go-build-system)
487 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
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")
498 (define-public go-github-com-stathat-go
499 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
502 (name "go-github-com-stathat-go")
503 (version (git-version "0.0.0" revision commit))
507 (url "https://github.com/stathat/go")
509 (file-name (git-file-name name version))
512 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
513 (build-system go-build-system)
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")
521 (define-public go-github-com-rcrowley-go-metrics
522 (let ((commit "e181e095bae94582363434144c61a9653aff6e50")
525 (name "go-github-com-rcrowley-go-metrics")
526 (version (git-version "0.0.0" revision commit))
530 (url "https://github.com/rcrowley/go-metrics")
532 (file-name (git-file-name name version))
535 "1pwkyw801hy7n94skzk6h177zqcil6ayrmb5gs3jdpsfayh8ia5w"))))
536 (build-system go-build-system)
538 `(#:import-path "github.com/rcrowley/go-metrics"))
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
544 (home-page "https://github.com/rcrowley/go-metrics")
547 (define-public go-github-com-sasha-s-go-deadlock
549 (name "go-github-com-sasha-s-go-deadlock")
554 (url "https://github.com/sasha-s/go-deadlock")
555 (commit (string-append "v" version))))
556 (file-name (git-file-name name version))
559 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
560 (build-system go-build-system)
562 `(#:import-path "github.com/sasha-s/go-deadlock"))
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
568 (home-page "https://github.com/sasha-s/go-deadlock")
571 (define-public go-github-com-syndtr-goleveldb
572 (let ((commit "c3a204f8e96543bb0cc090385c001078f184fc46")
575 (name "go-github-com-syndtr-goleveldb")
576 (version (git-version "1.0.1" revision commit))
580 (url "https://github.com/syndtr/goleveldb")
582 (file-name (git-file-name name version))
585 "18cac90dim2z5g28vazzibxa058q2ynihsmf0vbscwzba6l5s5ms"))))
586 (build-system go-build-system)
588 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
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
596 (home-page "https://github.com/syndtr/goleveldb")
599 (define-public go-github-com-thejerf-suture
601 (name "go-github-com-thejerf-suture")
606 (url "https://github.com/thejerf/suture")
607 (commit (string-append "v" version))))
608 (file-name (git-file-name name version))
611 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
612 (build-system go-build-system)
614 `(#:import-path "github.com/thejerf/suture"))
615 (synopsis "Supervisor trees for Go")
616 (description "Suture provides Erlang-ish supervisor trees for Go.
617 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
618 when it's trying to die.
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
625 (home-page "https://github.com/thejerf/suture")
628 (define-public go-github-com-vitrun-qart-coding
629 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
632 (name "go-github-com-vitrun-qart-coding")
633 (version (git-version "0.0.0" revision commit))
637 (url "https://github.com/vitrun/qart")
639 (file-name (string-append "go-github-com-vitrun-qart-"
640 version "-checkout"))
643 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
644 (build-system go-build-system)
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/")
658 (define-public go-github-com-vitrun-qart-gf256
659 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
662 (name "go-github-com-vitrun-qart-gf256")
663 (version (git-version "0.0.0" revision commit))
667 (url "https://github.com/vitrun/qart")
669 (file-name (string-append "go-github-com-vitrun-qart-"
670 version "-checkout"))
673 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
674 (build-system go-build-system)
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")
684 (define-public go-github-com-vitrun-qart-qr
685 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
688 (name "go-github-com-vitrun-qart-qr")
689 (version (git-version "0.0.0" revision commit))
693 (url "https://github.com/vitrun/qart")
695 (file-name (string-append "go-github-com-vitrun-qart-"
696 version "-checkout"))
699 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
700 (build-system go-build-system)
702 `(#:import-path "github.com/vitrun/qart/qr"
703 #:unpack-path "github.com/vitrun/qart"))
704 (synopsis "Qart component for generating QR codes")
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
711 (home-page "https://github.com/vitrun/qart")
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
718 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
721 (name "go-github-com-chmduquesne-rollinghash")
722 (version (git-version "4.0.0" revision commit))
727 (url "https://github.com/chmduquesne/rollinghash.git")
729 (file-name (git-file-name name version))
732 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
733 (build-system go-build-system)
735 '(#:import-path "github.com/chmduquesne/rollinghash/"))
736 (synopsis "Rolling hashes in Go")
737 (description "This package provides a Go implementation of several rolling
739 (home-page "https://github.com/chmduquesne/rollinghash")
742 (define-public go-github-com-petermattis-goid
743 (let ((commit "3db12ebb2a599ba4a96bea1c17b61c2f78a40e02")
746 (name "go-github-com-petermattis-goid")
747 (version (git-version "0.0.0" revision commit))
751 (url "https://github.com/petermattis/goid.git")
753 (file-name (git-file-name name version))
757 "0z18a3mr72c52g7g94n08gxw0ksnaafbfwdl5p5jav2sffirb0kd"))))
758 (build-system go-build-system)
760 '(#:import-path "github.com/petermattis/goid"))
761 (synopsis "Identify the running goroutine")
762 (description "This package offers a method of programmatically retrieving
763 the current goroutine's ID.")
764 (home-page "https://github.com/petermattis/goid")
767 (define-public go-github-com-kballard-go-shellquote
768 (let ((commit "cd60e84ee657ff3dc51de0b4f55dd299a3e136f2")
771 (name "go-github-com-kballard-go-shellquote")
772 (version (git-version "0.0.0" revision commit))
776 (url "https://github.com/kballard/go-shellquote.git")
778 (file-name (git-file-name name version))
781 "1xjpin4jq1zl84dcn96xhjmn9bsfyszf6g9aqyj2dc0xfi6c88y0"))))
782 (build-system go-build-system)
784 '(#:import-path "github.com/kballard/go-shellquote"))
785 (synopsis "Shell-style string joins and splits")
786 (description "Shellquote provides utilities for joining/splitting strings
787 using sh's word-splitting rules.")
788 (home-page "https://github.com/kballard/go-shellquote")
791 (define-public go-github-com-syncthing-notify
792 (let ((commit "4e389ea6c0d84e6195eb585ffaf62c8c143306ae")
795 (name "go-github-com-syncthing-notify")
796 (version (git-version "0.0.0" revision commit))
800 (url "https://github.com/syncthing/notify")
802 (file-name (git-file-name name version))
805 "19gvl14s1l9m82f8c2xsjcr8lmbqrvw1mxkayvfcpimvxfz0j61i"))))
806 (build-system go-build-system)
808 '(#:import-path "github.com/syncthing/notify"))
810 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
811 (synopsis "File system event notification library")
812 (description "This package provides @code{notify}, a file system event
813 notification library in Go.")
814 (home-page "https://github.com/syncthing/notify")
817 (define-public go-github-com-beorn7-perks-quantile
818 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
821 (name "go-github-com-beorn7-perks-quantile")
822 (version (git-version "0.0.0" revision commit))
826 (url "https://github.com/beorn7/perks.git")
828 (file-name (git-file-name name version))
831 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
832 (build-system go-build-system)
834 '(#:import-path "github.com/beorn7/perks/quantile"
835 #:unpack-path "github.com/beorn7/perks"))
836 (synopsis "Compute approximate quantiles over an unbounded data stream")
837 (description "Perks contains the Go package @code{quantile} that computes
838 approximate quantiles over an unbounded data stream within low memory and CPU
840 (home-page "https://github.com/beorn7/perks")
843 (define-public go-github-com-golang-protobuf-proto
844 (let ((commit "1e59b77b52bf8e4b449a57e6f79f21226d571845")
847 (name "go-github-com-golang-protobuf-proto")
848 (version (git-version "0.0.0" revision commit))
852 (url "https://github.com/golang/protobuf.git")
854 (file-name (git-file-name name version))
857 "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8"))))
858 (build-system go-build-system)
860 '(#:import-path "github.com/golang/protobuf/proto"
861 #:unpack-path "github.com/golang/protobuf"
862 #:tests? #f ; requires unpackaged golang.org/x/sync/errgroup
864 (synopsis "Go support for Protocol Buffers")
865 (description "This package provides Go support for the Protocol Buffers
866 data serialization format.")
867 (home-page "https://github.com/golang/protobuf")
870 (define-public go-github-com-prometheus-client-model-go
871 (let ((commit "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c")
874 (name "go-github-com-prometheus-client-model-go")
875 (version (git-version "0.0.2" revision commit))
879 (url "https://github.com/prometheus/client_model.git")
881 (file-name (git-file-name name version))
884 "19y4ywsivhpxj7ikf2j0gm9k3cmyw37qcbfi78n526jxcc7kw998"))))
885 (build-system go-build-system)
887 '(#:import-path "github.com/prometheus/client_model/go"
888 #:unpack-path "github.com/prometheus/client_model"))
890 `(("go-github-com-golang-protobuf-proto"
891 ,go-github-com-golang-protobuf-proto)))
892 (synopsis "Data model artifacts for Prometheus")
893 (description "This package provides data model artifacts for Prometheus.")
894 (home-page "https://github.com/prometheus/client_model")
897 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
898 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
901 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
902 (version (git-version "1.0.0" revision commit))
908 (url "https://github.com/matttproud/golang_protobuf_extensions.git")
910 (file-name (git-file-name name version))
913 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
914 (build-system go-build-system)
916 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
917 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
919 `(("go-github-com-golang-protobuf-proto"
920 ,go-github-com-golang-protobuf-proto)))
921 (synopsis "Streaming Protocol Buffers in Go")
922 (description "This package provides various Protocol Buffer
923 extensions for the Go language, namely support for record length-delimited
925 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
928 (define-public go-github-com-prometheus-common-expfmt
929 (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca")
932 (name "go-github-com-prometheus-common-expfmt")
933 (version (git-version "0.0.0" revision commit))
937 (url "https://github.com/prometheus/common.git")
939 (file-name (git-file-name name version))
942 "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j"))))
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
979 (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca")
982 (name "go-github-com-prometheus-common-model")
983 (version (git-version "0.0.0" revision commit))
987 (url "https://github.com/prometheus/common.git")
989 (file-name (git-file-name name version))
992 "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j"))))
993 (build-system go-build-system)
995 '(#:import-path "github.com/prometheus/common/model"
996 #:unpack-path "github.com/prometheus/common"))
997 (synopsis "Prometheus component")
998 (description "This package provides a component of the Go Prometheus
1000 (home-page "https://github.com/prometheus/common")
1003 (define-public go-github-com-prometheus-procfs
1004 (let ((commit "b15cd069a83443be3154b719d0cc9fe8117f09fb")
1007 (name "go-github-com-prometheus-procfs")
1008 (version (git-version "0.0.0" revision commit))
1012 (url "https://github.com/prometheus/procfs.git")
1014 (file-name (git-file-name name version))
1017 "1cr45wg2m40bj2za8f32mq09rjlcnk5kfam0h0hr8wcb015k4wxj"))))
1018 (build-system go-build-system)
1020 '(#:import-path "github.com/prometheus/procfs"))
1021 (synopsis "Go library for reading @file{/proc}")
1022 (description "The @code{procfs} Go package provides functions to retrieve
1023 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
1024 (home-page "https://github.com/prometheus/procfs")
1027 (define-public go-github-com-client-golang-prometheus-promhttp
1029 (name "go-github-com-client-golang-prometheus-promhttp")
1034 (url "https://github.com/prometheus/client_golang.git")
1035 (commit (string-append "v" version))))
1036 (file-name (git-file-name name version))
1039 "0s134fj4i7k6pxdmxwkdi7amb1882yq33spv15hg3pkpbd3h311p"))))
1040 (build-system go-build-system)
1042 '(#:tests? #f ; The tests require internet access
1043 #:import-path "github.com/prometheus/client_golang/prometheus/promhttp"
1044 #:unpack-path "github.com/prometheus/client_golang"))
1046 `(("go-github-com-beorn7-perks-quantile"
1047 ,go-github-com-beorn7-perks-quantile)
1048 ("go-github-com-golang-protobuf-proto"
1049 ,go-github-com-golang-protobuf-proto)
1050 ("go-github-com-prometheus-common-model"
1051 ,go-github-com-prometheus-common-model)
1052 ("go-github-com-prometheus-client-model-go"
1053 ,go-github-com-prometheus-client-model-go)
1054 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1055 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)
1056 ("go-github-com-prometheus-common-expfmt"
1057 ,go-github-com-prometheus-common-expfmt)
1058 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)))
1059 (synopsis "HTTP server and client tools for Prometheus")
1060 (description "This package @code{promhttp} provides HTTP client and
1061 server tools for Prometheus metrics.")
1062 (home-page "https://github.com/prometheus/client_golang")
1065 (define-public go-github-com-prometheus-client-golang-prometheus
1067 (name "go-github-com-prometheus-client-golang-prometheus")
1072 (url "https://github.com/prometheus/client_golang.git")
1073 (commit (string-append "v" version))))
1074 (file-name (git-file-name name version))
1077 "0s134fj4i7k6pxdmxwkdi7amb1882yq33spv15hg3pkpbd3h311p"))))
1078 (build-system go-build-system)
1080 '(#:import-path "github.com/prometheus/client_golang/prometheus"
1081 #:unpack-path "github.com/prometheus/client_golang"
1082 #:tests? #f)) ; 'TestHandler' test fails in this non-critical dependency
1084 `(("go-github-com-beorn7-perks-quantile"
1085 ,go-github-com-beorn7-perks-quantile)
1086 ("go-github-com-prometheus-common-model" ,go-github-com-prometheus-common-model)
1087 ("go-github-com-prometheus-client-model-go"
1088 ,go-github-com-prometheus-client-model-go)
1089 ("go-github-com-prometheus-common-expfmt"
1090 ,go-github-com-prometheus-common-expfmt)
1091 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1092 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1093 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)))
1094 (synopsis "Prometheus instrumentation library for Go applications")
1095 (description "This package provides the Go client library for the
1096 Prometheus monitoring and alerting system. It has two separate parts, one for
1097 instrumenting application code, and one for creating clients that talk to the
1098 Prometheus HTTP API.")
1099 (home-page "https://github.com/prometheus/client_golang")
1102 (define-public go-gopkg.in-asn1-ber.v1
1104 (name "go-gopkg.in-asn1-ber.v1")
1109 (url "https://gopkg.in/asn1-ber.v1")
1110 (commit (string-append "v" version))))
1111 (file-name (git-file-name name version))
1114 "1y8bvzbxpw0lfnn7pbcdwzqj4l90qj6xf88dvv9pxd9yl5g6cskx"))))
1115 (build-system go-build-system)
1117 '(#:import-path "gopkg.in/asn1-ber.v1"
1118 ;; Tests don't pass "vet" on go-1.11. See
1119 ;; https://github.com/go-asn1-ber/asn1-ber/issues/20.
1121 (modify-phases %standard-phases
1123 (lambda* (#:key import-path #:allow-other-keys)
1127 (synopsis "ASN.1 BER encoding and decoding in Go")
1128 (description "This package provides ASN.1 BER encoding and decoding in the
1130 (home-page "https://gopkg.in/asn1-ber.v1")
1133 (define-public go-gopkg.in-ldap.v2
1135 (name "go-gopkg.in-ldap.v2")
1140 (url "https://gopkg.in/ldap.v2")
1141 (commit (string-append "v" version))))
1142 (file-name (git-file-name name version))
1145 "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h"))))
1146 (build-system go-build-system)
1148 '(#:import-path "gopkg.in/ldap.v2"
1149 #:tests? #f)) ; the test suite requires network access
1151 `(("go-gopkg.in-asn1-ber.v1" ,go-gopkg.in-asn1-ber.v1)))
1152 (synopsis "LDAP v3 functionality for Go")
1153 (description "This package provides basic LDAP v3 functionality in the Go
1155 (home-page "https://gopkg.in/ldap.v2")
1158 (define-public go-github-com-flynn-archive-go-shlex
1159 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1162 (name "go-github-com-flynn-archive-go-shlex")
1163 (version (git-version "0.0.0" revision commit))
1167 (url "https://github.com/flynn-archive/go-shlex.git")
1169 (file-name (git-file-name name version))
1172 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1173 (build-system go-build-system)
1175 '(#:import-path "github.com/flynn-archive/go-shlex"))
1176 (synopsis "Go lexer")
1177 (description "Shlex is a simple lexer for go that supports shell-style
1178 quoting, commenting, and escaping.")
1179 (home-page "https://github.com/flynn-archive/go-shlex")
1182 (define-public go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg
1184 (name "go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg")
1189 (url "https://github.com/prometheus/common.git")
1190 (commit (string-append "v" version))))
1191 (file-name (git-file-name name version))
1194 "02kym6lcfnlq23qbv277jr0q1n7jj0r14gqg93c7wn7gc44jv3vp"))))
1195 (build-system go-build-system)
1197 '(#:import-path "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg"
1198 #:unpack-path "github.com/prometheus/common"))
1199 (synopsis "Internal Prometheus component")
1200 (description "This package is an internal component of Prometheus.")
1201 (home-page "https://github.com/prometheus/common")
1204 (define-public go-github-com-audriusbutkevicius-pfilter
1205 (let ((commit "c55ef6137fc6f075801eac099cc2687ede0f101d")
1208 (name "go-github-com-audriusbutkevicius-pfilter")
1209 (version (git-version "0.0.0" revision commit))
1214 (url "https://github.com/AudriusButkevicius/pfilter.git")
1216 (file-name (git-file-name name version))
1219 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1220 (build-system go-build-system)
1222 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1223 (synopsis "Filter packets into mulitple virtual connections")
1224 (description "Pfilter is a Go package for filtering packets into multiple
1225 virtual connections from a single physical connection.")
1226 (home-page "https://github.com/AudriusButkevicius/pfilter")
1229 (define-public go-github-com-ccding-go-stun
1230 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1233 (name "go-github-com-ccding-go-stun")
1234 (version (git-version "0.0.0" revision commit))
1239 (url "https://github.com/ccding/go-stun.git")
1241 (file-name (git-file-name name version))
1244 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1245 (build-system go-build-system)
1247 '(#:import-path "github.com/ccding/go-stun"))
1248 (synopsis "STUN client implementation")
1249 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1251 (home-page "https://github.com/ccding/go-stun")