summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-02-20 12:24:12 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-26 16:50:13 +0100
commit74944fc2a949fc4d76b8ad35c3bd8bc3b382671f (patch)
treeddd4a579f02914626a5b4a31710128dcdab43274 /gnu
parent8d340bab355bff85baceaabe028dc4e017666f69 (diff)
gnu: Add go-github-com-ipfs-go-merkledag.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-merkledag): New variable. Change-Id: I131a1571f15cb9a7d1bb40f9f15eb91d25434593
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ipfs.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 89fc345f4ce..09e9e466659 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -933,6 +933,53 @@ order to be a part of the @acronym{IPLD, InterPlanetary Linked Data} merkle-fore
and @code{go-ipld-format} legacy interface.")
(license (list license:expat license:asl2.0))))
+(define-public go-github-com-ipfs-go-merkledag
+ (package
+ (name "go-github-com-ipfs-go-merkledag")
+ (version "0.11.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ipfs/go-merkledag")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0g1hrk2iw7gvk5qyv5avcc2idkc13w8agz6d7390bwjk18bdd5gr"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/ipfs/go-merkledag"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Tests requireing not packaged "github.com/ipfs/go-bitswap".
+ (add-before 'check 'remove-failing-test-files
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file "merkledag_test.go")))))))
+ (propagated-inputs
+ (list go-github-com-gogo-protobuf
+ go-github-com-ipfs-go-block-format
+ go-github-com-ipfs-go-blockservice
+ go-github-com-ipfs-go-cid
+ go-github-com-ipfs-go-datastore
+ go-github-com-ipfs-go-ipfs-blockstore
+ go-github-com-ipfs-go-ipfs-exchange-offline
+ go-github-com-ipfs-go-ipfs-util
+ go-github-com-ipfs-go-ipld-format
+ go-github-com-ipfs-go-ipld-legacy
+ go-github-com-ipfs-go-log-v2
+ go-github-com-ipld-go-codec-dagpb
+ go-github-com-ipld-go-ipld-prime
+ go-github-com-multiformats-go-multihash))
+ (home-page "https://github.com/ipfs/go-merkledag")
+ (synopsis "IPFs merkledag service implementation")
+ (description
+ "Package merkledag implements the IPFS Merkle @acronym{Directed Acyclic
+Graphs, DAG} data structures as specified in
+@url{https://docs.ipfs.tech/concepts/merkle-dag}.")
+ (license license:expat)))
+
(define-public go-github-com-ipfs-go-metrics-prometheus
(package
(name "go-github-com-ipfs-go-metrics-prometheus")