diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2023-12-01 21:39:27 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 21:39:27 +1100 |
commit | c4eee36553f8c15ca4b921894a09d3a28df01b01 (patch) | |
tree | 3de1407acbd4210ac4ba6aeee2a4c6d75ee60051 /pkgs/games | |
parent | b74e7d91dd39372d43465976d78ef497901b6b4b (diff) | |
parent | 778f5353045c4e0356f68240cde75eedfb65235f (diff) |
Merge pull request #255703 from Ometic/badlion-client
badlion-client: init at 3.15.0
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/badlion-client/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/games/badlion-client/default.nix b/pkgs/games/badlion-client/default.nix new file mode 100644 index 0000000000000..6772557a3ea56 --- /dev/null +++ b/pkgs/games/badlion-client/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchurl, appimageTools }: + +let + pname = "badlion-client"; + version = "3.15.0"; + + src = fetchurl { + url = "https://client-updates-cdn77.badlion.net/BadlionClient"; + hash = "sha256-HqMgY9+Xnp4uSTWr//REZGv3p7ivwLX97vxGD5wqu9E="; + }; + + appimageContents = appimageTools.extract { inherit pname version src; }; +in + appimageTools.wrapType2 rec { + inherit pname version src; + + extraInstallCommands = '' + mv $out/bin/{${pname}-${version},${pname}} + 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 = "The 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 ]; + maintainers = with maintainers; []; + platforms = platforms.linux; + }; + } |