2022-02-16 19:53:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2018-08-30 22:06:50 +01:00
|
|
|
|
2019-11-05 22:32:32 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ipfs-cluster";
|
2022-02-16 19:53:57 +00:00
|
|
|
version = "0.14.5";
|
2018-08-30 22:06:50 +01:00
|
|
|
|
2022-02-16 19:53:57 +00:00
|
|
|
vendorSha256 = "sha256-ykUjq7Svp3+kUNnFkwsBlC+C4nws6Yvu3bk2Wb4c8vY=";
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2018-08-30 22:06:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "ipfs-cluster";
|
2021-01-24 14:21:57 +00:00
|
|
|
rev = "v${version}";
|
2022-02-16 19:53:57 +00:00
|
|
|
sha256 = "sha256-Xb7QbBmCJKgokxvdbtWxtnNIS/iUsYFLlRzgfoABAq8=";
|
2018-08-30 22:06:50 +01:00
|
|
|
};
|
|
|
|
|
2022-02-16 19:53:57 +00:00
|
|
|
# Remove patch when updating to >0.14.5
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "remove-distribution-test.patch";
|
|
|
|
url = "https://github.com/ipfs/ipfs-cluster/pull/1589/commits/49825d1df76f848806f1d76abce5e279221cc8c5.patch";
|
|
|
|
sha256 = "sha256-mM2rc4ai/qhbvxnoRw5jO7BTRlD2/Tp037EuqqS49DE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-30 22:06:50 +01:00
|
|
|
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://cluster.ipfs.io/";
|
2018-08-30 22:06:50 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2021-07-29 13:07:43 +01:00
|
|
|
maintainers = with maintainers; [ Luflosi jglukasik ];
|
2018-08-30 22:06:50 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|