caddy: disable telemetry

Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
Mario Rodas 2019-06-23 12:36:23 -05:00 committed by Franz Pletz
parent a8fccf2172
commit b53710e19e
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

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