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

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

57 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, seaweedfs
}:
2020-11-05 15:48:09 +00:00
buildGoModule rec {
pname = "seaweedfs";
2023-01-16 04:27:25 +00:00
version = "3.40";
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";
rev = version;
2023-01-16 04:27:25 +00:00
hash = "sha256-eU1RnLjPSAdtv+EqVnIpOLsDfBjx4WHFnHHkGZfr130=";
2020-11-05 15:48:09 +00:00
};
2023-01-16 04:27:25 +00:00
vendorHash = "sha256-tKq5QEd7f4q7q2EDNjNrlatQ7+lXF9ya9L0iTP/AXSo=";
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
'';
# There are no tests.
doCheck = false;
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;
};
}