gnu: facter: Update to 4.0.33.
[jackhill/guix/guix.git] / gnu / packages / syncthing.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
3 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
4 ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
5 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
7 ;;;
8 ;;; This file is part of GNU Guix.
9 ;;;
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
14 ;;;
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
19 ;;;
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23 (define-module (gnu packages syncthing)
24 #:use-module (guix build-system go)
25 #:use-module (guix build-system python)
26 #:use-module (guix build-system trivial)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix git-download)
30 #:use-module (guix licenses)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages freedesktop)
33 #:use-module (gnu packages glib)
34 #:use-module (gnu packages gnome)
35 #:use-module (gnu packages golang)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages linux)
38 #:use-module (gnu packages python)
39 #:use-module (gnu packages python-crypto)
40 #:use-module (gnu packages python-xyz)
41 #:use-module (gnu packages time))
42
43 (define-public syncthing
44 (package
45 (name "syncthing")
46 (version "1.5.0")
47 (source (origin
48 (method url-fetch)
49 (uri (string-append "https://github.com/syncthing/syncthing"
50 "/releases/download/v" version
51 "/syncthing-source-v" version ".tar.gz"))
52 (sha256
53 (base32
54 "1394b8y4nllihnjngc0kjpdy7pvyh6v1h09hkn8rdmwxpsdkqkjb"))
55 (modules '((guix build utils)))
56 ;; Delete bundled ("vendored") free software source code.
57 (snippet '(begin
58 (delete-file-recursively "vendor")
59 #t))))
60 (build-system go-build-system)
61 ;; The primary Syncthing executable goes to "out", while the auxiliary
62 ;; server programs and utility tools go to "utils". This reduces the size
63 ;; of "out" by ~80 MiB.
64 (outputs '("out" "utils"))
65 ;; When updating Syncthing, check 'go.mod' in the source distribution to
66 ;; ensure we are using the correct versions of these dependencies.
67 (inputs
68 `(("go-github-com-jackpal-go-nat-pmp"
69 ,go-github-com-jackpal-go-nat-pmp)
70 ("go-github-com-bkaradzic-go-lz4" ,go-github-com-bkaradzic-go-lz4)
71 ("go-github-com-calmh-xdr" ,go-github-com-calmh-xdr)
72 ("go-github-com-chmduquesne-rollinghash"
73 ,go-github-com-chmduquesne-rollinghash)
74 ("go-github-com-gobwas-glob" ,go-github-com-gobwas-glob)
75 ("go-github-com-golang-groupcache-lru"
76 ,go-github-com-golang-groupcache-lru)
77 ("go-github-com-jackpal-gateway" ,go-github-com-jackpal-gateway)
78 ("go-github-com-kballard-go-shellquote"
79 ,go-github-com-kballard-go-shellquote)
80 ("go-github-com-lib-pq" ,go-github-com-lib-pq)
81 ("go-github-com-minio-sha256-simd" ,go-github-com-minio-sha256-simd)
82 ("go-github-com-oschwald-geoip2-golang"
83 ,go-github-com-oschwald-geoip2-golang)
84 ("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
85 ("go-github-com-rcrowley-go-metrics" ,go-github-com-rcrowley-go-metrics)
86 ("go-github-com-sasha-s-go-deadlock" ,go-github-com-sasha-s-go-deadlock)
87 ("go-github-com-syncthing-notify" ,go-github-com-syncthing-notify)
88 ("go-github-com-syndtr-goleveldb" ,go-github-com-syndtr-goleveldb)
89 ("go-github-com-thejerf-suture" ,go-github-com-thejerf-suture)
90 ("go-golang-org-x-time" ,go-golang-org-x-time)
91 ("go-github-com-go-ldap-ldap" ,go-github-com-go-ldap-ldap)
92 ("go-github-com-gogo-protobuf" ,go-github-com-gogo-protobuf)
93 ("go-github-com-shirou-gopsutil" ,go-github-com-shirou-gopsutil)
94 ("go-github-com-prometheus-client-golang"
95 ,go-github-com-prometheus-client-golang)
96 ("go-golang-org-x-net" ,go-golang-org-x-net)
97 ("go-golang-org-x-text" ,go-golang-org-x-text)
98 ("go-github-com-audriusbutkevicius-recli"
99 ,go-github-com-audriusbutkevicius-recli)
100 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)
101 ("go-github-com-vitrun-qart" ,go-github-com-vitrun-qart)
102 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
103 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
104 ("go-github-com-flynn-archive-go-shlex"
105 ,go-github-com-flynn-archive-go-shlex)
106 ("go-github-com-getsentry-raven-go" ,go-github-com-getsentry-raven-go)
107 ("go-github-com-maruel-panicparse" ,go-github-com-maruel-panicparse)
108 ("go-github-com-ccding-go-stun" ,go-github-com-ccding-go-stun)
109 ("go-github-com-audriusbutkevicius-pfilter" ,go-github-com-audriusbutkevicius-pfilter)
110 ("go-github-com-lucas-clemente-quic-go" ,go-github-com-lucas-clemente-quic-go)
111 ("go-github-com-willf-bloom" ,go-github-com-willf-bloom)
112
113 ;; For tests.
114 ("go-github-com-d4l3k-messagediff" ,go-github-com-d4l3k-messagediff)))
115
116 (arguments
117 `(#:modules ((srfi srfi-26) ; for cut
118 (guix build utils)
119 (guix build go-build-system))
120 #:import-path "github.com/syncthing/syncthing"
121 ;; We don't need to install the source code for end-user applications.
122 #:install-source? #f
123 #:phases
124 (modify-phases %standard-phases
125 (add-before 'build 'increase-test-timeout
126 (lambda _
127 (substitute* "src/github.com/syncthing/syncthing/build.go"
128 (("120s") "999s"))
129 #t))
130
131 (replace 'build
132 (lambda _
133 (with-directory-excursion "src/github.com/syncthing/syncthing"
134 ;; XXX The only way to build Syncthing without its automatic
135 ;; updater and to build the utilities is to "build all" and then
136 ;; "build syncthing" again with -no-upgrade.
137 ;; https://github.com/syncthing/syncthing/issues/6118
138 (invoke "go" "run" "build.go" "build" "all")
139 (delete-file "syncthing")
140 (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
141
142 (replace 'check
143 (lambda _
144 (with-directory-excursion "src/github.com/syncthing/syncthing"
145 (invoke "go" "run" "build.go" "test"))))
146
147 (replace 'install
148 (lambda* (#:key outputs #:allow-other-keys)
149 (let ((out (assoc-ref outputs "out"))
150 (utils (assoc-ref outputs "utils")))
151 (with-directory-excursion "src/github.com/syncthing/syncthing"
152 (install-file "syncthing" (string-append out "/bin"))
153 (for-each (cut install-file <> (string-append utils "/bin/"))
154 '("stcli" "stcompdirs" "stcrashreceiver"
155 "stdisco" "stdiscosrv" "stevents" "stfileinfo"
156 "stfinddevice" "stfindignored" "stgenfiles"
157 "stindex" "strelaypoolsrv" "strelaysrv" "stsigtool"
158 "stvanity" "stwatchfile" "uraggregate" "ursrv"))
159 #t))))
160
161 (add-after 'install 'install-docs
162 (lambda* (#:key outputs #:allow-other-keys)
163 (let* ((out (assoc-ref outputs "out"))
164 (utils (assoc-ref outputs "utils"))
165 (man "/share/man")
166 (man-section (string-append man "/man"))
167 (src "src/github.com/syncthing/syncthing/man/"))
168 ;; Install all the man pages to "out".
169 (for-each
170 (lambda (file)
171 (install-file file
172 (string-append out man-section
173 (string-take-right file 1))))
174 (find-files src "\\.[1-9]"))
175 ;; Copy all the man pages to "utils"
176 (copy-recursively (string-append out man)
177 (string-append utils man))
178 ;; Delete extraneous man pages from "out" and "utils",
179 ;; respectively.
180 (delete-file (string-append out man "/man1/stdiscosrv.1"))
181 (delete-file (string-append out man "/man1/strelaysrv.1"))
182 (delete-file (string-append utils man "/man1/syncthing.1"))
183 #t))))))
184 (synopsis "Decentralized continuous file system synchronization")
185 (description "Syncthing is a peer-to-peer file synchronization tool that
186 supports a wide variety of computing platforms. It uses the Block Exchange
187 Protocol.")
188 (home-page "https://github.com/syncthing/syncthing")
189 (license mpl2.0)))
190
191 (define-public syncthing-gtk
192 (package
193 (name "syncthing-gtk")
194 (version "0.9.4.4")
195 (source (origin
196 (method git-fetch)
197 (uri (git-reference
198 (url "https://github.com/syncthing/syncthing-gtk.git")
199 (commit (string-append "v" version))))
200 (file-name (git-file-name name version))
201 (sha256
202 (base32
203 "0nc0wd7qvyri7841c3dd9in5d7367hys0isyw8znv5fj4c0a6v1f"))))
204 (build-system python-build-system)
205 (arguments
206 `(#:python ,python-2
207 #:phases
208 (modify-phases %standard-phases
209 (add-after 'unpack 'hardcode-dependencies
210 (lambda* (#:key inputs #:allow-other-keys)
211 (let ((psmisc (assoc-ref inputs "psmisc"))
212 (syncthing (assoc-ref inputs "syncthing")))
213 ;; Hardcode dependencies paths to avoid propagation.
214 (substitute* "syncthing_gtk/tools.py"
215 (("killall") (string-append psmisc "/bin/killall")))
216 (substitute* "syncthing_gtk/configuration.py"
217 (("/usr/bin/syncthing") (string-append syncthing
218 "/bin/syncthing"))))
219 #t))
220 (add-after 'wrap 'wrap-libs
221 (lambda* (#:key outputs #:allow-other-keys)
222 (let ((out (assoc-ref outputs "out")))
223 (wrap-program (string-append out "/bin/syncthing-gtk")
224 `("GI_TYPELIB_PATH" ":" prefix
225 (,(getenv "GI_TYPELIB_PATH"))))
226 #t))))))
227 (inputs
228 `(("gtk+" ,gtk+)
229 ("libappindicator" ,libappindicator)
230 ("libnotify" ,libnotify)
231 ("python2-bcrypt" ,python2-bcrypt)
232 ("python2-dateutil" ,python2-dateutil)
233 ("python2-pycairo" ,python2-pycairo)
234 ("python2-pygobject" ,python2-pygobject)
235 ("python-nautilus" ,python-nautilus)
236 ("psmisc" ,psmisc)
237 ("syncthing" ,syncthing)))
238 (native-inputs
239 `(("python2-setuptools" ,python2-setuptools)))
240 (home-page "https://github.com/syncthing/syncthing-gtk")
241 (synopsis "GTK3 based GUI and notification area icon for Syncthing")
242 (description "@code{syncthing-gtk} is a GTK3 Python based GUI and
243 notification area icon for Syncthing. Supported Syncthing features:
244
245 @itemize
246 @item Everything that WebUI can display
247 @item Adding, editing and deleting nodes
248 @item Adding, editing and deleting repositories
249 @item Restart, shutdown server
250 @item Editing daemon settings
251 @end itemize\n")
252 (license gpl2)))
253
254 (define-public go-github-com-jackpal-go-nat-pmp
255 (package
256 (name "go-github-com-jackpal-go-nat-pmp")
257 (version "1.0.2")
258 (source (origin
259 (method git-fetch)
260 (uri (git-reference
261 (url "https://github.com/jackpal/go-nat-pmp")
262 (commit (string-append "v" version))))
263 (file-name (git-file-name name version))
264 (sha256
265 (base32
266 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
267 (build-system go-build-system)
268 (arguments
269 `(#:import-path "github.com/jackpal/go-nat-pmp"))
270 (synopsis "Port mapping and discovery of external IP address")
271 (description "This package provides a Go client for the NAT-PMP internet
272 protocol for port mapping and discovering the external IP address of a
273 firewall.")
274 (home-page "https://github.com/jackpal/go-nat-pmp")
275 (license asl2.0)))
276
277 (define-public go-github-com-audriusbutkevicius-recli
278 (package
279 (name "go-github-com-audriusbutkevicius-recli")
280 (version "0.0.5")
281 (source (origin
282 (method git-fetch)
283 (uri (git-reference
284 (url "https://github.com/AudriusButkevicius/recli")
285 (commit (string-append "v" version))))
286 (file-name (git-file-name name version))
287 (sha256
288 (base32
289 "1m1xna1kb78pkmr1lfmvvnpk9j7c4x71j3a7c6vj7zpzc4srpsmf"))))
290 (build-system go-build-system)
291 (inputs
292 `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
293 ("go-github-com-urfave-cli" ,go-github-com-urfave-cli)))
294 (arguments
295 `(#:import-path "github.com/AudriusButkevicius/recli"))
296 (synopsis "Reflection-based CLI generator")
297 (description "For a given struct, @code{recli} builds a set of
298 @code{urfave/cli} commands which allows you to modify it from the command line.
299 It is useful for generating command line clients for your application
300 configuration that is stored in a Go struct.")
301 (home-page "https://github.com/AudriusButkevicius/recli")
302 (license mpl2.0)))
303
304 (define-public go-github-com-bkaradzic-go-lz4
305 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
306 (revision "0"))
307 (package
308 (name "go-github-com-bkaradzic-go-lz4")
309 (version (git-version "0.0.0" revision commit))
310 (source (origin
311 (method git-fetch)
312 (uri (git-reference
313 (url "https://github.com/bkaradzic/go-lz4")
314 (commit commit)))
315 (file-name (git-file-name name version))
316 (sha256
317 (base32
318 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
319 (build-system go-build-system)
320 (arguments
321 `(#:import-path "github.com/bkaradzic/go-lz4"))
322 (synopsis "LZ4 compression algorithm")
323 (description "This package provides @code{go-lz4}, a Go implementation of
324 the LZ4 compression algorithm.")
325 (home-page "https://github.com/bkaradzic/go-lz4")
326 (license bsd-2))))
327
328 (define-public go-github-com-calmh-du
329 (package
330 (name "go-github-com-calmh-du")
331 (version "1.0.1")
332 (source (origin
333 (method git-fetch)
334 (uri (git-reference
335 (url "https://github.com/calmh/du")
336 (commit (string-append "v" version))))
337 (file-name (git-file-name name version))
338 (sha256
339 (base32
340 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
341 (build-system go-build-system)
342 (arguments
343 `(#:import-path "github.com/calmh/du"))
344 (synopsis "Get total and available disk space of a given volume")
345 (description "This is a Go implementation of `du`. It provides disk usage
346 information, such as how much storage space is available, free, and used.")
347 (home-page "https://github.com/calmh/du")
348 (license public-domain)))
349
350 (define-public go-github-com-calmh-xdr
351 (package
352 (name "go-github-com-calmh-xdr")
353 (version "1.1.0")
354 (source (origin
355 (method git-fetch)
356 (uri (git-reference
357 (url "https://github.com/calmh/xdr")
358 (commit (string-append "v" version))))
359 (file-name (git-file-name name version))
360 (sha256
361 (base32
362 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
363 (build-system go-build-system)
364 (arguments
365 `(#:import-path "github.com/calmh/xdr"))
366 (synopsis "XDR marshalling and unmarshalling")
367 (description "XDR is an External Data Representation (XDR)
368 marshalling and unmarshalling library in Go. It uses code generation and not
369 reflection.")
370 (home-page "https://github.com/calmh/xdr")
371 (license expat)))
372
373 (define-public go-github-com-d4l3k-messagediff
374 (package
375 (name "go-github-com-d4l3k-messagediff")
376 (version "1.2.1")
377 (source (origin
378 (method git-fetch)
379 (uri (git-reference
380 (url "https://github.com/d4l3k/messagediff")
381 (commit (string-append "v" version))))
382 (file-name (git-file-name name version))
383 (sha256
384 (base32
385 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
386 (build-system go-build-system)
387 (arguments
388 `(#:import-path "github.com/d4l3k/messagediff"))
389 (synopsis "Diff arbitrary Go structs")
390 (description "Messagediff is a library for calculating diffs of arbitrary
391 structs in the Go programming language.")
392 (home-page "https://github.com/d4l3k/messagediff")
393 (license expat)))
394
395 (define-public go-github-com-gobwas-glob
396 (package
397 (name "go-github-com-gobwas-glob")
398 (version "0.2.3")
399 (source (origin
400 (method git-fetch)
401 (uri (git-reference
402 (url "https://github.com/gobwas/glob")
403 (commit (string-append "v" version))))
404 (file-name (git-file-name name version))
405 (sha256
406 (base32
407 "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"))))
408 (build-system go-build-system)
409 (arguments
410 `(#:import-path "github.com/gobwas/glob"))
411 (synopsis "Go globbing library")
412 (description "This package provides a Go implementation of globs.")
413 (home-page "https://github.com/gobwas/glob")
414 (license expat)))
415
416
417 (define-public go-github-com-golang-groupcache-lru
418 (let ((commit "869f871628b6baa9cfbc11732cdf6546b17c1298")
419 (revision "2"))
420 (package
421 (name "go-github-com-golang-groupcache-lru")
422 (version (git-version "0.0.0" revision commit))
423 (source (origin
424 (method git-fetch)
425 (uri (git-reference
426 (url "https://github.com/golang/groupcache")
427 (commit commit)))
428 (file-name (git-file-name name version))
429 (sha256
430 (base32
431 "0r4nk8129bvx50qb4xzjaay39b2h6k7cbdqqzdlanmc82ygczsbw"))))
432 (build-system go-build-system)
433 (arguments
434 `(#:import-path "github.com/golang/groupcache/lru"
435 #:unpack-path "github.com/golang/groupcache"))
436 (synopsis "Groupcache is a caching and cache-filling library")
437 (description "Groupcache is a caching and cache-filling library, intended
438 as a replacement for memcached in many cases. It provides a data loading
439 mechanism with caching and de-duplication that works across a set of peer
440 processes.")
441 (home-page "https://github.com/golang/groupcache")
442 (license asl2.0))))
443
444 (define-public go-github-com-golang-snappy
445 (let ((commit "553a641470496b2327abcac10b36396bd98e45c9")
446 (revision "0"))
447 (package
448 (name "go-github-com-golang-snappy")
449 (version (git-version "0.0.0" revision commit))
450 (source (origin
451 (method git-fetch)
452 (uri (git-reference
453 (url "https://github.com/golang/snappy")
454 (commit commit)))
455 (file-name (git-file-name name version))
456 (sha256
457 (base32
458 "0kssxnih1l722hx9219c7javganjqkqhvl3i0hp0hif6xm6chvqk"))))
459 (build-system go-build-system)
460 (arguments
461 `(#:import-path "github.com/golang/snappy"))
462 (synopsis "Snappy compression format in the Go programming language")
463 (description "This package provides a Go implementation of the Snappy
464 compression format.")
465 (home-page "https://github.com/golang/snappy")
466 (license bsd-3))))
467
468 (define-public go-github-com-jackpal-gateway
469 (package
470 (name "go-github-com-jackpal-gateway")
471 (version "1.0.6")
472 (source (origin
473 (method git-fetch)
474 (uri (git-reference
475 (url "https://github.com/jackpal/gateway")
476 (commit (string-append "v" version))))
477 (file-name (git-file-name name version))
478 (sha256
479 (base32
480 "1yms2dw4dnz4cvj9vhwh6193d50jhvn5awsp2g3a4lcc3sjrgd6m"))))
481 (build-system go-build-system)
482 (arguments
483 `(#:import-path "github.com/jackpal/gateway"))
484 (synopsis "Discover the address of a LAN gateway")
485 (description "@code{gateway} is a Go library for discovering the IP
486 address of the default LAN gateway.")
487 (home-page "https://github.com/jackpal/gateway")
488 (license bsd-3)))
489
490 (define-public go-github-com-lib-pq
491 (package
492 (name "go-github-com-lib-pq")
493 (version "1.2.0")
494 (source (origin
495 (method git-fetch)
496 (uri (git-reference
497 (url "https://github.com/lib/pq")
498 (commit (string-append "v" version))))
499 (file-name (git-file-name name version))
500 (sha256
501 (base32
502 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
503 (build-system go-build-system)
504 (arguments
505 `(#:import-path "github.com/lib/pq"
506 ;; The tests seem to fail without access to the network or a running
507 ;; Postgres instance.
508 #:tests? #f))
509 (synopsis "Golang Postgres driver for Go's database/sql")
510 (description "This package provides a pure Go Postgres driver for Go's
511 database/sql package.")
512 (home-page "https://github.com/lib/pq")
513 (license expat)))
514
515 (define-public go-github-com-oschwald-geoip2-golang
516 (package
517 (name "go-github-com-oschwald-geoip2-golang")
518 (version "1.4.0")
519 (source (origin
520 (method git-fetch)
521 (uri (git-reference
522 (url "https://github.com/oschwald/geoip2-golang")
523 (commit (string-append "v" version))))
524 (file-name (git-file-name name version))
525 (sha256
526 (base32
527 "1jj4rbdpy87rbl79czg5hs5dyn6xlbnk0bnvyzi71dsxan57nixw"))))
528 (build-system go-build-system)
529 (propagated-inputs
530 `(("go-github-com-oschwald-maxminddb-golang"
531 ,go-github-com-oschwald-maxminddb-golang)
532 ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
533 (arguments
534 `(#:import-path "github.com/oschwald/geoip2-golang"
535 #:tests? #f)) ; Requires some unpackaged software and test data
536 (synopsis "MaxMind GeoIP2 reader")
537 (description "This package provides a library for reading MaxMind
538 GeoLite2 and GeoIP2 databases in Go.")
539 (home-page "https://github.com/oschwald/geoip2-golang")
540 (license isc)))
541
542 (define-public go-github-com-oschwald-maxminddb-golang
543 (package
544 (name "go-github-com-oschwald-maxminddb-golang")
545 (version "1.4.0")
546 (source (origin
547 (method git-fetch)
548 (uri (git-reference
549 (url "https://github.com/oschwald/maxminddb-golang")
550 (commit (string-append "v" version))))
551 (file-name (git-file-name name version))
552 (sha256
553 (base32
554 "100wd5qv00pkcm6cb8c4x5gavc9jnn7drh6xrqh85hzci4rils66"))))
555 (build-system go-build-system)
556 (propagated-inputs
557 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
558 (arguments
559 `(#:import-path "github.com/oschwald/maxminddb-golang"
560 #:tests? #f)) ; Requires some unpackaged software and test data
561 (synopsis "MaxMind DB Reader for Go")
562 (description "This is a Go reader for the MaxMind DB format. Although
563 this can be used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
564 higher-level API for doing so.")
565 (home-page "https://github.com/oschwald/maxminddb-golang")
566 (license isc)))
567
568 (define-public go-github-com-stathat-go
569 (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
570 (revision "0"))
571 (package
572 (name "go-github-com-stathat-go")
573 (version (git-version "0.0.0" revision commit))
574 (source (origin
575 (method git-fetch)
576 (uri (git-reference
577 (url "https://github.com/stathat/go")
578 (commit commit)))
579 (file-name (git-file-name name version))
580 (sha256
581 (base32
582 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
583 (build-system go-build-system)
584 (arguments
585 `(#:import-path "github.com/stathat/go"))
586 (synopsis "Post statistics to StatHat")
587 (description "This is a Go package for posting to a StatHat account.")
588 (home-page "https://github.com/stathat/go")
589 (license expat))))
590
591 (define-public go-github-com-rcrowley-go-metrics
592 (let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
593 (revision "2"))
594 (package
595 (name "go-github-com-rcrowley-go-metrics")
596 (version (git-version "0.0.0" revision commit))
597 (source (origin
598 (method git-fetch)
599 (uri (git-reference
600 (url "https://github.com/rcrowley/go-metrics")
601 (commit commit)))
602 (file-name (git-file-name name version))
603 (sha256
604 (base32
605 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
606 (build-system go-build-system)
607 (arguments
608 ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
609 ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
610 `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
611 (%current-system))))
612 #:import-path "github.com/rcrowley/go-metrics"))
613 (propagated-inputs
614 `(("go-github-com-stathat-go" ,go-github-com-stathat-go)))
615 (synopsis "Go port of Coda Hale's Metrics library")
616 (description "This package provides a Go implementation of Coda Hale's
617 Metrics library.")
618 (home-page "https://github.com/rcrowley/go-metrics")
619 (license bsd-2))))
620
621 (define-public go-github-com-sasha-s-go-deadlock
622 (package
623 (name "go-github-com-sasha-s-go-deadlock")
624 (version "0.2.0")
625 (source (origin
626 (method git-fetch)
627 (uri (git-reference
628 (url "https://github.com/sasha-s/go-deadlock")
629 (commit (string-append "v" version))))
630 (file-name (git-file-name name version))
631 (sha256
632 (base32
633 "13p7b7pakd9k1c2k0fs1hfim3c8mivz679977ai6zb01s4aw7gyg"))))
634 (build-system go-build-system)
635 (arguments
636 `(#:import-path "github.com/sasha-s/go-deadlock"))
637 (propagated-inputs
638 `(("go-github-com-petermattis-goid" ,go-github-com-petermattis-goid)))
639 (synopsis "Deadlock detection in go")
640 (description "This package provides tools for detecting deadlocks at
641 run-time in Go.")
642 (home-page "https://github.com/sasha-s/go-deadlock")
643 (license asl2.0)))
644
645 (define-public go-github-com-syndtr-goleveldb
646 (let ((commit "758128399b1df3a87e92df6c26c1d2063da8fabe")
647 (revision "4"))
648 (package
649 (name "go-github-com-syndtr-goleveldb")
650 (version (git-version "1.0.1" revision commit))
651 (source (origin
652 (method git-fetch)
653 (uri (git-reference
654 (url "https://github.com/syndtr/goleveldb")
655 (commit commit)))
656 (file-name (git-file-name name version))
657 (sha256
658 (base32
659 "0mnkzrz4di13g6ggd54my7bkb9nwk8f5k672dyasn467wsg7bf8f"))))
660 (build-system go-build-system)
661 (propagated-inputs
662 `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy)))
663 (arguments
664 `(#:import-path "github.com/syndtr/goleveldb/leveldb"
665 #:unpack-path "github.com/syndtr/goleveldb"
666 #:tests? #f)) ; XXX needs 'github.com/onsi/gomega' package
667 (synopsis "LevelDB key/value database")
668 (description "This is an implementation of the LevelDB key / value
669 database in Go.")
670 (home-page "https://github.com/syndtr/goleveldb")
671 (license bsd-2))))
672
673 (define-public go-github-com-thejerf-suture
674 (package
675 (name "go-github-com-thejerf-suture")
676 (version "3.0.2")
677 (source (origin
678 (method git-fetch)
679 (uri (git-reference
680 (url "https://github.com/thejerf/suture")
681 (commit (string-append "v" version))))
682 (file-name (git-file-name name version))
683 (sha256
684 (base32
685 "03bdrl78jfwk0kw40lj63ga9cxhgccgss8yi9lp5j0m0ml7921gh"))))
686 (build-system go-build-system)
687 (arguments
688 `(#:import-path "github.com/thejerf/suture"))
689 (synopsis "Supervisor trees for Go")
690 (description "Suture provides Erlang-ish supervisor trees for Go.
691 \"Supervisor trees\" -> \"sutree\" -> \"suture\" -> holds your code together
692 when it's trying to die.
693
694 It is intended to deal gracefully with the real failure cases that can occur
695 with supervision trees (such as burning all your CPU time endlessly restarting
696 dead services), while also making no unnecessary demands on the \"service\"
697 code, and providing hooks to perform adequate logging with in a production
698 environment")
699 (home-page "https://github.com/thejerf/suture")
700 (license expat)))
701
702 (define-public go-github-com-vitrun-qart
703 (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa")
704 (revision "0"))
705 (package
706 (name "go-github-com-vitrun-qart")
707 (version (git-version "0.0.0" revision commit))
708 (source (origin
709 (method git-fetch)
710 (uri (git-reference
711 (url "https://github.com/vitrun/qart")
712 (commit commit)))
713 (file-name (string-append "go-github-com-vitrun-qart-"
714 version "-checkout"))
715 (sha256
716 (base32
717 "1xk7qki703xmay9ghi3kq2bjf1iw9dz8wik55739d6i7sn77vvkc"))))
718 (build-system go-build-system)
719 (arguments
720 `(#:import-path "github.com/vitrun/qart"))
721 (synopsis "Create QR codes with an embedded image")
722 (description "This package provides a library for embedding
723 human-meaningful graphics in QR codes. However, instead of scribbling on
724 redundant pieces and relying on error correction to preserve the meaning,
725 @code{qart} engineers the encoded values to create the picture in a code with no
726 inherent errors.")
727 (home-page "https://github.com/vitrun/qart")
728 (license bsd-3))))
729
730 (define-public go-github-com-chmduquesne-rollinghash
731 (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
732 (revision "0"))
733 (package
734 (name "go-github-com-chmduquesne-rollinghash")
735 (version (git-version "4.0.0" revision commit))
736 (source
737 (origin
738 (method git-fetch)
739 (uri (git-reference
740 (url "https://github.com/chmduquesne/rollinghash")
741 (commit commit)))
742 (file-name (git-file-name name version))
743 (sha256
744 (base32
745 "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
746 (build-system go-build-system)
747 (arguments
748 '(#:import-path "github.com/chmduquesne/rollinghash/"))
749 (synopsis "Rolling hashes in Go")
750 (description "This package provides a Go implementation of several rolling
751 hashes.")
752 (home-page "https://github.com/chmduquesne/rollinghash")
753 (license expat))))
754
755 (define-public go-github-com-petermattis-goid
756 (let ((commit "b0b1615b78e5ee59739545bb38426383b2cda4c9")
757 (revision "1"))
758 (package
759 (name "go-github-com-petermattis-goid")
760 (version (git-version "0.0.0" revision commit))
761 (source (origin
762 (method git-fetch)
763 (uri (git-reference
764 (url "https://github.com/petermattis/goid")
765 (commit commit)))
766 (file-name (git-file-name name version))
767 (sha256
768 (base32
769 "0ghfxn045r0bbn2vszw897lxzmhnm4k59aypjvpxl0pbzsw9ab2c"))))
770 (build-system go-build-system)
771 (arguments
772 '(#:import-path "github.com/petermattis/goid"))
773 (synopsis "Identify the running goroutine")
774 (description "This package offers a method of programmatically retrieving
775 the current goroutine's ID.")
776 (home-page "https://github.com/petermattis/goid")
777 (license asl2.0))))
778
779 (define-public go-github-com-kballard-go-shellquote
780 (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
781 (revision "1"))
782 (package
783 (name "go-github-com-kballard-go-shellquote")
784 (version (git-version "0.0.0" revision commit))
785 (source (origin
786 (method git-fetch)
787 (uri (git-reference
788 (url "https://github.com/kballard/go-shellquote")
789 (commit commit)))
790 (file-name (git-file-name name version))
791 (sha256
792 (base32
793 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
794 (build-system go-build-system)
795 (arguments
796 '(#:import-path "github.com/kballard/go-shellquote"))
797 (synopsis "Shell-style string joins and splits")
798 (description "Shellquote provides utilities for joining/splitting strings
799 using sh's word-splitting rules.")
800 (home-page "https://github.com/kballard/go-shellquote")
801 (license expat))))
802
803 (define-public go-github-com-syncthing-notify
804 (let ((commit "69c7a957d3e261f9744f46b3dd4d608d8480ad90")
805 (revision "5"))
806 (package
807 (name "go-github-com-syncthing-notify")
808 (version (git-version "0.0.0" revision commit))
809 (source (origin
810 (method git-fetch)
811 (uri (git-reference
812 (url "https://github.com/syncthing/notify")
813 (commit commit)))
814 (file-name (git-file-name name version))
815 (sha256
816 (base32
817 "1mmdzyfnmjabyhbipl4bggw4w5nlxyyjp0d93qd824kj07kmsr1f"))))
818 (build-system go-build-system)
819 (arguments
820 '(#:import-path "github.com/syncthing/notify"))
821 (propagated-inputs
822 `(("go-golang-org-x-sys" ,go-golang-org-x-sys)))
823 (synopsis "File system event notification library")
824 (description "This package provides @code{notify}, a file system event
825 notification library in Go.")
826 (home-page "https://github.com/syncthing/notify")
827 (license expat))))
828
829 (define-public go-github-com-beorn7-perks-quantile
830 (let ((commit "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9")
831 (revision "0"))
832 (package
833 (name "go-github-com-beorn7-perks-quantile")
834 (version (git-version "0.0.0" revision commit))
835 (source (origin
836 (method git-fetch)
837 (uri (git-reference
838 (url "https://github.com/beorn7/perks")
839 (commit commit)))
840 (file-name (git-file-name name version))
841 (sha256
842 (base32
843 "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y"))))
844 (build-system go-build-system)
845 (arguments
846 '(#:import-path "github.com/beorn7/perks/quantile"
847 #:unpack-path "github.com/beorn7/perks"))
848 (synopsis "Compute approximate quantiles over an unbounded data stream")
849 (description "Perks contains the Go package @code{quantile} that computes
850 approximate quantiles over an unbounded data stream within low memory and CPU
851 bounds.")
852 (home-page "https://github.com/beorn7/perks")
853 (license expat))))
854
855 (define-public go-github-com-prometheus-client-model
856 (let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
857 (revision "2"))
858 (package
859 (name "go-github-com-prometheus-client-model")
860 (version (git-version "0.0.2" revision commit))
861 (source (origin
862 (method git-fetch)
863 (uri (git-reference
864 (url "https://github.com/prometheus/client_model")
865 (commit commit)))
866 (file-name (git-file-name name version))
867 (sha256
868 (base32
869 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
870 (build-system go-build-system)
871 (arguments
872 '(#:import-path "github.com/prometheus/client_model"
873 #:tests? #f
874 #:phases
875 (modify-phases %standard-phases
876 ;; Source-only package
877 (delete 'build))))
878 (propagated-inputs
879 `(("go-github-com-golang-protobuf-proto"
880 ,go-github-com-golang-protobuf-proto)))
881 (synopsis "Data model artifacts for Prometheus")
882 (description "This package provides data model artifacts for Prometheus.")
883 (home-page "https://github.com/prometheus/client_model")
884 (license asl2.0))))
885
886 (define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
887 (let ((commit "c12348ce28de40eed0136aa2b644d0ee0650e56c")
888 (revision "0"))
889 (package
890 (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
891 (version (git-version "1.0.0" revision commit))
892 (source
893 (origin
894 (method git-fetch)
895 (uri
896 (git-reference
897 (url "https://github.com/matttproud/golang_protobuf_extensions")
898 (commit commit)))
899 (file-name (git-file-name name version))
900 (sha256
901 (base32
902 "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya"))))
903 (build-system go-build-system)
904 (arguments
905 '(#:import-path "github.com/matttproud/golang_protobuf_extensions/pbutil"
906 #:unpack-path "github.com/matttproud/golang_protobuf_extensions"))
907 (propagated-inputs
908 `(("go-github-com-golang-protobuf-proto"
909 ,go-github-com-golang-protobuf-proto)))
910 (synopsis "Streaming Protocol Buffers in Go")
911 (description "This package provides various Protocol Buffer
912 extensions for the Go language, namely support for record length-delimited
913 message streaming.")
914 (home-page "https://github.com/matttproud/golang_protobuf_extensions")
915 (license asl2.0))))
916
917 (define-public go-github-com-prometheus-common
918 (package
919 (name "go-github-com-prometheus-common")
920 (version "0.4.1")
921 (source (origin
922 (method git-fetch)
923 (uri (git-reference
924 (url "https://github.com/prometheus/common")
925 (commit (string-append "v" version))))
926 (file-name (git-file-name name version))
927 (sha256
928 (base32
929 "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
930 (build-system go-build-system)
931 (arguments
932 '(#:import-path "github.com/prometheus/common"
933 #:tests? #f
934 #:phases
935 (modify-phases %standard-phases
936 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
937 (lambda* (#:key outputs #:allow-other-keys)
938 (map (lambda (file)
939 (make-file-writable file))
940 (find-files
941 (string-append (assoc-ref outputs "out")
942 "/src/github.com/prometheus/common/expfmt/testdata/")
943 ".*\\.gz$"))
944 #t))
945 ;; Source-only package
946 (delete 'build))))
947 (propagated-inputs
948 `(("go-github-com-golang-protobuf-proto"
949 ,go-github-com-golang-protobuf-proto)
950 ("go-github-com-matttproud-golang-protobuf-extensions-pbutil"
951 ,go-github-com-matttproud-golang-protobuf-extensions-pbutil)
952 ("go-github-com-prometheus-client-model"
953 ,go-github-com-prometheus-client-model)))
954 (synopsis "Prometheus metrics")
955 (description "This package provides tools for reading and writing
956 Prometheus metrics.")
957 (home-page "https://github.com/prometheus/common")
958 (license asl2.0)))
959
960 (define-public go-github-com-prometheus-procfs
961 (package
962 (name "go-github-com-prometheus-procfs")
963 (version "0.0.4")
964 (source (origin
965 (method git-fetch)
966 (uri (git-reference
967 (url "https://github.com/prometheus/procfs")
968 (commit (string-append "v" version))))
969 (file-name (git-file-name name version))
970 (sha256
971 (base32
972 "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
973 (build-system go-build-system)
974 (arguments
975 '(#:import-path "github.com/prometheus/procfs"
976 ;; The tests require Go modules, which are not yet supported in Guix's
977 ;; Go build system.
978 #:tests? #f))
979 (synopsis "Go library for reading @file{/proc}")
980 (description "The @code{procfs} Go package provides functions to retrieve
981 system, kernel, and process metrics from the @file{/proc} pseudo file system.")
982 (home-page "https://github.com/prometheus/procfs")
983 (license asl2.0)))
984
985 (define-public go-github-com-prometheus-client-golang
986 (package
987 (name "go-github-com-prometheus-client-golang")
988 (version "1.2.1")
989 (source (origin
990 (method git-fetch)
991 (uri (git-reference
992 (url "https://github.com/prometheus/client_golang")
993 (commit (string-append "v" version))))
994 (file-name (git-file-name name version))
995 (sha256
996 (base32
997 "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
998 (build-system go-build-system)
999 (arguments
1000 '(#:tests? #f
1001 #:import-path "github.com/prometheus/client_golang"
1002 #:phases
1003 (modify-phases %standard-phases
1004 ;; Source-only package
1005 (delete 'build))))
1006 (propagated-inputs
1007 `(("go-github-com-beorn7-perks-quantile"
1008 ,go-github-com-beorn7-perks-quantile)
1009 ("go-github-com-golang-protobuf-proto"
1010 ,go-github-com-golang-protobuf-proto)
1011 ("go-github-com-prometheus-client-model"
1012 ,go-github-com-prometheus-client-model)
1013 ("go-github-com-prometheus-common"
1014 ,go-github-com-prometheus-common)
1015 ("go-github-com-prometheus-procfs" ,go-github-com-prometheus-procfs)
1016 ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
1017 (synopsis "HTTP server and client tools for Prometheus")
1018 (description "This package @code{promhttp} provides HTTP client and
1019 server tools for Prometheus metrics.")
1020 (home-page "https://github.com/prometheus/client_golang")
1021 (license asl2.0)))
1022
1023 (define-public go-github-com-go-asn1-ber-asn1-ber
1024 (package
1025 (name "go-github-com-go-asn1-ber-asn1-ber")
1026 (version "1.3.1")
1027 (source (origin
1028 (method git-fetch)
1029 (uri (git-reference
1030 (url "https://github.com/go-asn1-ber/asn1-ber")
1031 (commit (string-append "v" version))))
1032 (file-name (git-file-name name version))
1033 (sha256
1034 (base32
1035 "0dxfmgk84fn0p6pz3i0cspynh6rly5pfk9wghm1q07mx99npln02"))))
1036 (build-system go-build-system)
1037 (arguments
1038 '(#:import-path "github.com/go-asn1-ber/asn1-ber"))
1039 (synopsis "ASN.1 BER encoding and decoding in Go")
1040 (description "This package provides ASN.1 BER encoding and decoding in the
1041 Go language.")
1042 (home-page "https://github.com/go-asn1-ber/asn1-ber")
1043 (license expat)))
1044
1045 (define-public go-github-com-go-ldap-ldap
1046 (package
1047 (name "go-github-com-go-ldap-ldap")
1048 (version "3.1.7")
1049 (source (origin
1050 (method git-fetch)
1051 (uri (git-reference
1052 (url "https://github.com/go-ldap/ldap")
1053 (commit (string-append "v" version))))
1054 (file-name (git-file-name name version))
1055 (sha256
1056 (base32
1057 "1z6wxia7a1jkmasa9mm6g4n8f0qqbp5rw6vk0zyh4vzk7azklnj2"))))
1058 (build-system go-build-system)
1059 (arguments
1060 '(#:import-path "github.com/go-ldap/ldap/v3"
1061 #:tests? #f)) ; test suite requires internet access
1062 (propagated-inputs
1063 `(("go-github-com-go-asn1-ber-asn1-ber" ,go-github-com-go-asn1-ber-asn1-ber)))
1064 (home-page "https://github.com/go-ldap/ldap")
1065 (synopsis "LDAP v3 functionality for Go")
1066 (description "This package provides basic LDAP v3 functionality in the Go
1067 language.")
1068 (license expat)))
1069
1070 (define-public go-github-com-flynn-archive-go-shlex
1071 (let ((commit "3f9db97f856818214da2e1057f8ad84803971cff")
1072 (revision "0"))
1073 (package
1074 (name "go-github-com-flynn-archive-go-shlex")
1075 (version (git-version "0.0.0" revision commit))
1076 (source (origin
1077 (method git-fetch)
1078 (uri (git-reference
1079 (url "https://github.com/flynn-archive/go-shlex")
1080 (commit commit)))
1081 (file-name (git-file-name name version))
1082 (sha256
1083 (base32
1084 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
1085 (build-system go-build-system)
1086 (arguments
1087 '(#:import-path "github.com/flynn-archive/go-shlex"))
1088 (synopsis "Go lexer")
1089 (description "Shlex is a simple lexer for go that supports shell-style
1090 quoting, commenting, and escaping.")
1091 (home-page "https://github.com/flynn-archive/go-shlex")
1092 (license asl2.0))))
1093
1094 (define-public go-github-com-audriusbutkevicius-pfilter
1095 (package
1096 (name "go-github-com-audriusbutkevicius-pfilter")
1097 (version "0.0.5")
1098 (source
1099 (origin
1100 (method git-fetch)
1101 (uri (git-reference
1102 (url "https://github.com/AudriusButkevicius/pfilter")
1103 (commit version)))
1104 (file-name (git-file-name name version))
1105 (sha256
1106 (base32
1107 "0xzhwyd0w21bhvzl5pinn22hp0y6h44rh3s2ppql69rafc6zd3c6"))))
1108 (build-system go-build-system)
1109 (arguments
1110 '(#:import-path "github.com/AudriusButkevicius/pfilter"))
1111 (synopsis "Filter packets into multiple virtual connections")
1112 (description "Pfilter is a Go package for filtering packets into multiple
1113 virtual connections from a single physical connection.")
1114 (home-page "https://github.com/AudriusButkevicius/pfilter")
1115 (license expat)))
1116
1117 (define-public go-github-com-ccding-go-stun
1118 (let ((commit "be486d185f3dfcb2dbf8429332da50a0da7f95a6")
1119 (revision "2"))
1120 (package
1121 (name "go-github-com-ccding-go-stun")
1122 (version (git-version "0.0.0" revision commit))
1123 (source
1124 (origin
1125 (method git-fetch)
1126 (uri (git-reference
1127 (url "https://github.com/ccding/go-stun")
1128 (commit commit)))
1129 (file-name (git-file-name name version))
1130 (sha256
1131 (base32
1132 "1gr0rw1c1y7wh6913lyn5k4ig023by27i36bly6am8dwgrgp34ww"))))
1133 (build-system go-build-system)
1134 (arguments
1135 '(#:import-path "github.com/ccding/go-stun"))
1136 (synopsis "STUN client implementation")
1137 (description "Go-stun is a go implementation of the STUN client (RFC 3489
1138 and RFC 5389).")
1139 (home-page "https://github.com/ccding/go-stun")
1140 (license asl2.0))))
1141
1142 (define-public go-github-com-cespare-xxhash
1143 (package
1144 (name "go-github-com-cespare-xxhash")
1145 (version "2.1.0")
1146 (source (origin
1147 (method git-fetch)
1148 (uri (git-reference
1149 (url "https://github.com/cespare/xxhash")
1150 (commit (string-append "v" version))))
1151 (file-name (git-file-name name version))
1152 (sha256
1153 (base32
1154 "12ad3z7ki9j07c4kx3ywkl6188i2afsjg7sl60wd21p6zkkpfjxq"))))
1155 (build-system go-build-system)
1156 (arguments
1157 '(#:import-path "github.com/cespare/xxhash"))
1158 (synopsis "Go implementation of xxHash")
1159 (description "This package provides of Go implementation of the 64-bit
1160 xxHash algorithm (XXH64).")
1161 (home-page "https://github.com/cespare/xxhash/")
1162 (license expat)))