From 517cde4cff6e1df04596ef592ac2dbdb9bef469c Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Mon, 19 May 2025 19:43:17 -0300 Subject: [PATCH] vectorcode: install shell completions --- pkgs/by-name/ve/vectorcode/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ve/vectorcode/package.nix b/pkgs/by-name/ve/vectorcode/package.nix index 7c86b426cec2..2a422966a661 100644 --- a/pkgs/by-name/ve/vectorcode/package.nix +++ b/pkgs/by-name/ve/vectorcode/package.nix @@ -2,6 +2,7 @@ lib, python3Packages, fetchFromGitHub, + installShellFiles, versionCheckHook, lspSupport ? true, @@ -63,10 +64,17 @@ python3Packages.buildPythonApplication rec { ]; }; + 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; [