nixpkgs/pkgs/tools/misc/aichat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
892 B
Nix
Raw Normal View History

2023-04-03 02:23:05 +00:00
{ lib
, stdenv
, darwin
, rustPlatform
, fetchFromGitHub
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "aichat";
2023-12-31 03:44:17 +00:00
version = "0.12.0";
2023-04-03 02:23:05 +00:00
src = fetchFromGitHub {
owner = "sigoden";
repo = "aichat";
rev = "v${version}";
2023-12-31 03:44:17 +00:00
hash = "sha256-GWT3NYoEQ6fNLeTdBybJyQ0aqYbtaRzK1A3grUL+4jM=";
2023-04-03 02:23:05 +00:00
};
2023-12-31 03:44:17 +00:00
cargoHash = "sha256-Aah6OcQW2AW+70azLEyS4xnB3AFedvA5MZP+u8RrB9s=";
2023-04-03 02:23:05 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.isDarwin [
2024-01-03 14:01:55 +00:00
darwin.apple_sdk.frameworks.AppKit
2023-04-03 02:23:05 +00:00
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";
2023-04-03 02:23:05 +00:00
homepage = "https://github.com/sigoden/aichat";
license = licenses.mit;
maintainers = with maintainers; [ mwdomino ];
2023-11-27 01:17:53 +00:00
mainProgram = "aichat";
2023-04-03 02:23:05 +00:00
};
}