mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
clever-tools: remove update notifications (#340516)
This commit is contained in:
commit
4749b6f754
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user