Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ipfs-cluster 0.9.0 -> 0.11.0 (#72820)

authored by

Nathan Fish and committed by
Franz Pletz
d4d76528 e73c93d8

+5 -21
+5 -21
pkgs/applications/networking/ipfs-cluster/default.nix
··· 1 - { stdenv, buildGoPackage, fetchFromGitHub, fetchgx, gx-go }: 1 + { stdenv, buildGoModule, fetchFromGitHub, fetchgx, gx-go }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "ipfs-cluster"; 5 - version = "0.9.0"; 5 + version = "0.11.0"; 6 6 rev = "v${version}"; 7 7 8 - goPackagePath = "github.com/ipfs/ipfs-cluster"; 9 - 10 - extraSrcPaths = [ 11 - (fetchgx { 12 - inherit src;name = "${pname}-${version}"; 13 - sha256 = "1k7xcirvi07p5g9gr9jcx5h39wk7jxfsyjrn5yraa8xdqhn6b6nx"; 14 - }) 15 - ]; 8 + modSha256 = "03bqwg9nqh7w6j887gzxr2mcn14jc8f07z896b3swg5wzaz1i6hs"; 16 9 17 10 src = fetchFromGitHub { 18 11 owner = "ipfs"; 19 12 repo = "ipfs-cluster"; 20 13 inherit rev; 21 - sha256 = "1bxwcp0355f1ykjcidbxv218zp9d20nma7lnpn9xcjqc8vaq03kn"; 14 + sha256 = "0q5lanm2zdwwhdwv05fssb34y4y4dha3dq7x1iaabbf70lpqv6yx"; 22 15 }; 23 - 24 - nativeBuildInputs = [ gx-go ]; 25 - 26 - preBuild = '' 27 - # fetchgx stores packages by their ipfs hash 28 - # this will rewrite github.com/ imports to gx/ipfs/ 29 - cd go/src/${goPackagePath} 30 - gx-go rewrite 31 - ''; 32 16 33 17 meta = with stdenv.lib; { 34 18 description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";