diff mbox series

[bug#54335,03/14] gnu: Add go-github-com-cespare-xxhash-v2.

Message ID 20220311031849.12681-3-dom@dominicm.dev
State New
Headers show
Series gnu: Add nebula. | expand

Commit Message

Dominic Martinez March 11, 2022, 3:18 a.m. UTC
* gnu/packages/golang.scm (go-github-com-cespare-xxhash-v2): New variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

M March 11, 2022, 4:20 p.m. UTC | #1
Dominic Martinez schreef op do 10-03-2022 om 22:18 [-0500]:
> +(define-public go-github-com-cespare-xxhash-v2
> +  (package
> +    (name "go-github-com-cespare-xxhash-v2")

Isn't this just an updated version of 'go-github-com-cespare-xxhash'
from 2.1.0 to 2.1.2?

Greetings,
Maxime.
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1a71b54d20..afa99d718e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9797,3 +9797,26 @@  (define-public go-github-com-armon-go-radix
 @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.  The package only
 provides a single @code{Tree} implementation, optimized for sparse nodes.")
     (license license:expat)))
+
+(define-public go-github-com-cespare-xxhash-v2
+  (package
+    (name "go-github-com-cespare-xxhash-v2")
+    (version "2.1.2")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/cespare/xxhash")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "1f3wyr9msnnz94szrkmnfps9wm40s5sp9i4ak0kl92zcrkmpy29a"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "github.com/cespare/xxhash/v2"))
+    (home-page "https://github.com/cespare/xxhash")
+    (synopsis "Go implementation of the 64-bit xxHash algorithm (XXH64)")
+    (description
+      "@code{go-github-com-cespare-xxhash-v2} implements the 64-bit variant of
+xxHash (XXH64) as described at
+@url{http://cyan4973.github.io/xxHash/,http://cyan4973.github.io/xxHash/}.")
+    (license license:expat)))