1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
3 ;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages syncthing)
21 #:use-module (guix build-system go)
22 #:use-module (guix build-system trivial)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix licenses)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages golang))
30 (define-public syncthing
36 (uri (string-append "https://github.com/syncthing/syncthing"
37 "/releases/download/v" version
38 "/syncthing-source-v" version ".tar.gz"))
41 "1iks1a3149gj89yqmqa5iry2ik2sj9sjhlhc6nfh7xq4swqgsrb5"))
42 ;; Since the update to Go 1.11, Go programs have been keeping
43 ;; spurious references to all their dependencies:
44 ;; <https://bugs.gnu.org/33620>.
45 ;; For Syncthing, this increases the size of the 'out' closure
46 ;; from 87.6 MiB to 253.5 MiB. So, we use the bundled
47 ;; dependencies until the bug is resolved.
48 ; (modules '((guix build utils)))
49 ; ;; Delete bundled ("vendored") free software source code.
51 ; (delete-file-recursively "vendor")
54 (build-system go-build-system)
55 ;; The primary Syncthing executable goes to "out", while the auxiliary
56 ;; server programs and utility tools go to "utils". This reduces the size
57 ;; of "out" by ~80 MiB.
58 (outputs '("out" "utils"))
60 `(#:import-path "github.com/syncthing/syncthing"
61 #:unpack-path "github.com/syncthing"
62 ;; We don't need to install the source code for end-user applications.
65 (modify-phases %standard-phases
66 (add-before 'build 'increase-test-timeout
68 (substitute* "src/github.com/syncthing/syncthing/build.go"
74 (with-directory-excursion "src/github.com/syncthing/syncthing"
75 (invoke "go" "run" "build.go" "-no-upgrade"))))
79 (with-directory-excursion "src/github.com/syncthing/syncthing"
80 (invoke "go" "run" "build.go" "test"))))
83 (lambda* (#:key outputs #:allow-other-keys)
84 (let ((out (assoc-ref outputs "out"))
85 (utils (assoc-ref outputs "utils"))
86 (src "src/github.com/syncthing/syncthing/bin/"))
87 (install-file (string-append src "/syncthing")
88 (string-append out "/bin"))
89 (delete-file (string-append src "/syncthing"))
90 (copy-recursively "src/github.com/syncthing/syncthing/bin/"
91 (string-append utils "/bin"))
94 (add-after 'install 'install-docs
95 (lambda* (#:key outputs #:allow-other-keys)
96 (let* ((out (assoc-ref outputs "out"))
97 (utils (assoc-ref outputs "utils"))
99 (man-section (string-append man "/man"))
100 (src "src/github.com/syncthing/syncthing/man/"))
101 ;; Install all the man pages to "out".
105 (string-append out man-section
106 (string-take-right file 1))))
107 (find-files src "\\.[1-9]"))
108 ;; Copy all the man pages to "utils"
109 (copy-recursively (string-append out man)
110 (string-append utils man))
111 ;; Delete extraneous man pages from "out" and "utils",
113 (delete-file (string-append out man "/man1/stdiscosrv.1"))
114 (delete-file (string-append out man "/man1/strelaysrv.1"))
115 (delete-file (string-append utils man "/man1/syncthing.1"))
117 (synopsis "Decentralized continuous file system synchronization")
118 (description "Syncthing is a peer-to-peer file synchronization tool that
119 supports a wide variety of computing platforms. It uses the Block Exchange
121 (home-page "https://github.com/syncthing/syncthing")
124 (define-public go-github-com-audriusbutkevicius-go-nat-pmp
125 (let ((commit "452c97607362b2ab5a7839b8d1704f0396b640ca")
128 (name "go-github-com-audriusbutkevicius-go-nat-pmp")
129 (version (git-version "0.0.0" revision commit))
133 (url "https://github.com/AudriusButkevicius/go-nat-pmp")
135 (file-name (git-file-name name version))
137 (base32 "1accmpl1llk16a19nlyy991fqrgfay6l53gb64hgmdfmqljdvbk7"))))
138 (build-system go-build-system)
140 `(#:import-path "github.com/AudriusButkevicius/go-nat-pmp"))
141 (synopsis "Port mapping and discovery of external IP address")
142 (description "This packages provides a Go client for the NAT-PMP internet
143 protocol for port mapping and discovering the external IP address of a
145 (home-page "https://github.com/AudriusButkevicius/go-nat-pmp")
148 (define-public go-github-com-bkaradzic-go-lz4
149 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
152 (name "go-github-com-bkaradzic-go-lz4")
153 (version (git-version "0.0.0" revision commit))
157 (url "https://github.com/bkaradzic/go-lz4")
159 (file-name (git-file-name name version))
162 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
163 (build-system go-build-system)
165 `(#:import-path "github.com/bkaradzic/go-lz4"))
166 (synopsis "LZ4 compression algorithm")
167 (description "This package provides @code{go-lz4}, a Go implementation of
168 the LZ4 compression algorithm.")
169 (home-page "https://github.com/bkaradzic/go-lz4")
172 (define-public go-github-com-calmh-du
174 (name "go-github-com-calmh-du")
179 (url "https://github.com/calmh/du")
180 (commit (string-append "v" version))))
181 (file-name (git-file-name name version))
184 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
185 (build-system go-build-system)
187 `(#:import-path "github.com/calmh/du"))
188 (synopsis "Get total and available disk space of a given volume")
189 (description "This is a Go implementation of `du`. It provides disk usage
190 information, such as how much storage space is available, free, and used.")
191 (home-page "https://github.com/calmh/du")
192 (license public-domain)))
194 (define-public go-github-com-calmh-xdr
195 (let ((commit "08e072f9cb164f943a92eb59f90f3abc64ac6e8f")
198 (name "go-github-com-calmh-xdr")
199 (version (git-version "2.0.1" revision commit))
203 (url "https://github.com/calmh/xdr")
205 (file-name (git-file-name name version))
208 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
209 (build-system go-build-system)
211 `(#:import-path "github.com/calmh/xdr"))
212 (synopsis "XDR marshalling and unmarshalling")
213 (description "XDR is an External Data Representation (XDR)
214 marshalling and unmarshalling library in Go. It uses code generation and not
216 (home-page "https://github.com/calmh/xdr")
219 (define-public go-github-com-d4l3k-messagediff
220 (let ((commit "29f32d820d112dbd66e58492a6ffb7cc3106312b")
223 (name "go-github-com-d4l3k-messagediff")
224 (version (git-version "1.1.0" revision commit))
228 (url "https://github.com/d4l3k/messagediff")
230 (file-name (git-file-name name version))
233 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
234 (build-system go-build-system)
236 `(#:import-path "github.com/d4l3k/messagediff"))
237 (synopsis "Diff arbitrary Go structs")
238 (description "Messagediff is a library for calculating diffs of arbitrary
239 structs in the Go programming language.")
240 (home-page "https://github.com/d4l3k/messagediff")
243 (define-public go-github-com-gobwas-glob
244 (let ((commit "51eb1ee00b6d931c66d229ceeb7c31b985563420")
247 (name "go-github-com-gobwas-glob")
248 (version (git-version "0.0.0" revision commit))
252 (url "https://github.com/gobwas/glob")
254 (file-name (git-file-name name version))
257 "090wzpwsjana1qas8ipwh1pj959gvc4b7vwybzi01f3bmd79jwlp"))))
258 (build-system go-build-system)
260 `(#:import-path "github.com/gobwas/glob"))
261 (synopsis "Go globbing library")
262 (description "This packages provides a Go implementation of globs.")
263 (home-page "https://github.com/gobwas/glob")
267 (define-public go-github-com-golang-groupcache-lru
268 (let ((commit "84a468cf14b4376def5d68c722b139b881c450a4")
271 (name "go-github-com-golang-groupcache-lru")
272 (version (git-version "0.0.0" revision commit))
276 (url "https://github.com/golang/groupcache")
278 (file-name (git-file-name name version))
281 "1ky1r9qh54yi9zp2769qrjngzndgd8fn7mja2qfac285n06chmcn"))))
282 (build-system go-build-system)
284 `(#:import-path "github.com/golang/groupcache/lru"
285 #:unpack-path "github.com/golang/groupcache"))
286 (synopsis "Groupcache is a caching and cache-filling library")
287 (description "Groupcache is a caching and cache-filling library, intended
288 as a replacement for memcached in many cases. It provides a data loading
289 mechanism with caching and de-duplication that works across a set of peer
291 (home-page "https://github.com/golang/groupcache")
294 (define-public go-github-com-golang-snappy
295 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
298 (name "go-github-com-golang-snappy")
299 (version (git-version "0.0.0" revision commit))
303 (url "https://github.com/golang/snappy")
305 (file-name (git-file-name name version))
308 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
309 (build-system go-build-system)
311 `(#:import-path "github.com/golang/snappy"))
312 (synopsis "Snappy compression format in the Go programming language")
313 (description "This package provides a Go implementation of the Snappy
314 compression format.")
315 (home-page "https://github.com/golang/snappy")
318 (define-public go-github-com-jackpal-gateway
319 (let ((commit "5795ac81146e01d3fab7bcf21c043c3d6a32b006")
322 (name "go-github-com-jackpal-gateway")
323 (version (git-version "0.0.0" revision commit))
327 (url "https://github.com/jackpal/gateway")
329 (file-name (git-file-name name version))
332 "0fkwkwmhfadwk3cha8616bhqxfkr9gjjnynhhxyldlphixgs3f25"))))
333 (build-system go-build-system)
335 `(#:import-path "github.com/jackpal/gateway"))
336 (synopsis "Discover the address of a LAN gateway")
337 (description "@code{gateway} is a Go library for discovering the IP
338 address of the default LAN gateway.")
339 (home-page "https://github.com/jackpal/gateway")
342 (define-public go-github-com-lib-pq
343 (let ((commit "83612a56d3dd153a94a629cd64925371c9adad78")
346 (name "go-github-com-lib-pq")
347 (version (git-version "0.0.0" revision commit))
351 (url "https://github.com/lib/pq")
353 (file-name (git-file-name name version))
356 "12334yigh284k5cdvb9pgxaq6n78205jcbp75ajz44vvfd4wi6qc"))))
357 (build-system go-build-system)
359 `(#:import-path "github.com/lib/pq"
360 ;; The tests seem to fail without access to the network or a running
361 ;; Postgres instance.
363 (synopsis "Golang Postgres driver for Go's database/sql")
364 (description "This packages provides a pure Go Postgres driver for Go's
365 database/sql package.")
366 (home-page "https://github.com/lib/pq")
369 (define-public go-github-com-oschwald-geoip2-golang
371 (name "go-github-com-oschwald-geoip2-golang")
376 (url "https://github.com/oschwald/geoip2-golang")
377 (commit (string-append "v" version))))
378 (file-name (git-file-name name version))
381 "0v698bzs8lb59cqpsa9cf4sl8rdsvnnmaravhbfn6g6i511ppclr"))))
382 (build-system go-build-system)
384 `(("go-github-com-oschwald-maxminddb-golang"
385 ,go-github-com-oschwald-maxminddb-golang)
386 ("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
388 `(#:import-path "github.com/oschwald/geoip2-golang"
389 #:tests? #f)) ; Requires some unpackaged software and test data
390 (synopsis "MaxMind GeoIP2 reader")
391 (description "This packages provides a library for reading MaxMind
392 GeoLite2 and GeoIP2 databases in Go.")
393 (home-page "https://github.com/oschwald/geoip2-golang")
396 (define-public go-github-com-oschwald-maxminddb-golang
397 (let ((commit "26fe5ace1c706491c2936119e1dc69c1a9c04d7f")
400 (name "go-github-com-oschwald-maxminddb-golang")
401 (version (git-version "1.2.0" revision commit))
405 (url "https://github.com/oschwald/maxminddb-golang")
407 (file-name (git-file-name name version))
410 "1i6d935f3cv9djpjvc2ibh8aps8jqvg454b9pkwg2h98al759ggk"))))
411 (build-system go-build-system)
413 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
415 `(#:import-path "github.com/oschwald/maxminddb-golang"
416 #:tests? #f)) ; Requires some unpackaged software and test data
417 (synopsis "MaxMind DB Reader for Go")
418 (description "This is a Go reader for the MaxMind DB format. Although
419 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
420 higher-level API for doing so.")
421 (home-page "https://github.com/oschwald/maxminddb-golang")
424 (define-public go-github-com-stathat-go
425 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
428 (name "go-github-com-stathat-go")
429 (version (git-version "0.0.0" revision commit))
433 (url "https://github.com/stathat/go")
435 (file-name (git-file-name name version))
438 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
439 (build-system go-build-system)
441 `(#:import-path "github.com/stathat/go"))
442 (synopsis "Post statistics to StatHat")
443 (description "This is a Go package for posting to a StatHat account.")
444 (home-page "https://github.com/stathat/go")
447 (define-public go-github-com-rcrowley-go-metrics
448 (let ((commit "e181e095bae94582363434144c61a9653aff6e50")
451 (name "go-github-com-rcrowley-go-metrics")
452 (version (git-version "0.0.0" revision commit))
456 (url "https://github.com/rcrowley/go-metrics")
458 (file-name (git-file-name name version))
461 "1pwkyw801hy7n94skzk6h177zqcil6ayrmb5gs3jdpsfayh8ia5w"))))
462 (build-system go-build-system)
464 `(#:import-path "github.com/rcrowley/go-metrics"))
466 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
467 (synopsis "Go port of Coda Hale's Metrics library")
468 (description "This package provides a Go implementation of Coda Hale's
470 (home-page "https://github.com/rcrowley/go-metrics")
473 (define-public go-github-com-sasha-s-go-deadlock
474 (let ((commit "03d40e5dbd5488667a13b3c2600b2f7c2886f02f")
477 (name "go-github-com-sasha-s-go-deadlock")
478 (version (git-version "0.1.0" revision commit))
482 (url "https://github.com/sasha-s/go-deadlock")
484 (file-name (git-file-name name version))
487 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
488 (build-system go-build-system)
490 `(#:import-path "github.com/sasha-s/go-deadlock"))
492 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
493 (synopsis "Deadlock detection in go")
494 (description "This package provides tools for detecting deadlocks at
496 (home-page "https://github.com/sasha-s/go-deadlock")
499 (define-public go-github-com-syndtr-goleveldb
500 (let ((commit "34011bf325bce385408353a30b101fe5e923eb6e")
503 (name "go-github-com-syndtr-goleveldb")
504 (version (git-version "0.0.0" revision commit))
508 (url "https://github.com/syndtr/goleveldb")
510 (file-name (git-file-name name version))
513 "097ja0vyj6p27zrxha9nhk09fj977xsvhmd3bk2hbyvnbw4znnhd"))))
514 (build-system go-build-system)
516 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
518 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
519 #:unpack-path "github.com/syndtr/goleveldb"
520 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
521 (synopsis "LevelDB key/value database")
522 (description "This is an implementation of the LevelDB key / value
524 (home-page "https://github.com/syndtr/goleveldb")
527 (define-public go-github-com-thejerf-suture
528 (let ((commit "bf6ee6a0b047ebbe9ae07d847f750dd18c6a9276")
531 (name "go-github-com-thejerf-suture")
532 (version (git-version "3.0.0" revision commit))
536 (url "https://github.com/thejerf/suture")
538 (file-name (git-file-name name version))
541 "0rzx9k408vaglwnnpgpcs6y7ff7p65915nbg33rvbaz13hxwkz3y"))))
542 (build-system go-build-system)
544 `(#:import-path "github.com/thejerf/suture"))
545 (synopsis "Supervisor trees for Go")
546 (description "Suture provides Erlang-ish supervisor trees for Go.
547 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
548 when it's trying to die.
550 It is intended to deal gracefully with the real failure cases that can occur
551 with supervision trees (such as burning all your CPU time endlessly restarting
552 dead services), while also making no unnecessary demands on the \"service\"
553 code, and providing hooks to perform adequate logging with in a production
555 (home-page "https://github.com/thejerf/suture")
558 (define* (go-github-com-vitrun-qart-union
559 #:optional (packages (list go-github-com-vitrun-qart-coding
560 go-github-com-vitrun-qart-gf256
561 go-github-com-vitrun-qart-qr)))
563 (name "go-github-com-vitrun-qart")
564 (version (package-version go-github-com-vitrun-qart-qr))
566 (build-system trivial-build-system)
568 '(#:modules ((guix build union))
570 (use-modules (ice-9 match)
573 (((names . directories) ...)
574 (union-build (assoc-ref %outputs "out")
577 (inputs (map (lambda (package)
578 (list (package-name package) package))
580 (synopsis "Union of qart libraries")
581 (description "This is a union of qart libraries.")
582 (home-page (package-home-page go-github-com-vitrun-qart-qr))
583 (license (package-license go-github-com-vitrun-qart-qr))))
585 (define-public go-github-com-vitrun-qart-coding
586 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
589 (name "go-github-com-vitrun-qart-coding")
590 (version (git-version "0.0.0" revision commit))
594 (url "https://github.com/vitrun/qart")
596 (file-name (string-append "go-github-com-vitrun-qart-"
597 version "-checkout"))
600 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
601 (build-system go-build-system)
603 `(#:import-path "github.com/vitrun/qart/coding"
604 #:unpack-path "github.com/vitrun/qart"))
605 (synopsis "Low-level QR coding library")
606 (description "This package provides a library for embedding
607 human-meaningful graphics in QR codes. However, instead of scribbling on
608 redundant pieces and relying on error correction to preserve the meaning,
609 @code{qart} engineers the encoded values to create the picture in a code with no
610 inherent errors. This @code{qart} component, @code{coding}, implements
611 low-level QR coding details.")
612 (home-page "https://github.com/vitrun/qart/")
615 (define-public go-github-com-vitrun-qart-gf256
616 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
619 (name "go-github-com-vitrun-qart-gf256")
620 (version (git-version "0.0.0" revision commit))
624 (url "https://github.com/vitrun/qart")
626 (file-name (string-append "go-github-com-vitrun-qart-"
627 version "-checkout"))
630 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
631 (build-system go-build-system)
633 `(#:import-path "github.com/vitrun/qart/gf256"
634 #:unpack-path "github.com/vitrun/qart"))
635 (synopsis "Qart library for Galois Field GF(256) math")
636 (description "This package, a component of @code{qart}, provides @code{gf256},
637 implements arithmetic over the Galois Field GF(256).")
638 (home-page "https://github.com/vitrun/qart")
641 (define-public go-github-com-vitrun-qart-qr
642 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
645 (name "go-github-com-vitrun-qart-qr")
646 (version (git-version "0.0.0" revision commit))
650 (url "https://github.com/vitrun/qart")
652 (file-name (string-append "go-github-com-vitrun-qart-"
653 version "-checkout"))
656 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
657 (build-system go-build-system)
659 `(#:import-path "github.com/vitrun/qart/qr"
660 #:unpack-path "github.com/vitrun/qart"))
661 (synopsis "Qart component for generating QR codes")
662 (description "This package provides a library for embedding
663 human-meaningful graphics in QR codes. However, instead of scribbling on
664 redundant pieces and relying on error correction to preserve the meaning,
665 @code{qart} engineers the encoded values to create the picture in a code with no
666 inherent errors. This @code{qart} component, @code{qr}, provides QR code
668 (home-page "https://github.com/vitrun/qart")
671 (define* (go-golang-org-x-net-union #:optional
672 (packages (list go-golang-org-x-net-ipv4
673 go-golang-org-x-net-bpf
674 go-golang-org-x-net-ipv6
675 go-golang-org-x-net-proxy
676 go-golang-org-x-net-internal-iana)))
678 (name "go-golang-org-x-net")
679 (version (package-version go-golang-org-x-net-ipv4))
681 (build-system trivial-build-system)
683 '(#:modules ((guix build union))
685 (use-modules (ice-9 match)
688 (((names . directories) ...)
689 (union-build (assoc-ref %outputs "out")
692 (inputs (map (lambda (package)
693 (list (package-name package) package))
695 (synopsis "Union of the Go net libraries")
696 (description "A union of the Golang net libraries.")
697 (home-page (package-home-page go-golang-org-x-net-ipv4))
698 (license (package-license go-golang-org-x-net-ipv4))))
700 (define* (go-golang-org-x-text-union #:optional
701 (packages (list go-golang-org-x-text-transform
702 go-golang-org-x-text-unicode-norm)))
704 (name "go-golang-org-x-text")
705 (version (package-version go-golang-org-x-text-transform))
707 (build-system trivial-build-system)
709 '(#:modules ((guix build union))
711 (use-modules (ice-9 match)
714 (((names . directories) ...)
715 (union-build (assoc-ref %outputs "out")
718 (inputs (map (lambda (package)
719 (list (package-name package) package))
721 (synopsis "Union of the Go text libraries")
722 (description "A union of the Golang text libraries.")
723 (home-page (package-home-page go-golang-org-x-text-transform))
724 (license (package-license go-golang-org-x-text-transform))))
726 (define-public go-github-com-audriusbutkevicius-pfilter
727 (let ((commit "9dca34a5b530bfc9843fa8aa2ff08ff9821032cb")
730 (name "go-github-com-audriusbutkevicius-pfilter")
731 (version (git-version "0.0.0" revision commit))
736 (url "https://github.com/AudriusButkevicius/pfilter.git")
738 (file-name (git-file-name name version))
741 "0i4qbnwba49db27fb1y792gcvhb0m744i9q4zgwjbypqmy3bj2a5"))))
742 (build-system go-build-system)
744 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
745 (synopsis "Filter packets into mulitple virtual connections")
746 (description "Pfilter is a Go package for filtering packets into multiple
747 virtual connections from a single physical connection.")
748 (home-page "https://github.com/AudriusButkevicius/pfilter")
751 (define-public go-github-com-chmduquesne-rollinghash-adler32
752 (let ((commit "abb8cbaf9915e48ee20cae94bcd94221b61707a2")
755 (name "go-github-com-chmduquesne-rollinghash-adler32")
756 (version (git-version "0.0.0" revision commit))
761 (url "https://github.com/chmduquesne/rollinghash.git")
763 (file-name (git-file-name name version))
766 "0ylqb9r60q77qw0d6g9cg4yzadxzwcw74lfd25cw9yglyq0wgd3l"))))
767 (build-system go-build-system)
769 '(#:import-path "github.com/chmduquesne/rollinghash/adler32"
770 #:unpack-path "github.com/chmduquesne/rollinghash"))
771 (synopsis "Adler-32 rolling hash in Go")
772 (description "This package provides a Go implementation of the Adler-32
774 (home-page "https://github.com/chmduquesne/rollinghash")
777 (define-public go-github-com-pkg-errors
778 (let ((commit "e881fd58d78e04cf6d0de1217f8707c8cc2249bc")
781 (name "go-github-com-pkg-errors")
782 (version (git-version "0.0.0" revision commit))
786 (url "https://github.com/pkg/errors.git")
788 (file-name (git-file-name name version))
791 "0vfhj598jp6dzy4pbyjdrqxzb5kppw8ggvfh78g80nz11r34xnzs"))))
792 (build-system go-build-system)
794 `(#:import-path "github.com/pkg/errors"))
795 (synopsis "Go error handling primitives")
796 (description "This packages provides @code{error}, which offers simple
797 error handling primitives in Go.")
798 (home-page "https://github.com/pkg/errors")
801 (define-public go-github-com-petermattis-goid
802 (let ((commit "3db12ebb2a599ba4a96bea1c17b61c2f78a40e02")
805 (name "go-github-com-petermattis-goid")
806 (version (git-version "0.0.0" revision commit))
810 (url "https://github.com/petermattis/goid.git")
812 (file-name (git-file-name name version))
816 "0z18a3mr72c52g7g94n08gxw0ksnaafbfwdl5p5jav2sffirb0kd"))))
817 (build-system go-build-system)
819 '(#:import-path "github.com/petermattis/goid"))
820 (synopsis "Identify the running goroutine")
821 (description "This package offers a method of programatically retrieving
822 the current goroutine's ID.")
823 (home-page "https://github.com/petermattis/goid")
826 (define-public go-github-com-audriusbutkevicius-cli
827 (let ((commit "7f561c78b5a4aad858d9fd550c92b5da6d55efbb")
830 (name "go-github-com-audriusbutkevicius-cli")
831 (version (git-version "0.0.0" revision commit))
835 (url "https://github.com/AudriusButkevicius/cli.git")
837 (file-name (git-file-name name version))
840 "0bg26pfg25vr16jmczig2m493mja2nxjxyswz3hha7avxw20rpi5"))))
841 (build-system go-build-system)
843 '(#:import-path "github.com/AudriusButkevicius/cli"
844 ;; Tests don't pass "vet" on go-1.11. See
845 ;; https://github.com/AudriusButkevicius/cli/pull/1.
847 (modify-phases %standard-phases
849 (lambda* (#:key import-path #:allow-other-keys)
853 (synopsis "Library for building command-line interfaces in Go")
854 (description "This package provides a library for building command-line
856 (home-page "https://github.com/AudriusButkevicius/cli")
859 (define-public go-github-com-kballard-go-shellquote
860 (let ((commit "cd60e84ee657ff3dc51de0b4f55dd299a3e136f2")
863 (name "go-github-com-kballard-go-shellquote")
864 (version (git-version "0.0.0" revision commit))
868 (url "https://github.com/kballard/go-shellquote.git")
870 (file-name (git-file-name name version))
873 "1xjpin4jq1zl84dcn96xhjmn9bsfyszf6g9aqyj2dc0xfi6c88y0"))))
874 (build-system go-build-system)
876 '(#:import-path "github.com/kballard/go-shellquote"))
877 (synopsis "Shell-style string joins and splits")
878 (description "Shellquote provides utilities for joining/splitting strings
879 using sh's word-splitting rules.")
880 (home-page "https://github.com/kballard/go-shellquote")
883 (define-public go-github-com-syncthing-notify
884 (let ((commit "116c45bb5ad48777321e4984d1320d56889b6097")
887 (name "go-github-com-syncthing-notify")
888 (version (git-version "0.0.0" revision commit))
892 (url "https://github.com/syncthing/notify")
894 (file-name (git-file-name name version))
897 "14bh95pkhwmnc65bnv08p3y4flj1j7f6xxr2cgmlwrphnlp9yhl9"))))
898 (build-system go-build-system)
900 '(#:import-path "github.com/syncthing/notify"))
902 `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
903 (synopsis "File system event notification library")
904 (description "This package provides @code{notify}, a file system event
905 notification library in Go.")
906 (home-page "https://github.com/syncthing/notify")
909 (define-public go-github-com-beorn7-perks-quantile
910 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
913 (name "go-github-com-beorn7-perks-quantile")
914 (version (git-version "0.0.0" revision commit))
918 (url "https://github.com/beorn7/perks.git")
920 (file-name (git-file-name name version))
923 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
924 (build-system go-build-system)
926 '(#:import-path "github.com/beorn7/perks/quantile"
927 #:unpack-path "github.com/beorn7/perks"))
928 (synopsis "Compute approximate quantiles over an unbounded data stream")
929 (description "Perks contains the Go package @code{quantile} that computes
930 approximate quantiles over an unbounded data stream within low memory and CPU
932 (home-page "https://github.com/beorn7/perks")
935 (define-public go-github-com-golang-protobuf-proto
936 (let ((commit "1e59b77b52bf8e4b449a57e6f79f21226d571845")
939 (name "go-github-com-golang-protobuf-proto")
940 (version (git-version "0.0.0" revision commit))
944 (url "https://github.com/golang/protobuf.git")
946 (file-name (git-file-name name version))
949 "19bkh81wnp6njg3931wky6hsnnl2d1ig20vfjxpv450sd3k6yys8"))))
950 (build-system go-build-system)
952 '(#:import-path "github.com/golang/protobuf/proto"
953 #:unpack-path "github.com/golang/protobuf"
954 #:tests? #f ; requires unpackaged golang.org/x/sync/errgroup
956 (synopsis "Go support for Protocol Buffers")
957 (description "This package provides Go support for the Protocol Buffers
958 data serialization format.")
959 (home-page "https://github.com/golang/protobuf")
962 (define-public go-github-com-prometheus-client-model-go
963 (let ((commit "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c")
966 (name "go-github-com-prometheus-client-model-go")
967 (version (git-version "0.0.2" revision commit))
971 (url "https://github.com/prometheus/client_model.git")
973 (file-name (git-file-name name version))
976 "19y4ywsivhpxj7ikf2j0gm9k3cmyw37qcbfi78n526jxcc7kw998"))))
977 (build-system go-build-system)
979 '(#:import-path "github.com/prometheus/client_model/go"
980 #:unpack-path "github.com/prometheus/client_model"))
982 `(("go-github-com-golang-protobuf-proto"
983 ,go-github-com-golang-protobuf-proto)))
984 (synopsis "Data model artifacts for Prometheus")
985 (description "This package provides data model artifacts for Prometheus.")
986 (home-page "https://github.com/prometheus/client_model")
989 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
990 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
993 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
994 (version (git-version "1.0.0" revision commit))
1000 (url "https://github.com/matttproud/golang_protobuf_extensions.git")
1002 (file-name (git-file-name name version))
1005 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
1006 (build-system go-build-system)
1008 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
1009 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
1011 `(("go-github-com-golang-protobuf-proto"
1012 ,go-github-com-golang-protobuf-proto)))
1013 (synopsis "Streaming Protocol Buffers in Go")
1014 (description "This package provides various Protocol Buffer
1015 extensions for the Go language, namely support for record length-delimited
1016 message streaming.")
1017 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
1020 (define-public go-github-com-prometheus-common-expfmt
1021 (let ((commit "2e54d0b93cba2fd133edc32211dcc32c06ef72ca")
1024 (name "go-github-com-prometheus-common-expfmt")
1025 (version (git-version "0.0.0" revision commit))
1029 (url "https://github.com/prometheus/common.git")
1031 (file-name (git-file-name name version))
1034 "14kn5w7imcxxlfdqxl21fsnlf1ms7200g3ldy29hwamldv8qlm7j"))))
1035 (build-system go-build-system)
1037 '(#:import-path "github.com/prometheus/common/expfmt"
1038 #:unpack-path "github.com/prometheus/common"
1040 (modify-phases %standard-phases
1041 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
1042 (lambda* (#:key outputs #:allow-other-keys)
1044 (make-file-writable file))
1046 (string-append (assoc-ref outputs "out")
1047 "/src/github.com/prometheus/common/expfmt/testdata/")
1051 ;; Tests don't pass "vet" on go-1.11. See
1052 ;; https://github.com/syncthing/syncthing/issues/5311.
1053 (lambda* (#:key import-path #:allow-other-keys)
1058 `(("go-github-com-golang-protobuf-proto"
1059 ,go-github-com-golang-protobuf-proto)
1060 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
1061 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
1062 ("go-github-com-prometheus-client-model-go"
1063 ,go-github-com-prometheus-client-model-go)))
1064 (synopsis "Prometheus metrics")
1065 (description "This package provides tools for reading and writing
1066 Prometheus metrics.")
1067 (home-page "https://github.com/prometheus/common")
1070 (define-public go-github-com-prometheus-procfs
1071 (let ((commit "b15cd069a83443be3154b719d0cc9fe8117f09fb")
1074 (name "go-github-com-prometheus-procfs")
1075 (version (git-version "0.0.0" revision commit))
1079 (url "https://github.com/prometheus/procfs.git")
1081 (file-name (git-file-name name version))
1084 "1cr45wg2m40bj2za8f32mq09rjlcnk5kfam0h0hr8wcb015k4wxj"))))
1085 (build-system go-build-system)
1087 '(#:import-path "github.com/prometheus/procfs"))
1088 (synopsis "Go library for reading @file{/proc}")
1089 (description "The @code{procfs} Go package provides functions to retrieve
1090 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
1091 (home-page "https://github.com/prometheus/procfs")
1094 (define-public go-github-com-client-golang-prometheus-promhttp
1095 (let ((commit "180b8fdc22b4ea7750bcb43c925277654a1ea2f3")
1098 (name "go-github-com-client-golang-prometheus-promhttp")
1099 (version (git-version "0.0.0" revision commit))
1103 (url "https://github.com/prometheus/client_golang.git")
1105 (file-name (git-file-name name version))
1108 "1kkfx1j9ka18ydsmdi2cdy3hs39c22b39mbc4laykmj2x93lmbdp"))))
1109 (build-system go-build-system)
1111 '(#:tests? #f ; The tests require internet access
1112 #:import-path "github.com/prometheus/client_golang/prometheus/promhttp"
1113 #:unpack-path "github.com/prometheus/client_golang"))
1115 `(("go-github-com-beorn7-perks-quantile"
1116 ,go-github-com-beorn7-perks-quantile)
1117 ("go-github-com-golang-protobuf-proto"
1118 ,go-github-com-golang-protobuf-proto)
1119 ("go-github-com-prometheus-client-model-go"
1120 ,go-github-com-prometheus-client-model-go)
1121 ("go-github-com-prometheus-common-expfmt"
1122 ,go-github-com-prometheus-common-expfmt)
1123 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)))
1124 (synopsis "HTTP server and client tools for Prometheus")
1125 (description "This package @code{promhttp} provides HTTP client and
1126 server tools for Prometheus metrics.")
1127 (home-page "https://github.com/prometheus/client_golang")
1130 (define-public go-github-com-client-golang-prometheus
1131 (let ((commit "7e9098b20fb8e103a7a5691878272d7e3d703663")
1134 (name "go-github-com-prometheus-client-golang-prometheus")
1135 (version (git-version "0.9.1" revision commit))
1139 (url "https://github.com/prometheus/client_golang.git")
1141 (file-name (git-file-name name version))
1144 "09q8hlvgyn58hn8fmmj535hrwhqc1215czwzf7fhaqpa9zamj4w1"))))
1145 (build-system go-build-system)
1147 '(#:import-path "github.com/prometheus/client_golang/prometheus"
1148 #:unpack-path "github.com/prometheus/client_golang"
1149 #:tests? #f)) ; 'TestHandler' test fails in this non-critical dependency
1151 `(("go-github-com-beorn7-perks-quantile"
1152 ,go-github-com-beorn7-perks-quantile)
1153 ("go-github-com-golang-protobuf-proto"
1154 ,go-github-com-golang-protobuf-proto)
1155 ("go-github-com-prometheus-client-model-go"
1156 ,go-github-com-prometheus-client-model-go)
1157 ("go-github-com-prometheus-common-expfmt"
1158 ,go-github-com-prometheus-common-expfmt)
1159 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1160 ("go-github-com-client-golang-prometheus-promhttp"
1161 ,go-github-com-client-golang-prometheus-promhttp)))
1162 (synopsis "Prometheus instrumentation library for Go applications")
1163 (description "This package provides the Go client library for the
1164 Prometheus monitoring and alerting system. It has two separate parts, one for
1165 instrumenting application code, and one for creating clients that talk to the
1166 Prometheus HTTP API.")
1167 (home-page "https://github.com/prometheus/client_golang")
1170 (define* (go-github-com-prometheus-union
1171 #:optional (packages (list go-github-com-client-golang-prometheus
1172 go-github-com-client-golang-prometheus-promhttp)))
1174 (name "go-github-com-prometheus-union")
1175 (version (package-version go-github-com-client-golang-prometheus))
1177 (build-system trivial-build-system)
1179 '(#:modules ((guix build union))
1181 (use-modules (ice-9 match)
1183 (match %build-inputs
1184 (((names . directories) ...)
1185 (union-build (assoc-ref %outputs "out")
1188 (inputs (map (lambda (package)
1189 (list (package-name package) package))
1191 (synopsis "Union of Go Prometheus libraries")
1192 (description "This is a union of Go Prometheus libraries")
1193 (home-page (package-home-page go-github-com-client-golang-prometheus))
1194 (license (package-license go-github-com-client-golang-prometheus))))
1196 (define-public go-gopkg.in-asn1-ber.v1
1198 (name "go-gopkg.in-asn1-ber.v1")
1203 (url "https://gopkg.in/asn1-ber.v1")
1204 (commit (string-append "v" version))))
1205 (file-name (git-file-name name version))
1208 "1y8bvzbxpw0lfnn7pbcdwzqj4l90qj6xf88dvv9pxd9yl5g6cskx"))))
1209 (build-system go-build-system)
1211 '(#:import-path "gopkg.in/asn1-ber.v1"
1212 ;; Tests don't pass "vet" on go-1.11. See
1213 ;; https://github.com/go-asn1-ber/asn1-ber/issues/20.
1215 (modify-phases %standard-phases
1217 (lambda* (#:key import-path #:allow-other-keys)
1221 (synopsis "ASN.1 BER encoding and decoding in Go")
1222 (description "This package provides ASN.1 BER encoding and decoding in the
1224 (home-page "https://gopkg.in/asn1-ber.v1")
1227 (define-public go-gopkg.in-ldap.v2
1229 (name "go-gopkg.in-ldap.v2")
1234 (url "https://gopkg.in/ldap.v2")
1235 (commit (string-append "v" version))))
1236 (file-name (git-file-name name version))
1239 "1wf81wy04nhkqs0dg5zkivr4sh37r83bxrfwjz9vr4jq6vmljr3h"))))
1240 (build-system go-build-system)
1242 '(#:import-path "gopkg.in/ldap.v2"
1243 #:tests? #f)) ; the test suite requires network access
1245 `(("go-gopkg.in-asn1-ber.v1" ,go-gopkg.in-asn1-ber.v1)))
1246 (synopsis "LDAP v3 functionality for Go")
1247 (description "This package provides basic LDAP v3 functionality in the Go
1249 (home-page "https://gopkg.in/ldap.v2")