vectorcode: install shell completions (#408885)

Changed files
+8
pkgs
by-name
ve
vectorcode
+8
pkgs/by-name/ve/vectorcode/package.nix
···
lib,
python3Packages,
fetchFromGitHub,
+
installShellFiles,
versionCheckHook,
lspSupport ? true,
···
];
};
+
postInstall = ''
+
$out/bin/vectorcode --print-completion=bash >vectorcode.bash
+
$out/bin/vectorcode --print-completion=zsh >vectorcode.zsh
+
installShellCompletion vectorcode.{bash,zsh}
+
'';
+
pythonImportsCheck = [ "vectorcode" ];
nativeCheckInputs =
[
+
installShellFiles
versionCheckHook
]
++ (with python3Packages; [