Messing with llama stuff

This commit is contained in:
Hunter Haugen 2026-04-11 14:14:35 -07:00
parent 781572c561
commit c53e9d23d4
Signed by: hunner
GPG key ID: EF99694AA599DDAD
7 changed files with 622 additions and 553 deletions

35
pkgs/lean-ctx/package.nix Normal file
View file

@ -0,0 +1,35 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "lean-ctx";
version = "2.21.6";
src = fetchFromGitHub {
owner = "yvgude";
repo = "lean-ctx";
rev = "40b840c548a40d03fe91d5aa412fc7c92da4b9e0";
hash = "sha256-3/YAmN4iO7cngj2DbXm9vAutxiz483qf7a81odxQOl8=";
};
sourceRoot = "${finalAttrs.src.name}/rust";
cargoLock = {
lockFile = "${finalAttrs.src}/rust/Cargo.lock";
};
# Upstream's test suite exercises shell/sandbox behavior and is not stable
# under Nix builds, but the release binary itself builds fine.
doCheck = false;
meta = {
description = "Context Intelligence Engine with CCP";
homepage = "https://github.com/yvgude/lean-ctx";
license = lib.licenses.mit;
mainProgram = "lean-ctx";
platforms = lib.platforms.linux;
};
})