diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix index 4ce742c363ff..4b49b52abe82 100644 --- a/pkgs/development/python-modules/pybind11/default.nix +++ b/pkgs/development/python-modules/pybind11/default.nix @@ -2,7 +2,6 @@ stdenv, lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, cmake, ninja, @@ -14,7 +13,6 @@ catch2, numpy, pytest, - libxcrypt, makeSetupHook, }: let @@ -23,7 +21,7 @@ let substitutions = { out = placeholder "out"; pythonInterpreter = python.pythonOnBuildForHost.interpreter; - pythonIncludeDir = "${python}/include/python${python.pythonVersion}"; + pythonIncludeDir = "${python}/include/${python.libPrefix}"; pythonSitePackages = "${python}/${python.sitePackages}"; }; } ./setup-hook.sh;