Commit af171a55 authored by xapkohheh's avatar xapkohheh
Browse files

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
parent f03311c6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 $@
  '';