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

                          
                        
                                                                   

    
                                                                       

                                                   
 
                    
                                         

                                                                                
                                                  
    
 
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
  pname = "caddy";
  version = "2.4.1";

  subPackages = [ "cmd/caddy" ];

  src = fetchFromGitHub {
    owner = "caddyserver";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-Wc7eNw5FZWoUT6IP84NhROC59bf4/RCw/gOWLuYI2dc=";
  };

  vendorSha256 = "sha256-ZOrhR03m+cs+mTQio3qEIf+1B0IP0i2+x+vcml5AMco=";

  passthru.tests = { inherit (nixosTests) caddy; };

  meta = with lib; {
    homepage = "https://caddyserver.com";
    description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
    license = licenses.asl20;
    maintainers = with maintainers; [ Br1ght0ne ];
  };
}