ipfs-cluster: init at 0.5.0

+40
+39
pkgs/applications/networking/ipfs-cluster/default.nix
··· 1 + { stdenv, buildGoPackage, fetchFromGitHub, fetchgx, gx-go }: 2 + 3 + buildGoPackage rec { 4 + name = "ipfs-cluster-${version}"; 5 + version = "0.5.0"; 6 + rev = "v${version}"; 7 + 8 + goPackagePath = "github.com/ipfs/ipfs-cluster"; 9 + 10 + extraSrcPaths = [ 11 + (fetchgx { 12 + inherit name src; 13 + sha256 = "0jwz3kd07i5fs0sxds80j8d338skhgxgxra377qxsk0cr2hhj2vm"; 14 + }) 15 + ]; 16 + 17 + src = fetchFromGitHub { 18 + owner = "ipfs"; 19 + repo = "ipfs-cluster"; 20 + inherit rev; 21 + sha256 = "132whjyplcifq8747hcdrgbc0amhp618dg049jq5nyslcxfgdypm"; 22 + }; 23 + 24 + preBuild = '' 25 + # fetchgx stores packages by their ipfs hash 26 + # this will rewrite github.com/ imports to gx/ipfs/ 27 + cd go/src/${goPackagePath} 28 + ${gx-go}/bin/gx-go rewrite 29 + ''; 30 + 31 + meta = with stdenv.lib; { 32 + description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons"; 33 + homepage = https://cluster.ipfs.io/; 34 + license = licenses.mit; 35 + platforms = platforms.unix; 36 + maintainers = with maintainers; [ jglukasik ]; 37 + }; 38 + } 39 +
+1
pkgs/top-level/all-packages.nix
··· 3307 3307 3308 3308 ipfs = callPackage ../applications/networking/ipfs { }; 3309 3309 ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { }; 3310 + ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { }; 3310 3311 3311 3312 ipget = callPackage ../applications/networking/ipget { 3312 3313 buildGoPackage = buildGo110Package;