deno: move to new installShellCompletion style

This commit is contained in:
06kellyjac 2020-11-09 21:36:07 +00:00
parent e50d10b4aa
commit 24ff3949b0

View file

@ -52,15 +52,14 @@ rustPlatform.buildRustPackage rec {
# Skipping until resolved
doCheck = false;
# TODO: Move to enhanced installShellCompletion when merged: PR #83630
postInstall = ''
# remove test plugin and test server
rm -rf $out/lib $out/bin/test_server
$out/bin/deno completions bash > deno.bash
$out/bin/deno completions fish > deno.fish
$out/bin/deno completions zsh > _deno
installShellCompletion deno.{bash,fish} --zsh _deno
installShellCompletion --cmd deno \
--bash <($out/bin/deno completions bash) \
--fish <($out/bin/deno completions fish) \
--zsh <($out/bin/deno completions zsh)
'';
passthru.updateScript = ./update/update.ts;