diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-06-23 12:36:23 -0500 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2019-10-26 15:57:07 +0200 |
commit | b53710e19ebc2900d295e9631ceb59bb96838d1e (patch) | |
tree | 3c3ba1aa56539b43da6de519975554fa34c1b034 /pkgs/servers/caddy | |
parent | a8fccf217285845638b5f26c99b78e6a0e025edb (diff) |
caddy: disable telemetry
Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
Diffstat (limited to 'pkgs/servers/caddy')
-rw-r--r-- | pkgs/servers/caddy/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/servers/caddy/default.nix b/pkgs/servers/caddy/default.nix index 56fa95391cc7..bb1f4ac85386 100644 --- a/pkgs/servers/caddy/default.nix +++ b/pkgs/servers/caddy/default.nix @@ -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; { |