nixpkgs/pkgs/applications/networking/seaweedfs/default.nix
2022-01-11 15:46:41 +00: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-TYVBfjwaoEBKJmIHdwvj/5g4jYmnmJPE1mCL/yET1GQ=";
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;
};
}