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:
parent
f03311c615
commit
af171a5501
|
@ -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 $@
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue