2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2021-05-03 20:48:10 +00:00
|
|
|
, seaweedfs
|
|
|
|
}:
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "seaweedfs";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.59";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-11 07:51:40 +00:00
|
|
|
owner = "seaweedfs";
|
2020-11-06 00:33:48 +00:00
|
|
|
repo = "seaweedfs";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-askngehfEBJzJG0MVBA4WCRUPDELWlwJWcRPH6gTvzw=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-o+moq4arkQLQZcsW4Tahpv1MpGRHwMv+IL5E03W0U5c=";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
subPackages = [ "weed" ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
"-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=N/A"
|
|
|
|
];
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"elastic"
|
|
|
|
"gocdk"
|
|
|
|
"sqlite"
|
|
|
|
"ydb"
|
|
|
|
"tikv"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export GODEBUG=http2client=0
|
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Test all targets.
|
|
|
|
unset subPackages
|
|
|
|
|
|
|
|
# Remove unmaintained tests ahd those that require additional services.
|
|
|
|
rm -rf unmaintained test/s3
|
|
|
|
'';
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
passthru.tests.version = testers.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";
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ azahi cmacrae wozeparrot ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "weed";
|
2020-11-06 00:33:48 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|