clever-tools: remove update notifications (#340516)

This commit is contained in:
Aleksana 2024-09-09 10:29:15 +08:00 committed by GitHub
commit 4749b6f754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,10 @@
{ lib {
, buildNpmPackage lib,
, fetchFromGitHub buildNpmPackage,
, nodejs_18 fetchFromGitHub,
, installShellFiles nodejs_18,
, stdenv installShellFiles,
stdenv,
}: }:
buildNpmPackage rec { buildNpmPackage rec {
@ -26,14 +27,18 @@ buildNpmPackage rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' makeWrapperArgs = [ "--set NO_UPDATE_NOTIFIER true" ];
installShellCompletion --cmd clever \
--bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \ postInstall =
--zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever) lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
'' + '' installShellCompletion --cmd clever \
rm $out/bin/install-clever-completion --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \
rm $out/bin/uninstall-clever-completion --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; { meta = with lib; {
homepage = "https://github.com/CleverCloud/clever-tools"; homepage = "https://github.com/CleverCloud/clever-tools";