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

33 lines
743 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, testVersion
, seaweedfs
}:
buildGoModule rec {
pname = "seaweedfs";
version = "2.71";
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
sha256 = "sha256-d4Vl+HixZy7fJ8YU1fy3b2B+F/76mm0NQmFC/PDl4SY=";
};
vendorSha256 = "sha256-oxrOjiRxgcJ5yzQYQvLXFPHlOHMB88FThw4OCVxFOwQ=";
subPackages = [ "weed" ];
passthru.tests.version =
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; [ cmacrae raboof ];
license = licenses.asl20;
};
}