blob: df361c69b0491b6d0a1f2e7fe337a4d9b437bb7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ appimageTools, lib, fetchurl, makeDesktopItem }:
let
name = "lunar-client";
version = "2.7.3";
desktopItem = makeDesktopItem {
name = "Lunar Client";
exec = "lunar-client";
icon = "lunarclient";
comment = "Minecraft 1.7, 1.8, 1.12, 1.15, and 1.16 Client";
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 = "0ihi937rrj677y9b377b4hhp9wsarbqwrdrd6k3lhzx3jyh2fynf";
};
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/
'';
extraPkgs = pkgs: [ pkgs.libpulseaudio ];
meta = with lib; {
description = "Minecraft 1.7, 1.8, 1.12, 1.15, and 1.16 Client";
homepage = "https://www.lunarclient.com/";
license = with licenses; [ unfree ];
maintainers = with maintainers; [ zyansheep Technical27 ];
platforms = [ "x86_64-linux" ];
};
}
|