fix(nix): switch to LD_LIBRARY_PATH
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
fd2b206997
commit
b96e76134a
@ -71,8 +71,8 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
# 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
|
||||||
wrapQtApp $out/bin/polymc \
|
wrapQtApp $out/bin/polymc \
|
||||||
--run '[ -f /etc/NIXOS ] && export GAME_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib"' \
|
--run '[ -f /etc/NIXOS ] && export LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH"' \
|
||||||
--prefix GAME_LIBRARY_PATH : ${gameLibraryPath} \
|
--prefix LD_LIBRARY_PATH : ${gameLibraryPath} \
|
||||||
--prefix POLYMC_JAVA_PATHS : ${javaPaths} \
|
--prefix POLYMC_JAVA_PATHS : ${javaPaths} \
|
||||||
--prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]}
|
--prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user