diff options
Diffstat (limited to 'pkgs/by-name/cl/clever-tools/package.nix')
-rw-r--r-- | pkgs/by-name/cl/clever-tools/package.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/by-name/cl/clever-tools/package.nix b/pkgs/by-name/cl/clever-tools/package.nix index f70e84523d44a..2a0a368d28f74 100644 --- a/pkgs/by-name/cl/clever-tools/package.nix +++ b/pkgs/by-name/cl/clever-tools/package.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , nodejs_18 , installShellFiles +, stdenv }: buildNpmPackage rec { @@ -25,10 +26,11 @@ buildNpmPackage rec { nativeBuildInputs = [ installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd clever \ - --bash <($out/bin/clever --bash-autocomplete-script) \ - --zsh <($out/bin/clever --zsh-autocomplete-script) + --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 ''; |