lol
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5
6 openssl,
7 pkg-config,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "smartcat";
12 version = "2.2.0";
13
14 src = fetchFromGitHub {
15 owner = "efugier";
16 repo = "smartcat";
17 tag = version;
18 hash = "sha256-nXuMyHV5Sln3qWXIhIDdV0thSY4YbvzGqNWGIw4QLdM=";
19 };
20
21 cargoHash = "sha256-AiOVIDfARztwQxOzBFWc8NXEEsxEvKAStCokcRrJyOE=";
22
23 nativeBuildInputs = [
24 pkg-config
25 ];
26
27 buildInputs = [
28 openssl
29 ];
30
31 meta = {
32 description = "Integrate large language models into the command line";
33 homepage = "https://github.com/efugier/smartcat";
34 changelog = "https://github.com/efugier/smartcat/releases/tag/v${version}";
35 license = lib.licenses.asl20;
36 platforms = lib.platforms.unix;
37 mainProgram = "sc";
38 maintainers = with lib.maintainers; [ lpchaim ];
39 };
40}