diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
commit | 80d90d9b204f7c17912740f9f414fe5d59f293ba (patch) | |
tree | 5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix | |
parent | 3a31a84c7d3e589035ad08499206aac44a81f424 (diff) | |
parent | 83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff) |
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix b/infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix new file mode 100644 index 000000000000..f5c0e3faf77a --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/games/lunar-client/default.nix @@ -0,0 +1,41 @@ +{ stdenv, appimageTools, lib, fetchurl, makeDesktopItem }: +let + name = "lunar-client"; + version = "2.4.0"; + + desktopItem = makeDesktopItem { + name = "Lunar Client"; + exec = "lunar-client"; + icon = "lunarclient"; + comment = "Optimized Minecraft Client for 1.7.10 and 1.8.9"; + desktopName = "Lunar Client"; + genericName = "Minecraft Client"; + categories = "Game;"; + }; + + appimageContents = appimageTools.extract { + inherit name src; + }; + + src = fetchurl { + url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage"; + name = "lunar-client.AppImage"; + sha256 = "bb85a62127a9b3848cc60796c20ac75655794f1d3cd17cb6b5499bbf19d16019"; + }; +in appimageTools.wrapType1 rec { + inherit name src; + + extraInstallCommands = '' + mkdir -p $out/share/applications + cp ${desktopItem}/share/applications/* $out/share/applications + cp -r ${appimageContents}/usr/share/icons/ $out/share/ + ''; + + meta = with lib; { + description = "Minecraft 1.7.10 & 1.8.9 PVP Client"; + homepage = "https://www.lunarclient.com/"; + license = with licenses; [ unfree ]; + maintainers = with maintainers; [ zyansheep ]; + platforms = [ "x86_64-linux" ]; + }; +} |