diff options
Diffstat (limited to 'pkgs/tools/misc/aichat/default.nix')
-rw-r--r-- | pkgs/tools/misc/aichat/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/tools/misc/aichat/default.nix b/pkgs/tools/misc/aichat/default.nix index 975fb995bb87d..6aed087809871 100644 --- a/pkgs/tools/misc/aichat/default.nix +++ b/pkgs/tools/misc/aichat/default.nix @@ -4,23 +4,25 @@ , rustPlatform , fetchFromGitHub , pkg-config +, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "aichat"; - version = "0.18.0"; + version = "0.20.0"; src = fetchFromGitHub { owner = "sigoden"; repo = "aichat"; rev = "v${version}"; - hash = "sha256-V7WKzi9PKSek8DlF7QzBEaYn3a+BJzMtKEoi5yMGS/w="; + hash = "sha256-khi5B8nYNK7otWZEs5koCzQaYGZwmGxP3zrMYIt3Ds4="; }; - cargoHash = "sha256-sFRYu1sQ9PdjsBTgajMfvJqA32Q8HZCHs3h2wemb9oY="; + cargoHash = "sha256-IHGl+Lxa9ZKlyXp59mv72QIvC3hkXPFOUKPVYbN50W4="; nativeBuildInputs = [ pkg-config + installShellFiles ]; buildInputs = lib.optionals stdenv.isDarwin [ @@ -29,6 +31,10 @@ rustPlatform.buildRustPackage rec { darwin.apple_sdk.frameworks.Security ]; + postInstall = '' + installShellCompletion ./scripts/completions/aichat.{bash,fish,zsh} + ''; + meta = with lib; { description = "Use GPT-4(V), Gemini, LocalAI, Ollama and other LLMs in the terminal"; homepage = "https://github.com/sigoden/aichat"; |