badlion-client: 4.3.0 -> 4.5.4 (#399033)
This commit is contained in:
@@ -2,35 +2,40 @@
|
||||
lib,
|
||||
fetchurl,
|
||||
appimageTools,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
let
|
||||
appimageTools.wrapAppImage rec {
|
||||
pname = "badlion-client";
|
||||
version = "4.3.0";
|
||||
version = "4.5.4";
|
||||
|
||||
src = fetchurl {
|
||||
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=";
|
||||
src = appimageTools.extractType2 {
|
||||
inherit pname version;
|
||||
src = fetchurl {
|
||||
name = "badlion-client-linux";
|
||||
# https://www.badlion.net/download/client/latest/linux
|
||||
url = "https://web.archive.org/web/20250416011033/https://client-updates.badlion.net/BadlionClient";
|
||||
hash = "sha256-M2aG3vb1EBpvx8ODs67Ua1R7lBXSe2oIcSwFzSz91n4=";
|
||||
};
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 ${appimageContents}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
|
||||
install -Dm444 ${appimageContents}/BadlionClient.png $out/share/pixmaps/BadlionClient.png
|
||||
install -Dm444 ${src}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
|
||||
install -Dm444 ${src}/BadlionClient.png $out/share/pixmaps/BadlionClient.png
|
||||
substituteInPlace $out/share/applications/BadlionClient.desktop \
|
||||
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=badlion-client'
|
||||
--replace-fail "Exec=AppRun --no-sandbox %U" "Exec=badlion-client"
|
||||
wrapProgram $out/bin/badlion-client \
|
||||
--set APPIMAGE 1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
extraPkgs = pkgs: [ pkgs.xorg.libxshmfence ];
|
||||
|
||||
meta = {
|
||||
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 ];
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = [ ];
|
||||
mainProgram = "badlion-client";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
|
||||
Reference in New Issue
Block a user