gorilla-devs / GDLauncher

GDLauncher is a simple, yet powerful Minecraft custom launcher with a strong focus on the user experience
https://gdevs.io
GNU General Public License v3.0
1.22k stars 246 forks source link

Nix/NixOS support #1496

Open lpuv opened 1 year ago

lpuv commented 1 year ago

Is your feature request related to a problem? Please describe. No, just a request as the AppImage doesn't work, neither does the generic linux zip

Describe the solution you'd like A package in nixpkgs for gdlauncher!

Describe alternatives you've considered None.

Additional context When running gdlauncher via nix-alien, this happens

Eskaan commented 1 year ago

This is just a question of someone wants to go and make one, anyone can do that.

andOrlando commented 1 year ago

Nice seeing more nix users around here! I actually already made a simple derivation here if you want to just use this. I haven't actually committed it to nixpkgs personally because I feel like it might be annoying to maintain and I'm probably not doing it correctly, but it does work if you import it in your configuration.

I do have that issue where it can't bypass cloudflare on nixos, but I'm not sure if that's a linux/nixos exclusive issue or not.

Eskaan commented 1 year ago

Thanks, that is at least a start! The Cloudflare issue is commonly known and System independent.

PassiveLemon commented 1 year ago

I am able to get it started by making a .desktop file which runs the appimage with "appimage-run" from the Nix packages. A few things to note:

An "official" solution in the Nix packages would be ideal of course since these workarounds can be janky sometimes

PassiveLemon commented 1 year ago

Nice seeing more nix users around here! I actually already made a simple derivation here if you want to just use this. I haven't actually committed it to nixpkgs personally because I feel like it might be annoying to maintain and I'm probably not doing it correctly, but it does work if you import it in your configuration.

I do have that issue where it can't bypass cloudflare on nixos, but I'm not sure if that's a linux/nixos exclusive issue or not.

When importing this into my configurations, I get an infinite recursion error.

Eskaan commented 1 year ago

with --no-sandbox

I experienced a similar problem getting VS Code to run on the school PCs, I used --no-gpu-sandbox. Does that work too?

PassiveLemon commented 1 year ago

Both work for me but I'm unsure if there is a difference between them.