Merge pull request #63697 from marsam/caddy-disable-telemetry

caddy: disable telemetry
This commit is contained in:
Franz Pletz 2019-10-28 09:07:42 +00:00 committed by GitHub
commit ad6f4005b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,15 @@ buildGoModule rec {
}; };
modSha256 = "0np0mbs0mrn8scqa0dgvi7ya1707b3883prdaf1whsqrcr71ig8q"; modSha256 = "0np0mbs0mrn8scqa0dgvi7ya1707b3883prdaf1whsqrcr71ig8q";
buildFlagsArray = '' preBuild = ''
-ldflags= cat << EOF > caddy/main.go
-s -w -X github.com/caddyserver/caddy/caddy/caddymain.gitTag=v${version} package main
import "github.com/caddyserver/caddy/caddy/caddymain"
func main() {
caddymain.EnableTelemetry = false
caddymain.Run()
}
EOF
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {