Skip to content

Commit

Permalink
nixos/hardware.opengl: don't set LD_LIBRARY_PATH to /run/opengl-drive…
Browse files Browse the repository at this point in the history
…r[-32] anymore

We patchelf RUNPATH to /run/opengl-driver[-32] in libglvnd, ocl-icd and
vulkan-loader, so `dlopen()` calls in there find driver libraries
without having to rely on a globally-set LD_LIBRARY_PATH.
  • Loading branch information
flokli committed May 20, 2019
1 parent af5dd48 commit 2f056af
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nixos/modules/hardware/opengl.nix
Expand Up @@ -145,9 +145,6 @@ in
)
];

environment.sessionVariables.LD_LIBRARY_PATH =
[ "/run/opengl-driver/lib" ] ++ optional cfg.driSupport32Bit "/run/opengl-driver-32/lib";

environment.variables.XDG_DATA_DIRS =
[ "/run/opengl-driver/share" ] ++ optional cfg.driSupport32Bit "/run/opengl-driver-32/share";

Expand Down

0 comments on commit 2f056af

Please sign in to comment.