Files
millerson-overlay.nix/packages/kyojin/package.nix
T
alex 85bd7421de feat(llm): package upstream inference engines
Centralize engine pins, compiler wrappers and NPU packages.
Use upstream Kyojin v1.8.10 and drop the Thunderbolt dependency.

Offline evaluation passed; workstation builds remain pending.

Bead: nix-overlay-v09
2026-11-12 20:36:52 +03:00

31 lines
820 B
Nix

{
pkgs,
kyojin,
jitCheck,
cpuCheck,
}:
kyojin.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
meta = (old.meta or { }) // {
homepage = "https://github.com/Yamz-Labs/kyojin";
license = pkgs.lib.licenses.mit;
};
passthru = (old.passthru or { }) // {
category = "AI Inference";
tests = (old.passthru.tests or { }) // {
jit = jitCheck;
cpu = cpuCheck;
};
};
postFixup = ''
# Fail the build, not the first request, if upstream renames the wrappers.
ls "$out"/bin/kyojin-serve-* > /dev/null 2>&1 || {
echo "kyojin-cc: no kyojin-serve-* in $out/bin; upstream moved them" >&2
exit 1
}
for b in $out/bin/kyojin-serve-*; do
wrapProgram "$b" --set CC ${pkgs.stdenv.cc}/bin/gcc
done
'';
})