depot/third_party/nixpkgs/pkgs/applications/networking/seaweedfs/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

56 lines
1 KiB
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, seaweedfs
}:
buildGoModule rec {
pname = "seaweedfs";
version = "3.32";
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
hash = "sha256-GMOLlkBfY3ShVojdRrmpMYgoea52kq4aXr/oZj5bJWo=";
};
vendorHash = "sha256-cEzPKx54rssyAytYenIcud3K0f7xuO8WzE8wdMqZipE=";
subPackages = [ "weed" ];
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";
};
meta = with lib; {
description = "Simple and highly scalable distributed file system";
homepage = "https://github.com/chrislusf/seaweedfs";
maintainers = with maintainers; [ azahi cmacrae ];
mainProgram = "weed";
license = licenses.asl20;
};
}