From b96e76134ae55f83ddd51ef7bc9080db2ce797f7 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 12 Jul 2022 12:09:23 +0200 Subject: [PATCH] fix(nix): switch to LD_LIBRARY_PATH Signed-off-by: Sefa Eyeoglu --- nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index 1a6b9e441..6b16bb286 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -71,8 +71,8 @@ stdenv.mkDerivation rec { postInstall = '' # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 wrapQtApp $out/bin/polymc \ - --run '[ -f /etc/NIXOS ] && export GAME_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib"' \ - --prefix GAME_LIBRARY_PATH : ${gameLibraryPath} \ + --run '[ -f /etc/NIXOS ] && export LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH"' \ + --prefix LD_LIBRARY_PATH : ${gameLibraryPath} \ --prefix POLYMC_JAVA_PATHS : ${javaPaths} \ --prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]} '';