badlion-client: 4.3.0 -> 4.5.4 (#399033)

authored by

Pol Dellaiera and committed by
GitHub
fbc17ef9 902e94d1

+21 -16
+21 -16
pkgs/by-name/ba/badlion-client/package.nix
··· 2 lib, 3 fetchurl, 4 appimageTools, 5 }: 6 7 - let 8 pname = "badlion-client"; 9 - version = "4.3.0"; 10 11 - src = fetchurl { 12 - name = "badlion-client-linux"; 13 - # https://www.badlion.net/download/client/latest/linux 14 - url = "https://web.archive.org/web/20240529090437if_/https://client-updates-cdn77.badlion.net/BadlionClient"; 15 - hash = "sha256-9elNLSqCO21m1T2D+WABKotD9FfW3FrcOxbnPdyVd+w="; 16 }; 17 18 - appimageContents = appimageTools.extract { inherit pname version src; }; 19 - in 20 - appimageTools.wrapType2 { 21 - inherit pname version src; 22 23 extraInstallCommands = '' 24 - install -Dm444 ${appimageContents}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop 25 - install -Dm444 ${appimageContents}/BadlionClient.png $out/share/pixmaps/BadlionClient.png 26 substituteInPlace $out/share/applications/BadlionClient.desktop \ 27 - --replace 'Exec=AppRun --no-sandbox %U' 'Exec=badlion-client' 28 ''; 29 30 - meta = with lib; { 31 description = "Most Complete All-In-One Mod Library for Minecraft with 100+ Mods, FPS Improvements, and more"; 32 homepage = "https://client.badlion.net"; 33 - license = with licenses; [ unfree ]; 34 maintainers = [ ]; 35 mainProgram = "badlion-client"; 36 platforms = [ "x86_64-linux" ];
··· 2 lib, 3 fetchurl, 4 appimageTools, 5 + makeWrapper, 6 }: 7 8 + appimageTools.wrapAppImage rec { 9 pname = "badlion-client"; 10 + version = "4.5.4"; 11 12 + src = appimageTools.extractType2 { 13 + inherit pname version; 14 + src = fetchurl { 15 + name = "badlion-client-linux"; 16 + # https://www.badlion.net/download/client/latest/linux 17 + url = "https://web.archive.org/web/20250416011033/https://client-updates.badlion.net/BadlionClient"; 18 + hash = "sha256-M2aG3vb1EBpvx8ODs67Ua1R7lBXSe2oIcSwFzSz91n4="; 19 + }; 20 }; 21 22 + nativeBuildInputs = [ makeWrapper ]; 23 24 extraInstallCommands = '' 25 + install -Dm444 ${src}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop 26 + install -Dm444 ${src}/BadlionClient.png $out/share/pixmaps/BadlionClient.png 27 substituteInPlace $out/share/applications/BadlionClient.desktop \ 28 + --replace-fail "Exec=AppRun --no-sandbox %U" "Exec=badlion-client" 29 + wrapProgram $out/bin/badlion-client \ 30 + --set APPIMAGE 1 31 ''; 32 33 + extraPkgs = pkgs: [ pkgs.xorg.libxshmfence ]; 34 + 35 + meta = { 36 description = "Most Complete All-In-One Mod Library for Minecraft with 100+ Mods, FPS Improvements, and more"; 37 homepage = "https://client.badlion.net"; 38 + license = lib.licenses.unfree; 39 maintainers = [ ]; 40 mainProgram = "badlion-client"; 41 platforms = [ "x86_64-linux" ];