aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 10:16:58 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 10:16:58 -0500
commit0b669f348301d5c02f29a91aa4ded2c9cb904974 (patch)
tree02f4fd1a9d7cee921e2e9d76904af60ef2906f06 /.github
parentc3934b138c8e9b953de5fe11dfb171396bc2ad90 (diff)
Fix NixOS CI: use nix python for cmake, venv only for pybind11 pin
FindPython needs the real nix Python (with dev headers), not the venv wrapper. Save NIX_PYTHON3 before venv overrides PATH. Tested locally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fd072f1..268a272 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -101,10 +101,11 @@ jobs:
cmake --install /tmp/libloot/build
# Configure full project (only mobase target will be built)
+ # Use NIX_PYTHON3 (real nix python) for cmake, not the venv wrapper
PYBIND11_DIR=\$(python3 -c 'import pybind11; print(pybind11.get_cmake_dir())')
cmake -S . -B build-nix -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DPython_EXECUTABLE=\$(which python3) \
+ -DPython_EXECUTABLE=\"\${NIX_PYTHON3}\" \
-Dpybind11_DIR=\"\${PYBIND11_DIR}\" \
-DBUILD_PLUGIN_PYTHON=ON \
-DCMAKE_PREFIX_PATH=/tmp/libloot-install \