python3Packages.pybind11: use python interpreter from pythonForBuild

This commit is contained in:
Yves Fischer
2022-08-27 22:17:26 +02:00
parent 9e77929f19
commit 1725792452
@@ -34,6 +34,7 @@ buildPythonPackage rec {
"-DBoost_INCLUDE_DIR=${lib.getDev boost}/include"
"-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3"
"-DBUILD_TESTING=on"
"-DPYTHON_EXECUTABLE:FILEPATH=${python.pythonForBuild.interpreter}"
] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
"-DPYBIND11_CXX_STANDARD=-std=c++17"
];