pythonPackages.pybind11: expose headers
This commit is contained in:
parent
5305675861
commit
46515fbada
@ -23,7 +23,8 @@ buildPythonPackage rec {
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
checkInputs = [ pytest cmake ]
|
||||
nativeBuildInputs = [ cmake ];
|
||||
checkInputs = [ pytest ]
|
||||
++ (lib.optional (numpy != null) numpy)
|
||||
++ (lib.optional (eigen != null) eigen)
|
||||
++ (lib.optional (scipy != null) scipy);
|
||||
@ -32,6 +33,11 @@ buildPythonPackage rec {
|
||||
make -j $NIX_BUILD_CORES pytest
|
||||
'';
|
||||
|
||||
# re-expose the headers to other packages
|
||||
postInstall = ''
|
||||
ln -s $out/include/python${python.pythonVersion}m/pybind11/ $out/include/pybind11
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/pybind/pybind11;
|
||||
description = "Seamless operability between C++11 and Python";
|
||||
|
Loading…
x
Reference in New Issue
Block a user