nixpkgs/pkgs/games/lunar-client/default.nix
Technical27 3cee82ace3
lunar-client: 2.4.0 -> 2.6.0 (#119355)
* lunar-client: add Technical27 to maintainers

* lunar-client: 2.4.0 -> 2.6.0
2021-04-15 18:11:52 -04:00

45 lines
1.2 KiB
Nix

{ appimageTools, lib, fetchurl, makeDesktopItem }:
let
name = "lunar-client";
version = "2.6.0";
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 = "1pmblnnvs5jv5v7y5nnxr3liw9xfp5h6l44x7pln8kr9zg85dzma";
};
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" ];
};
}