git.iko.soy/typeable/nixpkgs
on master help sign in
deno: move to new installShellCompletion style
commit24ff3949b01c0e2e7655ff7132964106930fc35a author06kellyjac <dev@j-k.io> dateMon 9 Nov 2020, 21:36 (6 years ago) parente50d10b
1 file changed+4−5
pkgs/development/web/deno/default.nix+4−5
pkgs/development/web/deno/default.nix+4−5
@@ -52,15 +52,14 @@ rustPlatform.buildRustPackage rec {
5252 # Skipping until resolved
5353 doCheck = false;
5454
55− # TODO: Move to enhanced installShellCompletion when merged: PR #83630
5655 postInstall = ''
5756 # remove test plugin and test server
5857 rm -rf $out/lib $out/bin/test_server
5958
60− $out/bin/deno completions bash > deno.bash
61− $out/bin/deno completions fish > deno.fish
62− $out/bin/deno completions zsh > _deno
63− installShellCompletion deno.{bash,fish} --zsh _deno
59+ installShellCompletion --cmd deno \
60+ --bash <($out/bin/deno completions bash) \
61+ --fish <($out/bin/deno completions fish) \
62+ --zsh <($out/bin/deno completions zsh)
6463 '';
6564
6665 passthru.updateScript = ./update/update.ts;