nur-packages/pkgs/by-name/at/atlauncher/package.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

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-09-25 10:17:41 +10:00
version = "3.4.34.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-09-25 10:17:41 +10:00
hash = "sha256-gHUYZaxADchikoCmAfqFjVbMYhhiwg2BZKctmww1Mlw=";
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" \
2023-08-25 09:13:38 +10:00
--add-flags "--working-dir \''${XDG_DATA_HOME:-\$HOME/.local/share}/ATLauncher" \
--add-flags "--no-launcher-update"
2022-10-18 16:32: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.
'';
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/";
};
}