2021-01-25 09:26:54 +01:00
|
|
|
{ appimageTools, lib, fetchurl, makeDesktopItem }:
|
2021-04-16 00:11:52 +02:00
|
|
|
|
2020-11-13 18:27:46 +01:00
|
|
|
let
|
|
|
|
name = "lunar-client";
|
2021-11-20 19:05:37 +01:00
|
|
|
version = "2.8.8";
|
2020-11-13 18:27:46 +01:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Lunar Client";
|
|
|
|
exec = "lunar-client";
|
|
|
|
icon = "lunarclient";
|
2021-04-16 00:11:52 +02:00
|
|
|
comment = "Minecraft 1.7, 1.8, 1.12, 1.15, and 1.16 Client";
|
2020-11-13 18:27:46 +01:00
|
|
|
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";
|
2021-11-20 19:05:37 +01:00
|
|
|
sha256 = "sha256-zPu0rc/Qi6+EyHXeXRJfkPHKK6Hr1JsENBvLt8a9WBM=";
|
2020-11-13 18:27:46 +01:00
|
|
|
};
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2021-04-16 00:11:52 +02:00
|
|
|
extraPkgs = pkgs: [ pkgs.libpulseaudio ];
|
|
|
|
|
2020-11-13 18:27:46 +01:00
|
|
|
meta = with lib; {
|
2021-04-16 00:11:52 +02:00
|
|
|
description = "Minecraft 1.7, 1.8, 1.12, 1.15, and 1.16 Client";
|
2020-11-13 18:27:46 +01:00
|
|
|
homepage = "https://www.lunarclient.com/";
|
|
|
|
license = with licenses; [ unfree ];
|
2021-04-16 00:11:52 +02:00
|
|
|
maintainers = with maintainers; [ zyansheep Technical27 ];
|
2020-11-13 18:27:46 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|