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";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.73";
|
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;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-5CgkpL0nBLKojKPSfkYxh8F5Ub+yWhfmOsKC5qQ4QaE=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-rj5BbbT3/IBtPZ1MqbwC9TNp+N9ec90Anear2AWBZZU=";
|
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;
|
|
|
|
};
|
|
|
|
}
|