nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 installShellFiles, 7 versionCheckHook, 8 nix-update-script, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "aichat"; 13 version = "0.30.0"; 14 15 src = fetchFromGitHub { 16 owner = "sigoden"; 17 repo = "aichat"; 18 tag = "v${version}"; 19 hash = "sha256-xgTGii1xGtCc1OLoC53HAtQ+KVZNO1plB2GVtVBBlqs="; 20 }; 21 22 cargoHash = "sha256-u2JBPm03qvuLEUOEt4YL9O750V2QPgZbxvsvlTQe2nk="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 installShellFiles 27 ]; 28 29 postInstall = '' 30 installShellCompletion ./scripts/completions/aichat.{bash,fish,zsh} 31 ''; 32 33 nativeInstallCheckInputs = [ 34 versionCheckHook 35 ]; 36 doInstallCheck = true; 37 38 passthru = { 39 updateScript = nix-update-script { }; 40 }; 41 42 meta = { 43 description = "Use GPT-4(V), Gemini, LocalAI, Ollama and other LLMs in the terminal"; 44 homepage = "https://github.com/sigoden/aichat"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ mwdomino ]; 47 mainProgram = "aichat"; 48 }; 49}