Merge pull request #320821 from lpchaim/init-smartcat

smartcat: init at 1.3.0
This commit is contained in:
éclairevoyant 2024-06-22 19:58:12 +00:00 committed by GitHub
commit 6f92eb1919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 55 additions and 0 deletions

View File

@ -11648,6 +11648,13 @@
githubId = 10626;
name = "Andreas Wagner";
};
lpchaim = {
email = "lpchaim@gmail.comm";
matrix = "@lpchaim:matrix.org";
github = "lpchaim";
githubId = 4030336;
name = "Lucas Chaim";
};
lpostula = {
email = "lois@postu.la";
github = "loispostula";

View File

@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, rustPlatform
, darwin
, libX11
, openssl
, pkg-config
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "smartcat";
version = "1.3.0";
src = fetchFromGitHub {
owner = "efugier";
repo = "smartcat";
rev = "refs/tags/${version}";
hash = "sha256-iCtNNKXo0peGGUaQXKaaYaEo7MAL70PX0BAWPERNmlo=";
};
cargoHash = "sha256-qNl2bI5VqpMfoFc+gZC4XHrNT9pnWseduYSOi5Dzr9M=";
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 ];
};
}