summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/aws-sam-cli
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2020-02-12 16:56:47 +0100
committerGitHub <noreply@github.com>2020-02-12 16:56:47 +0100
commitc6ec7b613ad6c2b5c149afa548446aecc71f263d (patch)
tree76a7279448b75676b750ce25fb6ce87d7c925118 /pkgs/development/tools/aws-sam-cli
parent3e7ce1e07d7cd50b2cc1ceb1a71ec4fbc5628d3b (diff)
parent2b4794f941ceb73cad80758fc8f34fa8281aa511 (diff)
Merge pull request #79478 from stefano-m/aws-sam-cli-no-telemetry
aws-sam-cli: disable telemetry
Diffstat (limited to 'pkgs/development/tools/aws-sam-cli')
-rw-r--r--pkgs/development/tools/aws-sam-cli/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix
index 9b3b39ba1069..936aebf22e5d 100644
--- a/pkgs/development/tools/aws-sam-cli/default.nix
+++ b/pkgs/development/tools/aws-sam-cli/default.nix
@@ -1,5 +1,6 @@
{ lib
, python
+, enableTelemetry ? false
}:
let
@@ -56,6 +57,11 @@ buildPythonApplication rec {
tomlkit
];
+ postFixup = if enableTelemetry then "echo aws-sam-cli TELEMETRY IS ENABLED" else ''
+ # 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 \