diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-03-12 10:04:10 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-03-12 10:04:10 -0500 |
| commit | 776948aa785f946ea1498e656f4f9cd7638c5024 (patch) | |
| tree | 6805da492d7300c60fa32ad3ad3346288016622c /nix | |
| parent | abd462454878f0195ca64d65f0e50e2f4bd47f4d (diff) | |
Fix NixOS CI: pin pybind11 to 2.13.6 via pip (ABI compat with Docker build)
Nixpkgs unstable has a newer pybind11 that removed the internal 'holder'
member used by shared_cpp_owner.h. Pin to 2.13.6 to match our Docker build.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/mobase-shell.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nix/mobase-shell.nix b/nix/mobase-shell.nix index f2b3930..c6b326e 100644 --- a/nix/mobase-shell.nix +++ b/nix/mobase-shell.nix @@ -19,9 +19,9 @@ pkgs.mkShell { qt6.qtsvg
qt6.qtwayland
- # Python + pybind11
+ # Python (pybind11 installed via pip in shellHook to pin version)
python313
- python313Packages.pybind11
+ python313Packages.pip
python313Packages.sip
python313Packages.pyqt6
@@ -45,7 +45,8 @@ pkgs.mkShell { ];
shellHook = ''
- export PYTHONPATH="${pkgs.python313Packages.pybind11}/${pkgs.python313.sitePackages}:$PYTHONPATH"
+ # Pin pybind11 to 2.13.6 (must match Docker build for ABI compat)
+ pip install --quiet pybind11==2.13.6 2>/dev/null || true
export CMAKE_PREFIX_PATH="${pkgs.qt6.qtbase}:${pkgs.qt6.qtwebengine}:${pkgs.qt6.qtwebsockets}:${pkgs.qt6.qtsvg}:$CMAKE_PREFIX_PATH"
'';
}
|
