nixpkgs/pkgs/tools/llm/heygpt/default.nix

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

35 lines
823 B
Nix
Raw Normal View History

2023-09-27 13:38:39 +01:00
{
fetchFromGitHub,
lib,
openssl,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "heygpt";
2023-11-01 12:49:44 +00:00
version = "0.4.1";
2023-09-27 13:38:39 +01:00
src = fetchFromGitHub {
owner = "fuyufjh";
repo = pname;
rev = "v${version}";
hash = "sha256-oP0yIdYytXSsbZ2pNaZ8Rrak1qJsudTe/oP6dGncGUM=";
2023-09-27 13:38:39 +01:00
};
2023-11-01 12:49:44 +00:00
cargoHash = "sha256-yKHAZpELuUD7wlM3Mi7XvxbKgdU1QxD9hsvIFcj3twE=";
2023-09-27 13:38:39 +01:00
nativeBuildInputs = [openssl];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
OPENSSL_DIR = "${lib.getDev openssl}";
meta = with lib; {
description = "Simple command-line interface for ChatGPT API";
2023-09-27 13:38:39 +01:00
homepage = "https://github.com/fuyufjh/heygpt";
license = licenses.mit;
mainProgram = "heygpt";
2023-09-27 13:38:39 +01:00
maintainers = with maintainers; [aldoborrero];
};
}