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>
5 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages syncthing)
23 #:use-module (guix build-system go)
24 #:use-module (guix build-system trivial)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix git-download)
28 #:use-module (guix licenses)
29 #:use-module (gnu packages)
30 #:use-module (gnu packages golang))
32 (define-public syncthing
38 (uri (string-append "https://github.com/syncthing/syncthing"
39 "/releases/download/v" version
40 "/syncthing-source-v" version ".tar.gz"))
43 "1394b8y4nllihnjngc0kjpdy7pvyh6v1h09hkn8rdmwxpsdkqkjb"))
44 (modules '((guix build utils)))
45 ;; Delete bundled ("vendored") free software source code.
47 (delete-file-recursively "vendor")
49 (build-system go-build-system)
50 ;; The primary Syncthing executable goes to "out", while the auxiliary
51 ;; server programs and utility tools go to "utils". This reduces the size
52 ;; of "out" by ~80 MiB.
53 (outputs '("out" "utils"))
54 ;; When updating Syncthing, check 'go.mod' in the source distribution to
55 ;; ensure we are using the correct versions of these dependencies.
57 `(("go-github-com-jackpal-go-nat-pmp"
58 ,go-github-com-jackpal-go-nat-pmp)
59 ("go-github-com-bkaradzic-go-lz4" ,go-github-com-bkaradzic-go-lz4)
60 ("go-github-com-calmh-xdr" ,go-github-com-calmh-xdr)
61 ("go-github-com-chmduquesne-rollinghash"
62 ,go-github-com-chmduquesne-rollinghash)
63 ("go-github-com-gobwas-glob" ,go-github-com-gobwas-glob)
64 ("go-github-com-golang-groupcache-lru"
65 ,go-github-com-golang-groupcache-lru)
66 ("go-github-com-jackpal-gateway" ,go-github-com-jackpal-gateway)
67 ("go-github-com-kballard-go-shellquote"
68 ,go-github-com-kballard-go-shellquote)
69 ("go-github-com-lib-pq" ,go-github-com-lib-pq)
70 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
71 ("go-github-com-oschwald-geoip2-golang"
72 ,go-github-com-oschwald-geoip2-golang)
73 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
74 ("go-github-com-rcrowley-go-metrics" ,go-github-com-rcrowley-go-metrics)
75 ("go-github-com-sasha-s-go-deadlock" ,go-github-com-sasha-s-go-deadlock)
76 ("go-github-com-syncthing-notify" ,go-github-com-syncthing-notify)
77 ("go-github-com-syndtr-goleveldb" ,go-github-com-syndtr-goleveldb)
78 ("go-github-com-thejerf-suture" ,go-github-com-thejerf-suture)
79 ("go-golang-org-x-time" ,go-golang-org-x-time)
80 ("go-github-com-go-ldap-ldap" ,go-github-com-go-ldap-ldap)
81 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
82 ("go-github-com-shirou-gopsutil" ,go-github-com-shirou-gopsutil)
83 ("go-github-com-prometheus-client-golang"
84 ,go-github-com-prometheus-client-golang)
85 ("go-golang-org-x-net" ,go-golang-org-x-net)
86 ("go-golang-org-x-text" ,go-golang-org-x-text)
87 ("go-github-com-audriusbutkevicius-recli"
88 ,go-github-com-audriusbutkevicius-recli)
89 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)
90 ("go-github-com-vitrun-qart" ,go-github-com-vitrun-qart)
91 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
92 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
93 ("go-github-com-flynn-archive-go-shlex"
94 ,go-github-com-flynn-archive-go-shlex)
95 ("go-github-com-getsentry-raven-go" ,go-github-com-getsentry-raven-go)
96 ("go-github-com-maruel-panicparse" ,go-github-com-maruel-panicparse)
97 ("go-github-com-ccding-go-stun" ,go-github-com-ccding-go-stun)
98 ("go-github-com-audriusbutkevicius-pfilter" ,go-github-com-audriusbutkevicius-pfilter)
99 ("go-github-com-lucas-clemente-quic-go" ,go-github-com-lucas-clemente-quic-go)
100 ("go-github-com-willf-bloom" ,go-github-com-willf-bloom)
103 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
106 `(#:modules ((srfi srfi-26) ; for cut
108 (guix build go-build-system))
109 #:import-path "github.com/syncthing/syncthing"
110 ;; We don't need to install the source code for end-user applications.
113 (modify-phases %standard-phases
114 (add-before 'build 'increase-test-timeout
116 (substitute* "src/github.com/syncthing/syncthing/build.go"
122 (with-directory-excursion "src/github.com/syncthing/syncthing"
123 ;; XXX The only way to build Syncthing without its automatic
124 ;; updater and to build the utilities is to "build all" and then
125 ;; "build syncthing" again with -no-upgrade.
126 ;; https://github.com/syncthing/syncthing/issues/6118
127 (invoke "go" "run" "build.go" "build" "all")
128 (delete-file "syncthing")
129 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
133 (with-directory-excursion "src/github.com/syncthing/syncthing"
134 (invoke "go" "run" "build.go" "test"))))
137 (lambda* (#:key outputs #:allow-other-keys)
138 (let ((out (assoc-ref outputs "out"))
139 (utils (assoc-ref outputs "utils")))
140 (with-directory-excursion "src/github.com/syncthing/syncthing"
141 (install-file "syncthing" (string-append out "/bin"))
142 (for-each (cut install-file <> (string-append utils "/bin/"))
143 '("stcli" "stcompdirs" "stcrashreceiver"
144 "stdisco" "stdiscosrv" "stevents" "stfileinfo"
145 "stfinddevice" "stfindignored" "stgenfiles"
146 "stindex" "strelaypoolsrv" "strelaysrv" "stsigtool"
147 "stvanity" "stwatchfile" "uraggregate" "ursrv"))
150 (add-after 'install 'install-docs
151 (lambda* (#:key outputs #:allow-other-keys)
152 (let* ((out (assoc-ref outputs "out"))
153 (utils (assoc-ref outputs "utils"))
155 (man-section (string-append man "/man"))
156 (src "src/github.com/syncthing/syncthing/man/"))
157 ;; Install all the man pages to "out".
161 (string-append out man-section
162 (string-take-right file 1))))
163 (find-files src "\\.[1-9]"))
164 ;; Copy all the man pages to "utils"
165 (copy-recursively (string-append out man)
166 (string-append utils man))
167 ;; Delete extraneous man pages from "out" and "utils",
169 (delete-file (string-append out man "/man1/stdiscosrv.1"))
170 (delete-file (string-append out man "/man1/strelaysrv.1"))
171 (delete-file (string-append utils man "/man1/syncthing.1"))
173 (synopsis "Decentralized continuous file system synchronization")
174 (description "Syncthing is a peer-to-peer file synchronization tool that
175 supports a wide variety of computing platforms. It uses the Block Exchange
177 (home-page "https://github.com/syncthing/syncthing")
180 (define-public go-github-com-jackpal-go-nat-pmp
182 (name "go-github-com-jackpal-go-nat-pmp")
187 (url "https://github.com/jackpal/go-nat-pmp")
188 (commit (string-append "v" version))))
189 (file-name (git-file-name name version))
192 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
193 (build-system go-build-system)
195 `(#:import-path "github.com/jackpal/go-nat-pmp"))
196 (synopsis "Port mapping and discovery of external IP address")
197 (description "This package provides a Go client for the NAT-PMP internet
198 protocol for port mapping and discovering the external IP address of a
200 (home-page "https://github.com/jackpal/go-nat-pmp")
203 (define-public go-github-com-audriusbutkevicius-recli
205 (name "go-github-com-audriusbutkevicius-recli")
210 (url "https://github.com/AudriusButkevicius/recli")
211 (commit (string-append "v" version))))
212 (file-name (git-file-name name version))
215 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
216 (build-system go-build-system)
218 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
219 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
221 `(#:import-path "github.com/AudriusButkevicius/recli"))
222 (synopsis "Reflection-based CLI generator")
223 (description "For a given struct, @code{recli} builds a set of
224 @code{urfave/cli} commands which allows you to modify it from the command line.
225 It is useful for generating command line clients for your application
226 configuration that is stored in a Go struct.")
227 (home-page "https://github.com/AudriusButkevicius/recli")
230 (define-public go-github-com-bkaradzic-go-lz4
231 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
234 (name "go-github-com-bkaradzic-go-lz4")
235 (version (git-version "0.0.0" revision commit))
239 (url "https://github.com/bkaradzic/go-lz4")
241 (file-name (git-file-name name version))
244 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
245 (build-system go-build-system)
247 `(#:import-path "github.com/bkaradzic/go-lz4"))
248 (synopsis "LZ4 compression algorithm")
249 (description "This package provides @code{go-lz4}, a Go implementation of
250 the LZ4 compression algorithm.")
251 (home-page "https://github.com/bkaradzic/go-lz4")
254 (define-public go-github-com-calmh-du
256 (name "go-github-com-calmh-du")
261 (url "https://github.com/calmh/du")
262 (commit (string-append "v" version))))
263 (file-name (git-file-name name version))
266 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
267 (build-system go-build-system)
269 `(#:import-path "github.com/calmh/du"))
270 (synopsis "Get total and available disk space of a given volume")
271 (description "This is a Go implementation of `du`. It provides disk usage
272 information, such as how much storage space is available, free, and used.")
273 (home-page "https://github.com/calmh/du")
274 (license public-domain)))
276 (define-public go-github-com-calmh-xdr
278 (name "go-github-com-calmh-xdr")
283 (url "https://github.com/calmh/xdr")
284 (commit (string-append "v" version))))
285 (file-name (git-file-name name version))
288 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
289 (build-system go-build-system)
291 `(#:import-path "github.com/calmh/xdr"))
292 (synopsis "XDR marshalling and unmarshalling")
293 (description "XDR is an External Data Representation (XDR)
294 marshalling and unmarshalling library in Go. It uses code generation and not
296 (home-page "https://github.com/calmh/xdr")
299 (define-public go-github-com-d4l3k-messagediff
301 (name "go-github-com-d4l3k-messagediff")
306 (url "https://github.com/d4l3k/messagediff")
307 (commit (string-append "v" version))))
308 (file-name (git-file-name name version))
311 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
312 (build-system go-build-system)
314 `(#:import-path "github.com/d4l3k/messagediff"))
315 (synopsis "Diff arbitrary Go structs")
316 (description "Messagediff is a library for calculating diffs of arbitrary
317 structs in the Go programming language.")
318 (home-page "https://github.com/d4l3k/messagediff")
321 (define-public go-github-com-gobwas-glob
323 (name "go-github-com-gobwas-glob")
328 (url "https://github.com/gobwas/glob")
329 (commit (string-append "v" version))))
330 (file-name (git-file-name name version))
333 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
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 "869f871628b6baa9cfbc11732cdf6546b17c1298")
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 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
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
396 (name "go-github-com-jackpal-gateway")
401 (url "https://github.com/jackpal/gateway")
402 (commit (string-append "v" version))))
403 (file-name (git-file-name name version))
406 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
407 (build-system go-build-system)
409 `(#:import-path "github.com/jackpal/gateway"))
410 (synopsis "Discover the address of a LAN gateway")
411 (description "@code{gateway} is a Go library for discovering the IP
412 address of the default LAN gateway.")
413 (home-page "https://github.com/jackpal/gateway")
416 (define-public go-github-com-lib-pq
418 (name "go-github-com-lib-pq")
423 (url "https://github.com/lib/pq")
424 (commit (string-append "v" version))))
425 (file-name (git-file-name name version))
428 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
429 (build-system go-build-system)
431 `(#:import-path "github.com/lib/pq"
432 ;; The tests seem to fail without access to the network or a running
433 ;; Postgres instance.
435 (synopsis "Golang Postgres driver for Go's database/sql")
436 (description "This package provides a pure Go Postgres driver for Go's
437 database/sql package.")
438 (home-page "https://github.com/lib/pq")
441 (define-public go-github-com-oschwald-geoip2-golang
443 (name "go-github-com-oschwald-geoip2-golang")
448 (url "https://github.com/oschwald/geoip2-golang")
449 (commit (string-append "v" version))))
450 (file-name (git-file-name name version))
453 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
454 (build-system go-build-system)
456 `(("go-github-com-oschwald-maxminddb-golang"
457 ,go-github-com-oschwald-maxminddb-golang)
458 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
460 `(#:import-path "github.com/oschwald/geoip2-golang"
461 #:tests? #f)) ; Requires some unpackaged software and test data
462 (synopsis "MaxMind GeoIP2 reader")
463 (description "This package provides a library for reading MaxMind
464 GeoLite2 and GeoIP2 databases in Go.")
465 (home-page "https://github.com/oschwald/geoip2-golang")
468 (define-public go-github-com-oschwald-maxminddb-golang
470 (name "go-github-com-oschwald-maxminddb-golang")
475 (url "https://github.com/oschwald/maxminddb-golang")
476 (commit (string-append "v" version))))
477 (file-name (git-file-name name version))
480 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
481 (build-system go-build-system)
483 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
485 `(#:import-path "github.com/oschwald/maxminddb-golang"
486 #:tests? #f)) ; Requires some unpackaged software and test data
487 (synopsis "MaxMind DB Reader for Go")
488 (description "This is a Go reader for the MaxMind DB format. Although
489 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
490 higher-level API for doing so.")
491 (home-page "https://github.com/oschwald/maxminddb-golang")
494 (define-public go-github-com-stathat-go
495 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
498 (name "go-github-com-stathat-go")
499 (version (git-version "0.0.0" revision commit))
503 (url "https://github.com/stathat/go")
505 (file-name (git-file-name name version))
508 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
509 (build-system go-build-system)
511 `(#:import-path "github.com/stathat/go"))
512 (synopsis "Post statistics to StatHat")
513 (description "This is a Go package for posting to a StatHat account.")
514 (home-page "https://github.com/stathat/go")
517 (define-public go-github-com-rcrowley-go-metrics
518 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
521 (name "go-github-com-rcrowley-go-metrics")
522 (version (git-version "0.0.0" revision commit))
526 (url "https://github.com/rcrowley/go-metrics")
528 (file-name (git-file-name name version))
531 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
532 (build-system go-build-system)
534 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
535 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
536 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-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 "758128399b1df3a87e92df6c26c1d2063da8fabe")
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 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
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
629 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
632 (name "go-github-com-vitrun-qart")
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"))
647 (synopsis "Create QR codes with an embedded image")
648 (description "This package provides a library for embedding
649 human-meaningful graphics in QR codes. However, instead of scribbling on
650 redundant pieces and relying on error correction to preserve the meaning,
651 @code{qart} engineers the encoded values to create the picture in a code with no
653 (home-page "https://github.com/vitrun/qart")
656 (define-public go-github-com-chmduquesne-rollinghash
657 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
660 (name "go-github-com-chmduquesne-rollinghash")
661 (version (git-version "4.0.0" revision commit))
666 (url "https://github.com/chmduquesne/rollinghash")
668 (file-name (git-file-name name version))
671 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
672 (build-system go-build-system)
674 '(#:import-path "github.com/chmduquesne/rollinghash/"))
675 (synopsis "Rolling hashes in Go")
676 (description "This package provides a Go implementation of several rolling
678 (home-page "https://github.com/chmduquesne/rollinghash")
681 (define-public go-github-com-petermattis-goid
682 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
685 (name "go-github-com-petermattis-goid")
686 (version (git-version "0.0.0" revision commit))
690 (url "https://github.com/petermattis/goid")
692 (file-name (git-file-name name version))
695 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
696 (build-system go-build-system)
698 '(#:import-path "github.com/petermattis/goid"))
699 (synopsis "Identify the running goroutine")
700 (description "This package offers a method of programmatically retrieving
701 the current goroutine's ID.")
702 (home-page "https://github.com/petermattis/goid")
705 (define-public go-github-com-kballard-go-shellquote
706 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
709 (name "go-github-com-kballard-go-shellquote")
710 (version (git-version "0.0.0" revision commit))
714 (url "https://github.com/kballard/go-shellquote")
716 (file-name (git-file-name name version))
719 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
720 (build-system go-build-system)
722 '(#:import-path "github.com/kballard/go-shellquote"))
723 (synopsis "Shell-style string joins and splits")
724 (description "Shellquote provides utilities for joining/splitting strings
725 using sh's word-splitting rules.")
726 (home-page "https://github.com/kballard/go-shellquote")
729 (define-public go-github-com-syncthing-notify
730 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
733 (name "go-github-com-syncthing-notify")
734 (version (git-version "0.0.0" revision commit))
738 (url "https://github.com/syncthing/notify")
740 (file-name (git-file-name name version))
743 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
744 (build-system go-build-system)
746 '(#:import-path "github.com/syncthing/notify"))
748 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
749 (synopsis "File system event notification library")
750 (description "This package provides @code{notify}, a file system event
751 notification library in Go.")
752 (home-page "https://github.com/syncthing/notify")
755 (define-public go-github-com-beorn7-perks-quantile
756 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
759 (name "go-github-com-beorn7-perks-quantile")
760 (version (git-version "0.0.0" revision commit))
764 (url "https://github.com/beorn7/perks")
766 (file-name (git-file-name name version))
769 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
770 (build-system go-build-system)
772 '(#:import-path "github.com/beorn7/perks/quantile"
773 #:unpack-path "github.com/beorn7/perks"))
774 (synopsis "Compute approximate quantiles over an unbounded data stream")
775 (description "Perks contains the Go package @code{quantile} that computes
776 approximate quantiles over an unbounded data stream within low memory and CPU
778 (home-page "https://github.com/beorn7/perks")
781 (define-public go-github-com-prometheus-client-model
782 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
785 (name "go-github-com-prometheus-client-model")
786 (version (git-version "0.0.2" revision commit))
790 (url "https://github.com/prometheus/client_model")
792 (file-name (git-file-name name version))
795 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
796 (build-system go-build-system)
798 '(#:import-path "github.com/prometheus/client_model"
801 (modify-phases %standard-phases
802 ;; Source-only package
805 `(("go-github-com-golang-protobuf-proto"
806 ,go-github-com-golang-protobuf-proto)))
807 (synopsis "Data model artifacts for Prometheus")
808 (description "This package provides data model artifacts for Prometheus.")
809 (home-page "https://github.com/prometheus/client_model")
812 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
813 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
816 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
817 (version (git-version "1.0.0" revision commit))
823 (url "https://github.com/matttproud/golang_protobuf_extensions")
825 (file-name (git-file-name name version))
828 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
829 (build-system go-build-system)
831 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
832 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
834 `(("go-github-com-golang-protobuf-proto"
835 ,go-github-com-golang-protobuf-proto)))
836 (synopsis "Streaming Protocol Buffers in Go")
837 (description "This package provides various Protocol Buffer
838 extensions for the Go language, namely support for record length-delimited
840 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
843 (define-public go-github-com-prometheus-common
845 (name "go-github-com-prometheus-common")
850 (url "https://github.com/prometheus/common")
851 (commit (string-append "v" version))))
852 (file-name (git-file-name name version))
855 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
856 (build-system go-build-system)
858 '(#:import-path "github.com/prometheus/common"
861 (modify-phases %standard-phases
862 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
863 (lambda* (#:key outputs #:allow-other-keys)
865 (make-file-writable file))
867 (string-append (assoc-ref outputs "out")
868 "/src/github.com/prometheus/common/expfmt/testdata/")
871 ;; Source-only package
874 `(("go-github-com-golang-protobuf-proto"
875 ,go-github-com-golang-protobuf-proto)
876 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
877 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
878 ("go-github-com-prometheus-client-model"
879 ,go-github-com-prometheus-client-model)))
880 (synopsis "Prometheus metrics")
881 (description "This package provides tools for reading and writing
882 Prometheus metrics.")
883 (home-page "https://github.com/prometheus/common")
886 (define-public go-github-com-prometheus-procfs
888 (name "go-github-com-prometheus-procfs")
893 (url "https://github.com/prometheus/procfs")
894 (commit (string-append "v" version))))
895 (file-name (git-file-name name version))
898 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
899 (build-system go-build-system)
901 '(#:import-path "github.com/prometheus/procfs"
902 ;; The tests require Go modules, which are not yet supported in Guix's
905 (synopsis "Go library for reading @file{/proc}")
906 (description "The @code{procfs} Go package provides functions to retrieve
907 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
908 (home-page "https://github.com/prometheus/procfs")
911 (define-public go-github-com-prometheus-client-golang
913 (name "go-github-com-prometheus-client-golang")
918 (url "https://github.com/prometheus/client_golang")
919 (commit (string-append "v" version))))
920 (file-name (git-file-name name version))
923 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
924 (build-system go-build-system)
927 #:import-path "github.com/prometheus/client_golang"
929 (modify-phases %standard-phases
930 ;; Source-only package
933 `(("go-github-com-beorn7-perks-quantile"
934 ,go-github-com-beorn7-perks-quantile)
935 ("go-github-com-golang-protobuf-proto"
936 ,go-github-com-golang-protobuf-proto)
937 ("go-github-com-prometheus-client-model"
938 ,go-github-com-prometheus-client-model)
939 ("go-github-com-prometheus-common"
940 ,go-github-com-prometheus-common)
941 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
942 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
943 (synopsis "HTTP server and client tools for Prometheus")
944 (description "This package @code{promhttp} provides HTTP client and
945 server tools for Prometheus metrics.")
946 (home-page "https://github.com/prometheus/client_golang")
949 (define-public go-github-com-go-asn1-ber-asn1-ber
951 (name "go-github-com-go-asn1-ber-asn1-ber")
956 (url "https://github.com/go-asn1-ber/asn1-ber")
957 (commit (string-append "v" version))))
958 (file-name (git-file-name name version))
961 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
962 (build-system go-build-system)
964 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
965 (synopsis "ASN.1 BER encoding and decoding in Go")
966 (description "This package provides ASN.1 BER encoding and decoding in the
968 (home-page "https://github.com/go-asn1-ber/asn1-ber")
971 (define-public go-github-com-go-ldap-ldap
973 (name "go-github-com-go-ldap-ldap")
978 (url "https://github.com/go-ldap/ldap")
979 (commit (string-append "v" version))))
980 (file-name (git-file-name name version))
983 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
984 (build-system go-build-system)
986 '(#:import-path "github.com/go-ldap/ldap/v3"
987 #:tests? #f)) ; test suite requires internet access
989 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
990 (home-page "https://github.com/go-ldap/ldap")
991 (synopsis "LDAP v3 functionality for Go")
992 (description "This package provides basic LDAP v3 functionality in the Go
996 (define-public go-github-com-flynn-archive-go-shlex
997 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1000 (name "go-github-com-flynn-archive-go-shlex")
1001 (version (git-version "0.0.0" revision commit))
1005 (url "https://github.com/flynn-archive/go-shlex")
1007 (file-name (git-file-name name version))
1010 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1011 (build-system go-build-system)
1013 '(#:import-path "github.com/flynn-archive/go-shlex"))
1014 (synopsis "Go lexer")
1015 (description "Shlex is a simple lexer for go that supports shell-style
1016 quoting, commenting, and escaping.")
1017 (home-page "https://github.com/flynn-archive/go-shlex")
1020 (define-public go-github-com-audriusbutkevicius-pfilter
1022 (name "go-github-com-audriusbutkevicius-pfilter")
1028 (url "https://github.com/AudriusButkevicius/pfilter")
1030 (file-name (git-file-name name version))
1033 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1034 (build-system go-build-system)
1036 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1037 (synopsis "Filter packets into multiple virtual connections")
1038 (description "Pfilter is a Go package for filtering packets into multiple
1039 virtual connections from a single physical connection.")
1040 (home-page "https://github.com/AudriusButkevicius/pfilter")
1043 (define-public go-github-com-ccding-go-stun
1044 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1047 (name "go-github-com-ccding-go-stun")
1048 (version (git-version "0.0.0" revision commit))
1053 (url "https://github.com/ccding/go-stun")
1055 (file-name (git-file-name name version))
1058 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1059 (build-system go-build-system)
1061 '(#:import-path "github.com/ccding/go-stun"))
1062 (synopsis "STUN client implementation")
1063 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1065 (home-page "https://github.com/ccding/go-stun")
1068 (define-public go-github-com-cespare-xxhash
1070 (name "go-github-com-cespare-xxhash")
1075 (url "https://github.com/cespare/xxhash")
1076 (commit (string-append "v" version))))
1077 (file-name (git-file-name name version))
1080 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1081 (build-system go-build-system)
1083 '(#:import-path "github.com/cespare/xxhash"))
1084 (synopsis "Go implementation of xxHash")
1085 (description "This package provides of Go implementation of the 64-bit
1086 xxHash algorithm (XXH64).")
1087 (home-page "https://github.com/cespare/xxhash/")