mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
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:
parent
e378aa676d
commit
82ce28238f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user