level-zero: Fix NixOS GPU driver lookup (#432446)

This commit is contained in:
Sandro
2025-10-26 22:49:36 +00:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ stdenv.mkDerivation rec {
addDriverRunpath $out/lib/libze_loader.so
'';
setupHook = ./setup-hook.sh;
passthru = {
tests = {
inherit intel-compute-runtime openvino;
+7
View File
@@ -0,0 +1,7 @@
if [ -d /run/opengl-driver/lib ]; then
export LD_LIBRARY_PATH="/run/opengl-driver/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:-}"
fi
if [ -d /run/opengl-driver-32/lib ]; then
export LD_LIBRARY_PATH="/run/opengl-driver-32/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:-}"
fi