1 { lib, fetchurl, appimageTools }:
4 pname = "badlion-client";
8 name = "badlion-client-linux";
9 # https://www.badlion.net/download/client/latest/linux
10 url = "https://web.archive.org/web/20240529090437if_/https://client-updates-cdn77.badlion.net/BadlionClient";
11 hash = "sha256-9elNLSqCO21m1T2D+WABKotD9FfW3FrcOxbnPdyVd+w=";
14 appimageContents = appimageTools.extract { inherit pname version src; };
16 appimageTools.wrapType2 rec {
17 inherit pname version src;
19 extraInstallCommands = ''
20 install -Dm444 ${appimageContents}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
21 install -Dm444 ${appimageContents}/BadlionClient.png $out/share/pixmaps/BadlionClient.png
22 substituteInPlace $out/share/applications/BadlionClient.desktop \
23 --replace 'Exec=AppRun --no-sandbox %U' 'Exec=badlion-client'
27 description = "Most Complete All-In-One Mod Library for Minecraft with 100+ Mods, FPS Improvements, and more";
28 homepage = "https://client.badlion.net";
29 license = with licenses; [ unfree ];
31 mainProgram = "badlion-client";
32 platforms = [ "x86_64-linux" ];