{ stdenv, fetchurl, makeDesktopItem , jre, libX11, libXext, libXcursor, libXrandr, libXxf86vm , mesa, openal, pulseaudioLight }: stdenv.mkDerivation { name = "ftb-1.4.12"; src = fetchurl { url = "http://ftb.cursecdn.com/FTB2/launcher/FTB_Launcher.jar"; sha256 = "1wqpwqpfs646xarslxn81b62dj95h6ynz7p9379y7i68yzqhwp5c"; }; phases = "installPhase"; installPhase = '' set -x mkdir -pv $out/bin cp -v $src $out/ftblaunch.jar cat > $out/bin/feedthebeast << EOF #!${stdenv.shell} # wrapper for minecraft export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${libX11}/lib/:${libXext}/lib/:${libXcursor}/lib/:${libXrandr}/lib/:${libXxf86vm}/lib/:${mesa}/lib/:${openal}/lib/ ${pulseaudioLight}/bin/padsp ${jre}/bin/java -jar $out/ftblaunch.jar EOF chmod +x $out/bin/feedthebeast ''; meta = { description = "Modded minecraft launcher"; homepage = http://www.feed-the-beast.com; license = stdenv.lib.licenses.unfreeRedistributable; }; }