Merge pull request #45818 from jglukasik/master
ipfs-cluster: init at v0.5.0
This commit is contained in:
commit
6a7cd78884
@ -1872,6 +1872,11 @@
|
|||||||
github = "jgillich";
|
github = "jgillich";
|
||||||
name = "Jakob Gillich";
|
name = "Jakob Gillich";
|
||||||
};
|
};
|
||||||
|
jglukasik = {
|
||||||
|
email = "joseph@jgl.me";
|
||||||
|
github = "jglukasik";
|
||||||
|
name = "Joseph Lukasik";
|
||||||
|
};
|
||||||
jhhuh = {
|
jhhuh = {
|
||||||
email = "jhhuh.note@gmail.com";
|
email = "jhhuh.note@gmail.com";
|
||||||
github = "jhhuh";
|
github = "jhhuh";
|
||||||
|
41
pkgs/applications/networking/ipfs-cluster/default.nix
Normal file
41
pkgs/applications/networking/ipfs-cluster/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx, gx-go }:
|
||||||
|
|
||||||
|
buildGoPackage rec {
|
||||||
|
name = "ipfs-cluster-${version}";
|
||||||
|
version = "0.5.0";
|
||||||
|
rev = "v${version}";
|
||||||
|
|
||||||
|
goPackagePath = "github.com/ipfs/ipfs-cluster";
|
||||||
|
|
||||||
|
extraSrcPaths = [
|
||||||
|
(fetchgx {
|
||||||
|
inherit name src;
|
||||||
|
sha256 = "0jwz3kd07i5fs0sxds80j8d338skhgxgxra377qxsk0cr2hhj2vm";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ipfs";
|
||||||
|
repo = "ipfs-cluster";
|
||||||
|
inherit rev;
|
||||||
|
sha256 = "132whjyplcifq8747hcdrgbc0amhp618dg049jq5nyslcxfgdypm";
|
||||||
|
};
|
||||||
|
|
||||||
|
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; {
|
||||||
|
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
||||||
|
homepage = https://cluster.ipfs.io/;
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ jglukasik ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3309,6 +3309,7 @@ with pkgs;
|
|||||||
|
|
||||||
ipfs = callPackage ../applications/networking/ipfs { };
|
ipfs = callPackage ../applications/networking/ipfs { };
|
||||||
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
|
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
|
||||||
|
ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { };
|
||||||
|
|
||||||
ipget = callPackage ../applications/networking/ipget {
|
ipget = callPackage ../applications/networking/ipget {
|
||||||
buildGoPackage = buildGo110Package;
|
buildGoPackage = buildGo110Package;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user