aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-08-27 00:31:44 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-08-27 00:33:34 +0100
commit3ab2aa3fe50b53cf28b07f1b239212e291cc1b97 (patch)
tree9e70343de1a4fd2cc14dedf21dc397c9af4f77ee
parenteea2801caa90bf111d3d34b654bac633b143b7ea (diff)
downloadguix-3ab2aa3fe50b53cf28b07f1b239212e291cc1b97.tar
guix-3ab2aa3fe50b53cf28b07f1b239212e291cc1b97.tar.gz
gnu: kubo: Unbandle more inputs.
* gnu/packages/ipfs.scm (kubo): Unbandle more inputs. [arguments] <#:phases>: Add 'copy-input-to-vendor-directory phase. [inputs]: Add go-github-com-libp2p-go-cidranger, go-github-com-libp2p-go-libp2p-asn-util, go-github-com-libp2p-go-reuseport, and go-github-com-libp2p-go-yamux-v4. Change-Id: I55c7c9cfed58f20a435fbc0a5905a2834fe67675
-rw-r--r--gnu/packages/ipfs.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 1a7a126ae3..d9866a8d9a 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -864,11 +864,15 @@ types.")
"vendor/github.com/klauspost"
"vendor/github.com/koron"
"vendor/github.com/libp2p/go-buffer-pool"
+ "vendor/github.com/libp2p/go-cidranger"
"vendor/github.com/libp2p/go-flow-metrics"
+ "vendor/github.com/libp2p/go-libp2p-asn-util"
"vendor/github.com/libp2p/go-msgio"
"vendor/github.com/libp2p/go-nat"
"vendor/github.com/libp2p/go-netroute"
+ "vendor/github.com/libp2p/go-reuseport"
"vendor/github.com/libp2p/go-socket-activation"
+ "vendor/github.com/libp2p/go-yamux"
"vendor/github.com/mattn"
"vendor/github.com/mgutz"
"vendor/github.com/miekg"
@@ -902,6 +906,26 @@ types.")
#:import-path "github.com/ipfs/kubo/cmd/ipfs"
#:phases
#~(modify-phases %standard-phases
+ ;; FIXME: src/github.com/libp2p/go-libp2p-asn-util/asn.go:12:12:
+ ;; pattern sorted-network-list.bin: cannot embed irregular file
+ ;; sorted-network-list.bin
+ ;;
+ ;; This happens due to Golang can't determine the valid directory of
+ ;; the module which is sourced during setup environment phase, but
+ ;; easy resolved after coping to expected directory "vendor" within
+ ;; the current package, see details in Golang source:
+ ;;
+ ;; - URL: <https://github.com/golang/go/blob/>
+ ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+ ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+ (add-before 'build 'copy-input-to-vendor-directory
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" unpack-path)
+ (copy-recursively
+ (string-append
+ #$(this-package-input "go-github-com-libp2p-go-libp2p-asn-util")
+ "/src/github.com")
+ "vendor/github.com"))))
;; https://github.com/ipfs/kubo/blob/master/docs/command-completion.md
(add-after 'install 'install-bashcompletion
(lambda _
@@ -1031,9 +1055,13 @@ types.")
go-github-com-ipfs-go-verifcid ; github.com/ipfs/go-blockservice
go-github-com-klauspost-compress ; github.com/libp2p/go-libp2p
go-github-com-libp2p-go-buffer-pool ; github.com/libp2p/go-libp2p
+ go-github-com-libp2p-go-cidranger ; github.com/libp2p/go-libp2p-kbucket
go-github-com-libp2p-go-flow-metrics ; github.com/libp2p/go-libp2p
+ go-github-com-libp2p-go-libp2p-asn-util ; github.com/libp2p/go-libp2p-kbucket
go-github-com-libp2p-go-msgio ; github.com/libp2p/go-libp2p-kad-dht
go-github-com-libp2p-go-nat ; github.com/libp2p/go-libp2p
+ go-github-com-libp2p-go-reuseport ; github.com/libp2p/go-libp2p
+ go-github-com-libp2p-go-yamux-v4 ; github.com/libp2p/go-libp2p
go-github-com-multiformats-go-multiaddr-fmt ; github.com/libp2p/go-libp2p
go-github-com-multiformats-go-multistream ; github.com/libp2p/go-libp2p
go-github-com-prometheus-statsd-exporter ; contrib.go.opencensus.io/exporter/prometheus