2021-04-16 15:49:23 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2021-05-06 08:08:08 +00:00
|
|
|
, testVersion
|
2021-04-16 15:49:23 +00:00
|
|
|
, seaweedfs
|
|
|
|
}:
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "seaweedfs";
|
2022-01-11 15:46:41 +00:00
|
|
|
version = "2.85";
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrislusf";
|
|
|
|
repo = "seaweedfs";
|
|
|
|
rev = version;
|
2022-01-11 15:46:41 +00:00
|
|
|
sha256 = "sha256-MsPvda+VaqO3tXH26nVukNWcJ1n+/n5Qk7BMr/DAVUk=";
|
2020-11-05 15:48:09 +00:00
|
|
|
};
|
|
|
|
|
2022-01-11 15:46:41 +00:00
|
|
|
vendorSha256 = "sha256-TYVBfjwaoEBKJmIHdwvj/5g4jYmnmJPE1mCL/yET1GQ=";
|
2020-11-05 15:48:09 +00:00
|
|
|
|
|
|
|
subPackages = [ "weed" ];
|
|
|
|
|
2021-05-06 08:08:08 +00:00
|
|
|
passthru.tests.version =
|
|
|
|
testVersion { package = seaweedfs; command = "weed version"; };
|
2021-04-16 15:49:23 +00: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 16:51:46 +00:00
|
|
|
maintainers = with maintainers; [ cmacrae raboof ];
|
2020-11-05 15:48:09 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|