-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
appimageTools, | ||
fetchurl, | ||
lib, | ||
makeWrapper, | ||
}: let | ||
pname = "lunar-client"; | ||
version = "3.2.0"; | ||
|
||
src = fetchurl { | ||
url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage"; | ||
hash = "sha256-Y9SjcVQ+7tmX6vKdYuD4JtTDJNmMKliEN5Yl41/WJjs="; | ||
}; | ||
|
||
appimageContents = appimageTools.extract {inherit pname version src;}; | ||
in | ||
appimageTools.wrapType2 rec { | ||
inherit pname version src; | ||
|
||
extraInstallCommands = '' | ||
mv $out/bin/{${pname}-${version},${pname}} | ||
source "${makeWrapper}/nix-support/setup-hook" | ||
wrapProgram $out/bin/${pname} \ | ||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" | ||
install -Dm444 ${appimageContents}/launcher.desktop $out/share/applications/lunar-client.desktop | ||
install -Dm444 ${appimageContents}/launcher.png $out/share/pixmaps/lunar-client.png | ||
substituteInPlace $out/share/applications/lunar-client.desktop \ | ||
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=lunar-client' \ | ||
--replace 'Icon=launcher' 'Icon=lunar-client' | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Free Minecraft client with mods, cosmetics, and performance boost."; | ||
homepage = "https://www.lunarclient.com/"; | ||
license = with licenses; [mit]; # colon 3 | ||
mainProgram = "lunar-client"; | ||
maintainers = with maintainers; [zyansheep Technical27 surfaceflinger]; | ||
platforms = ["x86_64-linux"]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters