ipfs-cluster 0.9.0 -> 0.11.0 (#72820)
This commit is contained in:
parent
e73c93d8e6
commit
d4d76528cb
@ -1,35 +1,19 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx, gx-go }:
|
{ stdenv, buildGoModule, fetchFromGitHub, fetchgx, gx-go }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "ipfs-cluster";
|
pname = "ipfs-cluster";
|
||||||
version = "0.9.0";
|
version = "0.11.0";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
goPackagePath = "github.com/ipfs/ipfs-cluster";
|
modSha256 = "03bqwg9nqh7w6j887gzxr2mcn14jc8f07z896b3swg5wzaz1i6hs";
|
||||||
|
|
||||||
extraSrcPaths = [
|
|
||||||
(fetchgx {
|
|
||||||
inherit src;name = "${pname}-${version}";
|
|
||||||
sha256 = "1k7xcirvi07p5g9gr9jcx5h39wk7jxfsyjrn5yraa8xdqhn6b6nx";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ipfs";
|
owner = "ipfs";
|
||||||
repo = "ipfs-cluster";
|
repo = "ipfs-cluster";
|
||||||
inherit rev;
|
inherit rev;
|
||||||
sha256 = "1bxwcp0355f1ykjcidbxv218zp9d20nma7lnpn9xcjqc8vaq03kn";
|
sha256 = "0q5lanm2zdwwhdwv05fssb34y4y4dha3dq7x1iaabbf70lpqv6yx";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gx-go ];
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
# fetchgx stores packages by their ipfs hash
|
|
||||||
# this will rewrite github.com/ imports to gx/ipfs/
|
|
||||||
cd go/src/${goPackagePath}
|
|
||||||
gx-go rewrite
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
||||||
homepage = https://cluster.ipfs.io/;
|
homepage = https://cluster.ipfs.io/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user