mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #79478 from stefano-m/aws-sam-cli-no-telemetry
aws-sam-cli: disable telemetry
This commit is contained in:
commit
c6ec7b613a
1 changed files with 6 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue