#!/usr/bin/env bash # NixOS venv wrapper: exposes needed system libs (libstdc++, zlib, ...) to the # photo-pipeline venv. Edit NIX_LIBS as new deps (e.g. opencv) require more. set -euo pipefail NIX_LIBS=( /nix/store/0iv8glcslgfcgn371lbjr5jjw5a6cqir-gcc-15.3.0-lib/lib /nix/store/l7xwm1f6f3zj2x8jwdbi8gdyfbx07sh7-zlib-1.3.1/lib ) # Merge with any pre-existing LD_LIBRARY_PATH EXISTING="${LD_LIBRARY_PATH:-}" export LD_LIBRARY_PATH="$(IFS=:; echo "${NIX_LIBS[*]}"):${EXISTING}" exec "$HOME/photo-pipeline/.venv/bin/python" "$@"