summary refs log blame commit diff
path: root/pkgs/applications/networking/seaweedfs/default.nix
blob: cbabc6b10c72c21a586a1bfcc5c10f2d92ef58f5 (plain) (tree)
1
2
3
4
5
6
7
8
9


                 
             

           


                      
                   




                         
                                                                   

    
                                                                       


                           

                                                                   
 


                                                                       
                                                       
                         


                             
{ lib
, fetchFromGitHub
, buildGoModule
, testVersion
, seaweedfs
}:

buildGoModule rec {
  pname = "seaweedfs";
  version = "2.91";

  src = fetchFromGitHub {
    owner = "chrislusf";
    repo = "seaweedfs";
    rev = version;
    sha256 = "sha256-lpr+Z4INDUrMUArR9yU/US/d7rhQ3AcTS3bh/suOe4M=";
  };

  vendorSha256 = "sha256-T8JUc8UqdgBADWfQL1oY0lrwOOKTmbBiI7rtNiDvlGo=";

  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 ];
    mainProgram = "weed";
    license = licenses.asl20;
  };
}