47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
, openssl
|
|
, pkg-config
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "smartcat";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "efugier";
|
|
repo = "smartcat";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-QoMBQ/Xjh/xbsE9HthUKwm5v2tiN1tC2u6I/aOeO6ws=";
|
|
};
|
|
|
|
cargoHash = "sha256-SAv2tgo5jBSsVhLM2FR5S9Sg0yZBghSKKSV9hhUCvCk=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
meta = {
|
|
description = "Integrate large language models into the command line";
|
|
homepage = "https://github.com/efugier/smartcat";
|
|
changelog = "https://github.com/efugier/smartcat/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "sc";
|
|
maintainers = with lib.maintainers; [ lpchaim ];
|
|
};
|
|
}
|