-
Notifications
You must be signed in to change notification settings - Fork 56
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
Cannot install osu-stable and osu-lazer at the same time #137
Comments
I think both icons should come from |
Hmm, seems like using osu-lazer-bin from nix-gaming works... Also BTW, quick question: what is the difference between this repo's osu-lazer-bin and nixpkgs's osu-lazer-bin? |
I think at the moment the only difference is that ours is updated daily. |
Hmmmm, I think we can do it through overlays and I think it might be a cleaner solution. Here is how nixpkgs-wayland did it. https://github.com/nix-community/nixpkgs-wayland/blob/master/flake.nix (I'm not familiar with Nix and I don't really know what's going on, you might want to check additional resources, and sorry for my broken english) |
You sent an entire flake file, what exactly am I looking at? and why would overlays be a cleaner solution? |
Oops, I meant to send the repo, accidentally copied the wrong link |
Well, since the only thing changing here is the version, why copy the whole file? I think you can use the package from nixpkgs and only change the url and hash |
Oh, I think you misunderstood. |
If I understand it correctly, the collision happens between Nixpkgs' Nixpkgs'
Another difference is that the osu! packages here handle MIME types. AFAICT, the ones in Nixpkgs don't. In the long-term, it might be worthwhile to just override Nixpkgs' package definition, though it might not be trivial since the Nixpkgs' package is conditional and depends on architecture and OS. For a fix, we could rename the icons here so that the collision doesn't happen, but that seems more like a workaround. Another possibility is to use the same icon from the AppImage so that the collisions don't happen (technically, they'll still happen, but will be ignored as the file contents are the same). Assuming the icon in the AppImage is the same as this, we wouldn't have to go through the hassle of extracting it from the AppImage. This approach feels flimsy though — if the icon in the Nixpkgs package changes, we'll get the collision again. I'm sure there are better ways to resolve this, but I can't think of one right now. Ideas? |
Oops, I completely forgot about this issue...
IMO renaming the icons is fine, since eventually osu!stable will be replaced by osu!lazer. And after a recent update, osu!stable's icon and osu!lazer's icon is different.
EDIT: |
|
I'm not sure what's going on :(
(installed via home-manager)
nixos-rebuild --flake . switch
nix log /nix/store/8w7yz2w0fbcnxih200gi04b1bywqx5bd-home-manager-path.drv
The text was updated successfully, but these errors were encountered: