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 03:23:05 +01:00
{ lib
, stdenv
, darwin
, rustPlatform
, fetchFromGitHub
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "aichat";
2024-04-13 07:26:37 +01:00
version = "0.16.0";
2023-04-03 03:23:05 +01:00
src = fetchFromGitHub {
owner = "sigoden";
repo = "aichat";
rev = "v${version}";
2024-04-13 07:26:37 +01:00
hash = "sha256-XNNiIjJfPsfoyG3RbxlcoUxsOUkWZ+3H3SlYenuNOIQ=";
2023-04-03 03:23:05 +01:00
};
2024-04-13 07:26:37 +01:00
cargoHash = "sha256-JOkcqqmfat+PAn7mRHq+iQCF60weDOBWP2+0DL0s3X0=";
2023-04-03 03:23:05 +01: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 03:23:05 +01: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 03:23:05 +01: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 03:23:05 +01:00
};
}