forked from mirrors/nixpkgs
Merge pull request #63697 from marsam/caddy-disable-telemetry
caddy: disable telemetry
This commit is contained in:
commit
ad6f4005b8
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue