From c6b1ce47b673a35c140e7eec8b7409c645443a6f Mon Sep 17 00:00:00 2001 From: Stefano Mazzucco Date: Fri, 7 Feb 2020 20:52:05 +0000 Subject: [PATCH] aws-sam-cli: disable telemetry Since v0.19.0 aws-sam-cli sends telemetry data to AWS[1]. To protect the users' privacy, we opt-out by default. [1] https://github.com/awslabs/aws-sam-cli/issues/1272 --- pkgs/development/tools/aws-sam-cli/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix index 39a68622056..916ff325b43 100644 --- a/pkgs/development/tools/aws-sam-cli/default.nix +++ b/pkgs/development/tools/aws-sam-cli/default.nix @@ -83,6 +83,11 @@ buildPythonApplication rec { tomlkit ]; + postFixup = '' + # Disable telemetry: https://github.com/awslabs/aws-sam-cli/issues/1272 + wrapProgram $out/bin/sam --set SAM_CLI_TELEMETRY 0 + ''; + # fix over-restrictive version bounds postPatch = '' substituteInPlace requirements/base.txt \