diff --git a/pkgs/by-name/cl/clever-tools/package.nix b/pkgs/by-name/cl/clever-tools/package.nix index 228b3e608a6e..01832874d51f 100644 --- a/pkgs/by-name/cl/clever-tools/package.nix +++ b/pkgs/by-name/cl/clever-tools/package.nix @@ -1,9 +1,10 @@ -{ lib -, buildNpmPackage -, fetchFromGitHub -, nodejs_18 -, installShellFiles -, stdenv +{ + lib, + buildNpmPackage, + fetchFromGitHub, + nodejs_18, + installShellFiles, + stdenv, }: buildNpmPackage rec { @@ -26,14 +27,18 @@ buildNpmPackage rec { nativeBuildInputs = [ installShellFiles ]; - postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - installShellCompletion --cmd clever \ - --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \ - --zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever) - '' + '' - rm $out/bin/install-clever-completion - rm $out/bin/uninstall-clever-completion - ''; + makeWrapperArgs = [ "--set NO_UPDATE_NOTIFIER true" ]; + + postInstall = + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd clever \ + --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \ + --zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever) + '' + + '' + rm $out/bin/install-clever-completion + rm $out/bin/uninstall-clever-completion + ''; meta = with lib; { homepage = "https://github.com/CleverCloud/clever-tools";