pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / badlion-client / default.nix
blob78278be9fca3eb0da2f0ac34680c5a1b6e7ea89d
1 { lib, fetchurl, appimageTools }:
3 let
4   pname = "badlion-client";
5   version = "4.3.0";
7   src = fetchurl {
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=";
12   };
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'
24     '';
26     meta = with lib; {
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 ];
30       maintainers = [ ];
31       mainProgram = "badlion-client";
32       platforms = [ "x86_64-linux" ];
33     };
34   }