-
Notifications
You must be signed in to change notification settings - Fork 58
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
umu -> umu-launcher: switch to npins & rename to umu-launcher #233
Conversation
924d48a
to
48a9aa3
Compare
Thanks to Open-Wine-Components/umu-launcher#345 we don't need submodules, even though |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Isn't umu-launcher also in Nixpkgs? Or does it not include all the upstream changes yet?
It's in nixpkgs, but what's currently being used by users is not yet upstreamed (a release hasn't been pushed with it). I don't know how I feel about rolling back versions |
Thought so. Then this is fine. We'll use the nixpkgs package later, when it's up to date. Will wait for @ProspectPyxis to confirm osu-stable is working. |
I was having issues updating my flake due to this error:
Overriding the input using nix flake update --override-input nix-gaming github:LovingMelody/nix-gaming/update-umu-launcher fixed the issue above. Thanks! |
2ad9768
to
4ecd309
Compare
* Rename `umu` to `umu-launcher` to match package name upstream * Remove flake input for `umu-launcher` and use npins instead
4ecd309
to
b3b576d
Compare
I've tried to test Errors
I've looked into this and it had been fixed previously, but this has changed since @MattSturgeon's rewrite. By looking at the changes in Nixpkgs and upstream, I've worked out two possible options, none of which worked: diff --git a/pkgs/default.nix b/pkgs/default.nix
index 3b5889a..8994476 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -77,7 +77,13 @@
};
osu-stable = pkgs.callPackage ./osu-stable {
- inherit (config.packages) osu-mime proton-osu-bin umu-launcher;
+ inherit (config.packages) osu-mime proton-osu-bin;
+ # Add 32-bit drivers
+ umu-launcher = config.packages.umu-launcher.override {
+ # see https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/hardware/graphics.nix#L124
+ extraLibraries = p: [p.mesa.drivers];
+ };
wine = config.packages.wine-osu;
wine-discord-ipc-bridge = config.packages.wine-discord-ipc-bridge.override {wine = config.packages.wine-osu;};
}; diff --git a/pkgs/default.nix b/pkgs/default.nix
index 3b5889a..8994476 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -77,7 +77,13 @@
};
osu-stable = pkgs.callPackage ./osu-stable {
- inherit (config.packages) osu-mime proton-osu-bin umu-launcher;
+ inherit (config.packages) osu-mime proton-osu-bin;
+ # Add 32-bit drivers
+ umu-launcher = config.packages.umu-launcher.overrideAttrs (_: {
+ # see https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/hardware/graphics.nix#L124
+ # extraLibraries = p: [p.mesa.drivers];
+ multiArch = true;
+ });
wine = config.packages.wine-osu;
wine-discord-ipc-bridge = config.packages.wine-discord-ipc-bridge.override {wine = config.packages.wine-osu;};
}; Any ideas on how to fix this would be appreciated. |
It'd be better to discuss this in an issue on https://github.com/NixOS/nixpkgs and/or https://github.com/Open-Wine-Components/umu-launcher, as it isn't strictly related to this PR. Unless this PR is also bumping the umu repo from a pre-refactor revision to a post-refactor revision? EDIT: it's not. The previous flake lock was pointing to the same commit used by this PR.
If that linked commit was the fix, then adding Unfortunately EDIT: NixOS/nixpkgs#379425 (merged) |
Weird, I am not having the issue on Nvidia. my only guess on how to fix it, pass with config.hardware.graphics; [ package package32 ]; |
Apologies for the delay - I didn't have access to my computer for a bit. I'm currently running into the same issue as MattSturgeon, which should be fixed when the PR is in unstable. There shouldn't be any other issues as far as I can tell. |
If you want to test, you can override the nixpkgs input to Matt's branch and it should work as-is. Also, linking the tracker so we can merge this ASAP. https://nixpk.gs/pr-tracker.html?pr=379425 |
Technically, that PR shouldn't block this one, because nix-gaming is already using a umu-launcher revision affected by the issue, right? So this PR shouldn't make the situation any worse than it already is. Also: nix-gaming is tracking nixpkgs-unstable, which already has the fix. Currently, the only unstable channel without the fix is nixos-unstable. So if the flake.lock is bumped again, this PR should also bring in that upstream fix (assuming end users aren't defining a |
Correct. The readme instructs users not to use any Alright then, I'll merge this and let CI update things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks everyone!
This pull request resolves issue #204. Following the upstream renaming of
umu
toumu-launcher
, I have updated the name accordingly. If you prefer this change to be implemented as a soft change for now, please let me know.Mentioning @ProspectPyxis since this also changes
osu-stable
. I did a quick test to ensure it's working.