mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
40 lines
892 B
Nix
40 lines
892 B
Nix
{ lib
|
|
, stdenv
|
|
, darwin
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "aichat";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigoden";
|
|
repo = "aichat";
|
|
rev = "v${version}";
|
|
hash = "sha256-muRUBBmhXtIbKvMzBISjoHFSOtYci6x9nQI/bUiEHrs=";
|
|
};
|
|
|
|
cargoHash = "sha256-RKyZOfjweSE83hAjBIve38CT9R2DomwW3qA8ezw6dCI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Use GPT-4(V), Gemini, LocalAI, Ollama and other LLMs in the terminal";
|
|
homepage = "https://github.com/sigoden/aichat";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mwdomino ];
|
|
mainProgram = "aichat";
|
|
};
|
|
}
|