2020-03-27 00:33:21 -07:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2019-06-18 16:36:54 -07:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "caddy";
|
2020-03-14 11:04:13 -07:00
|
|
|
version = "1.0.5";
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2016-08-14 10:55:52 -07:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 08:08:33 -07:00
|
|
|
src = fetchFromGitHub {
|
2019-09-22 20:22:22 -07:00
|
|
|
owner = "caddyserver";
|
|
|
|
repo = pname;
|
2016-09-21 09:52:17 -07:00
|
|
|
rev = "v${version}";
|
2020-03-14 11:04:13 -07:00
|
|
|
sha256 = "0jrhwmr6gggppskg5h450wybzkv17iq69dgw36hd1dp56q002i7g";
|
2016-06-05 01:43:36 -07:00
|
|
|
};
|
2020-04-30 18:59:00 -07:00
|
|
|
vendorSha256 = "09vnci9pp8zp7bvn8zj68wslz2nc54nhcd0ll31sqfjbp00215mj";
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-06-23 10:36:23 -07:00
|
|
|
preBuild = ''
|
|
|
|
cat << EOF > caddy/main.go
|
|
|
|
package main
|
|
|
|
import "github.com/caddyserver/caddy/caddy/caddymain"
|
|
|
|
func main() {
|
|
|
|
caddymain.EnableTelemetry = false
|
|
|
|
caddymain.Run()
|
|
|
|
}
|
|
|
|
EOF
|
2016-08-14 10:55:52 -07:00
|
|
|
'';
|
|
|
|
|
2016-09-21 09:52:17 -07:00
|
|
|
meta = with stdenv.lib; {
|
2019-12-02 06:18:23 -08:00
|
|
|
homepage = "https://caddyserver.com";
|
2016-09-21 09:52:17 -07:00
|
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
|
|
license = licenses.asl20;
|
2019-12-02 06:18:23 -08:00
|
|
|
maintainers = with maintainers; [ rushmorem fpletz zimbatm filalex77 ];
|
2016-09-21 09:52:17 -07:00
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|