nixpkgs/pkgs/applications/networking/seaweedfs/default.nix
2021-06-29 23:54:53 -07:00

33 lines
745 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testVersion
, seaweedfs
}:
buildGoModule rec {
pname = "seaweedfs";
version = "2.56";
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
sha256 = "1y9abk2i0qk5c00dnw8wvasy7dmmy6az8d1cf9bq0dwh8g8kylbn";
};
vendorSha256 = "015qvd0h786z1iwv81i107z92mqhzldp1hkcsp75wzf4j7nmzxvf";
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;
};
}