2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, callPackage, buildGoModule, fetchFromGitHub }:
|
2019-12-03 13:19:38 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "caddy";
|
2020-04-03 08:43:25 +01:00
|
|
|
version = "2.0.0-rc.1";
|
2019-12-03 13:19:38 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/caddyserver/caddy";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/caddy" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caddyserver";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-03 08:43:25 +01:00
|
|
|
sha256 = "0ir394nmdrqvslghqky4d2py65ff77fqsp0nmxdlsdps49szwh7h";
|
2019-12-03 13:19:38 +00:00
|
|
|
};
|
2020-04-03 08:43:25 +01:00
|
|
|
modSha256 = "0sqnw81l73gssnpd4dsl3vd10584riq0417z4dvbhjnc8b3z4xwv";
|
2019-12-03 13:19:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://caddyserver.com";
|
|
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|