Commit Graph
3 Commits
Author SHA1 Message Date
kinect-botandsisyphus-dev-ai c4796d7dcf feat(build): fetch the pose model bundles through Nix, hash-pinned
tracker.py failed with FileNotFoundError on pose_landmarker_full.task - the
flake built the Python env fine but never fetched the .task model bundles
that docs/setup-linux.md step 2a used to curl by hand into the git-ignored
tracker/models/.

Added poseModels: a runCommand derivation that fetches all three tiers
(lite/full/heavy) via pkgs.fetchurl with sha256 hashes pinned from the real
bundles (verified by downloading and hashing each one directly, not guessed).
The google storage "latest" path can move the file it points to; fetchurl's
hash check fails loudly if it ever does, rather than silently serving a
different model.

nix run .#tracker now passes --models-dir pointing at this derivation by
default (a user-supplied --models-dir/--model after it still wins, argparse
keeps the last occurrence). nix develop also symlinks the fetched bundles
into tracker/models/ so a manual python -m tracker.tracker inside the shell
needs no separate fetch either. docs/setup-linux.md updated to note the Nix
path skips the manual model-download step too.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:09:14 -05:00
kinect-botandsisyphus-dev-ai fd1c9ad3e5 feat(build): add a Nix flake for a venv-free Linux build
flake.nix builds the whole project with Nix instead of a manual uv venv:

- the Python tracker as a pure Nix-built environment via uv2nix, from
  tracker/uv.lock (generated by uv lock against pyproject.tomls pins -
  numpy==2.5.5, opencv-python-headless==5.1.0.95, mediapipe==1.2.3, Python
  3.12), so the environment is an immutable Nix store path assembled from
  hash-pinned wheels, never a mutable venv or a pip install step. libglvnd
  replaces the manual libGLESv2.so.2 .deb-extraction workaround.
- the OS-agnostic core + CTest suite via cmake (nix run .#core-test).
- the Windows shim + native tracker cross-compiled via nixpkgs mingw-w64
  (pkgsCross.mingwW64/mingw32; nix run .#shim-build), with CXX32/CXX64/CXX_WIN
  wired to the build scripts override hooks.

nix run .#tracker runs the tracker directly; nix develop gives a shell with
everything for manual work. docs/setup-linux.md documents the Nix path as
the lead option, keeping the uv/venv path as the no-Nix fallback.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:00:15 -05:00
kinect-bot 39876fa97b docs(setup): README + linux/windows setup + calibration/troubleshooting + packaging (wave 11; todo 18 done)
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python root tests (pytest, no tracker deps) (push) Canceled after 0s
ci / Python tracker (pytest, tracker/.venv) (push) Canceled after 0s
2026-11-25 06:10:54 -05:00