1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
3 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
4 ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages syncthing)
22 #:use-module (guix build-system go)
23 #:use-module (guix build-system trivial)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module (guix licenses)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages golang))
31 (define-public syncthing
37 (uri (string-append "https://github.com/syncthing/syncthing"
38 "/releases/download/v" version
39 "/syncthing-source-v" version ".tar.gz"))
42 "16dqpbn4saxmmmqd5ya8zdkwvxzz4nim1p4w954zkkdz3cyg86h6"))
43 (modules '((guix build utils)))
44 ;; Delete bundled ("vendored") free software source code.
46 (delete-file-recursively "vendor")
48 (build-system go-build-system)
49 ;; The primary Syncthing executable goes to "out", while the auxiliary
50 ;; server programs and utility tools go to "utils". This reduces the size
51 ;; of "out" by ~80 MiB.
52 (outputs '("out" "utils"))
53 ;; When updating Syncthing, check 'go.mod' in the source distribution to
54 ;; ensure we are using the correct versions of these dependencies.
56 `(("go-github-com-jackpal-go-nat-pmp"
57 ,go-github-com-jackpal-go-nat-pmp)
58 ("go-github-com-bkaradzic-go-lz4" ,go-github-com-bkaradzic-go-lz4)
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" ,go-golang-org-x-time)
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-shirou-gopsutil" ,go-github-com-shirou-gopsutil)
82 ("go-github-com-prometheus-client-golang"
83 ,go-github-com-prometheus-client-golang)
84 ("go-golang-org-x-net" ,go-golang-org-x-net)
85 ("go-golang-org-x-text" ,go-golang-org-x-text)
86 ("go-github-com-audriusbutkevicius-recli"
87 ,go-github-com-audriusbutkevicius-recli)
88 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)
89 ("go-github-com-vitrun-qart" ,go-github-com-vitrun-qart)
90 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
91 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
92 ("go-github-com-flynn-archive-go-shlex"
93 ,go-github-com-flynn-archive-go-shlex)
94 ("go-github-com-getsentry-raven-go" ,go-github-com-getsentry-raven-go)
95 ("go-github-com-maruel-panicparse" ,go-github-com-maruel-panicparse)
96 ("go-github-com-ccding-go-stun" ,go-github-com-ccding-go-stun)
97 ("go-github-com-audriusbutkevicius-pfilter" ,go-github-com-audriusbutkevicius-pfilter)
98 ("go-github-com-lucas-clemente-quic-go" ,go-github-com-lucas-clemente-quic-go)
99 ("go-github-com-willf-bloom" ,go-github-com-willf-bloom)
102 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
105 `(#:modules ((srfi srfi-26) ; for cut
107 (guix build go-build-system))
108 #:import-path "github.com/syncthing/syncthing"
109 ;; We don't need to install the source code for end-user applications.
112 (modify-phases %standard-phases
113 (add-before 'build 'increase-test-timeout
115 (substitute* "src/github.com/syncthing/syncthing/build.go"
121 (with-directory-excursion "src/github.com/syncthing/syncthing"
122 ;; XXX The only way to build Syncthing without its automatic
123 ;; updater and to build the utilities is to "build all" and then
124 ;; "build syncthing" again with -no-upgrade.
125 ;; https://github.com/syncthing/syncthing/issues/6118
126 (invoke "go" "run" "build.go" "build" "all")
127 (delete-file "syncthing")
128 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
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 (with-directory-excursion "src/github.com/syncthing/syncthing"
140 (install-file "syncthing" (string-append out "/bin"))
141 (for-each (cut install-file <> (string-append utils "/bin/"))
142 '("stcli" "stcompdirs" "stcrashreceiver"
143 "stdisco" "stdiscosrv" "stevents" "stfileinfo"
144 "stfinddevice" "stfindignored" "stgenfiles"
145 "stindex" "strelaypoolsrv" "strelaysrv" "stsigtool"
146 "stvanity" "stwatchfile" "uraggregate" "ursrv"))
149 (add-after 'install 'install-docs
150 (lambda* (#:key outputs #:allow-other-keys)
151 (let* ((out (assoc-ref outputs "out"))
152 (utils (assoc-ref outputs "utils"))
154 (man-section (string-append man "/man"))
155 (src "src/github.com/syncthing/syncthing/man/"))
156 ;; Install all the man pages to "out".
160 (string-append out man-section
161 (string-take-right file 1))))
162 (find-files src "\\.[1-9]"))
163 ;; Copy all the man pages to "utils"
164 (copy-recursively (string-append out man)
165 (string-append utils man))
166 ;; Delete extraneous man pages from "out" and "utils",
168 (delete-file (string-append out man "/man1/stdiscosrv.1"))
169 (delete-file (string-append out man "/man1/strelaysrv.1"))
170 (delete-file (string-append utils man "/man1/syncthing.1"))
172 (synopsis "Decentralized continuous file system synchronization")
173 (description "Syncthing is a peer-to-peer file synchronization tool that
174 supports a wide variety of computing platforms. It uses the Block Exchange
176 (home-page "https://github.com/syncthing/syncthing")
179 (define-public go-github-com-jackpal-go-nat-pmp
181 (name "go-github-com-jackpal-go-nat-pmp")
186 (url "https://github.com/jackpal/go-nat-pmp")
187 (commit (string-append "v" version))))
188 (file-name (git-file-name name version))
191 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
192 (build-system go-build-system)
194 `(#:import-path "github.com/jackpal/go-nat-pmp"))
195 (synopsis "Port mapping and discovery of external IP address")
196 (description "This package provides a Go client for the NAT-PMP internet
197 protocol for port mapping and discovering the external IP address of a
199 (home-page "https://github.com/jackpal/go-nat-pmp")
202 (define-public go-github-com-audriusbutkevicius-recli
204 (name "go-github-com-audriusbutkevicius-recli")
209 (url "https://github.com/AudriusButkevicius/recli")
210 (commit (string-append "v" version))))
211 (file-name (git-file-name name version))
214 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
215 (build-system go-build-system)
217 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
218 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
220 `(#:import-path "github.com/AudriusButkevicius/recli"))
221 (synopsis "Reflection-based CLI generator")
222 (description "For a given struct, @code{recli} builds a set of
223 @code{urfave/cli} commands which allows you to modify it from the command line.
224 It is useful for generating command line clients for your application
225 configuration that is stored in a Go struct.")
226 (home-page "https://github.com/AudriusButkevicius/recli")
229 (define-public go-github-com-bkaradzic-go-lz4
230 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
233 (name "go-github-com-bkaradzic-go-lz4")
234 (version (git-version "0.0.0" revision commit))
238 (url "https://github.com/bkaradzic/go-lz4")
240 (file-name (git-file-name name version))
243 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
244 (build-system go-build-system)
246 `(#:import-path "github.com/bkaradzic/go-lz4"))
247 (synopsis "LZ4 compression algorithm")
248 (description "This package provides @code{go-lz4}, a Go implementation of
249 the LZ4 compression algorithm.")
250 (home-page "https://github.com/bkaradzic/go-lz4")
253 (define-public go-github-com-calmh-du
255 (name "go-github-com-calmh-du")
260 (url "https://github.com/calmh/du")
261 (commit (string-append "v" version))))
262 (file-name (git-file-name name version))
265 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
266 (build-system go-build-system)
268 `(#:import-path "github.com/calmh/du"))
269 (synopsis "Get total and available disk space of a given volume")
270 (description "This is a Go implementation of `du`. It provides disk usage
271 information, such as how much storage space is available, free, and used.")
272 (home-page "https://github.com/calmh/du")
273 (license public-domain)))
275 (define-public go-github-com-calmh-xdr
277 (name "go-github-com-calmh-xdr")
282 (url "https://github.com/calmh/xdr")
283 (commit (string-append "v" version))))
284 (file-name (git-file-name name version))
287 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
288 (build-system go-build-system)
290 `(#:import-path "github.com/calmh/xdr"))
291 (synopsis "XDR marshalling and unmarshalling")
292 (description "XDR is an External Data Representation (XDR)
293 marshalling and unmarshalling library in Go. It uses code generation and not
295 (home-page "https://github.com/calmh/xdr")
298 (define-public go-github-com-d4l3k-messagediff
300 (name "go-github-com-d4l3k-messagediff")
305 (url "https://github.com/d4l3k/messagediff")
306 (commit (string-append "v" version))))
307 (file-name (git-file-name name version))
310 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
311 (build-system go-build-system)
313 `(#:import-path "github.com/d4l3k/messagediff"))
314 (synopsis "Diff arbitrary Go structs")
315 (description "Messagediff is a library for calculating diffs of arbitrary
316 structs in the Go programming language.")
317 (home-page "https://github.com/d4l3k/messagediff")
320 (define-public go-github-com-gobwas-glob
322 (name "go-github-com-gobwas-glob")
327 (url "https://github.com/gobwas/glob")
328 (commit (string-append "v" version))))
329 (file-name (git-file-name name version))
332 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
333 (build-system go-build-system)
335 `(#:import-path "github.com/gobwas/glob"))
336 (synopsis "Go globbing library")
337 (description "This package provides a Go implementation of globs.")
338 (home-page "https://github.com/gobwas/glob")
342 (define-public go-github-com-golang-groupcache-lru
343 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
346 (name "go-github-com-golang-groupcache-lru")
347 (version (git-version "0.0.0" revision commit))
351 (url "https://github.com/golang/groupcache")
353 (file-name (git-file-name name version))
356 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
357 (build-system go-build-system)
359 `(#:import-path "github.com/golang/groupcache/lru"
360 #:unpack-path "github.com/golang/groupcache"))
361 (synopsis "Groupcache is a caching and cache-filling library")
362 (description "Groupcache is a caching and cache-filling library, intended
363 as a replacement for memcached in many cases. It provides a data loading
364 mechanism with caching and de-duplication that works across a set of peer
366 (home-page "https://github.com/golang/groupcache")
369 (define-public go-github-com-golang-snappy
370 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
373 (name "go-github-com-golang-snappy")
374 (version (git-version "0.0.0" revision commit))
378 (url "https://github.com/golang/snappy")
380 (file-name (git-file-name name version))
383 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
384 (build-system go-build-system)
386 `(#:import-path "github.com/golang/snappy"))
387 (synopsis "Snappy compression format in the Go programming language")
388 (description "This package provides a Go implementation of the Snappy
389 compression format.")
390 (home-page "https://github.com/golang/snappy")
393 (define-public go-github-com-jackpal-gateway
395 (name "go-github-com-jackpal-gateway")
400 (url "https://github.com/jackpal/gateway")
401 (commit (string-append "v" version))))
402 (file-name (git-file-name name version))
405 "1ird5xmizj632l3dq24s2xgb8w1dn6v8xznlqz252gvngyr2gjl1"))))
406 (build-system go-build-system)
408 `(#:import-path "github.com/jackpal/gateway"))
409 (synopsis "Discover the address of a LAN gateway")
410 (description "@code{gateway} is a Go library for discovering the IP
411 address of the default LAN gateway.")
412 (home-page "https://github.com/jackpal/gateway")
415 (define-public go-github-com-lib-pq
417 (name "go-github-com-lib-pq")
422 (url "https://github.com/lib/pq")
423 (commit (string-append "v" version))))
424 (file-name (git-file-name name version))
427 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
428 (build-system go-build-system)
430 `(#:import-path "github.com/lib/pq"
431 ;; The tests seem to fail without access to the network or a running
432 ;; Postgres instance.
434 (synopsis "Golang Postgres driver for Go's database/sql")
435 (description "This package provides a pure Go Postgres driver for Go's
436 database/sql package.")
437 (home-page "https://github.com/lib/pq")
440 (define-public go-github-com-oschwald-geoip2-golang
442 (name "go-github-com-oschwald-geoip2-golang")
447 (url "https://github.com/oschwald/geoip2-golang")
448 (commit (string-append "v" version))))
449 (file-name (git-file-name name version))
452 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
453 (build-system go-build-system)
455 `(("go-github-com-oschwald-maxminddb-golang"
456 ,go-github-com-oschwald-maxminddb-golang)
457 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
459 `(#:import-path "github.com/oschwald/geoip2-golang"
460 #:tests? #f)) ; Requires some unpackaged software and test data
461 (synopsis "MaxMind GeoIP2 reader")
462 (description "This package provides a library for reading MaxMind
463 GeoLite2 and GeoIP2 databases in Go.")
464 (home-page "https://github.com/oschwald/geoip2-golang")
467 (define-public go-github-com-oschwald-maxminddb-golang
469 (name "go-github-com-oschwald-maxminddb-golang")
474 (url "https://github.com/oschwald/maxminddb-golang")
475 (commit (string-append "v" version))))
476 (file-name (git-file-name name version))
479 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
480 (build-system go-build-system)
482 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
484 `(#:import-path "github.com/oschwald/maxminddb-golang"
485 #:tests? #f)) ; Requires some unpackaged software and test data
486 (synopsis "MaxMind DB Reader for Go")
487 (description "This is a Go reader for the MaxMind DB format. Although
488 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
489 higher-level API for doing so.")
490 (home-page "https://github.com/oschwald/maxminddb-golang")
493 (define-public go-github-com-stathat-go
494 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
497 (name "go-github-com-stathat-go")
498 (version (git-version "0.0.0" revision commit))
502 (url "https://github.com/stathat/go")
504 (file-name (git-file-name name version))
507 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
508 (build-system go-build-system)
510 `(#:import-path "github.com/stathat/go"))
511 (synopsis "Post statistics to StatHat")
512 (description "This is a Go package for posting to a StatHat account.")
513 (home-page "https://github.com/stathat/go")
516 (define-public go-github-com-rcrowley-go-metrics
517 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
520 (name "go-github-com-rcrowley-go-metrics")
521 (version (git-version "0.0.0" revision commit))
525 (url "https://github.com/rcrowley/go-metrics")
527 (file-name (git-file-name name version))
530 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
531 (build-system go-build-system)
533 `(#:import-path "github.com/rcrowley/go-metrics"))
535 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
536 (synopsis "Go port of Coda Hale's Metrics library")
537 (description "This package provides a Go implementation of Coda Hale's
539 (home-page "https://github.com/rcrowley/go-metrics")
542 (define-public go-github-com-sasha-s-go-deadlock
544 (name "go-github-com-sasha-s-go-deadlock")
549 (url "https://github.com/sasha-s/go-deadlock")
550 (commit (string-append "v" version))))
551 (file-name (git-file-name name version))
554 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
555 (build-system go-build-system)
557 `(#:import-path "github.com/sasha-s/go-deadlock"))
559 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
560 (synopsis "Deadlock detection in go")
561 (description "This package provides tools for detecting deadlocks at
563 (home-page "https://github.com/sasha-s/go-deadlock")
566 (define-public go-github-com-syndtr-goleveldb
567 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
570 (name "go-github-com-syndtr-goleveldb")
571 (version (git-version "1.0.1" revision commit))
575 (url "https://github.com/syndtr/goleveldb")
577 (file-name (git-file-name name version))
580 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
581 (build-system go-build-system)
583 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
585 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
586 #:unpack-path "github.com/syndtr/goleveldb"
587 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
588 (synopsis "LevelDB key/value database")
589 (description "This is an implementation of the LevelDB key / value
591 (home-page "https://github.com/syndtr/goleveldb")
594 (define-public go-github-com-thejerf-suture
596 (name "go-github-com-thejerf-suture")
601 (url "https://github.com/thejerf/suture")
602 (commit (string-append "v" version))))
603 (file-name (git-file-name name version))
606 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
607 (build-system go-build-system)
609 `(#:import-path "github.com/thejerf/suture"))
610 (synopsis "Supervisor trees for Go")
611 (description "Suture provides Erlang-ish supervisor trees for Go.
612 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
613 when it's trying to die.
615 It is intended to deal gracefully with the real failure cases that can occur
616 with supervision trees (such as burning all your CPU time endlessly restarting
617 dead services), while also making no unnecessary demands on the \"service\"
618 code, and providing hooks to perform adequate logging with in a production
620 (home-page "https://github.com/thejerf/suture")
623 (define-public go-github-com-vitrun-qart
624 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
627 (name "go-github-com-vitrun-qart")
628 (version (git-version "0.0.0" revision commit))
632 (url "https://github.com/vitrun/qart")
634 (file-name (string-append "go-github-com-vitrun-qart-"
635 version "-checkout"))
638 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
639 (build-system go-build-system)
641 `(#:import-path "github.com/vitrun/qart"))
642 (synopsis "Create QR codes with an embedded image")
643 (description "This package provides a library for embedding
644 human-meaningful graphics in QR codes. However, instead of scribbling on
645 redundant pieces and relying on error correction to preserve the meaning,
646 @code{qart} engineers the encoded values to create the picture in a code with no
648 (home-page "https://github.com/vitrun/qart")
651 (define-public go-github-com-chmduquesne-rollinghash
652 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
655 (name "go-github-com-chmduquesne-rollinghash")
656 (version (git-version "4.0.0" revision commit))
661 (url "https://github.com/chmduquesne/rollinghash.git")
663 (file-name (git-file-name name version))
666 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
667 (build-system go-build-system)
669 '(#:import-path "github.com/chmduquesne/rollinghash/"))
670 (synopsis "Rolling hashes in Go")
671 (description "This package provides a Go implementation of several rolling
673 (home-page "https://github.com/chmduquesne/rollinghash")
676 (define-public go-github-com-petermattis-goid
677 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
680 (name "go-github-com-petermattis-goid")
681 (version (git-version "0.0.0" revision commit))
685 (url "https://github.com/petermattis/goid.git")
687 (file-name (git-file-name name version))
690 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
691 (build-system go-build-system)
693 '(#:import-path "github.com/petermattis/goid"))
694 (synopsis "Identify the running goroutine")
695 (description "This package offers a method of programmatically retrieving
696 the current goroutine's ID.")
697 (home-page "https://github.com/petermattis/goid")
700 (define-public go-github-com-kballard-go-shellquote
701 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
704 (name "go-github-com-kballard-go-shellquote")
705 (version (git-version "0.0.0" revision commit))
709 (url "https://github.com/kballard/go-shellquote.git")
711 (file-name (git-file-name name version))
714 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
715 (build-system go-build-system)
717 '(#:import-path "github.com/kballard/go-shellquote"))
718 (synopsis "Shell-style string joins and splits")
719 (description "Shellquote provides utilities for joining/splitting strings
720 using sh's word-splitting rules.")
721 (home-page "https://github.com/kballard/go-shellquote")
724 (define-public go-github-com-syncthing-notify
725 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
728 (name "go-github-com-syncthing-notify")
729 (version (git-version "0.0.0" revision commit))
733 (url "https://github.com/syncthing/notify")
735 (file-name (git-file-name name version))
738 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
739 (build-system go-build-system)
741 '(#:import-path "github.com/syncthing/notify"))
743 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
744 (synopsis "File system event notification library")
745 (description "This package provides @code{notify}, a file system event
746 notification library in Go.")
747 (home-page "https://github.com/syncthing/notify")
750 (define-public go-github-com-beorn7-perks-quantile
751 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
754 (name "go-github-com-beorn7-perks-quantile")
755 (version (git-version "0.0.0" revision commit))
759 (url "https://github.com/beorn7/perks.git")
761 (file-name (git-file-name name version))
764 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
765 (build-system go-build-system)
767 '(#:import-path "github.com/beorn7/perks/quantile"
768 #:unpack-path "github.com/beorn7/perks"))
769 (synopsis "Compute approximate quantiles over an unbounded data stream")
770 (description "Perks contains the Go package @code{quantile} that computes
771 approximate quantiles over an unbounded data stream within low memory and CPU
773 (home-page "https://github.com/beorn7/perks")
776 (define-public go-github-com-prometheus-client-model
777 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
780 (name "go-github-com-prometheus-client-model")
781 (version (git-version "0.0.2" revision commit))
785 (url "https://github.com/prometheus/client_model.git")
787 (file-name (git-file-name name version))
790 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
791 (build-system go-build-system)
793 '(#:import-path "github.com/prometheus/client_model"
796 (modify-phases %standard-phases
797 ;; Source-only package
800 `(("go-github-com-golang-protobuf-proto"
801 ,go-github-com-golang-protobuf-proto)))
802 (synopsis "Data model artifacts for Prometheus")
803 (description "This package provides data model artifacts for Prometheus.")
804 (home-page "https://github.com/prometheus/client_model")
807 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
808 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
811 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
812 (version (git-version "1.0.0" revision commit))
818 (url "https://github.com/matttproud/golang_protobuf_extensions.git")
820 (file-name (git-file-name name version))
823 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
824 (build-system go-build-system)
826 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
827 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
829 `(("go-github-com-golang-protobuf-proto"
830 ,go-github-com-golang-protobuf-proto)))
831 (synopsis "Streaming Protocol Buffers in Go")
832 (description "This package provides various Protocol Buffer
833 extensions for the Go language, namely support for record length-delimited
835 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
838 (define-public go-github-com-prometheus-common
840 (name "go-github-com-prometheus-common")
845 (url "https://github.com/prometheus/common.git")
846 (commit (string-append "v" version))))
847 (file-name (git-file-name name version))
850 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
851 (build-system go-build-system)
853 '(#:import-path "github.com/prometheus/common"
856 (modify-phases %standard-phases
857 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
858 (lambda* (#:key outputs #:allow-other-keys)
860 (make-file-writable file))
862 (string-append (assoc-ref outputs "out")
863 "/src/github.com/prometheus/common/expfmt/testdata/")
866 ;; Source-only package
869 `(("go-github-com-golang-protobuf-proto"
870 ,go-github-com-golang-protobuf-proto)
871 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
872 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
873 ("go-github-com-prometheus-client-model"
874 ,go-github-com-prometheus-client-model)))
875 (synopsis "Prometheus metrics")
876 (description "This package provides tools for reading and writing
877 Prometheus metrics.")
878 (home-page "https://github.com/prometheus/common")
881 (define-public go-github-com-prometheus-procfs
883 (name "go-github-com-prometheus-procfs")
888 (url "https://github.com/prometheus/procfs.git")
889 (commit (string-append "v" version))))
890 (file-name (git-file-name name version))
893 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
894 (build-system go-build-system)
896 '(#:import-path "github.com/prometheus/procfs"
897 ;; The tests require Go modules, which are not yet supported in Guix's
900 (synopsis "Go library for reading @file{/proc}")
901 (description "The @code{procfs} Go package provides functions to retrieve
902 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
903 (home-page "https://github.com/prometheus/procfs")
906 (define-public go-github-com-prometheus-client-golang
908 (name "go-github-com-prometheus-client-golang")
913 (url "https://github.com/prometheus/client_golang.git")
914 (commit (string-append "v" version))))
915 (file-name (git-file-name name version))
918 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
919 (build-system go-build-system)
922 #:import-path "github.com/prometheus/client_golang"
924 (modify-phases %standard-phases
925 ;; Source-only package
928 `(("go-github-com-beorn7-perks-quantile"
929 ,go-github-com-beorn7-perks-quantile)
930 ("go-github-com-golang-protobuf-proto"
931 ,go-github-com-golang-protobuf-proto)
932 ("go-github-com-prometheus-client-model"
933 ,go-github-com-prometheus-client-model)
934 ("go-github-com-prometheus-common"
935 ,go-github-com-prometheus-common)
936 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
937 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
938 (synopsis "HTTP server and client tools for Prometheus")
939 (description "This package @code{promhttp} provides HTTP client and
940 server tools for Prometheus metrics.")
941 (home-page "https://github.com/prometheus/client_golang")
944 (define-public go-gopkg.in-asn1-ber.v1
946 (name "go-gopkg.in-asn1-ber.v1")
951 (url "https://gopkg.in/asn1-ber.v1")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
956 "00ixms8x3lrhywbvq5v2sagcqsxa1pcnlk17dp5lnwckv3xg4psb"))))
957 (build-system go-build-system)
959 '(#:import-path "gopkg.in/asn1-ber.v1"
960 ;; Tests don't pass "vet" on Go since 1.11. See
961 ;; https://github.com/go-asn1-ber/asn1-ber/issues/20.
963 (modify-phases %standard-phases
965 (lambda* (#:key import-path #:allow-other-keys)
969 (synopsis "ASN.1 BER encoding and decoding in Go")
970 (description "This package provides ASN.1 BER encoding and decoding in the
972 (home-page "https://gopkg.in/asn1-ber.v1")
975 (define-public go-gopkg.in-ldap.v2
977 (name "go-gopkg.in-ldap.v2")
982 (url "https://gopkg.in/ldap.v2")
983 (commit (string-append "v" version))))
984 (file-name (git-file-name name version))
987 "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h"))))
988 (build-system go-build-system)
990 '(#:import-path "gopkg.in/ldap.v2"
991 #:tests? #f)) ; the test suite requires network access
993 `(("go-gopkg.in-asn1-ber.v1" ,go-gopkg.in-asn1-ber.v1)))
994 (synopsis "LDAP v3 functionality for Go")
995 (description "This package provides basic LDAP v3 functionality in the Go
997 (home-page "https://gopkg.in/ldap.v2")
1000 (define-public go-github-com-flynn-archive-go-shlex
1001 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1004 (name "go-github-com-flynn-archive-go-shlex")
1005 (version (git-version "0.0.0" revision commit))
1009 (url "https://github.com/flynn-archive/go-shlex.git")
1011 (file-name (git-file-name name version))
1014 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1015 (build-system go-build-system)
1017 '(#:import-path "github.com/flynn-archive/go-shlex"))
1018 (synopsis "Go lexer")
1019 (description "Shlex is a simple lexer for go that supports shell-style
1020 quoting, commenting, and escaping.")
1021 (home-page "https://github.com/flynn-archive/go-shlex")
1024 (define-public go-github-com-audriusbutkevicius-pfilter
1025 (let ((commit "c55ef6137fc6f075801eac099cc2687ede0f101d")
1028 (name "go-github-com-audriusbutkevicius-pfilter")
1029 (version (git-version "0.0.0" revision commit))
1034 (url "https://github.com/AudriusButkevicius/pfilter.git")
1036 (file-name (git-file-name name version))
1039 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1040 (build-system go-build-system)
1042 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1043 (synopsis "Filter packets into multiple virtual connections")
1044 (description "Pfilter is a Go package for filtering packets into multiple
1045 virtual connections from a single physical connection.")
1046 (home-page "https://github.com/AudriusButkevicius/pfilter")
1049 (define-public go-github-com-ccding-go-stun
1050 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1053 (name "go-github-com-ccding-go-stun")
1054 (version (git-version "0.0.0" revision commit))
1059 (url "https://github.com/ccding/go-stun.git")
1061 (file-name (git-file-name name version))
1064 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1065 (build-system go-build-system)
1067 '(#:import-path "github.com/ccding/go-stun"))
1068 (synopsis "STUN client implementation")
1069 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1071 (home-page "https://github.com/ccding/go-stun")
1074 (define-public go-github-com-cespare-xxhash
1076 (name "go-github-com-cespare-xxhash")
1081 (url "https://github.com/cespare/xxhash")
1082 (commit (string-append "v" version))))
1083 (file-name (git-file-name name version))
1086 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1087 (build-system go-build-system)
1089 '(#:import-path "github.com/cespare/xxhash"))
1090 (synopsis "Go implementation of xxHash")
1091 (description "This package provides of Go implementation of the 64-bit
1092 xxHash algorithm (XXH64).")
1093 (home-page "https://github.com/cespare/xxhash/")