1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

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
, 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";