gnu: Add go-github-com-twmb-murmur3.

* gnu/packages/golang.scm (go-github-com-calmh-murmur3): Replace with ...
(go-github-com-twmb-murmur3): ... new variable.
(go-github-com-willf-bloom): Use go-github-com-twmb-murmur3.
This commit is contained in:
Leo Famulari 2020-05-21 12:55:10 -04:00
parent 3a8935099f
commit 64905c24ad
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -2186,33 +2186,31 @@ (define-public go-github-com-spaolacci-murmur3
required by Go's standard Hash interface.") required by Go's standard Hash interface.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public go-github-com-calmh-murmur3 (define-public go-github-com-twmb-murmur3
(let ((commit "74e9af8f47ac56901c490d45546ca167b60c7066") (package
(revision "0")) (name "go-github-com-twmb-murmur3")
(package (version "1.1.3")
(name "go-github-com-calmh-murmur3") (source
(version (git-version "1.1.0" revision commit)) (origin
(source (method git-fetch)
(origin (uri (git-reference
(method git-fetch) (url "https://github.com/twmb/murmur3.git")
(uri (git-reference (commit (string-append "v" version))))
(url "https://github.com/calmh/murmur3.git") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32
(sha256 "00riapwkyf23l5wyis47mbr8rwr4yrjw491jfc30wpzs111c1gyy"))))
(base32 (build-system go-build-system)
"0k8345ivx228qdbkl8bisd2wxwsinkb44ghba6r09538fr3fbr5w")))) (arguments
(build-system go-build-system) '(#:import-path "github.com/twmb/murmur3"))
(arguments (home-page "https://github.com/twmb/murmur3")
'(#:import-path "github.com/calmh/murmur3")) (synopsis "Native MurmurHash3 Go implementation")
(home-page "https://github.com/calmh/murmur3") (description "Native Go implementation of Austin Appleby's third
(synopsis "Native MurmurHash3 Go implementation")
(description "Native Go implementation of Austin Appleby's third
MurmurHash revision (aka MurmurHash3). MurmurHash revision (aka MurmurHash3).
Reference algorithm has been slightly hacked as to support the streaming mode Reference algorithm has been slightly hacked as to support the streaming mode
required by Go's standard Hash interface.") required by Go's standard Hash interface.")
(license license:bsd-3)))) (license license:bsd-3)))
(define-public go-github-com-multiformats-go-multihash (define-public go-github-com-multiformats-go-multihash
(let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6") (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
@ -3496,14 +3494,14 @@ (define-public go-github-com-willf-bloom
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-import-path (add-after 'unpack 'patch-import-path
(lambda _ (lambda _
;; See 'go.mod' in the source distribution of Syncthing 1.4.1 for ;; See 'go.mod' in the source distribution of Syncthing 1.5.0 for
;; more information. ;; more information.
;; <https://github.com/spaolacci/murmur3/issues/29> ;; <https://github.com/spaolacci/murmur3/issues/29>
(substitute* "src/github.com/willf/bloom/bloom.go" (substitute* "src/github.com/willf/bloom/bloom.go"
(("spaolacci") "calmh")) (("spaolacci") "twmb"))
#t))))) #t)))))
(propagated-inputs (propagated-inputs
`(("go-github-com-calmh-murmur3" ,go-github-com-calmh-murmur3) `(("go-github-com-twmb-murmur3" ,go-github-com-twmb-murmur3)
("go-github-com-willf-bitset" ,go-github-com-willf-bitset))) ("go-github-com-willf-bitset" ,go-github-com-willf-bitset)))
(synopsis "Bloom filters in Go") (synopsis "Bloom filters in Go")
(description "This package provides a Go implementation of bloom filters, (description "This package provides a Go implementation of bloom filters,