1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
3 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Leo Famulari <leo@famulari.name>
4 ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
5 ;;; Copyright © 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
7 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages syncthing)
25 #:use-module (guix build-system go)
26 #:use-module (guix build-system python)
27 #:use-module (guix build-system trivial)
28 #:use-module (guix packages)
29 #:use-module (guix download)
30 #:use-module (guix git-download)
31 #:use-module (guix licenses)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages freedesktop)
34 #:use-module (gnu packages glib)
35 #:use-module (gnu packages gnome)
36 #:use-module (gnu packages golang)
37 #:use-module (gnu packages gtk)
38 #:use-module (gnu packages linux)
39 #:use-module (gnu packages python)
40 #:use-module (gnu packages python-crypto)
41 #:use-module (gnu packages python-xyz)
42 #:use-module (gnu packages time))
44 (define-public syncthing
48 ; XXX After the go-build-system can use "Go modules", stop using bundled
49 ; dependenices for Syncthing.
52 (uri (string-append "https://github.com/syncthing/syncthing"
53 "/releases/download/v" version
54 "/syncthing-source-v" version ".tar.gz"))
57 "04b90zwinl7frxrpjliq41mkbhpnkszmhdc5j2vbqwyhd82warxq"))))
58 (build-system go-build-system)
59 ;; The primary Syncthing executable goes to "out", while the auxiliary
60 ;; server programs and utility tools go to "utils". This reduces the size
61 ;; of "out" by ~80 MiB.
62 (outputs '("out" "utils"))
64 `(#:modules ((srfi srfi-26) ; for cut
66 (guix build go-build-system))
67 #:import-path "github.com/syncthing/syncthing"
68 ;; We don't need to install the source code for end-user applications.
71 (modify-phases %standard-phases
72 (add-before 'build 'increase-test-timeout
74 (substitute* "src/github.com/syncthing/syncthing/build.go"
78 (add-before 'build 'pre-build
80 (with-directory-excursion "src/github.com/syncthing/syncthing"
81 ;; Don't set a local GOBIN, it breaks cross compiling.
82 (substitute* "build.go"
88 (with-directory-excursion "src/github.com/syncthing/syncthing"
89 ;; XXX The only way to build Syncthing without its automatic
90 ;; updater and to build the utilities is to "build all" and then
91 ;; "build syncthing" again with -no-upgrade.
92 ;; https://github.com/syncthing/syncthing/issues/6118
93 (invoke "go" "run" "build.go")
94 (for-each delete-file (find-files "../../../../bin" "syncthing"))
95 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
98 (lambda* (#:key tests? #:allow-other-keys)
100 (with-directory-excursion "src/github.com/syncthing/syncthing"
101 (invoke "go" "run" "build.go" "test")))
105 (lambda* (#:key outputs #:allow-other-keys)
106 (let ((out (assoc-ref outputs "out"))
107 (utils (assoc-ref outputs "utils")))
108 (with-directory-excursion "src/github.com/syncthing/syncthing"
109 (install-file "syncthing" (string-append out "/bin")))
110 (for-each (cut install-file <> (string-append utils "/bin/"))
114 (add-after 'install 'install-docs
115 (lambda* (#:key outputs #:allow-other-keys)
116 (let* ((out (assoc-ref outputs "out"))
117 (utils (assoc-ref outputs "utils"))
119 (man-section (string-append man "/man"))
120 (src "src/github.com/syncthing/syncthing/man/"))
121 ;; Install all the man pages to "out".
125 (string-append out man-section
126 (string-take-right file 1))))
127 (find-files src "\\.[1-9]"))
128 ;; Copy all the man pages to "utils"
129 (copy-recursively (string-append out man)
130 (string-append utils man))
131 ;; Delete extraneous man pages from "out" and "utils",
133 (delete-file (string-append out man "/man1/stdiscosrv.1"))
134 (delete-file (string-append out man "/man1/strelaysrv.1"))
135 (delete-file (string-append utils man "/man1/syncthing.1"))
137 (synopsis "Decentralized continuous file system synchronization")
138 (description "Syncthing is a peer-to-peer file synchronization tool that
139 supports a wide variety of computing platforms. It uses the Block Exchange
141 (home-page "https://github.com/syncthing/syncthing")
144 (define-public syncthing-gtk
145 ;; The commit used below corresponds to the latest commit of the
146 ;; python3-port branch maintained by Debian. Upstream hasn't bothered
147 ;; porting to Python 3 (see:
148 ;; https://github.com/kozec/syncthing-gtk/issues/487).
150 (commit "c46fbd8ad1d12d409da8942702a2f119cf45514a"))
152 (name "syncthing-gtk")
153 (version (git-version "0.9.4.4" revision commit))
157 (url "https://salsa.debian.org/debian/syncthing-gtk.git")
159 (file-name (git-file-name name version))
162 "1x1c8snf0jpgjmyyidjw0015ksk5ishqn817wx8vs9i0lfgnnbbg"))))
163 (build-system python-build-system)
166 (modify-phases %standard-phases
167 (add-after 'unpack 'hardcode-dependencies
168 (lambda* (#:key inputs #:allow-other-keys)
169 (let ((psmisc (assoc-ref inputs "psmisc"))
170 (syncthing (assoc-ref inputs "syncthing")))
171 ;; Hardcode dependencies paths to avoid propagation.
172 (substitute* "syncthing_gtk/tools.py"
173 (("killall") (string-append psmisc "/bin/killall")))
174 (substitute* "syncthing_gtk/configuration.py"
175 (("/usr/bin/syncthing") (string-append syncthing
176 "/bin/syncthing"))))))
177 (add-after 'unpack 'remove-windows.py
179 ;; A Windows-specific module that fails to load with
180 ;; "ModuleNotFoundError: No module named 'msvcrt'.
181 (delete-file "syncthing_gtk/windows.py")))
182 (add-after 'wrap 'wrap-libs
183 (lambda* (#:key outputs #:allow-other-keys)
184 (let ((out (assoc-ref outputs "out")))
185 (wrap-program (string-append out "/bin/syncthing-gtk")
186 `("GI_TYPELIB_PATH" ":" prefix
187 (,(getenv "GI_TYPELIB_PATH"))))))))))
190 ("libappindicator" ,libappindicator)
191 ("libnotify" ,libnotify)
193 ("python-bcrypt" ,python-bcrypt)
194 ("python-dateutil" ,python-dateutil)
195 ("python-pycairo" ,python-pycairo)
196 ("python-pygobject" ,python-pygobject)
197 ("python-nautilus" ,python-nautilus)
199 ("syncthing" ,syncthing)))
201 ;; `(("python2-setuptools" ,python2-setuptools)))
202 (home-page "https://github.com/syncthing/syncthing-gtk")
203 (synopsis "GTK3 based GUI and notification area icon for Syncthing")
204 (description "@code{syncthing-gtk} is a GTK3 Python based GUI and
205 notification area icon for Syncthing. Supported Syncthing features:
208 @item Everything that WebUI can display
209 @item Adding, editing and deleting nodes
210 @item Adding, editing and deleting repositories
211 @item Restart, shutdown server
212 @item Editing daemon settings
216 (define-public go-github-com-jackpal-go-nat-pmp
218 (name "go-github-com-jackpal-go-nat-pmp")
223 (url "https://github.com/jackpal/go-nat-pmp")
224 (commit (string-append "v" version))))
225 (file-name (git-file-name name version))
228 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
229 (build-system go-build-system)
231 `(#:import-path "github.com/jackpal/go-nat-pmp"))
232 (synopsis "Port mapping and discovery of external IP address")
233 (description "This package provides a Go client for the NAT-PMP internet
234 protocol for port mapping and discovering the external IP address of a
236 (home-page "https://github.com/jackpal/go-nat-pmp")
239 (define-public go-github-com-audriusbutkevicius-recli
241 (name "go-github-com-audriusbutkevicius-recli")
246 (url "https://github.com/AudriusButkevicius/recli")
247 (commit (string-append "v" version))))
248 (file-name (git-file-name name version))
251 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
252 (build-system go-build-system)
254 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
255 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
257 `(#:import-path "github.com/AudriusButkevicius/recli"))
258 (synopsis "Reflection-based CLI generator")
259 (description "For a given struct, @code{recli} builds a set of
260 @code{urfave/cli} commands which allows you to modify it from the command line.
261 It is useful for generating command line clients for your application
262 configuration that is stored in a Go struct.")
263 (home-page "https://github.com/AudriusButkevicius/recli")
266 (define-public go-github-com-bkaradzic-go-lz4
267 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
270 (name "go-github-com-bkaradzic-go-lz4")
271 (version (git-version "0.0.0" revision commit))
275 (url "https://github.com/bkaradzic/go-lz4")
277 (file-name (git-file-name name version))
280 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
281 (build-system go-build-system)
283 `(#:import-path "github.com/bkaradzic/go-lz4"))
284 (synopsis "LZ4 compression algorithm")
285 (description "This package provides @code{go-lz4}, a Go implementation of
286 the LZ4 compression algorithm.")
287 (home-page "https://github.com/bkaradzic/go-lz4")
290 (define-public go-github-com-calmh-du
292 (name "go-github-com-calmh-du")
297 (url "https://github.com/calmh/du")
298 (commit (string-append "v" version))))
299 (file-name (git-file-name name version))
302 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
303 (build-system go-build-system)
305 `(#:import-path "github.com/calmh/du"))
306 (synopsis "Get total and available disk space of a given volume")
307 (description "This is a Go implementation of `du`. It provides disk usage
308 information, such as how much storage space is available, free, and used.")
309 (home-page "https://github.com/calmh/du")
310 (license public-domain)))
312 (define-public go-github-com-calmh-xdr
314 (name "go-github-com-calmh-xdr")
319 (url "https://github.com/calmh/xdr")
320 (commit (string-append "v" version))))
321 (file-name (git-file-name name version))
324 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
325 (build-system go-build-system)
327 `(#:import-path "github.com/calmh/xdr"))
328 (synopsis "XDR marshalling and unmarshalling")
329 (description "XDR is an External Data Representation (XDR)
330 marshalling and unmarshalling library in Go. It uses code generation and not
332 (home-page "https://github.com/calmh/xdr")
335 (define-public go-github-com-d4l3k-messagediff
337 (name "go-github-com-d4l3k-messagediff")
342 (url "https://github.com/d4l3k/messagediff")
343 (commit (string-append "v" version))))
344 (file-name (git-file-name name version))
347 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
348 (build-system go-build-system)
350 `(#:import-path "github.com/d4l3k/messagediff"))
351 (synopsis "Diff arbitrary Go structs")
352 (description "Messagediff is a library for calculating diffs of arbitrary
353 structs in the Go programming language.")
354 (home-page "https://github.com/d4l3k/messagediff")
357 (define-public go-github-com-gobwas-glob
359 (name "go-github-com-gobwas-glob")
364 (url "https://github.com/gobwas/glob")
365 (commit (string-append "v" version))))
366 (file-name (git-file-name name version))
369 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
370 (build-system go-build-system)
372 `(#:import-path "github.com/gobwas/glob"))
373 (synopsis "Go globbing library")
374 (description "This package provides a Go implementation of globs.")
375 (home-page "https://github.com/gobwas/glob")
379 (define-public go-github-com-golang-groupcache-lru
380 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
383 (name "go-github-com-golang-groupcache-lru")
384 (version (git-version "0.0.0" revision commit))
388 (url "https://github.com/golang/groupcache")
390 (file-name (git-file-name name version))
393 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
394 (build-system go-build-system)
396 `(#:import-path "github.com/golang/groupcache/lru"
397 #:unpack-path "github.com/golang/groupcache"))
398 (synopsis "Groupcache is a caching and cache-filling library")
399 (description "Groupcache is a caching and cache-filling library, intended
400 as a replacement for memcached in many cases. It provides a data loading
401 mechanism with caching and de-duplication that works across a set of peer
403 (home-page "https://github.com/golang/groupcache")
406 (define-public go-github-com-golang-snappy
407 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
410 (name "go-github-com-golang-snappy")
411 (version (git-version "0.0.0" revision commit))
415 (url "https://github.com/golang/snappy")
417 (file-name (git-file-name name version))
420 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
421 (build-system go-build-system)
423 `(#:import-path "github.com/golang/snappy"))
424 (synopsis "Snappy compression format in the Go programming language")
425 (description "This package provides a Go implementation of the Snappy
426 compression format.")
427 (home-page "https://github.com/golang/snappy")
430 (define-public go-github-com-jackpal-gateway
432 (name "go-github-com-jackpal-gateway")
437 (url "https://github.com/jackpal/gateway")
438 (commit (string-append "v" version))))
439 (file-name (git-file-name name version))
442 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
443 (build-system go-build-system)
445 `(#:import-path "github.com/jackpal/gateway"))
446 (synopsis "Discover the address of a LAN gateway")
447 (description "@code{gateway} is a Go library for discovering the IP
448 address of the default LAN gateway.")
449 (home-page "https://github.com/jackpal/gateway")
452 (define-public go-github-com-lib-pq
454 (name "go-github-com-lib-pq")
459 (url "https://github.com/lib/pq")
460 (commit (string-append "v" version))))
461 (file-name (git-file-name name version))
464 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
465 (build-system go-build-system)
467 `(#:import-path "github.com/lib/pq"
468 ;; The tests seem to fail without access to the network or a running
469 ;; Postgres instance.
471 (synopsis "Golang Postgres driver for Go's database/sql")
472 (description "This package provides a pure Go Postgres driver for Go's
473 database/sql package.")
474 (home-page "https://github.com/lib/pq")
477 (define-public go-github-com-oschwald-geoip2-golang
479 (name "go-github-com-oschwald-geoip2-golang")
484 (url "https://github.com/oschwald/geoip2-golang")
485 (commit (string-append "v" version))))
486 (file-name (git-file-name name version))
489 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
490 (build-system go-build-system)
492 `(("go-github-com-oschwald-maxminddb-golang"
493 ,go-github-com-oschwald-maxminddb-golang)
494 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
496 `(#:import-path "github.com/oschwald/geoip2-golang"
497 #:tests? #f)) ; Requires some unpackaged software and test data
498 (synopsis "MaxMind GeoIP2 reader")
499 (description "This package provides a library for reading MaxMind
500 GeoLite2 and GeoIP2 databases in Go.")
501 (home-page "https://github.com/oschwald/geoip2-golang")
504 (define-public go-github-com-oschwald-maxminddb-golang
506 (name "go-github-com-oschwald-maxminddb-golang")
511 (url "https://github.com/oschwald/maxminddb-golang")
512 (commit (string-append "v" version))))
513 (file-name (git-file-name name version))
516 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
517 (build-system go-build-system)
519 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
521 `(#:import-path "github.com/oschwald/maxminddb-golang"
522 #:tests? #f)) ; Requires some unpackaged software and test data
523 (synopsis "MaxMind DB Reader for Go")
524 (description "This is a Go reader for the MaxMind DB format. Although
525 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
526 higher-level API for doing so.")
527 (home-page "https://github.com/oschwald/maxminddb-golang")
530 (define-public go-github-com-stathat-go
531 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
534 (name "go-github-com-stathat-go")
535 (version (git-version "0.0.0" revision commit))
539 (url "https://github.com/stathat/go")
541 (file-name (git-file-name name version))
544 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
545 (build-system go-build-system)
547 `(#:import-path "github.com/stathat/go"))
548 (synopsis "Post statistics to StatHat")
549 (description "This is a Go package for posting to a StatHat account.")
550 (home-page "https://github.com/stathat/go")
553 (define-public go-github-com-rcrowley-go-metrics
554 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
557 (name "go-github-com-rcrowley-go-metrics")
558 (version (git-version "0.0.0" revision commit))
562 (url "https://github.com/rcrowley/go-metrics")
564 (file-name (git-file-name name version))
567 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
568 (build-system go-build-system)
570 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
571 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
572 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
574 #:import-path "github.com/rcrowley/go-metrics"))
576 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
577 (synopsis "Go port of Coda Hale's Metrics library")
578 (description "This package provides a Go implementation of Coda Hale's
580 (home-page "https://github.com/rcrowley/go-metrics")
583 (define-public go-github-com-sasha-s-go-deadlock
585 (name "go-github-com-sasha-s-go-deadlock")
590 (url "https://github.com/sasha-s/go-deadlock")
591 (commit (string-append "v" version))))
592 (file-name (git-file-name name version))
595 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
596 (build-system go-build-system)
598 `(#:import-path "github.com/sasha-s/go-deadlock"))
600 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
601 (synopsis "Deadlock detection in go")
602 (description "This package provides tools for detecting deadlocks at
604 (home-page "https://github.com/sasha-s/go-deadlock")
607 (define-public go-github-com-syndtr-goleveldb
608 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
611 (name "go-github-com-syndtr-goleveldb")
612 (version (git-version "1.0.1" revision commit))
616 (url "https://github.com/syndtr/goleveldb")
618 (file-name (git-file-name name version))
621 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
622 (build-system go-build-system)
624 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
626 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
627 #:unpack-path "github.com/syndtr/goleveldb"
628 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
629 (synopsis "LevelDB key/value database")
630 (description "This is an implementation of the LevelDB key / value
632 (home-page "https://github.com/syndtr/goleveldb")
635 (define-public go-github-com-thejerf-suture
637 (name "go-github-com-thejerf-suture")
642 (url "https://github.com/thejerf/suture")
643 (commit (string-append "v" version))))
644 (file-name (git-file-name name version))
647 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
648 (build-system go-build-system)
650 `(#:import-path "github.com/thejerf/suture"))
651 (synopsis "Supervisor trees for Go")
652 (description "Suture provides Erlang-ish supervisor trees for Go.
653 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
654 when it's trying to die.
656 It is intended to deal gracefully with the real failure cases that can occur
657 with supervision trees (such as burning all your CPU time endlessly restarting
658 dead services), while also making no unnecessary demands on the \"service\"
659 code, and providing hooks to perform adequate logging with in a production
661 (home-page "https://github.com/thejerf/suture")
664 (define-public go-github-com-vitrun-qart
665 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
668 (name "go-github-com-vitrun-qart")
669 (version (git-version "0.0.0" revision commit))
673 (url "https://github.com/vitrun/qart")
675 (file-name (string-append "go-github-com-vitrun-qart-"
676 version "-checkout"))
679 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
680 (build-system go-build-system)
682 `(#:import-path "github.com/vitrun/qart"))
683 (synopsis "Create QR codes with an embedded image")
684 (description "This package provides a library for embedding
685 human-meaningful graphics in QR codes. However, instead of scribbling on
686 redundant pieces and relying on error correction to preserve the meaning,
687 @code{qart} engineers the encoded values to create the picture in a code with no
689 (home-page "https://github.com/vitrun/qart")
692 (define-public go-github-com-chmduquesne-rollinghash
693 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
696 (name "go-github-com-chmduquesne-rollinghash")
697 (version (git-version "4.0.0" revision commit))
702 (url "https://github.com/chmduquesne/rollinghash")
704 (file-name (git-file-name name version))
707 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
708 (build-system go-build-system)
710 '(#:import-path "github.com/chmduquesne/rollinghash/"))
711 (synopsis "Rolling hashes in Go")
712 (description "This package provides a Go implementation of several rolling
714 (home-page "https://github.com/chmduquesne/rollinghash")
717 (define-public go-github-com-petermattis-goid
718 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
721 (name "go-github-com-petermattis-goid")
722 (version (git-version "0.0.0" revision commit))
726 (url "https://github.com/petermattis/goid")
728 (file-name (git-file-name name version))
731 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
732 (build-system go-build-system)
734 '(#:import-path "github.com/petermattis/goid"))
735 (synopsis "Identify the running goroutine")
736 (description "This package offers a method of programmatically retrieving
737 the current goroutine's ID.")
738 (home-page "https://github.com/petermattis/goid")
741 (define-public go-github-com-kballard-go-shellquote
742 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
745 (name "go-github-com-kballard-go-shellquote")
746 (version (git-version "0.0.0" revision commit))
750 (url "https://github.com/kballard/go-shellquote")
752 (file-name (git-file-name name version))
755 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
756 (build-system go-build-system)
758 '(#:import-path "github.com/kballard/go-shellquote"))
759 (synopsis "Shell-style string joins and splits")
760 (description "Shellquote provides utilities for joining/splitting strings
761 using sh's word-splitting rules.")
762 (home-page "https://github.com/kballard/go-shellquote")
765 (define-public go-github-com-syncthing-notify
766 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
769 (name "go-github-com-syncthing-notify")
770 (version (git-version "0.0.0" revision commit))
774 (url "https://github.com/syncthing/notify")
776 (file-name (git-file-name name version))
779 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
780 (build-system go-build-system)
782 '(#:import-path "github.com/syncthing/notify"))
784 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
785 (synopsis "File system event notification library")
786 (description "This package provides @code{notify}, a file system event
787 notification library in Go.")
788 (home-page "https://github.com/syncthing/notify")
791 (define-public go-github-com-beorn7-perks-quantile
792 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
795 (name "go-github-com-beorn7-perks-quantile")
796 (version (git-version "0.0.0" revision commit))
800 (url "https://github.com/beorn7/perks")
802 (file-name (git-file-name name version))
805 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
806 (build-system go-build-system)
808 '(#:import-path "github.com/beorn7/perks/quantile"
809 #:unpack-path "github.com/beorn7/perks"))
810 (synopsis "Compute approximate quantiles over an unbounded data stream")
811 (description "Perks contains the Go package @code{quantile} that computes
812 approximate quantiles over an unbounded data stream within low memory and CPU
814 (home-page "https://github.com/beorn7/perks")
817 (define-public go-github-com-prometheus-client-model
818 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
821 (name "go-github-com-prometheus-client-model")
822 (version (git-version "0.0.2" revision commit))
826 (url "https://github.com/prometheus/client_model")
828 (file-name (git-file-name name version))
831 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
832 (build-system go-build-system)
834 '(#:import-path "github.com/prometheus/client_model"
837 (modify-phases %standard-phases
838 ;; Source-only package
841 `(("go-github-com-golang-protobuf-proto"
842 ,go-github-com-golang-protobuf-proto)))
843 (synopsis "Data model artifacts for Prometheus")
844 (description "This package provides data model artifacts for Prometheus.")
845 (home-page "https://github.com/prometheus/client_model")
848 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
849 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
852 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
853 (version (git-version "1.0.0" revision commit))
859 (url "https://github.com/matttproud/golang_protobuf_extensions")
861 (file-name (git-file-name name version))
864 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
865 (build-system go-build-system)
867 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
868 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
870 `(("go-github-com-golang-protobuf-proto"
871 ,go-github-com-golang-protobuf-proto)))
872 (synopsis "Streaming Protocol Buffers in Go")
873 (description "This package provides various Protocol Buffer
874 extensions for the Go language, namely support for record length-delimited
876 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
879 (define-public go-github-com-prometheus-common
881 (name "go-github-com-prometheus-common")
886 (url "https://github.com/prometheus/common")
887 (commit (string-append "v" version))))
888 (file-name (git-file-name name version))
891 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
892 (build-system go-build-system)
894 '(#:import-path "github.com/prometheus/common"
897 (modify-phases %standard-phases
898 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
899 (lambda* (#:key outputs #:allow-other-keys)
901 (make-file-writable file))
903 (string-append (assoc-ref outputs "out")
904 "/src/github.com/prometheus/common/expfmt/testdata/")
907 ;; Source-only package
910 `(("go-github-com-golang-protobuf-proto"
911 ,go-github-com-golang-protobuf-proto)
912 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
913 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
914 ("go-github-com-prometheus-client-model"
915 ,go-github-com-prometheus-client-model)))
916 (synopsis "Prometheus metrics")
917 (description "This package provides tools for reading and writing
918 Prometheus metrics.")
919 (home-page "https://github.com/prometheus/common")
922 (define-public go-github-com-prometheus-procfs
924 (name "go-github-com-prometheus-procfs")
929 (url "https://github.com/prometheus/procfs")
930 (commit (string-append "v" version))))
931 (file-name (git-file-name name version))
934 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
935 (build-system go-build-system)
937 '(#:import-path "github.com/prometheus/procfs"
938 ;; The tests require Go modules, which are not yet supported in Guix's
941 (synopsis "Go library for reading @file{/proc}")
942 (description "The @code{procfs} Go package provides functions to retrieve
943 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
944 (home-page "https://github.com/prometheus/procfs")
947 (define-public go-github-com-prometheus-client-golang
949 (name "go-github-com-prometheus-client-golang")
954 (url "https://github.com/prometheus/client_golang")
955 (commit (string-append "v" version))))
956 (file-name (git-file-name name version))
959 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
960 (build-system go-build-system)
963 #:import-path "github.com/prometheus/client_golang"
965 (modify-phases %standard-phases
966 ;; Source-only package
969 `(("go-github-com-beorn7-perks-quantile"
970 ,go-github-com-beorn7-perks-quantile)
971 ("go-github-com-golang-protobuf-proto"
972 ,go-github-com-golang-protobuf-proto)
973 ("go-github-com-prometheus-client-model"
974 ,go-github-com-prometheus-client-model)
975 ("go-github-com-prometheus-common"
976 ,go-github-com-prometheus-common)
977 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
978 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
979 (synopsis "HTTP server and client tools for Prometheus")
980 (description "This package @code{promhttp} provides HTTP client and
981 server tools for Prometheus metrics.")
982 (home-page "https://github.com/prometheus/client_golang")
985 (define-public go-github-com-go-asn1-ber-asn1-ber
987 (name "go-github-com-go-asn1-ber-asn1-ber")
992 (url "https://github.com/go-asn1-ber/asn1-ber")
993 (commit (string-append "v" version))))
994 (file-name (git-file-name name version))
997 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
998 (build-system go-build-system)
1000 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
1001 (synopsis "ASN.1 BER encoding and decoding in Go")
1002 (description "This package provides ASN.1 BER encoding and decoding in the
1004 (home-page "https://github.com/go-asn1-ber/asn1-ber")
1007 (define-public go-github-com-go-ldap-ldap
1009 (name "go-github-com-go-ldap-ldap")
1014 (url "https://github.com/go-ldap/ldap")
1015 (commit (string-append "v" version))))
1016 (file-name (git-file-name name version))
1019 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
1020 (build-system go-build-system)
1022 '(#:import-path "github.com/go-ldap/ldap/v3"
1023 #:tests? #f)) ; test suite requires internet access
1025 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
1026 (home-page "https://github.com/go-ldap/ldap")
1027 (synopsis "LDAP v3 functionality for Go")
1028 (description "This package provides basic LDAP v3 functionality in the Go
1032 (define-public go-github-com-flynn-archive-go-shlex
1033 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1036 (name "go-github-com-flynn-archive-go-shlex")
1037 (version (git-version "0.0.0" revision commit))
1041 (url "https://github.com/flynn-archive/go-shlex")
1043 (file-name (git-file-name name version))
1046 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1047 (build-system go-build-system)
1049 '(#:import-path "github.com/flynn-archive/go-shlex"))
1050 (synopsis "Go lexer")
1051 (description "Shlex is a simple lexer for go that supports shell-style
1052 quoting, commenting, and escaping.")
1053 (home-page "https://github.com/flynn-archive/go-shlex")
1056 (define-public go-github-com-audriusbutkevicius-pfilter
1058 (name "go-github-com-audriusbutkevicius-pfilter")
1064 (url "https://github.com/AudriusButkevicius/pfilter")
1066 (file-name (git-file-name name version))
1069 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1070 (build-system go-build-system)
1072 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1073 (synopsis "Filter packets into multiple virtual connections")
1074 (description "Pfilter is a Go package for filtering packets into multiple
1075 virtual connections from a single physical connection.")
1076 (home-page "https://github.com/AudriusButkevicius/pfilter")
1079 (define-public go-github-com-ccding-go-stun
1080 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1083 (name "go-github-com-ccding-go-stun")
1084 (version (git-version "0.0.0" revision commit))
1089 (url "https://github.com/ccding/go-stun")
1091 (file-name (git-file-name name version))
1094 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1095 (build-system go-build-system)
1097 '(#:import-path "github.com/ccding/go-stun"))
1098 (synopsis "STUN client implementation")
1099 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1101 (home-page "https://github.com/ccding/go-stun")
1104 (define-public go-github-com-cespare-xxhash
1106 (name "go-github-com-cespare-xxhash")
1111 (url "https://github.com/cespare/xxhash")
1112 (commit (string-append "v" version))))
1113 (file-name (git-file-name name version))
1116 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1117 (build-system go-build-system)
1119 '(#:import-path "github.com/cespare/xxhash"))
1120 (synopsis "Go implementation of xxHash")
1121 (description "This package provides of Go implementation of the 64-bit
1122 xxHash algorithm (XXH64).")
1123 (home-page "https://github.com/cespare/xxhash/")