diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 6e56df8b183d..1d9fd2a469f6 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -225,7 +225,7 @@ in buildPythonPackage rec { # Avoid using pybind11 from git submodule # Also avoids pytorch exporting the headers of pybind11 - USE_SYSTEM_BIND11 = true; + USE_SYSTEM_PYBIND11 = true; preBuild = '' export MAX_JOBS=$NIX_BUILD_CORES