pythonPackages.pyrealsense2: fix breakage

Fixes compilation error: `'cerr' is not a member of 'std'` in `wrappers/python/pyrs_device.cpp`.
This error appeared likely because either some upstream header removing the import, or because the compiler has gotten stricter.
This commit is contained in:
Peder Bergebakken Sundt 2022-11-11 12:20:29 +01:00
parent e378aa676d
commit 82ce28238f

View File

@ -52,6 +52,12 @@ stdenv.mkDerivation rec {
./py_pybind11_no_external_download.patch
];
postPatch = ''
# https://github.com/IntelRealSense/librealsense/issues/11092
# insert a "#include <iostream" at beginning of file
sed '1i\#include <iostream>' -i wrappers/python/pyrs_device.cpp
'';
nativeBuildInputs = [
cmake
ninja