diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-09-30 23:50:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 23:50:36 +0200 |
commit | 589ab24f7e4a0af7d00dc1585918d6b4e062f8ad (patch) | |
tree | 561a8c89db0d044fa61144d8c45299fb91704fe1 | |
parent | 531b58093eadba6bd856c4e30fb3b9a30dc270ee (diff) | |
parent | 84269f95961a49434c51b67aef15822ec3028ea6 (diff) | |
download | PrismLauncher-589ab24f7e4a0af7d00dc1585918d6b4e062f8ad.tar.gz PrismLauncher-589ab24f7e4a0af7d00dc1585918d6b4e062f8ad.tar.bz2 PrismLauncher-589ab24f7e4a0af7d00dc1585918d6b4e062f8ad.zip |
Merge pull request #1666 from getchoo/driverlink
[Linux] Use addOpenGLRunpath.driverLink in Nix wrapper
-rw-r--r-- | nix/pkg/wrapper.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/pkg/wrapper.nix b/nix/pkg/wrapper.nix index 8bc255e7..cd356c8d 100644 --- a/nix/pkg/wrapper.nix +++ b/nix/pkg/wrapper.nix @@ -4,6 +4,7 @@ symlinkJoin, prismlauncher-unwrapped, wrapQtAppsHook, + addOpenGLRunpath, qtbase, # needed for wrapQtAppsHook qtsvg, qtwayland, @@ -85,7 +86,7 @@ in in ["--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"] ++ 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 "--prefix PATH : ${lib.makeBinPath runtimePrograms}" ]; |