nixpkgs/pkgs/applications/networking/seaweedfs/default.nix
2022-09-13 09:35:28 +00:00

34 lines
766 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, seaweedfs
}:
buildGoModule rec {
pname = "seaweedfs";
version = "3.27";
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
sha256 = "sha256-kvKUgw6A4UHOuDmKuOv+XS/0XiOf2ENWxl2WmJ4cVTE=";
};
vendorSha256 = "sha256-sgLHRDdi9gkcSzeBaDCxtbvWSzjTshb2WbmMyRepUKA=";
subPackages = [ "weed" ];
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; [ cmacrae ];
mainProgram = "weed";
license = licenses.asl20;
};
}