10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-Hqrwko/HZTHlKzXuqm835fpygOO9wsQx1XkJddH/EUc=";
21 cargoHash = "sha256-4CcwzaPIO+upISizpXHGYfKh9YD4foJAqx7TGgLCHZI=";
28 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
29 darwin.apple_sdk.frameworks.AppKit
30 darwin.apple_sdk.frameworks.CoreFoundation
31 darwin.apple_sdk.frameworks.Security
35 installShellCompletion ./scripts/completions/aichat.{bash,fish,zsh}
39 description = "Use GPT-4(V), Gemini, LocalAI, Ollama and other LLMs in the terminal";
40 homepage = "https://github.com/sigoden/aichat";
41 license = licenses.mit;
42 maintainers = with maintainers; [ mwdomino ];
43 mainProgram = "aichat";