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>
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>