update 10/19/2024
This commit is contained in:
34
pkgs/badlion-client/badlion-client.nix
Normal file
34
pkgs/badlion-client/badlion-client.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib, fetchurl, appimageTools }:
|
||||
|
||||
let
|
||||
pname = "badlion-client";
|
||||
version = "4.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
name = "badlion-client-linux";
|
||||
# https://www.badlion.net/download/client/latest/linux
|
||||
url = "https://client-updates-cdn77.badlion.net/BadlionClient";
|
||||
hash = "sha256-lyu0WQtkevCduGb5Hw5D79CekoHTQiKHvofnqS57mVU=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 rec {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
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 = "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 = [ ];
|
||||
mainProgram = "badlion-client";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user