2022-10-18 16:32:10 +11:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
2023-08-25 09:09:41 +10:00
|
|
|
, jdk17
|
2022-10-18 16:32:10 +11:00
|
|
|
, udev
|
2022-10-18 19:37:22 +11:00
|
|
|
, xorg
|
2022-10-18 16:32:10 +11:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "atlauncher";
|
2023-08-25 09:08:11 +10:00
|
|
|
version = "3.4.33.0";
|
2022-10-18 16:32:10 +11:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${version}/ATLauncher-${version}.jar";
|
2023-08-25 09:08:11 +10:00
|
|
|
hash = "sha256-bRFDZMhO3ex0dviMvDm/Dhs7LsoLyDNPokScZVE3g/I=";
|
2022-10-18 16:32:10 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/java
|
|
|
|
cp $src $out/share/java/ATLauncher.jar
|
2023-08-25 09:09:41 +10:00
|
|
|
makeWrapper ${jdk17}/bin/java $out/bin/atlauncher \
|
2022-10-18 19:37:22 +11:00
|
|
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ xorg.libXxf86vm udev ]}" \
|
2022-10-18 16:32:10 +11:00
|
|
|
--add-flags "-jar $out/share/java/ATLauncher.jar" \
|
|
|
|
--add-flags "--working-dir \''${XDG_DATA_HOME:-\$HOME/.local/share}/ATLauncher"
|
|
|
|
'';
|
|
|
|
|
2023-03-06 10:44:10 +11:00
|
|
|
meta = {
|
2022-10-18 16:32:10 +11:00
|
|
|
description = "Minecraft launcher";
|
|
|
|
longDescription = ''
|
|
|
|
ATLauncher is a Launcher for Minecraft which integrates multiple different
|
|
|
|
ModPacks to allow you to download and install ModPacks easily and quickly.
|
|
|
|
'';
|
2023-03-06 10:44:10 +11:00
|
|
|
sourceProvenance = [
|
|
|
|
(lib.sourceTypes.binaryBytecode or { shortName = "binaryBytecode"; isSource = false; })
|
|
|
|
];
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = lib.platforms.all;
|
2022-10-18 16:32:10 +11:00
|
|
|
homepage = "https://atlauncher.com/";
|
|
|
|
};
|
|
|
|
}
|