Merge pull request #893 from Scrumplex/refactor-env-handling

This commit is contained in:
timoreo
2022-07-23 14:08:10 +02:00
committed by GitHub
4 changed files with 52 additions and 45 deletions

View File

@ -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 ]}
'';
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
their associated options with a simple interface.
'';
platforms = platforms.unix;
license = licenses.gpl3Plus;
license = licenses.gpl3Only;
maintainers = with maintainers; [ starcraft66 kloenk ];
};
}