nixpkgs/pkgs/applications/networking/seaweedfs/default.nix
2022-02-01 17:20:04 +10:00

33 lines
743 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testVersion
, seaweedfs
}:
buildGoModule rec {
pname = "seaweedfs";
version = "2.85";
src = fetchFromGitHub {
owner = "chrislusf";
repo = "seaweedfs";
rev = version;
sha256 = "sha256-MsPvda+VaqO3tXH26nVukNWcJ1n+/n5Qk7BMr/DAVUk=";
};
vendorSha256 = "sha256-gK4uHLNcperpG2OVdk7XKCUWCC87cyDBf8qigj/z3jA=";
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;
};
}