minecraft: Fix versions <1.13
This commit is contained in:
parent
7041972128
commit
0d2355d7e3
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, makeDesktopItem, makeWrapper
|
{ stdenv, fetchurl, makeDesktopItem, makeWrapper
|
||||||
, jdk, jre, libpulseaudio
|
, jdk, jre, libpulseaudio, libXxf86vm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -13,6 +13,11 @@ let
|
||||||
categories = "Game;";
|
categories = "Game;";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
libPath = stdenv.lib.makeLibraryPath [
|
||||||
|
libpulseaudio
|
||||||
|
libXxf86vm # Needed only for versions <1.13
|
||||||
|
];
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "minecraft-2015-07-24";
|
name = "minecraft-2015-07-24";
|
||||||
|
|
||||||
|
@ -30,7 +35,7 @@ in stdenv.mkDerivation {
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/minecraft \
|
makeWrapper ${jre}/bin/java $out/bin/minecraft \
|
||||||
--add-flags "-jar $out/share/minecraft/minecraft.jar" \
|
--add-flags "-jar $out/share/minecraft/minecraft.jar" \
|
||||||
--suffix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libpulseaudio ]}
|
--suffix LD_LIBRARY_PATH : ${libPath}
|
||||||
|
|
||||||
cp $src $out/share/minecraft/minecraft.jar
|
cp $src $out/share/minecraft/minecraft.jar
|
||||||
cp -r ${desktopItem}/share/applications $out/share
|
cp -r ${desktopItem}/share/applications $out/share
|
||||||
|
|
Loading…
Reference in a new issue