refactor(nix): use addOpenGLRunpath.driverLink in wrapper

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth 2023-09-30 12:50:26 -04:00
parent 531b58093e
commit 84269f9596
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -4,6 +4,7 @@
symlinkJoin, symlinkJoin,
prismlauncher-unwrapped, prismlauncher-unwrapped,
wrapQtAppsHook, wrapQtAppsHook,
addOpenGLRunpath,
qtbase, # needed for wrapQtAppsHook qtbase, # needed for wrapQtAppsHook
qtsvg, qtsvg,
qtwayland, qtwayland,
@ -85,7 +86,7 @@ in
in in
["--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"] ["--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"]
++ lib.optionals stdenv.isLinux [ ++ lib.optionals stdenv.isLinux [
"--set LD_LIBRARY_PATH /run/opengl-driver/lib:${lib.makeLibraryPath runtimeLibs}" "--set LD_LIBRARY_PATH ${addOpenGLRunpath.driverLink}/lib:${lib.makeLibraryPath runtimeLibs}"
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
"--prefix PATH : ${lib.makeBinPath runtimePrograms}" "--prefix PATH : ${lib.makeBinPath runtimePrograms}"
]; ];