3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/caddy/default.nix

37 lines
915 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-06-05 09:43:36 +01:00
buildGoModule rec {
pname = "caddy";
2020-03-14 18:04:13 +00:00
version = "1.0.5";
2016-06-05 09:43:36 +01:00
2019-09-23 04:22:22 +01:00
goPackagePath = "github.com/caddyserver/caddy";
2016-06-05 09:43:36 +01:00
subPackages = [ "caddy" ];
2016-08-21 16:08:33 +01:00
src = fetchFromGitHub {
2019-09-23 04:22:22 +01:00
owner = "caddyserver";
repo = pname;
2016-09-21 17:52:17 +01:00
rev = "v${version}";
2020-03-14 18:04:13 +00:00
sha256 = "0jrhwmr6gggppskg5h450wybzkv17iq69dgw36hd1dp56q002i7g";
2016-06-05 09:43:36 +01:00
};
2020-03-14 18:04:13 +00:00
modSha256 = "1gc0xvsihr4zp7hkrdfrplvzkaphz1y4q53rgwn2jhd8s98l57an";
2016-06-05 09:43:36 +01: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-09-21 17:52:17 +01:00
meta = with stdenv.lib; {
2019-12-02 14:18:23 +00:00
homepage = "https://caddyserver.com";
2016-09-21 17:52:17 +01:00
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
license = licenses.asl20;
2019-12-02 14:18:23 +00:00
maintainers = with maintainers; [ rushmorem fpletz zimbatm filalex77 ];
2016-09-21 17:52:17 +01:00
};
2016-06-05 09:43:36 +01:00
}