2023-11-20 17:28:51 +01:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "badlion-client";
|
2024-05-29 05:52:05 +02:00
|
|
|
version = "4.3.0";
|
2023-11-20 17:28:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-29 05:52:05 +02:00
|
|
|
name = "badlion-client-linux";
|
|
|
|
# https://www.badlion.net/download/client/latest/linux
|
|
|
|
url = "https://web.archive.org/web/20240529090437if_/https://client-updates-cdn77.badlion.net/BadlionClient";
|
|
|
|
hash = "sha256-9elNLSqCO21m1T2D+WABKotD9FfW3FrcOxbnPdyVd+w=";
|
2023-11-20 17:28:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -Dm444 ${appimageContents}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
|
|
|
|
install -Dm444 ${appimageContents}/BadlionClient.png $out/share/pixmaps/BadlionClient.png
|
|
|
|
substituteInPlace $out/share/applications/BadlionClient.desktop \
|
|
|
|
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=badlion-client'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Most Complete All-In-One Mod Library for Minecraft with 100+ Mods, FPS Improvements, and more";
|
|
|
|
homepage = "https://client.badlion.net";
|
|
|
|
license = with licenses; [ unfree ];
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2024-05-29 05:52:05 +02:00
|
|
|
mainProgram = "badlion-client";
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-11-20 17:28:51 +01:00
|
|
|
};
|
|
|
|
}
|