2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2021-05-20 23:08:51 +00:00
|
|
|
, testVersion
|
2021-05-03 20:48:10 +00:00
|
|
|
, seaweedfs
|
|
|
|
}:
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "seaweedfs";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "2.56";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrislusf";
|
|
|
|
repo = "seaweedfs";
|
|
|
|
rev = version;
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "1y9abk2i0qk5c00dnw8wvasy7dmmy6az8d1cf9bq0dwh8g8kylbn";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
vendorSha256 = "015qvd0h786z1iwv81i107z92mqhzldp1hkcsp75wzf4j7nmzxvf";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
subPackages = [ "weed" ];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
passthru.tests.version =
|
|
|
|
testVersion { package = seaweedfs; command = "weed version"; };
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and highly scalable distributed file system";
|
|
|
|
homepage = "https://github.com/chrislusf/seaweedfs";
|
2021-06-06 07:54:09 +00:00
|
|
|
maintainers = with maintainers; [ cmacrae raboof ];
|
2020-11-06 00:33:48 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|