3
0
Fork 0
forked from mirrors/nixpkgs

houdini: added /etc/OpenCL/vendors binding

additionally trying to bind
/run/opengl-driver/etc/OpenCL/vendors -> /etc/OpenCL/vendors
/etc/OpenCL/vendors -> /etc/OpenCL/vendors (for non NixOS)
in wrapper to use opencl with houdini's own version of libOpenCL.so
This commit is contained in:
xapkohheh 2023-05-10 20:34:46 +02:00
parent f03311c615
commit af171a5501

View file

@ -87,6 +87,11 @@ buildFHSEnv rec {
chmod +x $EXECUTABLES
'';
extraBwrapArgs = [
"--ro-bind-try /run/opengl-driver/etc/OpenCL/vendors /etc/OpenCL/vendors" # this is the case of NixOS
"--ro-bind-try /etc/OpenCL/vendors /etc/OpenCL/vendors" # this is the case of not NixOS
];
runScript = writeScript "${name}-wrapper" ''
exec $@
'';