2021-02-05 17:12:51 +00:00
|
|
|
{ appimageTools, lib, fetchurl, makeDesktopItem }:
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
let
|
|
|
|
name = "lunar-client";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2.10.0";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
2022-03-05 16:20:37 +00:00
|
|
|
name = "lunar-client";
|
2020-11-19 00:13:47 +00:00
|
|
|
exec = "lunar-client";
|
|
|
|
icon = "lunarclient";
|
2022-03-30 09:31:56 +00:00
|
|
|
comment = "Minecraft 1.7, 1.8, 1.12, 1.15, 1.16, 1.17, and 1.18 Client";
|
2020-11-19 00:13:47 +00:00
|
|
|
desktopName = "Lunar Client";
|
|
|
|
genericName = "Minecraft Client";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Game" ];
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract {
|
|
|
|
inherit name src;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage";
|
|
|
|
name = "lunar-client.AppImage";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "1kfi3rgy401ll3gn9k30j0a1zds1ghl5g2ibfwlsnr826nckfmzw";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
2021-12-24 04:21:11 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType1 rec {
|
2020-11-19 00:13:47 +00:00
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
cp -r ${appimageContents}/usr/share/icons/ $out/share/
|
|
|
|
'';
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.libpulseaudio ];
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Minecraft 1.7, 1.8, 1.12, 1.15, 1.16, 1.17, and 1.18 Client";
|
2020-11-19 00:13:47 +00:00
|
|
|
homepage = "https://www.lunarclient.com/";
|
|
|
|
license = with licenses; [ unfree ];
|
2021-04-17 00:35:05 +00:00
|
|
|
maintainers = with maintainers; [ zyansheep Technical27 ];
|
2020-11-19 00:13:47 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|