From 21cdff528339ee4129994c5cf255cb6a556c588e Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Tue, 26 Mar 2024 21:58:11 +0100 Subject: [PATCH] steampipe: disable telemetry and update check by default --- pkgs/by-name/st/steampipe/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/st/steampipe/package.nix b/pkgs/by-name/st/steampipe/package.nix index 423fbb25b7a3..beb2b0ddf654 100644 --- a/pkgs/by-name/st/steampipe/package.nix +++ b/pkgs/by-name/st/steampipe/package.nix @@ -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) \