Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartcat: init at 1.3.0 #320821

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12026,6 +12026,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";
Expand Down
48 changes: 48 additions & 0 deletions pkgs/by-name/sm/smartcat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, rustPlatform

, darwin
, libX11
, openssl
, pkg-config
, stdenv
}:

rustPlatform.buildRustPackage rec {
pname = "smartcat";
version = "1.3.0";
lpchaim marked this conversation as resolved.
Show resolved Hide resolved

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
];
eclairevoyant marked this conversation as resolved.
Show resolved Hide resolved

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 ];
};
}