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

33 lines
743 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, testVersion
, seaweedfs
}:
2020-11-05 15:48:09 +00:00
buildGoModule rec {
pname = "seaweedfs";
2021-10-29 00:21:13 +01:00
version = "2.71";
2020-11-05 15:48:09 +00:00
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
2021-10-29 00:21:13 +01:00
sha256 = "sha256-d4Vl+HixZy7fJ8YU1fy3b2B+F/76mm0NQmFC/PDl4SY=";
2020-11-05 15:48:09 +00:00
};
2021-10-29 00:21:13 +01:00
vendorSha256 = "sha256-oxrOjiRxgcJ5yzQYQvLXFPHlOHMB88FThw4OCVxFOwQ=";
2020-11-05 15:48:09 +00:00
subPackages = [ "weed" ];
passthru.tests.version =
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";
2021-06-04 17:51:46 +01:00
maintainers = with maintainers; [ cmacrae raboof ];
2020-11-05 15:48:09 +00:00
license = licenses.asl20;
};
}