Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polymc-unwrapped: init at 6.1, polymc: init at 6.1 #369915

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

orvitpng
Copy link
Contributor

@orvitpng orvitpng commented Jan 1, 2025

Adds myself as a maintainer and initializes polymc-unwrapped and polymc as packages. I tried to roughly follow what the prismlauncher derivation looked like while still sticking to what PolyMC itself uses in its own derivation, so hopefully it is kind of the best of both worlds.

Closes #365781.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Jan 1, 2025
@orvitpng
Copy link
Contributor Author

orvitpng commented Jan 1, 2025

If anyone wants Mac support, I could try to figure it out, but I don't have one and frankly know nothing about them.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Jan 1, 2025
Copy link
Contributor

@LordMZTE LordMZTE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package builds and the launcher can launch various game versions.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Jan 1, 2025
@hustlerone
Copy link
Contributor

Shouldn't mangohud also be included as a runtime dependency along with gamemode?

@hustlerone
Copy link
Contributor

Also, check #160960

You might also want to alias multimc to polymc like it was before

@orvitpng
Copy link
Contributor Author

orvitpng commented Jan 7, 2025

Shouldn't mangohud also be included as a runtime dependency along with gamemode?

This is a good point, and I'll look into doing that today. Curiously, as of the latest commit in this PR, gamemode and mangohud support doesn't work on either PolyMC or PrismLauncher, both reporting that they "could not be found on your system." I'm going to investigate how the underlying code behind this finds it and possibly fix this for both launchers.

cc: @Scrumplex

@orvitpng orvitpng force-pushed the polymc branch 2 times, most recently from fa54591 to 76b6e7c Compare January 8, 2025 07:21
@orvitpng
Copy link
Contributor Author

orvitpng commented Jan 8, 2025

Scratch the part about missing gamemode support on PrismLauncher, I had a misunderstanding in how gamemode worked and couldn't get support to work for me in my environment. However, PrismLauncher does still lack support for MangoHUD as far as I'm aware, I assume this is because it does require some level of hack (just on a side tangent, it took me longer than it should've to figure out why MangoHUD wasn't being found by passing the mangohud package). MangoHUD support has been added.

@Scrumplex
Copy link
Member

I don't know about your environment, but the MangoHud toggle works fine on Prism Launcher for me. All you need to do is add pkgs.mangohud to your environment packages. Prism Launcher will find the Vulkan manifest of MangoHud using XDG_DATA_DIRS.

I can't and don't want to speak for PolyMC in this case, as the codebases have diverged significantly.

@orvitpng
Copy link
Contributor Author

orvitpng commented Jan 8, 2025

I don't know about your environment, but the MangoHud toggle works fine on Prism Launcher for me. All you need to do is add pkgs.mangohud to your environment packages. Prism Launcher will find the Vulkan manifest of MangoHud using

Well, sure. Assuming that the system environment contains MongoHud, then everything works fine. The question is whether or not that should be included within the launcher wrapper itself (just like gamemode is). If not including this is intentional, you can disregard. I guess I had assumed that you would want to include this by default! Sorry.

@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Jan 8, 2025
@orvitpng orvitpng requested a review from LordMZTE January 8, 2025 21:16
Copy link
Contributor

@LordMZTE LordMZTE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good over all, just some minor nitpicks :D

pkgs/by-name/po/polymc/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/po/polymc/package.nix Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: polymc
5 participants