mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
35 lines
823 B
Nix
35 lines
823 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
openssl,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "heygpt";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fuyufjh";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-gTyjj7NND5IYtnXhc454cWSzhAE+DwfPRGEWrHH+GNM=";
|
|
};
|
|
|
|
cargoHash = "sha256-yKHAZpELuUD7wlM3Mi7XvxbKgdU1QxD9hsvIFcj3twE=";
|
|
|
|
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 = "A simple command-line interface for ChatGPT API.";
|
|
homepage = "https://github.com/fuyufjh/heygpt";
|
|
license = licenses.mit;
|
|
mainProgram = pname;
|
|
maintainers = with maintainers; [aldoborrero];
|
|
};
|
|
}
|