synix/pkgs/baibot/default.nix
sid b29b0895a5
All checks were successful
Build tests / build-hosts (pull_request) Successful in 3m51s
Flake check / flake-check (pull_request) Successful in 3m50s
update flake. update pkgs. new hp api
2026-04-15 22:23:01 +02:00

46 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
sqlite,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "baibot";
version = "1.18.0";
src = fetchFromGitHub {
owner = "etkecc";
repo = "baibot";
rev = "v${version}";
hash = "sha256-TwtN8tEml/z0Js78jjWzEYV58Dg8a5YKxdEU9hBDtNs=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-2TJsFT+I7JG1DauEOvB8HluMDb1vW0qXD/mzzSlAfew=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
sqlite
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
meta = {
description = "A Matrix bot for using diffent capabilities (text-generation, text-to-speech, speech-to-text, image-generation, etc.) of AI / Large Language Models (OpenAI, Anthropic, etc";
homepage = "https://github.com/etkecc/baibot";
changelog = "https://github.com/etkecc/baibot/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.agpl3Only;
mainProgram = "baibot";
};
}