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 "34011bf325bce385408353a30b101fe5e923eb6e")
575 (name "go-github-com-syndtr-goleveldb")
576 (version (git-version "0.0.0" revision commit))
580 (url "https://github.com/syndtr/goleveldb")
582 (file-name (git-file-name name version))
585 "097ja0vyj6p27zrxha9nhk09fj977xsvhmd3bk2hbyvnbw4znnhd"))))
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-pkg-errors
744 (name "go-github-com-pkg-errors")
749 (url "https://github.com/pkg/errors.git")
750 (commit (string-append "v" version))))
751 (file-name (git-file-name name version))
754 "0g5qcb4d4fd96midz0zdk8b9kz8xkzwfa8kr1cliqbg8sxsy5vd1"))))
755 (build-system go-build-system)
757 `(#:import-path "github.com/pkg/errors"))
758 (synopsis "Go error handling primitives")
759 (description "This package provides @code{error}, which offers simple
760 error handling primitives in Go.")
761 (home-page "https://github.com/pkg/errors")
764 (define-public go-github-com-petermattis-goid
765 (let ((commit "3db12ebb2a599ba4a96bea1c17b61c2f78a40e02")
768 (name "go-github-com-petermattis-goid")
769 (version (git-version "0.0.0" revision commit))
773 (url "https://github.com/petermattis/goid.git")
775 (file-name (git-file-name name version))
779 "0z18a3mr72c52g7g94n08gxw0ksnaafbfwdl5p5jav2sffirb0kd"))))
780 (build-system go-build-system)
782 '(#:import-path "github.com/petermattis/goid"))
783 (synopsis "Identify the running goroutine")
784 (description "This package offers a method of programmatically retrieving
785 the current goroutine's ID.")
786 (home-page "https://github.com/petermattis/goid")
789 (define-public go-github-com-kballard-go-shellquote
790 (let ((commit "cd60e84ee657ff3dc51de0b4f55dd299a3e136f2")
793 (name "go-github-com-kballard-go-shellquote")
794 (version (git-version "0.0.0" revision commit))
798 (url "https://github.com/kballard/go-shellquote.git")
800 (file-name (git-file-name name version))
803 "1xjpin4jq1zl84dcn96xhjmn9bsfyszf6g9aqyj2dc0xfi6c88y0"))))
804 (build-system go-build-system)
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")
813 (define-public go-github-com-syncthing-notify
814 (let ((commit "4e389ea6c0d84e6195eb585ffaf62c8c143306ae")
817 (name "go-github-com-syncthing-notify")
818 (version (git-version "0.0.0" revision commit))
822 (url "https://github.com/syncthing/notify")
824 (file-name (git-file-name name version))
827 "19gvl14s1l9m82f8c2xsjcr8lmbqrvw1mxkayvfcpimvxfz0j61i"))))
828 (build-system go-build-system)
830 '(#:import-path "github.com/syncthing/notify"))
832 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
833 (synopsis "File system event notification library")
834 (description "This package provides @code{notify}, a file system event
835 notification library in Go.")
836 (home-page "https://github.com/syncthing/notify")
839 (define-public go-github-com-beorn7-perks-quantile
840 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
843 (name "go-github-com-beorn7-perks-quantile")
844 (version (git-version "0.0.0" revision commit))
848 (url "https://github.com/beorn7/perks.git")
850 (file-name (git-file-name name version))
853 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
854 (build-system go-build-system)
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
862 (home-page "https://github.com/beorn7/perks")
865 (define-public go-github-com-golang-protobuf-proto
866 (let ((commit "1e59b77b52bf8e4b449a57e6f79f21226d571845")
869 (name "go-github-com-golang-protobuf-proto")
870 (version (git-version "0.0.0" revision commit))
874 (url "https://github.com/golang/protobuf.git")
876 (file-name (git-file-name name version))
879 "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8"))))
880 (build-system go-build-system)
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
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")
892 (define-public go-github-com-prometheus-client-model-go
893 (let ((commit "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c")
896 (name "go-github-com-prometheus-client-model-go")
897 (version (git-version "0.0.2" revision commit))
901 (url "https://github.com/prometheus/client_model.git")
903 (file-name (git-file-name name version))
906 "19y4ywsivhpxj7ikf2j0gm9k3cmyw37qcbfi78n526jxcc7kw998"))))
907 (build-system go-build-system)
909 '(#:import-path "github.com/prometheus/client_model/go"
910 #:unpack-path "github.com/prometheus/client_model"))
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")
919 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
920 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
923 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
924 (version (git-version "1.0.0" revision commit))
930 (url "https://github.com/matttproud/golang_protobuf_extensions.git")
932 (file-name (git-file-name name version))
935 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
936 (build-system go-build-system)
938 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
939 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
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
947 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
950 (define-public go-github-com-prometheus-common-expfmt
951 (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca")
954 (name "go-github-com-prometheus-common-expfmt")
955 (version (git-version "0.0.0" revision commit))
959 (url "https://github.com/prometheus/common.git")
961 (file-name (git-file-name name version))
964 "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j"))))
965 (build-system go-build-system)
967 '(#:import-path "github.com/prometheus/common/expfmt"
968 #:unpack-path "github.com/prometheus/common"
970 (modify-phases %standard-phases
971 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
972 (lambda* (#:key outputs #:allow-other-keys)
974 (make-file-writable file))
976 (string-append (assoc-ref outputs "out")
977 "/src/github.com/prometheus/common/expfmt/testdata/")
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)
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")
1000 (define-public go-github-com-prometheus-common-model
1001 (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca")
1004 (name "go-github-com-prometheus-common-model")
1005 (version (git-version "0.0.0" revision commit))
1009 (url "https://github.com/prometheus/common.git")
1011 (file-name (git-file-name name version))
1014 "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j"))))
1015 (build-system go-build-system)
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
1022 (home-page "https://github.com/prometheus/common")
1025 (define-public go-github-com-prometheus-procfs
1026 (let ((commit "b15cd069a83443be3154b719d0cc9fe8117f09fb")
1029 (name "go-github-com-prometheus-procfs")
1030 (version (git-version "0.0.0" revision commit))
1034 (url "https://github.com/prometheus/procfs.git")
1036 (file-name (git-file-name name version))
1039 "1cr45wg2m40bj2za8f32mq09rjlcnk5kfam0h0hr8wcb015k4wxj"))))
1040 (build-system go-build-system)
1042 '(#:import-path "github.com/prometheus/procfs"))
1043 (synopsis "Go library for reading @file{/proc}")
1044 (description "The @code{procfs} Go package provides functions to retrieve
1045 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
1046 (home-page "https://github.com/prometheus/procfs")
1049 (define-public go-github-com-client-golang-prometheus-promhttp
1051 (name "go-github-com-client-golang-prometheus-promhttp")
1056 (url "https://github.com/prometheus/client_golang.git")
1057 (commit (string-append "v" version))))
1058 (file-name (git-file-name name version))
1061 "02b4yg6rfag0m3j0i39sillcm5xczwv8h133vn12yr8qw04cnigs"))))
1062 (build-system go-build-system)
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"))
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)
1072 ("go-github-com-prometheus-common-model"
1073 ,go-github-com-prometheus-common-model)
1074 ("go-github-com-prometheus-client-model-go"
1075 ,go-github-com-prometheus-client-model-go)
1076 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1077 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)
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")
1087 (define-public go-github-com-prometheus-client-golang-prometheus
1089 (name "go-github-com-prometheus-client-golang-prometheus")
1094 (url "https://github.com/prometheus/client_golang.git")
1095 (commit (string-append "v" version))))
1096 (file-name (git-file-name name version))
1099 "02b4yg6rfag0m3j0i39sillcm5xczwv8h133vn12yr8qw04cnigs"))))
1100 (build-system go-build-system)
1102 '(#:import-path "github.com/prometheus/client_golang/prometheus"
1103 #:unpack-path "github.com/prometheus/client_golang"
1104 #:tests? #f)) ; 'TestHandler' test fails in this non-critical dependency
1106 `(("go-github-com-beorn7-perks-quantile"
1107 ,go-github-com-beorn7-perks-quantile)
1108 ("go-github-com-prometheus-common-model" ,go-github-com-prometheus-common-model)
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)
1114 ("go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg"
1115 ,go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg)))
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")
1124 (define-public go-gopkg.in-asn1-ber.v1
1126 (name "go-gopkg.in-asn1-ber.v1")
1131 (url "https://gopkg.in/asn1-ber.v1")
1132 (commit (string-append "v" version))))
1133 (file-name (git-file-name name version))
1136 "1y8bvzbxpw0lfnn7pbcdwzqj4l90qj6xf88dvv9pxd9yl5g6cskx"))))
1137 (build-system go-build-system)
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.
1143 (modify-phases %standard-phases
1145 (lambda* (#:key import-path #:allow-other-keys)
1149 (synopsis "ASN.1 BER encoding and decoding in Go")
1150 (description "This package provides ASN.1 BER encoding and decoding in the
1152 (home-page "https://gopkg.in/asn1-ber.v1")
1155 (define-public go-gopkg.in-ldap.v2
1157 (name "go-gopkg.in-ldap.v2")
1162 (url "https://gopkg.in/ldap.v2")
1163 (commit (string-append "v" version))))
1164 (file-name (git-file-name name version))
1167 "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h"))))
1168 (build-system go-build-system)
1170 '(#:import-path "gopkg.in/ldap.v2"
1171 #:tests? #f)) ; the test suite requires network access
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
1177 (home-page "https://gopkg.in/ldap.v2")
1180 (define-public go-github-com-flynn-archive-go-shlex
1181 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1184 (name "go-github-com-flynn-archive-go-shlex")
1185 (version (git-version "0.0.0" revision commit))
1189 (url "https://github.com/flynn-archive/go-shlex.git")
1191 (file-name (git-file-name name version))
1194 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1195 (build-system go-build-system)
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")
1204 (define-public go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg
1206 (name "go-github-com-prometheus-common-internal-bitbucket-org-ww-goautoneg")
1211 (url "https://github.com/prometheus/common.git")
1212 (commit (string-append "v" version))))
1213 (file-name (git-file-name name version))
1216 "02kym6lcfnlq23qbv277jr0q1n7jj0r14gqg93c7wn7gc44jv3vp"))))
1217 (build-system go-build-system)
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")