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)
232 ("python2-bcrypt" ,python2-bcrypt)
233 ("python2-dateutil" ,python2-dateutil)
234 ("python2-pycairo" ,python2-pycairo)
235 ("python2-pygobject" ,python2-pygobject)
236 ("python-nautilus" ,python-nautilus)
238 ("syncthing" ,syncthing)))
240 `(("python2-setuptools" ,python2-setuptools)))
241 (home-page "https://github.com/syncthing/syncthing-gtk")
242 (synopsis "GTK3 based GUI and notification area icon for Syncthing")
243 (description "@code{syncthing-gtk} is a GTK3 Python based GUI and
244 notification area icon for Syncthing. Supported Syncthing features:
247 @item Everything that WebUI can display
248 @item Adding, editing and deleting nodes
249 @item Adding, editing and deleting repositories
250 @item Restart, shutdown server
251 @item Editing daemon settings
255 (define-public go-github-com-jackpal-go-nat-pmp
257 (name "go-github-com-jackpal-go-nat-pmp")
262 (url "https://github.com/jackpal/go-nat-pmp")
263 (commit (string-append "v" version))))
264 (file-name (git-file-name name version))
267 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
268 (build-system go-build-system)
270 `(#:import-path "github.com/jackpal/go-nat-pmp"))
271 (synopsis "Port mapping and discovery of external IP address")
272 (description "This package provides a Go client for the NAT-PMP internet
273 protocol for port mapping and discovering the external IP address of a
275 (home-page "https://github.com/jackpal/go-nat-pmp")
278 (define-public go-github-com-audriusbutkevicius-recli
280 (name "go-github-com-audriusbutkevicius-recli")
285 (url "https://github.com/AudriusButkevicius/recli")
286 (commit (string-append "v" version))))
287 (file-name (git-file-name name version))
290 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
291 (build-system go-build-system)
293 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
294 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
296 `(#:import-path "github.com/AudriusButkevicius/recli"))
297 (synopsis "Reflection-based CLI generator")
298 (description "For a given struct, @code{recli} builds a set of
299 @code{urfave/cli} commands which allows you to modify it from the command line.
300 It is useful for generating command line clients for your application
301 configuration that is stored in a Go struct.")
302 (home-page "https://github.com/AudriusButkevicius/recli")
305 (define-public go-github-com-bkaradzic-go-lz4
306 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
309 (name "go-github-com-bkaradzic-go-lz4")
310 (version (git-version "0.0.0" revision commit))
314 (url "https://github.com/bkaradzic/go-lz4")
316 (file-name (git-file-name name version))
319 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
320 (build-system go-build-system)
322 `(#:import-path "github.com/bkaradzic/go-lz4"))
323 (synopsis "LZ4 compression algorithm")
324 (description "This package provides @code{go-lz4}, a Go implementation of
325 the LZ4 compression algorithm.")
326 (home-page "https://github.com/bkaradzic/go-lz4")
329 (define-public go-github-com-calmh-du
331 (name "go-github-com-calmh-du")
336 (url "https://github.com/calmh/du")
337 (commit (string-append "v" version))))
338 (file-name (git-file-name name version))
341 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
342 (build-system go-build-system)
344 `(#:import-path "github.com/calmh/du"))
345 (synopsis "Get total and available disk space of a given volume")
346 (description "This is a Go implementation of `du`. It provides disk usage
347 information, such as how much storage space is available, free, and used.")
348 (home-page "https://github.com/calmh/du")
349 (license public-domain)))
351 (define-public go-github-com-calmh-xdr
353 (name "go-github-com-calmh-xdr")
358 (url "https://github.com/calmh/xdr")
359 (commit (string-append "v" version))))
360 (file-name (git-file-name name version))
363 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
364 (build-system go-build-system)
366 `(#:import-path "github.com/calmh/xdr"))
367 (synopsis "XDR marshalling and unmarshalling")
368 (description "XDR is an External Data Representation (XDR)
369 marshalling and unmarshalling library in Go. It uses code generation and not
371 (home-page "https://github.com/calmh/xdr")
374 (define-public go-github-com-d4l3k-messagediff
376 (name "go-github-com-d4l3k-messagediff")
381 (url "https://github.com/d4l3k/messagediff")
382 (commit (string-append "v" version))))
383 (file-name (git-file-name name version))
386 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
387 (build-system go-build-system)
389 `(#:import-path "github.com/d4l3k/messagediff"))
390 (synopsis "Diff arbitrary Go structs")
391 (description "Messagediff is a library for calculating diffs of arbitrary
392 structs in the Go programming language.")
393 (home-page "https://github.com/d4l3k/messagediff")
396 (define-public go-github-com-gobwas-glob
398 (name "go-github-com-gobwas-glob")
403 (url "https://github.com/gobwas/glob")
404 (commit (string-append "v" version))))
405 (file-name (git-file-name name version))
408 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
409 (build-system go-build-system)
411 `(#:import-path "github.com/gobwas/glob"))
412 (synopsis "Go globbing library")
413 (description "This package provides a Go implementation of globs.")
414 (home-page "https://github.com/gobwas/glob")
418 (define-public go-github-com-golang-groupcache-lru
419 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
422 (name "go-github-com-golang-groupcache-lru")
423 (version (git-version "0.0.0" revision commit))
427 (url "https://github.com/golang/groupcache")
429 (file-name (git-file-name name version))
432 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
433 (build-system go-build-system)
435 `(#:import-path "github.com/golang/groupcache/lru"
436 #:unpack-path "github.com/golang/groupcache"))
437 (synopsis "Groupcache is a caching and cache-filling library")
438 (description "Groupcache is a caching and cache-filling library, intended
439 as a replacement for memcached in many cases. It provides a data loading
440 mechanism with caching and de-duplication that works across a set of peer
442 (home-page "https://github.com/golang/groupcache")
445 (define-public go-github-com-golang-snappy
446 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
449 (name "go-github-com-golang-snappy")
450 (version (git-version "0.0.0" revision commit))
454 (url "https://github.com/golang/snappy")
456 (file-name (git-file-name name version))
459 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
460 (build-system go-build-system)
462 `(#:import-path "github.com/golang/snappy"))
463 (synopsis "Snappy compression format in the Go programming language")
464 (description "This package provides a Go implementation of the Snappy
465 compression format.")
466 (home-page "https://github.com/golang/snappy")
469 (define-public go-github-com-jackpal-gateway
471 (name "go-github-com-jackpal-gateway")
476 (url "https://github.com/jackpal/gateway")
477 (commit (string-append "v" version))))
478 (file-name (git-file-name name version))
481 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
482 (build-system go-build-system)
484 `(#:import-path "github.com/jackpal/gateway"))
485 (synopsis "Discover the address of a LAN gateway")
486 (description "@code{gateway} is a Go library for discovering the IP
487 address of the default LAN gateway.")
488 (home-page "https://github.com/jackpal/gateway")
491 (define-public go-github-com-lib-pq
493 (name "go-github-com-lib-pq")
498 (url "https://github.com/lib/pq")
499 (commit (string-append "v" version))))
500 (file-name (git-file-name name version))
503 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
504 (build-system go-build-system)
506 `(#:import-path "github.com/lib/pq"
507 ;; The tests seem to fail without access to the network or a running
508 ;; Postgres instance.
510 (synopsis "Golang Postgres driver for Go's database/sql")
511 (description "This package provides a pure Go Postgres driver for Go's
512 database/sql package.")
513 (home-page "https://github.com/lib/pq")
516 (define-public go-github-com-oschwald-geoip2-golang
518 (name "go-github-com-oschwald-geoip2-golang")
523 (url "https://github.com/oschwald/geoip2-golang")
524 (commit (string-append "v" version))))
525 (file-name (git-file-name name version))
528 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
529 (build-system go-build-system)
531 `(("go-github-com-oschwald-maxminddb-golang"
532 ,go-github-com-oschwald-maxminddb-golang)
533 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
535 `(#:import-path "github.com/oschwald/geoip2-golang"
536 #:tests? #f)) ; Requires some unpackaged software and test data
537 (synopsis "MaxMind GeoIP2 reader")
538 (description "This package provides a library for reading MaxMind
539 GeoLite2 and GeoIP2 databases in Go.")
540 (home-page "https://github.com/oschwald/geoip2-golang")
543 (define-public go-github-com-oschwald-maxminddb-golang
545 (name "go-github-com-oschwald-maxminddb-golang")
550 (url "https://github.com/oschwald/maxminddb-golang")
551 (commit (string-append "v" version))))
552 (file-name (git-file-name name version))
555 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
556 (build-system go-build-system)
558 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
560 `(#:import-path "github.com/oschwald/maxminddb-golang"
561 #:tests? #f)) ; Requires some unpackaged software and test data
562 (synopsis "MaxMind DB Reader for Go")
563 (description "This is a Go reader for the MaxMind DB format. Although
564 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
565 higher-level API for doing so.")
566 (home-page "https://github.com/oschwald/maxminddb-golang")
569 (define-public go-github-com-stathat-go
570 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
573 (name "go-github-com-stathat-go")
574 (version (git-version "0.0.0" revision commit))
578 (url "https://github.com/stathat/go")
580 (file-name (git-file-name name version))
583 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
584 (build-system go-build-system)
586 `(#:import-path "github.com/stathat/go"))
587 (synopsis "Post statistics to StatHat")
588 (description "This is a Go package for posting to a StatHat account.")
589 (home-page "https://github.com/stathat/go")
592 (define-public go-github-com-rcrowley-go-metrics
593 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
596 (name "go-github-com-rcrowley-go-metrics")
597 (version (git-version "0.0.0" revision commit))
601 (url "https://github.com/rcrowley/go-metrics")
603 (file-name (git-file-name name version))
606 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
607 (build-system go-build-system)
609 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
610 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
611 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
613 #:import-path "github.com/rcrowley/go-metrics"))
615 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
616 (synopsis "Go port of Coda Hale's Metrics library")
617 (description "This package provides a Go implementation of Coda Hale's
619 (home-page "https://github.com/rcrowley/go-metrics")
622 (define-public go-github-com-sasha-s-go-deadlock
624 (name "go-github-com-sasha-s-go-deadlock")
629 (url "https://github.com/sasha-s/go-deadlock")
630 (commit (string-append "v" version))))
631 (file-name (git-file-name name version))
634 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
635 (build-system go-build-system)
637 `(#:import-path "github.com/sasha-s/go-deadlock"))
639 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
640 (synopsis "Deadlock detection in go")
641 (description "This package provides tools for detecting deadlocks at
643 (home-page "https://github.com/sasha-s/go-deadlock")
646 (define-public go-github-com-syndtr-goleveldb
647 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
650 (name "go-github-com-syndtr-goleveldb")
651 (version (git-version "1.0.1" revision commit))
655 (url "https://github.com/syndtr/goleveldb")
657 (file-name (git-file-name name version))
660 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
661 (build-system go-build-system)
663 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
665 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
666 #:unpack-path "github.com/syndtr/goleveldb"
667 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
668 (synopsis "LevelDB key/value database")
669 (description "This is an implementation of the LevelDB key / value
671 (home-page "https://github.com/syndtr/goleveldb")
674 (define-public go-github-com-thejerf-suture
676 (name "go-github-com-thejerf-suture")
681 (url "https://github.com/thejerf/suture")
682 (commit (string-append "v" version))))
683 (file-name (git-file-name name version))
686 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
687 (build-system go-build-system)
689 `(#:import-path "github.com/thejerf/suture"))
690 (synopsis "Supervisor trees for Go")
691 (description "Suture provides Erlang-ish supervisor trees for Go.
692 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
693 when it's trying to die.
695 It is intended to deal gracefully with the real failure cases that can occur
696 with supervision trees (such as burning all your CPU time endlessly restarting
697 dead services), while also making no unnecessary demands on the \"service\"
698 code, and providing hooks to perform adequate logging with in a production
700 (home-page "https://github.com/thejerf/suture")
703 (define-public go-github-com-vitrun-qart
704 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
707 (name "go-github-com-vitrun-qart")
708 (version (git-version "0.0.0" revision commit))
712 (url "https://github.com/vitrun/qart")
714 (file-name (string-append "go-github-com-vitrun-qart-"
715 version "-checkout"))
718 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
719 (build-system go-build-system)
721 `(#:import-path "github.com/vitrun/qart"))
722 (synopsis "Create QR codes with an embedded image")
723 (description "This package provides a library for embedding
724 human-meaningful graphics in QR codes. However, instead of scribbling on
725 redundant pieces and relying on error correction to preserve the meaning,
726 @code{qart} engineers the encoded values to create the picture in a code with no
728 (home-page "https://github.com/vitrun/qart")
731 (define-public go-github-com-chmduquesne-rollinghash
732 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
735 (name "go-github-com-chmduquesne-rollinghash")
736 (version (git-version "4.0.0" revision commit))
741 (url "https://github.com/chmduquesne/rollinghash")
743 (file-name (git-file-name name version))
746 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
747 (build-system go-build-system)
749 '(#:import-path "github.com/chmduquesne/rollinghash/"))
750 (synopsis "Rolling hashes in Go")
751 (description "This package provides a Go implementation of several rolling
753 (home-page "https://github.com/chmduquesne/rollinghash")
756 (define-public go-github-com-petermattis-goid
757 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
760 (name "go-github-com-petermattis-goid")
761 (version (git-version "0.0.0" revision commit))
765 (url "https://github.com/petermattis/goid")
767 (file-name (git-file-name name version))
770 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
771 (build-system go-build-system)
773 '(#:import-path "github.com/petermattis/goid"))
774 (synopsis "Identify the running goroutine")
775 (description "This package offers a method of programmatically retrieving
776 the current goroutine's ID.")
777 (home-page "https://github.com/petermattis/goid")
780 (define-public go-github-com-kballard-go-shellquote
781 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
784 (name "go-github-com-kballard-go-shellquote")
785 (version (git-version "0.0.0" revision commit))
789 (url "https://github.com/kballard/go-shellquote")
791 (file-name (git-file-name name version))
794 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
795 (build-system go-build-system)
797 '(#:import-path "github.com/kballard/go-shellquote"))
798 (synopsis "Shell-style string joins and splits")
799 (description "Shellquote provides utilities for joining/splitting strings
800 using sh's word-splitting rules.")
801 (home-page "https://github.com/kballard/go-shellquote")
804 (define-public go-github-com-syncthing-notify
805 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
808 (name "go-github-com-syncthing-notify")
809 (version (git-version "0.0.0" revision commit))
813 (url "https://github.com/syncthing/notify")
815 (file-name (git-file-name name version))
818 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
819 (build-system go-build-system)
821 '(#:import-path "github.com/syncthing/notify"))
823 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
824 (synopsis "File system event notification library")
825 (description "This package provides @code{notify}, a file system event
826 notification library in Go.")
827 (home-page "https://github.com/syncthing/notify")
830 (define-public go-github-com-beorn7-perks-quantile
831 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
834 (name "go-github-com-beorn7-perks-quantile")
835 (version (git-version "0.0.0" revision commit))
839 (url "https://github.com/beorn7/perks")
841 (file-name (git-file-name name version))
844 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
845 (build-system go-build-system)
847 '(#:import-path "github.com/beorn7/perks/quantile"
848 #:unpack-path "github.com/beorn7/perks"))
849 (synopsis "Compute approximate quantiles over an unbounded data stream")
850 (description "Perks contains the Go package @code{quantile} that computes
851 approximate quantiles over an unbounded data stream within low memory and CPU
853 (home-page "https://github.com/beorn7/perks")
856 (define-public go-github-com-prometheus-client-model
857 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
860 (name "go-github-com-prometheus-client-model")
861 (version (git-version "0.0.2" revision commit))
865 (url "https://github.com/prometheus/client_model")
867 (file-name (git-file-name name version))
870 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
871 (build-system go-build-system)
873 '(#:import-path "github.com/prometheus/client_model"
876 (modify-phases %standard-phases
877 ;; Source-only package
880 `(("go-github-com-golang-protobuf-proto"
881 ,go-github-com-golang-protobuf-proto)))
882 (synopsis "Data model artifacts for Prometheus")
883 (description "This package provides data model artifacts for Prometheus.")
884 (home-page "https://github.com/prometheus/client_model")
887 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
888 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
891 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
892 (version (git-version "1.0.0" revision commit))
898 (url "https://github.com/matttproud/golang_protobuf_extensions")
900 (file-name (git-file-name name version))
903 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
904 (build-system go-build-system)
906 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
907 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
909 `(("go-github-com-golang-protobuf-proto"
910 ,go-github-com-golang-protobuf-proto)))
911 (synopsis "Streaming Protocol Buffers in Go")
912 (description "This package provides various Protocol Buffer
913 extensions for the Go language, namely support for record length-delimited
915 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
918 (define-public go-github-com-prometheus-common
920 (name "go-github-com-prometheus-common")
925 (url "https://github.com/prometheus/common")
926 (commit (string-append "v" version))))
927 (file-name (git-file-name name version))
930 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
931 (build-system go-build-system)
933 '(#:import-path "github.com/prometheus/common"
936 (modify-phases %standard-phases
937 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
938 (lambda* (#:key outputs #:allow-other-keys)
940 (make-file-writable file))
942 (string-append (assoc-ref outputs "out")
943 "/src/github.com/prometheus/common/expfmt/testdata/")
946 ;; Source-only package
949 `(("go-github-com-golang-protobuf-proto"
950 ,go-github-com-golang-protobuf-proto)
951 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
952 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
953 ("go-github-com-prometheus-client-model"
954 ,go-github-com-prometheus-client-model)))
955 (synopsis "Prometheus metrics")
956 (description "This package provides tools for reading and writing
957 Prometheus metrics.")
958 (home-page "https://github.com/prometheus/common")
961 (define-public go-github-com-prometheus-procfs
963 (name "go-github-com-prometheus-procfs")
968 (url "https://github.com/prometheus/procfs")
969 (commit (string-append "v" version))))
970 (file-name (git-file-name name version))
973 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
974 (build-system go-build-system)
976 '(#:import-path "github.com/prometheus/procfs"
977 ;; The tests require Go modules, which are not yet supported in Guix's
980 (synopsis "Go library for reading @file{/proc}")
981 (description "The @code{procfs} Go package provides functions to retrieve
982 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
983 (home-page "https://github.com/prometheus/procfs")
986 (define-public go-github-com-prometheus-client-golang
988 (name "go-github-com-prometheus-client-golang")
993 (url "https://github.com/prometheus/client_golang")
994 (commit (string-append "v" version))))
995 (file-name (git-file-name name version))
998 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
999 (build-system go-build-system)
1002 #:import-path "github.com/prometheus/client_golang"
1004 (modify-phases %standard-phases
1005 ;; Source-only package
1008 `(("go-github-com-beorn7-perks-quantile"
1009 ,go-github-com-beorn7-perks-quantile)
1010 ("go-github-com-golang-protobuf-proto"
1011 ,go-github-com-golang-protobuf-proto)
1012 ("go-github-com-prometheus-client-model"
1013 ,go-github-com-prometheus-client-model)
1014 ("go-github-com-prometheus-common"
1015 ,go-github-com-prometheus-common)
1016 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1017 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
1018 (synopsis "HTTP server and client tools for Prometheus")
1019 (description "This package @code{promhttp} provides HTTP client and
1020 server tools for Prometheus metrics.")
1021 (home-page "https://github.com/prometheus/client_golang")
1024 (define-public go-github-com-go-asn1-ber-asn1-ber
1026 (name "go-github-com-go-asn1-ber-asn1-ber")
1031 (url "https://github.com/go-asn1-ber/asn1-ber")
1032 (commit (string-append "v" version))))
1033 (file-name (git-file-name name version))
1036 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
1037 (build-system go-build-system)
1039 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
1040 (synopsis "ASN.1 BER encoding and decoding in Go")
1041 (description "This package provides ASN.1 BER encoding and decoding in the
1043 (home-page "https://github.com/go-asn1-ber/asn1-ber")
1046 (define-public go-github-com-go-ldap-ldap
1048 (name "go-github-com-go-ldap-ldap")
1053 (url "https://github.com/go-ldap/ldap")
1054 (commit (string-append "v" version))))
1055 (file-name (git-file-name name version))
1058 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
1059 (build-system go-build-system)
1061 '(#:import-path "github.com/go-ldap/ldap/v3"
1062 #:tests? #f)) ; test suite requires internet access
1064 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
1065 (home-page "https://github.com/go-ldap/ldap")
1066 (synopsis "LDAP v3 functionality for Go")
1067 (description "This package provides basic LDAP v3 functionality in the Go
1071 (define-public go-github-com-flynn-archive-go-shlex
1072 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1075 (name "go-github-com-flynn-archive-go-shlex")
1076 (version (git-version "0.0.0" revision commit))
1080 (url "https://github.com/flynn-archive/go-shlex")
1082 (file-name (git-file-name name version))
1085 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1086 (build-system go-build-system)
1088 '(#:import-path "github.com/flynn-archive/go-shlex"))
1089 (synopsis "Go lexer")
1090 (description "Shlex is a simple lexer for go that supports shell-style
1091 quoting, commenting, and escaping.")
1092 (home-page "https://github.com/flynn-archive/go-shlex")
1095 (define-public go-github-com-audriusbutkevicius-pfilter
1097 (name "go-github-com-audriusbutkevicius-pfilter")
1103 (url "https://github.com/AudriusButkevicius/pfilter")
1105 (file-name (git-file-name name version))
1108 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1109 (build-system go-build-system)
1111 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1112 (synopsis "Filter packets into multiple virtual connections")
1113 (description "Pfilter is a Go package for filtering packets into multiple
1114 virtual connections from a single physical connection.")
1115 (home-page "https://github.com/AudriusButkevicius/pfilter")
1118 (define-public go-github-com-ccding-go-stun
1119 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1122 (name "go-github-com-ccding-go-stun")
1123 (version (git-version "0.0.0" revision commit))
1128 (url "https://github.com/ccding/go-stun")
1130 (file-name (git-file-name name version))
1133 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1134 (build-system go-build-system)
1136 '(#:import-path "github.com/ccding/go-stun"))
1137 (synopsis "STUN client implementation")
1138 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1140 (home-page "https://github.com/ccding/go-stun")
1143 (define-public go-github-com-cespare-xxhash
1145 (name "go-github-com-cespare-xxhash")
1150 (url "https://github.com/cespare/xxhash")
1151 (commit (string-append "v" version))))
1152 (file-name (git-file-name name version))
1155 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1156 (build-system go-build-system)
1158 '(#:import-path "github.com/cespare/xxhash"))
1159 (synopsis "Go implementation of xxHash")
1160 (description "This package provides of Go implementation of the 64-bit
1161 xxHash algorithm (XXH64).")
1162 (home-page "https://github.com/cespare/xxhash/")