mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "ipfs-cluster";
|
|
version = "1.1.6";
|
|
|
|
vendorHash = "sha256-j8eMvlmTd0SIZD/8up7wCRZkSRxDBM0coVJIKydfXhg=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ipfs-cluster";
|
|
repo = "ipfs-cluster";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-d0lFvxYwJXV6RtI3mDjDwCrD5DUOYWq3aOZv7tNZnBE=";
|
|
};
|
|
|
|
checkFlags =
|
|
let
|
|
skippedTests = [
|
|
# Flaky test, sometimes fails with:
|
|
# --- FAIL: TestClustersPeerAddInUnhealthyCluster (7.58s)
|
|
# peer_manager_test.go:247: failed to dial: failed to dial QmSookyjcPhxchnHeo2jtssHqe8zdmhgEQiY61yUcWjWp5: all dials failed
|
|
# * [/ip4/127.0.0.1/tcp/46571] dial backoff
|
|
"TestClustersPeerAddInUnhealthyCluster"
|
|
];
|
|
in
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
__darwinAllowLocalNetworking = true; # required for tests
|
|
|
|
meta = {
|
|
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
|
homepage = "https://ipfscluster.io";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
Luflosi
|
|
jglukasik
|
|
];
|
|
};
|
|
})
|