Commit Graph

14 Commits

Author SHA1 Message Date
Attila Oláh 49c11539b2 nix: re-use existing pkgs binding 2026-07-20 18:22:58 +02:00
Attila Oláh 40a3596354 nix: python3 is only needed for checks, not for the actual build 2026-07-19 14:09:45 +02:00
Attila Oláh 4775f28ceb nix: copy missing version.py to the environment 2026-07-19 13:50:45 +02:00
Attila Oláh 51fe03f615 nix: set main program to coli
This is the higher-level user interface, which should be the main entry point to the binary, not the engine itself. The engine is still available.
2026-07-19 13:39:02 +02:00
Attila Oláh da97f0dbf1 nix: build on darwin with -march=native 2026-07-19 13:37:57 +02:00
Attila Oláh bcb984a61f nix: use getExe instead of hardcoding the path 2026-07-19 13:37:22 +02:00
Attila Oláh e93d574e13 nix: add the python env to check inputs
The tests now require Python so the env should be added to the check
inputs, otherwise the build fails.
2026-07-19 13:37:21 +02:00
Attila Oláh a6d0a6c4a7 nix: use with pkgs in some package lists 2026-07-19 13:37:20 +02:00
Attila Oláh 73aef4d010 nix: configure and apply a formatter
This sets the formatter to alejandra. I was trying to stay as close as
the original as I could; otherwise we could set it to `nixfmt` which
would keep list spacing more similar, but would introduce additional
indentation in a few places.
2026-07-19 13:36:30 +02:00
Attila Oláh ac39be6b62 flake: remove unnecessary rec 2026-07-19 13:35:26 +02:00
LordMZTE 03e643f006 fix(flake): create flake.lock, use --set-default for COLI_ENGINE 2026-07-17 14:02:30 +02:00
woolcoxm 528b3cff37 fix(flake): package engine, support modules, and python for Nix builds (#345)
Four bugs in the Nix flake, all addressed:

1. checkPhase failed with "make: python3: No such file or directory"
   because `make test-c` shells out to python3 (c/Makefile: PYTHON ?=
   python3) but python3 wasn't in nativeBuildInputs. Add pkgs.python3.

2. `coli serve` reported "engine is not built" even though glm was
   packaged, because the engine landed in $out/bin while coli looks for
   it beside itself, in libexec/colibri, or via $COLI_ENGINE (c/coli:57-
   66). The wrapper now sets COLI_ENGINE to the bundled engine.

3. `coli serve` failed with ModuleNotFoundError: openai_server because
   the support modules (openai_server.py, resource_plan.py, doctor.py)
   were not installed. Install them and put their dir on PYTHONPATH.

4. Rebuilt the install layout into a self-contained $out/lib/colibri/
   that mirrors the source tree coli expects, with $out/bin/{glm,coli}
   as user-facing entry points (glm symlinked; coli wrapped).

NOTE: flake.lock is intentionally not included — it must be generated
on a Nix host via `nix flake lock` and committed separately, since it
requires narHash values that only the nix tooling can compute.
2026-07-17 07:18:24 -04:00
Jon Bosque c0fe3b79e9 flake.nix: add tokenizers + datasets for the quality bench (#173) 2026-07-14 13:49:41 +02:00
Maikel Frias Mosquea d7ffdc45be Add flake.nix for reproducible NixOS builds (engine + converter python env) (#66)
Adds a Nix flake pinned to nixos-26.05. Builds the glm engine with
gcc+OpenMP (AVX2 portable), wraps the coli Python CLI with pinned deps
(torch, safetensors, huggingface-hub, numpy), and provides a dev shell.
2026-07-12 01:35:56 +02:00