Unverified Commit 12eb3082 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

labymod-launcher: init at 2.1.10 (#387346)

parents d5eec618 fd4ed439
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9757,6 +9757,12 @@
    githubId = 39689;
    name = "Hugo Tavares Reis";
  };
  httprafa = {
    email = "rafael.kienitz@gmail.com";
    github = "HttpRafa";
    githubId = 60099368;
    name = "Rafael Kienitz";
  };
  huantian = {
    name = "David Li";
    email = "davidtianli@gmail.com";
+38 −0
Original line number Diff line number Diff line
{
  lib,
  fetchurl,
  appimageTools,
}:

let
  pname = "labymod-launcher";
  version = "2.1.10";

  src = fetchurl {
    name = "labymod-launcher";
    url = "https://releases.r2.labymod.net/launcher/linux/x64/LabyMod%20Launcher-${version}.AppImage";
    hash = "sha256-yRzk1bish/KBe15rnnbaft3358zSv7WaejdvXAdpEC4=";
  };

  appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
  inherit pname version src;

  extraInstallCommands = ''
    install -Dm444 ${appimageContents}/labymodlauncher.desktop $out/share/applications/labymod-launcher.desktop
    install -Dm444 ${appimageContents}/resources/icons/icon.png $out/share/pixmaps/labymod-launcher.png
    substituteInPlace $out/share/applications/labymod-launcher.desktop \
      --replace-fail 'Exec=labymodlauncher' 'Exec=labymod-launcher' \
      --replace-fail 'Icon=labymodlauncher' 'Icon=labymod-launcher'
  '';

  meta = {
    description = "Minecraft modification that enhances gameplay with features like in-game TeamSpeak integration, custom animations, and additional settings";
    homepage = "https://www.labymod.net/";
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ httprafa ];
    mainProgram = "labymod-launcher";
    platforms = [ "x86_64-linux" ];
  };
}