mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
, libX11
|
|
, openssl
|
|
, pkg-config
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "smartcat";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "efugier";
|
|
repo = "smartcat";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/BJdLHK8rb9QVlkLbRCXIPlHiI2eThAZvhIhJWW43Q4=";
|
|
};
|
|
|
|
cargoHash = "sha256-mMoLFlY4mExG7MCu2uXPzmG3krKIWOLwcnth8gt40eg=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
libX11
|
|
]
|
|
++ lib.optionals stdenv.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 ];
|
|
};
|
|
}
|