forked from mirrors/nixpkgs
minecraft-launcher: 2.1.14947 -> 2.1.15166
Set JAVA_HOME, which can impurely override JRE
This commit is contained in:
parent
360e0fae7e
commit
a8edf35af8
|
@ -87,11 +87,11 @@ in
|
|||
stdenv.mkDerivation rec {
|
||||
pname = "minecraft-launcher";
|
||||
|
||||
version = "2.1.14947";
|
||||
version = "2.1.15166";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_${version}.tar.gz";
|
||||
sha256 = "1lsc39n1kq08sssnpr6kf4lfpy01a7i7rgvi298mmxsprjmc7a9q";
|
||||
sha256 = "14q41zk370zvzz2jbynhfw11r98l9x49142lqf2izfl42fhv8yhw";
|
||||
};
|
||||
|
||||
icon = fetchurl {
|
||||
|
@ -134,6 +134,7 @@ stdenv.mkDerivation rec {
|
|||
makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \
|
||||
--prefix LD_LIBRARY_PATH : ${envLibPath} \
|
||||
--prefix PATH : ${stdenv.lib.makeBinPath [ jre ]} \
|
||||
--set JAVA_HOME ${stdenv.lib.makeBinPath [ jre ]} \
|
||||
--run "cd /tmp" \
|
||||
"''${gappsWrapperArgs[@]}"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue