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 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"
80 (with-directory-excursion "src/github.com/syncthing/syncthing"
81 ;; XXX The only way to build Syncthing without its automatic
82 ;; updater and to build the utilities is to "build all" and then
83 ;; "build syncthing" again with -no-upgrade.
84 ;; https://github.com/syncthing/syncthing/issues/6118
85 (invoke "go" "run" "build.go")
86 (delete-file "bin/syncthing")
87 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
91 (with-directory-excursion "src/github.com/syncthing/syncthing"
92 (invoke "go" "run" "build.go" "test"))))
95 (lambda* (#:key outputs #:allow-other-keys)
96 (let ((out (assoc-ref outputs "out"))
97 (utils (assoc-ref outputs "utils")))
98 (with-directory-excursion "src/github.com/syncthing/syncthing/bin"
99 (install-file "../syncthing" (string-append out "/bin"))
100 (for-each (cut install-file <> (string-append utils "/bin/"))
101 '("stcompdirs" "stcrashreceiver"
102 "stdisco" "stdiscosrv" "stevents" "stfileinfo"
103 "stfinddevice" "stfindignored" "stgenfiles"
104 "stindex" "strelaypoolsrv" "strelaysrv" "stsigtool"
105 "stvanity" "stwatchfile" "uraggregate" "ursrv"))
108 (add-after 'install 'install-docs
109 (lambda* (#:key outputs #:allow-other-keys)
110 (let* ((out (assoc-ref outputs "out"))
111 (utils (assoc-ref outputs "utils"))
113 (man-section (string-append man "/man"))
114 (src "src/github.com/syncthing/syncthing/man/"))
115 ;; Install all the man pages to "out".
119 (string-append out man-section
120 (string-take-right file 1))))
121 (find-files src "\\.[1-9]"))
122 ;; Copy all the man pages to "utils"
123 (copy-recursively (string-append out man)
124 (string-append utils man))
125 ;; Delete extraneous man pages from "out" and "utils",
127 (delete-file (string-append out man "/man1/stdiscosrv.1"))
128 (delete-file (string-append out man "/man1/strelaysrv.1"))
129 (delete-file (string-append utils man "/man1/syncthing.1"))
131 (synopsis "Decentralized continuous file system synchronization")
132 (description "Syncthing is a peer-to-peer file synchronization tool that
133 supports a wide variety of computing platforms. It uses the Block Exchange
135 (home-page "https://github.com/syncthing/syncthing")
138 (define-public syncthing-gtk
139 ;; The commit used below corresponds to the latest commit of the
140 ;; python3-port branch maintained by Debian. Upstream hasn't bothered
141 ;; porting to Python 3 (see:
142 ;; https://github.com/kozec/syncthing-gtk/issues/487).
144 (commit "c46fbd8ad1d12d409da8942702a2f119cf45514a"))
146 (name "syncthing-gtk")
147 (version (git-version "0.9.4.4" revision commit))
151 (url "https://salsa.debian.org/debian/syncthing-gtk.git")
153 (file-name (git-file-name name version))
156 "1x1c8snf0jpgjmyyidjw0015ksk5ishqn817wx8vs9i0lfgnnbbg"))))
157 (build-system python-build-system)
160 (modify-phases %standard-phases
161 (add-after 'unpack 'hardcode-dependencies
162 (lambda* (#:key inputs #:allow-other-keys)
163 (let ((psmisc (assoc-ref inputs "psmisc"))
164 (syncthing (assoc-ref inputs "syncthing")))
165 ;; Hardcode dependencies paths to avoid propagation.
166 (substitute* "syncthing_gtk/tools.py"
167 (("killall") (string-append psmisc "/bin/killall")))
168 (substitute* "syncthing_gtk/configuration.py"
169 (("/usr/bin/syncthing") (string-append syncthing
170 "/bin/syncthing"))))))
171 (add-after 'unpack 'remove-windows.py
173 ;; A Windows-specific module that fails to load with
174 ;; "ModuleNotFoundError: No module named 'msvcrt'.
175 (delete-file "syncthing_gtk/windows.py")))
176 (add-after 'wrap 'wrap-libs
177 (lambda* (#:key outputs #:allow-other-keys)
178 (let ((out (assoc-ref outputs "out")))
179 (wrap-program (string-append out "/bin/syncthing-gtk")
180 `("GI_TYPELIB_PATH" ":" prefix
181 (,(getenv "GI_TYPELIB_PATH"))))))))))
184 ("libappindicator" ,libappindicator)
185 ("libnotify" ,libnotify)
187 ("python-bcrypt" ,python-bcrypt)
188 ("python-dateutil" ,python-dateutil)
189 ("python-pycairo" ,python-pycairo)
190 ("python-pygobject" ,python-pygobject)
191 ("python-nautilus" ,python-nautilus)
193 ("syncthing" ,syncthing)))
195 ;; `(("python2-setuptools" ,python2-setuptools)))
196 (home-page "https://github.com/syncthing/syncthing-gtk")
197 (synopsis "GTK3 based GUI and notification area icon for Syncthing")
198 (description "@code{syncthing-gtk} is a GTK3 Python based GUI and
199 notification area icon for Syncthing. Supported Syncthing features:
202 @item Everything that WebUI can display
203 @item Adding, editing and deleting nodes
204 @item Adding, editing and deleting repositories
205 @item Restart, shutdown server
206 @item Editing daemon settings
210 (define-public go-github-com-jackpal-go-nat-pmp
212 (name "go-github-com-jackpal-go-nat-pmp")
217 (url "https://github.com/jackpal/go-nat-pmp")
218 (commit (string-append "v" version))))
219 (file-name (git-file-name name version))
222 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
223 (build-system go-build-system)
225 `(#:import-path "github.com/jackpal/go-nat-pmp"))
226 (synopsis "Port mapping and discovery of external IP address")
227 (description "This package provides a Go client for the NAT-PMP internet
228 protocol for port mapping and discovering the external IP address of a
230 (home-page "https://github.com/jackpal/go-nat-pmp")
233 (define-public go-github-com-audriusbutkevicius-recli
235 (name "go-github-com-audriusbutkevicius-recli")
240 (url "https://github.com/AudriusButkevicius/recli")
241 (commit (string-append "v" version))))
242 (file-name (git-file-name name version))
245 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
246 (build-system go-build-system)
248 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
249 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
251 `(#:import-path "github.com/AudriusButkevicius/recli"))
252 (synopsis "Reflection-based CLI generator")
253 (description "For a given struct, @code{recli} builds a set of
254 @code{urfave/cli} commands which allows you to modify it from the command line.
255 It is useful for generating command line clients for your application
256 configuration that is stored in a Go struct.")
257 (home-page "https://github.com/AudriusButkevicius/recli")
260 (define-public go-github-com-bkaradzic-go-lz4
261 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
264 (name "go-github-com-bkaradzic-go-lz4")
265 (version (git-version "0.0.0" revision commit))
269 (url "https://github.com/bkaradzic/go-lz4")
271 (file-name (git-file-name name version))
274 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
275 (build-system go-build-system)
277 `(#:import-path "github.com/bkaradzic/go-lz4"))
278 (synopsis "LZ4 compression algorithm")
279 (description "This package provides @code{go-lz4}, a Go implementation of
280 the LZ4 compression algorithm.")
281 (home-page "https://github.com/bkaradzic/go-lz4")
284 (define-public go-github-com-calmh-du
286 (name "go-github-com-calmh-du")
291 (url "https://github.com/calmh/du")
292 (commit (string-append "v" version))))
293 (file-name (git-file-name name version))
296 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
297 (build-system go-build-system)
299 `(#:import-path "github.com/calmh/du"))
300 (synopsis "Get total and available disk space of a given volume")
301 (description "This is a Go implementation of `du`. It provides disk usage
302 information, such as how much storage space is available, free, and used.")
303 (home-page "https://github.com/calmh/du")
304 (license public-domain)))
306 (define-public go-github-com-calmh-xdr
308 (name "go-github-com-calmh-xdr")
313 (url "https://github.com/calmh/xdr")
314 (commit (string-append "v" version))))
315 (file-name (git-file-name name version))
318 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
319 (build-system go-build-system)
321 `(#:import-path "github.com/calmh/xdr"))
322 (synopsis "XDR marshalling and unmarshalling")
323 (description "XDR is an External Data Representation (XDR)
324 marshalling and unmarshalling library in Go. It uses code generation and not
326 (home-page "https://github.com/calmh/xdr")
329 (define-public go-github-com-d4l3k-messagediff
331 (name "go-github-com-d4l3k-messagediff")
336 (url "https://github.com/d4l3k/messagediff")
337 (commit (string-append "v" version))))
338 (file-name (git-file-name name version))
341 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
342 (build-system go-build-system)
344 `(#:import-path "github.com/d4l3k/messagediff"))
345 (synopsis "Diff arbitrary Go structs")
346 (description "Messagediff is a library for calculating diffs of arbitrary
347 structs in the Go programming language.")
348 (home-page "https://github.com/d4l3k/messagediff")
351 (define-public go-github-com-gobwas-glob
353 (name "go-github-com-gobwas-glob")
358 (url "https://github.com/gobwas/glob")
359 (commit (string-append "v" version))))
360 (file-name (git-file-name name version))
363 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
364 (build-system go-build-system)
366 `(#:import-path "github.com/gobwas/glob"))
367 (synopsis "Go globbing library")
368 (description "This package provides a Go implementation of globs.")
369 (home-page "https://github.com/gobwas/glob")
373 (define-public go-github-com-golang-groupcache-lru
374 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
377 (name "go-github-com-golang-groupcache-lru")
378 (version (git-version "0.0.0" revision commit))
382 (url "https://github.com/golang/groupcache")
384 (file-name (git-file-name name version))
387 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
388 (build-system go-build-system)
390 `(#:import-path "github.com/golang/groupcache/lru"
391 #:unpack-path "github.com/golang/groupcache"))
392 (synopsis "Groupcache is a caching and cache-filling library")
393 (description "Groupcache is a caching and cache-filling library, intended
394 as a replacement for memcached in many cases. It provides a data loading
395 mechanism with caching and de-duplication that works across a set of peer
397 (home-page "https://github.com/golang/groupcache")
400 (define-public go-github-com-golang-snappy
401 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
404 (name "go-github-com-golang-snappy")
405 (version (git-version "0.0.0" revision commit))
409 (url "https://github.com/golang/snappy")
411 (file-name (git-file-name name version))
414 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
415 (build-system go-build-system)
417 `(#:import-path "github.com/golang/snappy"))
418 (synopsis "Snappy compression format in the Go programming language")
419 (description "This package provides a Go implementation of the Snappy
420 compression format.")
421 (home-page "https://github.com/golang/snappy")
424 (define-public go-github-com-jackpal-gateway
426 (name "go-github-com-jackpal-gateway")
431 (url "https://github.com/jackpal/gateway")
432 (commit (string-append "v" version))))
433 (file-name (git-file-name name version))
436 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
437 (build-system go-build-system)
439 `(#:import-path "github.com/jackpal/gateway"))
440 (synopsis "Discover the address of a LAN gateway")
441 (description "@code{gateway} is a Go library for discovering the IP
442 address of the default LAN gateway.")
443 (home-page "https://github.com/jackpal/gateway")
446 (define-public go-github-com-lib-pq
448 (name "go-github-com-lib-pq")
453 (url "https://github.com/lib/pq")
454 (commit (string-append "v" version))))
455 (file-name (git-file-name name version))
458 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
459 (build-system go-build-system)
461 `(#:import-path "github.com/lib/pq"
462 ;; The tests seem to fail without access to the network or a running
463 ;; Postgres instance.
465 (synopsis "Golang Postgres driver for Go's database/sql")
466 (description "This package provides a pure Go Postgres driver for Go's
467 database/sql package.")
468 (home-page "https://github.com/lib/pq")
471 (define-public go-github-com-oschwald-geoip2-golang
473 (name "go-github-com-oschwald-geoip2-golang")
478 (url "https://github.com/oschwald/geoip2-golang")
479 (commit (string-append "v" version))))
480 (file-name (git-file-name name version))
483 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
484 (build-system go-build-system)
486 `(("go-github-com-oschwald-maxminddb-golang"
487 ,go-github-com-oschwald-maxminddb-golang)
488 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
490 `(#:import-path "github.com/oschwald/geoip2-golang"
491 #:tests? #f)) ; Requires some unpackaged software and test data
492 (synopsis "MaxMind GeoIP2 reader")
493 (description "This package provides a library for reading MaxMind
494 GeoLite2 and GeoIP2 databases in Go.")
495 (home-page "https://github.com/oschwald/geoip2-golang")
498 (define-public go-github-com-oschwald-maxminddb-golang
500 (name "go-github-com-oschwald-maxminddb-golang")
505 (url "https://github.com/oschwald/maxminddb-golang")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
510 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
511 (build-system go-build-system)
513 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
515 `(#:import-path "github.com/oschwald/maxminddb-golang"
516 #:tests? #f)) ; Requires some unpackaged software and test data
517 (synopsis "MaxMind DB Reader for Go")
518 (description "This is a Go reader for the MaxMind DB format. Although
519 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
520 higher-level API for doing so.")
521 (home-page "https://github.com/oschwald/maxminddb-golang")
524 (define-public go-github-com-stathat-go
525 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
528 (name "go-github-com-stathat-go")
529 (version (git-version "0.0.0" revision commit))
533 (url "https://github.com/stathat/go")
535 (file-name (git-file-name name version))
538 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
539 (build-system go-build-system)
541 `(#:import-path "github.com/stathat/go"))
542 (synopsis "Post statistics to StatHat")
543 (description "This is a Go package for posting to a StatHat account.")
544 (home-page "https://github.com/stathat/go")
547 (define-public go-github-com-rcrowley-go-metrics
548 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
551 (name "go-github-com-rcrowley-go-metrics")
552 (version (git-version "0.0.0" revision commit))
556 (url "https://github.com/rcrowley/go-metrics")
558 (file-name (git-file-name name version))
561 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
562 (build-system go-build-system)
564 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
565 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
566 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
568 #:import-path "github.com/rcrowley/go-metrics"))
570 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
571 (synopsis "Go port of Coda Hale's Metrics library")
572 (description "This package provides a Go implementation of Coda Hale's
574 (home-page "https://github.com/rcrowley/go-metrics")
577 (define-public go-github-com-sasha-s-go-deadlock
579 (name "go-github-com-sasha-s-go-deadlock")
584 (url "https://github.com/sasha-s/go-deadlock")
585 (commit (string-append "v" version))))
586 (file-name (git-file-name name version))
589 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
590 (build-system go-build-system)
592 `(#:import-path "github.com/sasha-s/go-deadlock"))
594 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
595 (synopsis "Deadlock detection in go")
596 (description "This package provides tools for detecting deadlocks at
598 (home-page "https://github.com/sasha-s/go-deadlock")
601 (define-public go-github-com-syndtr-goleveldb
602 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
605 (name "go-github-com-syndtr-goleveldb")
606 (version (git-version "1.0.1" revision commit))
610 (url "https://github.com/syndtr/goleveldb")
612 (file-name (git-file-name name version))
615 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
616 (build-system go-build-system)
618 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
620 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
621 #:unpack-path "github.com/syndtr/goleveldb"
622 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
623 (synopsis "LevelDB key/value database")
624 (description "This is an implementation of the LevelDB key / value
626 (home-page "https://github.com/syndtr/goleveldb")
629 (define-public go-github-com-thejerf-suture
631 (name "go-github-com-thejerf-suture")
636 (url "https://github.com/thejerf/suture")
637 (commit (string-append "v" version))))
638 (file-name (git-file-name name version))
641 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
642 (build-system go-build-system)
644 `(#:import-path "github.com/thejerf/suture"))
645 (synopsis "Supervisor trees for Go")
646 (description "Suture provides Erlang-ish supervisor trees for Go.
647 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
648 when it's trying to die.
650 It is intended to deal gracefully with the real failure cases that can occur
651 with supervision trees (such as burning all your CPU time endlessly restarting
652 dead services), while also making no unnecessary demands on the \"service\"
653 code, and providing hooks to perform adequate logging with in a production
655 (home-page "https://github.com/thejerf/suture")
658 (define-public go-github-com-vitrun-qart
659 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
662 (name "go-github-com-vitrun-qart")
663 (version (git-version "0.0.0" revision commit))
667 (url "https://github.com/vitrun/qart")
669 (file-name (string-append "go-github-com-vitrun-qart-"
670 version "-checkout"))
673 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
674 (build-system go-build-system)
676 `(#:import-path "github.com/vitrun/qart"))
677 (synopsis "Create QR codes with an embedded image")
678 (description "This package provides a library for embedding
679 human-meaningful graphics in QR codes. However, instead of scribbling on
680 redundant pieces and relying on error correction to preserve the meaning,
681 @code{qart} engineers the encoded values to create the picture in a code with no
683 (home-page "https://github.com/vitrun/qart")
686 (define-public go-github-com-chmduquesne-rollinghash
687 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
690 (name "go-github-com-chmduquesne-rollinghash")
691 (version (git-version "4.0.0" revision commit))
696 (url "https://github.com/chmduquesne/rollinghash")
698 (file-name (git-file-name name version))
701 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
702 (build-system go-build-system)
704 '(#:import-path "github.com/chmduquesne/rollinghash/"))
705 (synopsis "Rolling hashes in Go")
706 (description "This package provides a Go implementation of several rolling
708 (home-page "https://github.com/chmduquesne/rollinghash")
711 (define-public go-github-com-petermattis-goid
712 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
715 (name "go-github-com-petermattis-goid")
716 (version (git-version "0.0.0" revision commit))
720 (url "https://github.com/petermattis/goid")
722 (file-name (git-file-name name version))
725 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
726 (build-system go-build-system)
728 '(#:import-path "github.com/petermattis/goid"))
729 (synopsis "Identify the running goroutine")
730 (description "This package offers a method of programmatically retrieving
731 the current goroutine's ID.")
732 (home-page "https://github.com/petermattis/goid")
735 (define-public go-github-com-kballard-go-shellquote
736 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
739 (name "go-github-com-kballard-go-shellquote")
740 (version (git-version "0.0.0" revision commit))
744 (url "https://github.com/kballard/go-shellquote")
746 (file-name (git-file-name name version))
749 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
750 (build-system go-build-system)
752 '(#:import-path "github.com/kballard/go-shellquote"))
753 (synopsis "Shell-style string joins and splits")
754 (description "Shellquote provides utilities for joining/splitting strings
755 using sh's word-splitting rules.")
756 (home-page "https://github.com/kballard/go-shellquote")
759 (define-public go-github-com-syncthing-notify
760 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
763 (name "go-github-com-syncthing-notify")
764 (version (git-version "0.0.0" revision commit))
768 (url "https://github.com/syncthing/notify")
770 (file-name (git-file-name name version))
773 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
774 (build-system go-build-system)
776 '(#:import-path "github.com/syncthing/notify"))
778 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
779 (synopsis "File system event notification library")
780 (description "This package provides @code{notify}, a file system event
781 notification library in Go.")
782 (home-page "https://github.com/syncthing/notify")
785 (define-public go-github-com-beorn7-perks-quantile
786 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
789 (name "go-github-com-beorn7-perks-quantile")
790 (version (git-version "0.0.0" revision commit))
794 (url "https://github.com/beorn7/perks")
796 (file-name (git-file-name name version))
799 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
800 (build-system go-build-system)
802 '(#:import-path "github.com/beorn7/perks/quantile"
803 #:unpack-path "github.com/beorn7/perks"))
804 (synopsis "Compute approximate quantiles over an unbounded data stream")
805 (description "Perks contains the Go package @code{quantile} that computes
806 approximate quantiles over an unbounded data stream within low memory and CPU
808 (home-page "https://github.com/beorn7/perks")
811 (define-public go-github-com-prometheus-client-model
812 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
815 (name "go-github-com-prometheus-client-model")
816 (version (git-version "0.0.2" revision commit))
820 (url "https://github.com/prometheus/client_model")
822 (file-name (git-file-name name version))
825 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
826 (build-system go-build-system)
828 '(#:import-path "github.com/prometheus/client_model"
831 (modify-phases %standard-phases
832 ;; Source-only package
835 `(("go-github-com-golang-protobuf-proto"
836 ,go-github-com-golang-protobuf-proto)))
837 (synopsis "Data model artifacts for Prometheus")
838 (description "This package provides data model artifacts for Prometheus.")
839 (home-page "https://github.com/prometheus/client_model")
842 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
843 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
846 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
847 (version (git-version "1.0.0" revision commit))
853 (url "https://github.com/matttproud/golang_protobuf_extensions")
855 (file-name (git-file-name name version))
858 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
859 (build-system go-build-system)
861 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
862 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
864 `(("go-github-com-golang-protobuf-proto"
865 ,go-github-com-golang-protobuf-proto)))
866 (synopsis "Streaming Protocol Buffers in Go")
867 (description "This package provides various Protocol Buffer
868 extensions for the Go language, namely support for record length-delimited
870 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
873 (define-public go-github-com-prometheus-common
875 (name "go-github-com-prometheus-common")
880 (url "https://github.com/prometheus/common")
881 (commit (string-append "v" version))))
882 (file-name (git-file-name name version))
885 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
886 (build-system go-build-system)
888 '(#:import-path "github.com/prometheus/common"
891 (modify-phases %standard-phases
892 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
893 (lambda* (#:key outputs #:allow-other-keys)
895 (make-file-writable file))
897 (string-append (assoc-ref outputs "out")
898 "/src/github.com/prometheus/common/expfmt/testdata/")
901 ;; Source-only package
904 `(("go-github-com-golang-protobuf-proto"
905 ,go-github-com-golang-protobuf-proto)
906 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
907 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
908 ("go-github-com-prometheus-client-model"
909 ,go-github-com-prometheus-client-model)))
910 (synopsis "Prometheus metrics")
911 (description "This package provides tools for reading and writing
912 Prometheus metrics.")
913 (home-page "https://github.com/prometheus/common")
916 (define-public go-github-com-prometheus-procfs
918 (name "go-github-com-prometheus-procfs")
923 (url "https://github.com/prometheus/procfs")
924 (commit (string-append "v" version))))
925 (file-name (git-file-name name version))
928 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
929 (build-system go-build-system)
931 '(#:import-path "github.com/prometheus/procfs"
932 ;; The tests require Go modules, which are not yet supported in Guix's
935 (synopsis "Go library for reading @file{/proc}")
936 (description "The @code{procfs} Go package provides functions to retrieve
937 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
938 (home-page "https://github.com/prometheus/procfs")
941 (define-public go-github-com-prometheus-client-golang
943 (name "go-github-com-prometheus-client-golang")
948 (url "https://github.com/prometheus/client_golang")
949 (commit (string-append "v" version))))
950 (file-name (git-file-name name version))
953 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
954 (build-system go-build-system)
957 #:import-path "github.com/prometheus/client_golang"
959 (modify-phases %standard-phases
960 ;; Source-only package
963 `(("go-github-com-beorn7-perks-quantile"
964 ,go-github-com-beorn7-perks-quantile)
965 ("go-github-com-golang-protobuf-proto"
966 ,go-github-com-golang-protobuf-proto)
967 ("go-github-com-prometheus-client-model"
968 ,go-github-com-prometheus-client-model)
969 ("go-github-com-prometheus-common"
970 ,go-github-com-prometheus-common)
971 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
972 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
973 (synopsis "HTTP server and client tools for Prometheus")
974 (description "This package @code{promhttp} provides HTTP client and
975 server tools for Prometheus metrics.")
976 (home-page "https://github.com/prometheus/client_golang")
979 (define-public go-github-com-go-asn1-ber-asn1-ber
981 (name "go-github-com-go-asn1-ber-asn1-ber")
986 (url "https://github.com/go-asn1-ber/asn1-ber")
987 (commit (string-append "v" version))))
988 (file-name (git-file-name name version))
991 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
992 (build-system go-build-system)
994 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
995 (synopsis "ASN.1 BER encoding and decoding in Go")
996 (description "This package provides ASN.1 BER encoding and decoding in the
998 (home-page "https://github.com/go-asn1-ber/asn1-ber")
1001 (define-public go-github-com-go-ldap-ldap
1003 (name "go-github-com-go-ldap-ldap")
1008 (url "https://github.com/go-ldap/ldap")
1009 (commit (string-append "v" version))))
1010 (file-name (git-file-name name version))
1013 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
1014 (build-system go-build-system)
1016 '(#:import-path "github.com/go-ldap/ldap/v3"
1017 #:tests? #f)) ; test suite requires internet access
1019 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
1020 (home-page "https://github.com/go-ldap/ldap")
1021 (synopsis "LDAP v3 functionality for Go")
1022 (description "This package provides basic LDAP v3 functionality in the Go
1026 (define-public go-github-com-flynn-archive-go-shlex
1027 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1030 (name "go-github-com-flynn-archive-go-shlex")
1031 (version (git-version "0.0.0" revision commit))
1035 (url "https://github.com/flynn-archive/go-shlex")
1037 (file-name (git-file-name name version))
1040 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1041 (build-system go-build-system)
1043 '(#:import-path "github.com/flynn-archive/go-shlex"))
1044 (synopsis "Go lexer")
1045 (description "Shlex is a simple lexer for go that supports shell-style
1046 quoting, commenting, and escaping.")
1047 (home-page "https://github.com/flynn-archive/go-shlex")
1050 (define-public go-github-com-audriusbutkevicius-pfilter
1052 (name "go-github-com-audriusbutkevicius-pfilter")
1058 (url "https://github.com/AudriusButkevicius/pfilter")
1060 (file-name (git-file-name name version))
1063 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1064 (build-system go-build-system)
1066 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1067 (synopsis "Filter packets into multiple virtual connections")
1068 (description "Pfilter is a Go package for filtering packets into multiple
1069 virtual connections from a single physical connection.")
1070 (home-page "https://github.com/AudriusButkevicius/pfilter")
1073 (define-public go-github-com-ccding-go-stun
1074 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1077 (name "go-github-com-ccding-go-stun")
1078 (version (git-version "0.0.0" revision commit))
1083 (url "https://github.com/ccding/go-stun")
1085 (file-name (git-file-name name version))
1088 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1089 (build-system go-build-system)
1091 '(#:import-path "github.com/ccding/go-stun"))
1092 (synopsis "STUN client implementation")
1093 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1095 (home-page "https://github.com/ccding/go-stun")
1098 (define-public go-github-com-cespare-xxhash
1100 (name "go-github-com-cespare-xxhash")
1105 (url "https://github.com/cespare/xxhash")
1106 (commit (string-append "v" version))))
1107 (file-name (git-file-name name version))
1110 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1111 (build-system go-build-system)
1113 '(#:import-path "github.com/cespare/xxhash"))
1114 (synopsis "Go implementation of xxHash")
1115 (description "This package provides of Go implementation of the 64-bit
1116 xxHash algorithm (XXH64).")
1117 (home-page "https://github.com/cespare/xxhash/")