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

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

39 lines
823 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 [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Chat with gpt-3.5/chatgpt in terminal.";
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
};
}