Commit 0eabec27 authored by Jiatao Liang's avatar Jiatao Liang
Browse files

artix-games-launcher: init at 2.20

Adding package for the Artix Games Launcher into nixpkgs
parent 6724debf
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{
  appimageTools,
  stdenv,
  fetchurl,
  lib,
}:
let
  pname = "artix-games-launcher";
  version = "2.20";
  src = fetchurl {
    url = "https://web.archive.org/web/20250924101414/https://launch.artix.com/latest/Artix_Games_Launcher-x86_64.AppImage";
    hash = "sha256-8eVXOm5g92wErWa6lbTXrCL04MWYlObjonHJk+oUI3E=";
  };
  appimageContents = appimageTools.extract {
    inherit pname version src;
  };
in
appimageTools.wrapType2 {
  inherit pname version src;

  extraInstallCommands = ''
    mkdir -p $out/share/applications
    install -m 444 -D ${appimageContents}/ArtixGamesLauncher.desktop $out/share/applications/ArtixGamesLauncher.desktop
    install -m 444 -D ${appimageContents}/ArtixLogo.png $out/share/icons/ArtixLogo.png
  '';

  meta = {
    description = "Launcher for games by Artix Entertainment";
    homepage = "https://www.artix.com/downloads/artixlauncher";
    license = lib.licenses.unfree;
    mainProgram = "artix-game-launcher";
    maintainers = with lib.maintainers; [ jtliang24 ];
    platforms = [ "x86_64-linux" ];
  };
}