2021-04-16 16:49:23 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2021-05-06 09:08:08 +01:00
|
|
|
, testVersion
|
2021-04-16 16:49:23 +01:00
|
|
|
, seaweedfs
|
|
|
|
}:
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "seaweedfs";
|
2021-08-22 14:45:32 +01:00
|
|
|
version = "2.63";
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrislusf";
|
|
|
|
repo = "seaweedfs";
|
|
|
|
rev = version;
|
2021-08-22 14:45:32 +01:00
|
|
|
sha256 = "sha256-sC7BUbI4BcNp7XqNtgxHuzvksyVFP+gXHxldQPy/7UU=";
|
2020-11-05 15:48:09 +00:00
|
|
|
};
|
|
|
|
|
2021-08-22 14:45:32 +01:00
|
|
|
vendorSha256 = "sha256-PEMc2NUiGKaolVGwviNRvtpVyhypWsJlNWZ0ysjy+YE=";
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
subPackages = [ "weed" ];
|
|
|
|
|
2021-05-06 09:08:08 +01:00
|
|
|
passthru.tests.version =
|
|
|
|
testVersion { package = seaweedfs; command = "weed version"; };
|
2021-04-16 16:49:23 +01:00
|
|
|
|
2020-11-05 15:48:09 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and highly scalable distributed file system";
|
|
|
|
homepage = "https://github.com/chrislusf/seaweedfs";
|
2021-06-04 17:51:46 +01:00
|
|
|
maintainers = with maintainers; [ cmacrae raboof ];
|
2020-11-05 15:48:09 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|