guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/09: gnu: Add go-github-com-multiformats-go-multibase.


From: guix-commits
Subject: 04/09: gnu: Add go-github-com-multiformats-go-multibase.
Date: Sat, 6 Apr 2024 18:04:53 -0400 (EDT)

sharlatan pushed a commit to branch master
in repository guix.

commit b315f4d5753374ebfc8e99f913bfd65fbacf3ba5
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Sat Apr 6 11:40:42 2024 +0300

    gnu: Add go-github-com-multiformats-go-multibase.
    
    * gnu/packages/golang-xyz.scm (go-github-com-multiformats-go-multibase): New
      variable.
    
    Change-Id: If634f1497d628a23f2c2ebb1e8e9f6526faa3f3f
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/golang-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 42 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9b3c387fd5..dfd4190a7d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -62,7 +62,8 @@
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-compression)
   #:use-module (gnu packages golang-crypto)
-  #:use-module (gnu packages linux))
+  #:use-module (gnu packages linux)
+  #:use-module (gnu packages specifications))
 
 ;;; Commentary:
 ;;;
@@ -2170,6 +2171,46 @@ command line flags, config files, and default struct 
values.")
      "Optimized codec for @code{[]byte} <=> @code{base36} string conversion.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public go-github-com-multiformats-go-multibase
+  (package
+    (name "go-github-com-multiformats-go-multibase")
+    (version "0.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/multiformats/go-multibase";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "11za5yqiq9bkxfg0lvjzgr5d0kawkf2szxj90by9vfnalihqgkrr"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/multiformats/go-multibase"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'copy-multibase-specs
+            (lambda* (#:key import-path #:allow-other-keys)
+              (copy-recursively
+               (string-append #$(this-package-native-input
+                                 "specification-multibase")
+                              "/share/multibase/")
+               (string-append "src/" import-path "/spec")))))))
+    (native-inputs
+     (list specification-multibase))
+    (propagated-inputs
+     (list go-github-com-mr-tron-base58
+           go-github-com-multiformats-go-base32
+           go-github-com-multiformats-go-base36))
+    (home-page "https://github.com/multiformats/go-multibase";)
+    (synopsis "Implementation of multibase parser in Go")
+    (description
+     "Implementation of @url{https://github.com/multiformats/multibase,
+multibase} (self identifying base encodings) in Go.")
+    (license license:expat)))
+
 (define-public go-github-com-multiformats-go-varint
   (package
     (name "go-github-com-multiformats-go-varint")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]