summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2020-04-07 17:14:16 -0400
committerLeo Famulari <leo@famulari.name>2020-04-07 22:04:34 -0400
commitea2dcf1664a59fcb37d04afada128db9818865af (patch)
tree82fe0ae87d3180e744dbdba5c29901772ed9cee8
parent3868b2a799e2e39668234fc3601c783b99255334 (diff)
gnu: Add go-github-com-calmh-murmur3.
* gnu/packages/golang.scm (go-github-com-calmh-murmur3): New variable. (go-github-com-willf-bloom)[propagated-inputs]: Replace go-github-com-spaolacci-murmur3 with it. [arguments]: Patch the murmur3 import path in a new 'patch-import-path' phase.
-rw-r--r--gnu/packages/golang.scm42
1 files changed, 40 insertions, 2 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index fb6d66f037a..6fc5181d6ca 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2186,6 +2186,34 @@ Reference algorithm has been slightly hacked as to support the streaming mode
2186required by Go's standard Hash interface.") 2186required by Go's standard Hash interface.")
2187 (license license:bsd-3))) 2187 (license license:bsd-3)))
2188 2188
2189(define-public go-github-com-calmh-murmur3
2190 (let ((commit "74e9af8f47ac56901c490d45546ca167b60c7066")
2191 (revision "0"))
2192 (package
2193 (name "go-github-com-calmh-murmur3")
2194 (version (git-version "1.1.0" revision commit))
2195 (source
2196 (origin
2197 (method git-fetch)
2198 (uri (git-reference
2199 (url "https://github.com/calmh/murmur3.git")
2200 (commit commit)))
2201 (file-name (git-file-name name version))
2202 (sha256
2203 (base32
2204 "0k8345ivx228qdbkl8bisd2wxwsinkb44ghba6r09538fr3fbr5w"))))
2205 (build-system go-build-system)
2206 (arguments
2207 '(#:import-path "github.com/calmh/murmur3"))
2208 (home-page "https://github.com/calmh/murmur3")
2209 (synopsis "Native MurmurHash3 Go implementation")
2210 (description "Native Go implementation of Austin Appleby's third
2211MurmurHash revision (aka MurmurHash3).
2212
2213Reference algorithm has been slightly hacked as to support the streaming mode
2214required by Go's standard Hash interface.")
2215 (license license:bsd-3))))
2216
2189(define-public go-github-com-multiformats-go-multihash 2217(define-public go-github-com-multiformats-go-multihash
2190 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6") 2218 (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6")
2191 (revision "0")) 2219 (revision "0"))
@@ -3463,9 +3491,19 @@ efficient space usage.")
3463 "0ygan8pgcay7wx3cs3ja8rdqj7nly7v3and97ddcc66020jxchzg")))) 3491 "0ygan8pgcay7wx3cs3ja8rdqj7nly7v3and97ddcc66020jxchzg"))))
3464 (build-system go-build-system) 3492 (build-system go-build-system)
3465 (arguments 3493 (arguments
3466 '(#:import-path "github.com/willf/bloom")) 3494 '(#:import-path "github.com/willf/bloom"
3495 #:phases
3496 (modify-phases %standard-phases
3497 (add-after 'unpack 'patch-import-path
3498 (lambda _
3499 ;; See 'go.mod' in the source distribution of Syncthing 1.4.1 for
3500 ;; more information.
3501 ;; <https://github.com/spaolacci/murmur3/issues/29>
3502 (substitute* "src/github.com/willf/bloom/bloom.go"
3503 (("spaolacci") "calmh"))
3504 #t)))))
3467 (propagated-inputs 3505 (propagated-inputs
3468 `(("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) 3506 `(("go-github-com-calmh-murmur3" ,go-github-com-calmh-murmur3)
3469 ("go-github-com-willf-bitset" ,go-github-com-willf-bitset))) 3507 ("go-github-com-willf-bitset" ,go-github-com-willf-bitset)))
3470 (synopsis "Bloom filters in Go") 3508 (synopsis "Bloom filters in Go")
3471 (description "This package provides a Go implementation of bloom filters, 3509 (description "This package provides a Go implementation of bloom filters,