2023-01-08 20:07:20 +02:00
|
|
|
{ inputs, ... }:
|
2022-10-19 23:23:11 +03:00
|
|
|
{
|
2023-01-08 20:07:20 +02:00
|
|
|
perSystem = { lib, pkgs, ... }: {
|
|
|
|
projectShells.ipfs-cluster = {
|
|
|
|
tools = [
|
|
|
|
pkgs.go_1_19
|
|
|
|
pkgs.gnumake
|
|
|
|
pkgs.gcc
|
|
|
|
];
|
|
|
|
env.GOPATH.eval = "$REPO_DATA_DIR/go";
|
2022-10-19 23:23:11 +03:00
|
|
|
};
|
2023-01-08 20:07:20 +02:00
|
|
|
packages.ipfs-cluster = with pkgs; buildGo119Module {
|
|
|
|
pname = "ipfs-cluster";
|
|
|
|
version = "1.0.2";
|
2022-10-19 23:23:11 +03:00
|
|
|
|
2023-01-08 20:07:20 +02:00
|
|
|
src = with inputs.nix-filter.lib; filter {
|
|
|
|
root = ./.;
|
|
|
|
include = [
|
|
|
|
"go.mod"
|
|
|
|
"go.sum"
|
|
|
|
(matchExt "go")
|
|
|
|
] ++ (map inDirectory [
|
|
|
|
"adder"
|
|
|
|
"allocator"
|
|
|
|
"api"
|
|
|
|
"cmd"
|
|
|
|
"cmdutils"
|
|
|
|
"config"
|
|
|
|
"consensus"
|
|
|
|
"datastore"
|
|
|
|
"docker"
|
|
|
|
"informer"
|
|
|
|
"ipfsconn"
|
|
|
|
"monitor"
|
|
|
|
"observations"
|
|
|
|
"pintracker"
|
|
|
|
"pstoremgr"
|
|
|
|
"rpcutil"
|
|
|
|
"sharness"
|
|
|
|
"state"
|
|
|
|
"test"
|
|
|
|
"version"
|
|
|
|
]);
|
|
|
|
};
|
2022-10-20 00:06:26 +03:00
|
|
|
|
2023-12-02 20:32:42 +02:00
|
|
|
vendorHash = "sha256-EpZQ7br+ChoAGIj0g6pdpWvFeOFOn2i+6YRBgtzoO+A=";
|
2022-10-19 23:23:11 +03:00
|
|
|
|
2023-01-08 20:07:20 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
|
|
|
|
homepage = "https://ipfscluster.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ Luflosi jglukasik ];
|
|
|
|
};
|
|
|
|
};
|
2022-10-19 23:23:11 +03:00
|
|
|
};
|
|
|
|
}
|