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>
6 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages syncthing)
24 #:use-module (guix build-system go)
25 #:use-module (guix build-system python)
26 #:use-module (guix build-system trivial)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix git-download)
30 #:use-module (guix licenses)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages freedesktop)
33 #:use-module (gnu packages glib)
34 #:use-module (gnu packages gnome)
35 #:use-module (gnu packages golang)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages linux)
38 #:use-module (gnu packages python)
39 #:use-module (gnu packages python-crypto)
40 #:use-module (gnu packages python-xyz)
41 #:use-module (gnu packages time))
43 (define-public syncthing
49 (uri (string-append "https://github.com/syncthing/syncthing"
50 "/releases/download/v" version
51 "/syncthing-source-v" version ".tar.gz"))
54 "1394b8y4nllihnjngc0kjpdy7pvyh6v1h09hkn8rdmwxpsdkqkjb"))
55 (modules '((guix build utils)))
56 ;; Delete bundled ("vendored") free software source code.
58 (delete-file-recursively "vendor")
60 (build-system go-build-system)
61 ;; The primary Syncthing executable goes to "out", while the auxiliary
62 ;; server programs and utility tools go to "utils". This reduces the size
63 ;; of "out" by ~80 MiB.
64 (outputs '("out" "utils"))
65 ;; When updating Syncthing, check 'go.mod' in the source distribution to
66 ;; ensure we are using the correct versions of these dependencies.
68 `(("go-github-com-jackpal-go-nat-pmp"
69 ,go-github-com-jackpal-go-nat-pmp)
70 ("go-github-com-bkaradzic-go-lz4" ,go-github-com-bkaradzic-go-lz4)
71 ("go-github-com-calmh-xdr" ,go-github-com-calmh-xdr)
72 ("go-github-com-chmduquesne-rollinghash"
73 ,go-github-com-chmduquesne-rollinghash)
74 ("go-github-com-gobwas-glob" ,go-github-com-gobwas-glob)
75 ("go-github-com-golang-groupcache-lru"
76 ,go-github-com-golang-groupcache-lru)
77 ("go-github-com-jackpal-gateway" ,go-github-com-jackpal-gateway)
78 ("go-github-com-kballard-go-shellquote"
79 ,go-github-com-kballard-go-shellquote)
80 ("go-github-com-lib-pq" ,go-github-com-lib-pq)
81 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
82 ("go-github-com-oschwald-geoip2-golang"
83 ,go-github-com-oschwald-geoip2-golang)
84 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
85 ("go-github-com-rcrowley-go-metrics" ,go-github-com-rcrowley-go-metrics)
86 ("go-github-com-sasha-s-go-deadlock" ,go-github-com-sasha-s-go-deadlock)
87 ("go-github-com-syncthing-notify" ,go-github-com-syncthing-notify)
88 ("go-github-com-syndtr-goleveldb" ,go-github-com-syndtr-goleveldb)
89 ("go-github-com-thejerf-suture" ,go-github-com-thejerf-suture)
90 ("go-golang-org-x-time" ,go-golang-org-x-time)
91 ("go-github-com-go-ldap-ldap" ,go-github-com-go-ldap-ldap)
92 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
93 ("go-github-com-shirou-gopsutil" ,go-github-com-shirou-gopsutil)
94 ("go-github-com-prometheus-client-golang"
95 ,go-github-com-prometheus-client-golang)
96 ("go-golang-org-x-net" ,go-golang-org-x-net)
97 ("go-golang-org-x-text" ,go-golang-org-x-text)
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" ,go-github-com-vitrun-qart)
102 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
103 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
104 ("go-github-com-flynn-archive-go-shlex"
105 ,go-github-com-flynn-archive-go-shlex)
106 ("go-github-com-getsentry-raven-go" ,go-github-com-getsentry-raven-go)
107 ("go-github-com-maruel-panicparse" ,go-github-com-maruel-panicparse)
108 ("go-github-com-ccding-go-stun" ,go-github-com-ccding-go-stun)
109 ("go-github-com-audriusbutkevicius-pfilter" ,go-github-com-audriusbutkevicius-pfilter)
110 ("go-github-com-lucas-clemente-quic-go" ,go-github-com-lucas-clemente-quic-go)
111 ("go-github-com-willf-bloom" ,go-github-com-willf-bloom)
114 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
117 `(#:modules ((srfi srfi-26) ; for cut
119 (guix build go-build-system))
120 #:import-path "github.com/syncthing/syncthing"
121 ;; We don't need to install the source code for end-user applications.
124 (modify-phases %standard-phases
125 (add-before 'build 'increase-test-timeout
127 (substitute* "src/github.com/syncthing/syncthing/build.go"
133 (with-directory-excursion "src/github.com/syncthing/syncthing"
134 ;; XXX The only way to build Syncthing without its automatic
135 ;; updater and to build the utilities is to "build all" and then
136 ;; "build syncthing" again with -no-upgrade.
137 ;; https://github.com/syncthing/syncthing/issues/6118
138 (invoke "go" "run" "build.go" "build" "all")
139 (delete-file "syncthing")
140 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
144 (with-directory-excursion "src/github.com/syncthing/syncthing"
145 (invoke "go" "run" "build.go" "test"))))
148 (lambda* (#:key outputs #:allow-other-keys)
149 (let ((out (assoc-ref outputs "out"))
150 (utils (assoc-ref outputs "utils")))
151 (with-directory-excursion "src/github.com/syncthing/syncthing"
152 (install-file "syncthing" (string-append out "/bin"))
153 (for-each (cut install-file <> (string-append utils "/bin/"))
154 '("stcli" "stcompdirs" "stcrashreceiver"
155 "stdisco" "stdiscosrv" "stevents" "stfileinfo"
156 "stfinddevice" "stfindignored" "stgenfiles"
157 "stindex" "strelaypoolsrv" "strelaysrv" "stsigtool"
158 "stvanity" "stwatchfile" "uraggregate" "ursrv"))
161 (add-after 'install 'install-docs
162 (lambda* (#:key outputs #:allow-other-keys)
163 (let* ((out (assoc-ref outputs "out"))
164 (utils (assoc-ref outputs "utils"))
166 (man-section (string-append man "/man"))
167 (src "src/github.com/syncthing/syncthing/man/"))
168 ;; Install all the man pages to "out".
172 (string-append out man-section
173 (string-take-right file 1))))
174 (find-files src "\\.[1-9]"))
175 ;; Copy all the man pages to "utils"
176 (copy-recursively (string-append out man)
177 (string-append utils man))
178 ;; Delete extraneous man pages from "out" and "utils",
180 (delete-file (string-append out man "/man1/stdiscosrv.1"))
181 (delete-file (string-append out man "/man1/strelaysrv.1"))
182 (delete-file (string-append utils man "/man1/syncthing.1"))
184 (synopsis "Decentralized continuous file system synchronization")
185 (description "Syncthing is a peer-to-peer file synchronization tool that
186 supports a wide variety of computing platforms. It uses the Block Exchange
188 (home-page "https://github.com/syncthing/syncthing")
191 (define-public syncthing-gtk
193 (name "syncthing-gtk")
198 (url "https://github.com/syncthing/syncthing-gtk.git")
199 (commit (string-append "v" version))))
200 (file-name (git-file-name name version))
203 "0nc0wd7qvyri7841c3dd9in5d7367hys0isyw8znv5fj4c0a6v1f"))))
204 (build-system python-build-system)
208 (modify-phases %standard-phases
209 (add-after 'unpack 'hardcode-dependencies
210 (lambda* (#:key inputs #:allow-other-keys)
211 (let ((psmisc (assoc-ref inputs "psmisc"))
212 (syncthing (assoc-ref inputs "syncthing")))
213 ;; Hardcode dependencies paths to avoid propagation.
214 (substitute* "syncthing_gtk/tools.py"
215 (("killall") (string-append psmisc "/bin/killall")))
216 (substitute* "syncthing_gtk/configuration.py"
217 (("/usr/bin/syncthing") (string-append syncthing
220 (add-after 'wrap 'wrap-libs
221 (lambda* (#:key outputs #:allow-other-keys)
222 (let ((out (assoc-ref outputs "out")))
223 (wrap-program (string-append out "/bin/syncthing-gtk")
224 `("GI_TYPELIB_PATH" ":" prefix
225 (,(getenv "GI_TYPELIB_PATH"))))
229 ("libappindicator" ,libappindicator)
230 ("libnotify" ,libnotify)
231 ("python2-bcrypt" ,python2-bcrypt)
232 ("python2-dateutil" ,python2-dateutil)
233 ("python2-pycairo" ,python2-pycairo)
234 ("python2-pygobject" ,python2-pygobject)
235 ("python-nautilus" ,python-nautilus)
237 ("syncthing" ,syncthing)))
239 `(("python2-setuptools" ,python2-setuptools)))
240 (home-page "https://github.com/syncthing/syncthing-gtk")
241 (synopsis "GTK3 based GUI and notification area icon for Syncthing")
242 (description "@code{syncthing-gtk} is a GTK3 Python based GUI and
243 notification area icon for Syncthing. Supported Syncthing features:
246 @item Everything that WebUI can display
247 @item Adding, editing and deleting nodes
248 @item Adding, editing and deleting repositories
249 @item Restart, shutdown server
250 @item Editing daemon settings
254 (define-public go-github-com-jackpal-go-nat-pmp
256 (name "go-github-com-jackpal-go-nat-pmp")
261 (url "https://github.com/jackpal/go-nat-pmp")
262 (commit (string-append "v" version))))
263 (file-name (git-file-name name version))
266 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
267 (build-system go-build-system)
269 `(#:import-path "github.com/jackpal/go-nat-pmp"))
270 (synopsis "Port mapping and discovery of external IP address")
271 (description "This package provides a Go client for the NAT-PMP internet
272 protocol for port mapping and discovering the external IP address of a
274 (home-page "https://github.com/jackpal/go-nat-pmp")
277 (define-public go-github-com-audriusbutkevicius-recli
279 (name "go-github-com-audriusbutkevicius-recli")
284 (url "https://github.com/AudriusButkevicius/recli")
285 (commit (string-append "v" version))))
286 (file-name (git-file-name name version))
289 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
290 (build-system go-build-system)
292 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
293 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
295 `(#:import-path "github.com/AudriusButkevicius/recli"))
296 (synopsis "Reflection-based CLI generator")
297 (description "For a given struct, @code{recli} builds a set of
298 @code{urfave/cli} commands which allows you to modify it from the command line.
299 It is useful for generating command line clients for your application
300 configuration that is stored in a Go struct.")
301 (home-page "https://github.com/AudriusButkevicius/recli")
304 (define-public go-github-com-bkaradzic-go-lz4
305 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
308 (name "go-github-com-bkaradzic-go-lz4")
309 (version (git-version "0.0.0" revision commit))
313 (url "https://github.com/bkaradzic/go-lz4")
315 (file-name (git-file-name name version))
318 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
319 (build-system go-build-system)
321 `(#:import-path "github.com/bkaradzic/go-lz4"))
322 (synopsis "LZ4 compression algorithm")
323 (description "This package provides @code{go-lz4}, a Go implementation of
324 the LZ4 compression algorithm.")
325 (home-page "https://github.com/bkaradzic/go-lz4")
328 (define-public go-github-com-calmh-du
330 (name "go-github-com-calmh-du")
335 (url "https://github.com/calmh/du")
336 (commit (string-append "v" version))))
337 (file-name (git-file-name name version))
340 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
341 (build-system go-build-system)
343 `(#:import-path "github.com/calmh/du"))
344 (synopsis "Get total and available disk space of a given volume")
345 (description "This is a Go implementation of `du`. It provides disk usage
346 information, such as how much storage space is available, free, and used.")
347 (home-page "https://github.com/calmh/du")
348 (license public-domain)))
350 (define-public go-github-com-calmh-xdr
352 (name "go-github-com-calmh-xdr")
357 (url "https://github.com/calmh/xdr")
358 (commit (string-append "v" version))))
359 (file-name (git-file-name name version))
362 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
363 (build-system go-build-system)
365 `(#:import-path "github.com/calmh/xdr"))
366 (synopsis "XDR marshalling and unmarshalling")
367 (description "XDR is an External Data Representation (XDR)
368 marshalling and unmarshalling library in Go. It uses code generation and not
370 (home-page "https://github.com/calmh/xdr")
373 (define-public go-github-com-d4l3k-messagediff
375 (name "go-github-com-d4l3k-messagediff")
380 (url "https://github.com/d4l3k/messagediff")
381 (commit (string-append "v" version))))
382 (file-name (git-file-name name version))
385 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
386 (build-system go-build-system)
388 `(#:import-path "github.com/d4l3k/messagediff"))
389 (synopsis "Diff arbitrary Go structs")
390 (description "Messagediff is a library for calculating diffs of arbitrary
391 structs in the Go programming language.")
392 (home-page "https://github.com/d4l3k/messagediff")
395 (define-public go-github-com-gobwas-glob
397 (name "go-github-com-gobwas-glob")
402 (url "https://github.com/gobwas/glob")
403 (commit (string-append "v" version))))
404 (file-name (git-file-name name version))
407 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
408 (build-system go-build-system)
410 `(#:import-path "github.com/gobwas/glob"))
411 (synopsis "Go globbing library")
412 (description "This package provides a Go implementation of globs.")
413 (home-page "https://github.com/gobwas/glob")
417 (define-public go-github-com-golang-groupcache-lru
418 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
421 (name "go-github-com-golang-groupcache-lru")
422 (version (git-version "0.0.0" revision commit))
426 (url "https://github.com/golang/groupcache")
428 (file-name (git-file-name name version))
431 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
432 (build-system go-build-system)
434 `(#:import-path "github.com/golang/groupcache/lru"
435 #:unpack-path "github.com/golang/groupcache"))
436 (synopsis "Groupcache is a caching and cache-filling library")
437 (description "Groupcache is a caching and cache-filling library, intended
438 as a replacement for memcached in many cases. It provides a data loading
439 mechanism with caching and de-duplication that works across a set of peer
441 (home-page "https://github.com/golang/groupcache")
444 (define-public go-github-com-golang-snappy
445 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
448 (name "go-github-com-golang-snappy")
449 (version (git-version "0.0.0" revision commit))
453 (url "https://github.com/golang/snappy")
455 (file-name (git-file-name name version))
458 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
459 (build-system go-build-system)
461 `(#:import-path "github.com/golang/snappy"))
462 (synopsis "Snappy compression format in the Go programming language")
463 (description "This package provides a Go implementation of the Snappy
464 compression format.")
465 (home-page "https://github.com/golang/snappy")
468 (define-public go-github-com-jackpal-gateway
470 (name "go-github-com-jackpal-gateway")
475 (url "https://github.com/jackpal/gateway")
476 (commit (string-append "v" version))))
477 (file-name (git-file-name name version))
480 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
481 (build-system go-build-system)
483 `(#:import-path "github.com/jackpal/gateway"))
484 (synopsis "Discover the address of a LAN gateway")
485 (description "@code{gateway} is a Go library for discovering the IP
486 address of the default LAN gateway.")
487 (home-page "https://github.com/jackpal/gateway")
490 (define-public go-github-com-lib-pq
492 (name "go-github-com-lib-pq")
497 (url "https://github.com/lib/pq")
498 (commit (string-append "v" version))))
499 (file-name (git-file-name name version))
502 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
503 (build-system go-build-system)
505 `(#:import-path "github.com/lib/pq"
506 ;; The tests seem to fail without access to the network or a running
507 ;; Postgres instance.
509 (synopsis "Golang Postgres driver for Go's database/sql")
510 (description "This package provides a pure Go Postgres driver for Go's
511 database/sql package.")
512 (home-page "https://github.com/lib/pq")
515 (define-public go-github-com-oschwald-geoip2-golang
517 (name "go-github-com-oschwald-geoip2-golang")
522 (url "https://github.com/oschwald/geoip2-golang")
523 (commit (string-append "v" version))))
524 (file-name (git-file-name name version))
527 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
528 (build-system go-build-system)
530 `(("go-github-com-oschwald-maxminddb-golang"
531 ,go-github-com-oschwald-maxminddb-golang)
532 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
534 `(#:import-path "github.com/oschwald/geoip2-golang"
535 #:tests? #f)) ; Requires some unpackaged software and test data
536 (synopsis "MaxMind GeoIP2 reader")
537 (description "This package provides a library for reading MaxMind
538 GeoLite2 and GeoIP2 databases in Go.")
539 (home-page "https://github.com/oschwald/geoip2-golang")
542 (define-public go-github-com-oschwald-maxminddb-golang
544 (name "go-github-com-oschwald-maxminddb-golang")
549 (url "https://github.com/oschwald/maxminddb-golang")
550 (commit (string-append "v" version))))
551 (file-name (git-file-name name version))
554 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
555 (build-system go-build-system)
557 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
559 `(#:import-path "github.com/oschwald/maxminddb-golang"
560 #:tests? #f)) ; Requires some unpackaged software and test data
561 (synopsis "MaxMind DB Reader for Go")
562 (description "This is a Go reader for the MaxMind DB format. Although
563 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
564 higher-level API for doing so.")
565 (home-page "https://github.com/oschwald/maxminddb-golang")
568 (define-public go-github-com-stathat-go
569 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
572 (name "go-github-com-stathat-go")
573 (version (git-version "0.0.0" revision commit))
577 (url "https://github.com/stathat/go")
579 (file-name (git-file-name name version))
582 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
583 (build-system go-build-system)
585 `(#:import-path "github.com/stathat/go"))
586 (synopsis "Post statistics to StatHat")
587 (description "This is a Go package for posting to a StatHat account.")
588 (home-page "https://github.com/stathat/go")
591 (define-public go-github-com-rcrowley-go-metrics
592 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
595 (name "go-github-com-rcrowley-go-metrics")
596 (version (git-version "0.0.0" revision commit))
600 (url "https://github.com/rcrowley/go-metrics")
602 (file-name (git-file-name name version))
605 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
606 (build-system go-build-system)
608 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
609 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
610 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
612 #:import-path "github.com/rcrowley/go-metrics"))
614 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
615 (synopsis "Go port of Coda Hale's Metrics library")
616 (description "This package provides a Go implementation of Coda Hale's
618 (home-page "https://github.com/rcrowley/go-metrics")
621 (define-public go-github-com-sasha-s-go-deadlock
623 (name "go-github-com-sasha-s-go-deadlock")
628 (url "https://github.com/sasha-s/go-deadlock")
629 (commit (string-append "v" version))))
630 (file-name (git-file-name name version))
633 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
634 (build-system go-build-system)
636 `(#:import-path "github.com/sasha-s/go-deadlock"))
638 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
639 (synopsis "Deadlock detection in go")
640 (description "This package provides tools for detecting deadlocks at
642 (home-page "https://github.com/sasha-s/go-deadlock")
645 (define-public go-github-com-syndtr-goleveldb
646 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
649 (name "go-github-com-syndtr-goleveldb")
650 (version (git-version "1.0.1" revision commit))
654 (url "https://github.com/syndtr/goleveldb")
656 (file-name (git-file-name name version))
659 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
660 (build-system go-build-system)
662 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
664 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
665 #:unpack-path "github.com/syndtr/goleveldb"
666 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
667 (synopsis "LevelDB key/value database")
668 (description "This is an implementation of the LevelDB key / value
670 (home-page "https://github.com/syndtr/goleveldb")
673 (define-public go-github-com-thejerf-suture
675 (name "go-github-com-thejerf-suture")
680 (url "https://github.com/thejerf/suture")
681 (commit (string-append "v" version))))
682 (file-name (git-file-name name version))
685 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
686 (build-system go-build-system)
688 `(#:import-path "github.com/thejerf/suture"))
689 (synopsis "Supervisor trees for Go")
690 (description "Suture provides Erlang-ish supervisor trees for Go.
691 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
692 when it's trying to die.
694 It is intended to deal gracefully with the real failure cases that can occur
695 with supervision trees (such as burning all your CPU time endlessly restarting
696 dead services), while also making no unnecessary demands on the \"service\"
697 code, and providing hooks to perform adequate logging with in a production
699 (home-page "https://github.com/thejerf/suture")
702 (define-public go-github-com-vitrun-qart
703 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
706 (name "go-github-com-vitrun-qart")
707 (version (git-version "0.0.0" revision commit))
711 (url "https://github.com/vitrun/qart")
713 (file-name (string-append "go-github-com-vitrun-qart-"
714 version "-checkout"))
717 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
718 (build-system go-build-system)
720 `(#:import-path "github.com/vitrun/qart"))
721 (synopsis "Create QR codes with an embedded image")
722 (description "This package provides a library for embedding
723 human-meaningful graphics in QR codes. However, instead of scribbling on
724 redundant pieces and relying on error correction to preserve the meaning,
725 @code{qart} engineers the encoded values to create the picture in a code with no
727 (home-page "https://github.com/vitrun/qart")
730 (define-public go-github-com-chmduquesne-rollinghash
731 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
734 (name "go-github-com-chmduquesne-rollinghash")
735 (version (git-version "4.0.0" revision commit))
740 (url "https://github.com/chmduquesne/rollinghash")
742 (file-name (git-file-name name version))
745 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
746 (build-system go-build-system)
748 '(#:import-path "github.com/chmduquesne/rollinghash/"))
749 (synopsis "Rolling hashes in Go")
750 (description "This package provides a Go implementation of several rolling
752 (home-page "https://github.com/chmduquesne/rollinghash")
755 (define-public go-github-com-petermattis-goid
756 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
759 (name "go-github-com-petermattis-goid")
760 (version (git-version "0.0.0" revision commit))
764 (url "https://github.com/petermattis/goid")
766 (file-name (git-file-name name version))
769 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
770 (build-system go-build-system)
772 '(#:import-path "github.com/petermattis/goid"))
773 (synopsis "Identify the running goroutine")
774 (description "This package offers a method of programmatically retrieving
775 the current goroutine's ID.")
776 (home-page "https://github.com/petermattis/goid")
779 (define-public go-github-com-kballard-go-shellquote
780 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
783 (name "go-github-com-kballard-go-shellquote")
784 (version (git-version "0.0.0" revision commit))
788 (url "https://github.com/kballard/go-shellquote")
790 (file-name (git-file-name name version))
793 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
794 (build-system go-build-system)
796 '(#:import-path "github.com/kballard/go-shellquote"))
797 (synopsis "Shell-style string joins and splits")
798 (description "Shellquote provides utilities for joining/splitting strings
799 using sh's word-splitting rules.")
800 (home-page "https://github.com/kballard/go-shellquote")
803 (define-public go-github-com-syncthing-notify
804 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
807 (name "go-github-com-syncthing-notify")
808 (version (git-version "0.0.0" revision commit))
812 (url "https://github.com/syncthing/notify")
814 (file-name (git-file-name name version))
817 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
818 (build-system go-build-system)
820 '(#:import-path "github.com/syncthing/notify"))
822 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
823 (synopsis "File system event notification library")
824 (description "This package provides @code{notify}, a file system event
825 notification library in Go.")
826 (home-page "https://github.com/syncthing/notify")
829 (define-public go-github-com-beorn7-perks-quantile
830 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
833 (name "go-github-com-beorn7-perks-quantile")
834 (version (git-version "0.0.0" revision commit))
838 (url "https://github.com/beorn7/perks")
840 (file-name (git-file-name name version))
843 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
844 (build-system go-build-system)
846 '(#:import-path "github.com/beorn7/perks/quantile"
847 #:unpack-path "github.com/beorn7/perks"))
848 (synopsis "Compute approximate quantiles over an unbounded data stream")
849 (description "Perks contains the Go package @code{quantile} that computes
850 approximate quantiles over an unbounded data stream within low memory and CPU
852 (home-page "https://github.com/beorn7/perks")
855 (define-public go-github-com-prometheus-client-model
856 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
859 (name "go-github-com-prometheus-client-model")
860 (version (git-version "0.0.2" revision commit))
864 (url "https://github.com/prometheus/client_model")
866 (file-name (git-file-name name version))
869 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
870 (build-system go-build-system)
872 '(#:import-path "github.com/prometheus/client_model"
875 (modify-phases %standard-phases
876 ;; Source-only package
879 `(("go-github-com-golang-protobuf-proto"
880 ,go-github-com-golang-protobuf-proto)))
881 (synopsis "Data model artifacts for Prometheus")
882 (description "This package provides data model artifacts for Prometheus.")
883 (home-page "https://github.com/prometheus/client_model")
886 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
887 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
890 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
891 (version (git-version "1.0.0" revision commit))
897 (url "https://github.com/matttproud/golang_protobuf_extensions")
899 (file-name (git-file-name name version))
902 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
903 (build-system go-build-system)
905 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
906 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
908 `(("go-github-com-golang-protobuf-proto"
909 ,go-github-com-golang-protobuf-proto)))
910 (synopsis "Streaming Protocol Buffers in Go")
911 (description "This package provides various Protocol Buffer
912 extensions for the Go language, namely support for record length-delimited
914 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
917 (define-public go-github-com-prometheus-common
919 (name "go-github-com-prometheus-common")
924 (url "https://github.com/prometheus/common")
925 (commit (string-append "v" version))))
926 (file-name (git-file-name name version))
929 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
930 (build-system go-build-system)
932 '(#:import-path "github.com/prometheus/common"
935 (modify-phases %standard-phases
936 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
937 (lambda* (#:key outputs #:allow-other-keys)
939 (make-file-writable file))
941 (string-append (assoc-ref outputs "out")
942 "/src/github.com/prometheus/common/expfmt/testdata/")
945 ;; Source-only package
948 `(("go-github-com-golang-protobuf-proto"
949 ,go-github-com-golang-protobuf-proto)
950 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
951 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
952 ("go-github-com-prometheus-client-model"
953 ,go-github-com-prometheus-client-model)))
954 (synopsis "Prometheus metrics")
955 (description "This package provides tools for reading and writing
956 Prometheus metrics.")
957 (home-page "https://github.com/prometheus/common")
960 (define-public go-github-com-prometheus-procfs
962 (name "go-github-com-prometheus-procfs")
967 (url "https://github.com/prometheus/procfs")
968 (commit (string-append "v" version))))
969 (file-name (git-file-name name version))
972 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
973 (build-system go-build-system)
975 '(#:import-path "github.com/prometheus/procfs"
976 ;; The tests require Go modules, which are not yet supported in Guix's
979 (synopsis "Go library for reading @file{/proc}")
980 (description "The @code{procfs} Go package provides functions to retrieve
981 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
982 (home-page "https://github.com/prometheus/procfs")
985 (define-public go-github-com-prometheus-client-golang
987 (name "go-github-com-prometheus-client-golang")
992 (url "https://github.com/prometheus/client_golang")
993 (commit (string-append "v" version))))
994 (file-name (git-file-name name version))
997 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
998 (build-system go-build-system)
1001 #:import-path "github.com/prometheus/client_golang"
1003 (modify-phases %standard-phases
1004 ;; Source-only package
1007 `(("go-github-com-beorn7-perks-quantile"
1008 ,go-github-com-beorn7-perks-quantile)
1009 ("go-github-com-golang-protobuf-proto"
1010 ,go-github-com-golang-protobuf-proto)
1011 ("go-github-com-prometheus-client-model"
1012 ,go-github-com-prometheus-client-model)
1013 ("go-github-com-prometheus-common"
1014 ,go-github-com-prometheus-common)
1015 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1016 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
1017 (synopsis "HTTP server and client tools for Prometheus")
1018 (description "This package @code{promhttp} provides HTTP client and
1019 server tools for Prometheus metrics.")
1020 (home-page "https://github.com/prometheus/client_golang")
1023 (define-public go-github-com-go-asn1-ber-asn1-ber
1025 (name "go-github-com-go-asn1-ber-asn1-ber")
1030 (url "https://github.com/go-asn1-ber/asn1-ber")
1031 (commit (string-append "v" version))))
1032 (file-name (git-file-name name version))
1035 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
1036 (build-system go-build-system)
1038 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
1039 (synopsis "ASN.1 BER encoding and decoding in Go")
1040 (description "This package provides ASN.1 BER encoding and decoding in the
1042 (home-page "https://github.com/go-asn1-ber/asn1-ber")
1045 (define-public go-github-com-go-ldap-ldap
1047 (name "go-github-com-go-ldap-ldap")
1052 (url "https://github.com/go-ldap/ldap")
1053 (commit (string-append "v" version))))
1054 (file-name (git-file-name name version))
1057 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
1058 (build-system go-build-system)
1060 '(#:import-path "github.com/go-ldap/ldap/v3"
1061 #:tests? #f)) ; test suite requires internet access
1063 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
1064 (home-page "https://github.com/go-ldap/ldap")
1065 (synopsis "LDAP v3 functionality for Go")
1066 (description "This package provides basic LDAP v3 functionality in the Go
1070 (define-public go-github-com-flynn-archive-go-shlex
1071 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1074 (name "go-github-com-flynn-archive-go-shlex")
1075 (version (git-version "0.0.0" revision commit))
1079 (url "https://github.com/flynn-archive/go-shlex")
1081 (file-name (git-file-name name version))
1084 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1085 (build-system go-build-system)
1087 '(#:import-path "github.com/flynn-archive/go-shlex"))
1088 (synopsis "Go lexer")
1089 (description "Shlex is a simple lexer for go that supports shell-style
1090 quoting, commenting, and escaping.")
1091 (home-page "https://github.com/flynn-archive/go-shlex")
1094 (define-public go-github-com-audriusbutkevicius-pfilter
1096 (name "go-github-com-audriusbutkevicius-pfilter")
1102 (url "https://github.com/AudriusButkevicius/pfilter")
1104 (file-name (git-file-name name version))
1107 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1108 (build-system go-build-system)
1110 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1111 (synopsis "Filter packets into multiple virtual connections")
1112 (description "Pfilter is a Go package for filtering packets into multiple
1113 virtual connections from a single physical connection.")
1114 (home-page "https://github.com/AudriusButkevicius/pfilter")
1117 (define-public go-github-com-ccding-go-stun
1118 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1121 (name "go-github-com-ccding-go-stun")
1122 (version (git-version "0.0.0" revision commit))
1127 (url "https://github.com/ccding/go-stun")
1129 (file-name (git-file-name name version))
1132 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1133 (build-system go-build-system)
1135 '(#:import-path "github.com/ccding/go-stun"))
1136 (synopsis "STUN client implementation")
1137 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1139 (home-page "https://github.com/ccding/go-stun")
1142 (define-public go-github-com-cespare-xxhash
1144 (name "go-github-com-cespare-xxhash")
1149 (url "https://github.com/cespare/xxhash")
1150 (commit (string-append "v" version))))
1151 (file-name (git-file-name name version))
1154 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1155 (build-system go-build-system)
1157 '(#:import-path "github.com/cespare/xxhash"))
1158 (synopsis "Go implementation of xxHash")
1159 (description "This package provides of Go implementation of the 64-bit
1160 xxHash algorithm (XXH64).")
1161 (home-page "https://github.com/cespare/xxhash/")