From 90913cb1757f0338b0d12b3a41939ad3005a1045 Mon Sep 17 00:00:00 2001 From: Florian Sanders Date: Sun, 8 Sep 2024 15:41:27 +0200 Subject: [PATCH 1/2] clever-tools: fix formatting --- pkgs/by-name/cl/clever-tools/package.nix | 31 +++++++++++++----------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/cl/clever-tools/package.nix b/pkgs/by-name/cl/clever-tools/package.nix index 228b3e608a6e..d55bf8a8bd22 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,16 @@ 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 - ''; + 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"; From b6667a4e3ef56bd108261644154b16dd75adafcb Mon Sep 17 00:00:00 2001 From: Florian Sanders Date: Sun, 8 Sep 2024 15:44:07 +0200 Subject: [PATCH 2/2] clever-tools: remove update notifications --- pkgs/by-name/cl/clever-tools/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/cl/clever-tools/package.nix b/pkgs/by-name/cl/clever-tools/package.nix index d55bf8a8bd22..01832874d51f 100644 --- a/pkgs/by-name/cl/clever-tools/package.nix +++ b/pkgs/by-name/cl/clever-tools/package.nix @@ -27,6 +27,8 @@ buildNpmPackage rec { nativeBuildInputs = [ installShellFiles ]; + makeWrapperArgs = [ "--set NO_UPDATE_NOTIFIER true" ]; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd clever \