diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-11-06 11:15:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 11:15:54 +0200 |
commit | 680d0051deb89bfd4a17f015aba06c21e1cc0d56 (patch) | |
tree | 514a04506adfa0833bdeb0a27b4be3153b98be4e /pkgs/games | |
parent | 302bea89ef9fcc6570b58942baaef42dae86f9c7 (diff) | |
parent | 539466804b46ba5b2c861f39c2a04f19ac435c2a (diff) |
Merge pull request #263015 from surfaceflinger/lunarclient-autoupdate
lunar-client: migrate to by-name and add updateScript
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/lunar-client/default.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/pkgs/games/lunar-client/default.nix b/pkgs/games/lunar-client/default.nix deleted file mode 100644 index 042259fcfae22..0000000000000 --- a/pkgs/games/lunar-client/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ appimageTools -, fetchurl -, lib -, makeWrapper -}: - -let - pname = "lunar-client"; - version = "3.1.0"; - - src = fetchurl { - url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage"; - hash = "sha256-6OAGNkMyHOZI5wh92OtalnvUVFWNAS9PvkFS0e4YXhk="; - }; - - 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; [ unfree ]; - maintainers = with maintainers; [ zyansheep Technical27 surfaceflinger ]; - platforms = [ "x86_64-linux" ]; - }; -} |