1 { copyDesktopItems, fetchurl, jre, lib, makeDesktopItem, makeWrapper, stdenv, udev, xorg }:
3 stdenv.mkDerivation (finalAttrs: {
8 url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${finalAttrs.version}/ATLauncher-${finalAttrs.version}.jar";
9 hash = "sha256-l9OoHunK0xfY6xbNpjs9lfsVd3USM1GHgutTMMVq8S8=";
13 url = "https://atlauncher.com/assets/images/logo.svg";
14 hash = "sha256-XoqpsgLmkpa2SdjZvPkgg6BUJulIBIeu6mBsJJCixfo=";
20 nativeBuildInputs = [ copyDesktopItems makeWrapper ];
25 mkdir -p $out/bin $out/share/java
26 cp $src $out/share/java/ATLauncher.jar
28 makeWrapper ${jre}/bin/java $out/bin/${finalAttrs.pname} \
29 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ xorg.libXxf86vm udev ]}" \
30 --add-flags "-jar $out/share/java/ATLauncher.jar" \
31 --add-flags "--working-dir \"\''${XDG_DATA_HOME:-\$HOME/.local/share}/ATLauncher\"" \
32 --add-flags "--no-launcher-update"
34 mkdir -p $out/share/icons/hicolor/scalable/apps
35 cp $ICON $out/share/icons/hicolor/scalable/apps/${finalAttrs.pname}.svg
42 name = finalAttrs.pname;
43 exec = finalAttrs.pname;
44 icon = finalAttrs.pname;
45 desktopName = "ATLauncher";
46 categories = [ "Game" ];
51 description = "A simple and easy to use Minecraft launcher which contains many different modpacks for you to choose from and play";
52 downloadPage = "https://atlauncher.com/downloads";
53 homepage = "https://atlauncher.com/";
54 license = licenses.gpl3;
55 maintainers = [ maintainers.getpsyched ];
56 platforms = platforms.all;