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

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

38 lines
794 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-11-07 06:37:53 +00:00
version = "0.9.0";
2023-04-03 02:23:05 +00:00
src = fetchFromGitHub {
owner = "sigoden";
repo = "aichat";
rev = "v${version}";
2023-11-07 06:37:53 +00:00
hash = "sha256-KY8GUUPZyb89b9mGd+EuYP8M7bKxt7oKQfaaX1R4BTE=";
2023-04-03 02:23:05 +00:00
};
2023-11-07 06:37:53 +00:00
cargoHash = "sha256-YTLiJ8/aTN3d2xkEqtiyP47KeDK88I2Raix8kmddDNE=";
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 ];
};
}