gnu: Provide the full 'rollinghash' Go library.

* gnu/packages/syncthing.scm
(go-github-com-chmduquesne-rollinghash-adler32): Replace with ...
(go-github-com-chmduquesne-rollinghash): ... new variable.
This commit is contained in:
Leo Famulari 2019-03-13 17:41:13 -04:00
parent d8742c0af3
commit 78d1b85a54
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -658,11 +658,14 @@ (define-public go-github-com-vitrun-qart-qr
(home-page "https://github.com/vitrun/qart") (home-page "https://github.com/vitrun/qart")
(license bsd-3)))) (license bsd-3))))
(define-public go-github-com-chmduquesne-rollinghash-adler32 ;; XXX Syncthing actually imports 'github.com/chmduquesne/rollinghash/adler32'.
;; Normally we'd package this module indpendenctly but the adler32 module itself
;; imports 'github.com/chmduquesne/rollinghash/', so this is the easy way out.
(define-public go-github-com-chmduquesne-rollinghash
(let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81") (let ((commit "a60f8e7142b536ea61bb5d84014171189eeaaa81")
(revision "0")) (revision "0"))
(package (package
(name "go-github-com-chmduquesne-rollinghash-adler32") (name "go-github-com-chmduquesne-rollinghash")
(version (git-version "4.0.0" revision commit)) (version (git-version "4.0.0" revision commit))
(source (source
(origin (origin
@ -676,11 +679,10 @@ (define-public go-github-com-chmduquesne-rollinghash-adler32
"0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr")))) "0fpaqq4zb0wikgbhn7vwqqj1h865f5xy195vkhivsp922p7qwsjr"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
'(#:import-path "github.com/chmduquesne/rollinghash/adler32" '(#:import-path "github.com/chmduquesne/rollinghash/"))
#:unpack-path "github.com/chmduquesne/rollinghash")) (synopsis "Rolling hashes in Go")
(synopsis "Adler-32 rolling hash in Go") (description "This package provides a Go implementation of several rolling
(description "This package provides a Go implementation of the Adler-32 hashes.")
rolling hash.")
(home-page "https://github.com/chmduquesne/rollinghash") (home-page "https://github.com/chmduquesne/rollinghash")
(license expat)))) (license expat))))