steampipe: disable telemetry and update check by default

This commit is contained in:
Anthony Roussel 2024-03-26 21:58:11 +01:00
parent e13c74e0fa
commit 21cdff5283
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,7 @@
fetchFromGitHub,
installShellFiles,
lib,
makeWrapper,
nix-update-script,
steampipe,
testers,
@ -29,7 +30,10 @@ buildGoModule rec {
--replace-fail 'filepaths.SteampipeDir, _ = filehelpers.Tildefy("~/.steampipe")' 'filepaths.SteampipeDir = "~/.steampipe"';
'';
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
makeWrapper
];
ldflags = [
"-s"
@ -50,6 +54,10 @@ buildGoModule rec {
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
postInstall = ''
wrapProgram $out/bin/steampipe \
--set-default STEAMPIPE_UPDATE_CHECK false \
--set-default STEAMPIPE_TELEMETRY none
INSTALL_DIR=$(mktemp -d)
installShellCompletion --cmd steampipe \
--bash <($out/bin/steampipe --install-dir $INSTALL_DIR completion bash) \