tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ipfs-cluster: init at 0.5.0
Joseph Lukasik
7 years ago
aeb360ca
94f71d80
+40
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
ipfs-cluster
default.nix
top-level
all-packages.nix
+39
pkgs/applications/networking/ipfs-cluster/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
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
3308
ipfs = callPackage ../applications/networking/ipfs { };
3309
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
0
3310
3311
ipget = callPackage ../applications/networking/ipget {
3312
buildGoPackage = buildGo110Package;
···
3307
3308
ipfs = callPackage ../applications/networking/ipfs { };
3309
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
3310
+
ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { };
3311
3312
ipget = callPackage ../applications/networking/ipget {
3313
buildGoPackage = buildGo110Package;