nixpkgs/pkgs/applications/networking/seaweedfs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, seaweedfs
}:
2020-11-05 15:48:09 +00:00
buildGoModule rec {
pname = "seaweedfs";
2023-07-24 15:57:52 +00:00
version = "3.55";
2020-11-05 15:48:09 +00:00
src = fetchFromGitHub {
2022-08-22 14:51:37 +00:00
owner = "seaweedfs";
2020-11-05 15:48:09 +00:00
repo = "seaweedfs";
2023-05-26 01:17:42 +00:00
rev = version;
2023-07-24 15:57:52 +00:00
hash = "sha256-qAyvGisj6GOjyRmqpTsxX/Zy8bx6+cAtmEId5us70+k=";
2020-11-05 15:48:09 +00:00
};
2023-07-24 15:57:52 +00:00
vendorHash = "sha256-F6Fqv5tUsty/uGwBnKM4r671Gh2T1+9Z2LRGAMF+M2g=";
2020-11-05 15:48:09 +00:00
subPackages = [ "weed" ];
2022-10-22 11:22:15 +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-01 09:55:07 +00:00
preCheck = ''
# Test all targets.
unset subPackages
# Remove unmaintained tests ahd those that require additional services.
rm -rf unmaintained test/s3
'';
2022-10-22 11:22:15 +00:00
passthru.tests.version = testers.testVersion {
package = seaweedfs;
command = "weed version";
};
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";
2022-08-22 14:51:37 +00:00
maintainers = with maintainers; [ azahi cmacrae wozeparrot ];
mainProgram = "weed";
2020-11-05 15:48:09 +00:00
license = licenses.asl20;
};
}