Merge pull request #237183 from GetPsyched/atlauncher

atlauncher: init at 3.4.28.1
This commit is contained in:
Pol Dellaiera 2023-06-17 22:42:54 +02:00 committed by GitHub
commit 6d4ad65d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 0 deletions

View File

@ -5795,6 +5795,13 @@
githubId = 48872998;
name = "Seth";
};
getpsyched = {
name = "Priyanshu Tripathi";
email = "priyanshutr@proton.me";
matrix = "@getpsyched:matrix.org";
github = "getpsyched";
githubId = 43472218;
};
gfrascadorio = {
email = "gfrascadorio@tutanota.com";
github = "gfrascadorio";

View File

@ -0,0 +1,57 @@
{ copyDesktopItems, fetchurl, jre, lib, makeDesktopItem, makeWrapper, stdenv, steam-run, withSteamRun ? true, writeShellScript }:
stdenv.mkDerivation (finalAttrs: {
pname = "atlauncher";
version = "3.4.28.1";
src = fetchurl {
url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${finalAttrs.version}/ATLauncher-${finalAttrs.version}.jar";
hash = "sha256-IIwDMazxUMQ7nGQk/4VEZicgCmCR4oR8UYtO36pCEq4=";
};
dontUnpack = true;
buildInputs = [ ];
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
installPhase =
let
# hack to use steam-run along with the exec
steamrun = writeShellScript "steamrun" ''
shift
exec ${steam-run}/bin/steam-run "''$@"
'';
in
''
runHook preInstall
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/atlauncher \
--add-flags "-jar $src --working-dir=\$HOME/.atlauncher" \
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" ${
lib.strings.optionalString withSteamRun ''--run "${steamrun} \\"''
}
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = finalAttrs.pname;
exec = finalAttrs.pname;
icon = fetchurl {
url = "https://avatars.githubusercontent.com/u/7068667";
hash = "sha256-YmEkxf4rZxN3jhiib0UtdUDDcn9lw7IMbiEucBL7b9o=";
};
desktopName = "ATLauncher";
categories = [ "Game" ];
})
];
meta = with lib; {
description = "A simple and easy to use Minecraft launcher which contains many different modpacks for you to choose from and play";
downloadPage = "https://atlauncher.com/downloads";
homepage = "https://atlauncher.com/";
license = licenses.gpl3;
maintainers = [ maintainers.getpsyched ];
platforms = platforms.all;
};
})

View File

@ -36303,6 +36303,8 @@ with pkgs;
antsimulator = callPackage ../games/antsimulator { };
atlauncher = callPackage ../games/atlauncher { };
augustus = callPackage ../games/augustus { };
ballerburg = callPackage ../games/ballerburg { } ;