Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'polymc/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Jun 9, 2022
2 parents 981d9e6 + 309013e commit 8ea704d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
, quazip
, libGL
, msaClientID ? ""
, extraJDKs ? [ ]

# flake
, self
Expand All @@ -36,6 +37,8 @@ let

# This variable will be passed to Minecraft by PolyMC
gameLibraryPath = libpath + ":/run/opengl-driver/lib";

javaPaths = lib.makeSearchPath "bin/java" ([ jdk jdk8 ] ++ extraJDKs);
in

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -67,7 +70,7 @@ stdenv.mkDerivation rec {
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
wrapQtApp $out/bin/polymc \
--set GAME_LIBRARY_PATH ${gameLibraryPath} \
--prefix POLYMC_JAVA_PATHS : ${jdk}/lib/openjdk/bin/java:${jdk8}/lib/openjdk/bin/java \
--prefix POLYMC_JAVA_PATHS : ${javaPaths} \
--prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]}
'';

Expand Down

0 comments on commit 8ea704d

Please sign in to comment.