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
unityhub: init at 2.2.2 #65391
unityhub: init at 2.2.2 #65391
Conversation
Unity Hub works on NixOS with appimage-run. It's what I've been using. |
@leo60228 |
cc @jb55 |
Can you change the title of the PR to something more meaningful? |
Unity Hub on Linux is the recommended way to launch Unity itself, which is compiled for Ubuntu (not an appimage). I have an FHS env for this at https://github.com/leo60228/dotfiles/blob/master/unityenv.nix (ignore the hack in runScript). |
appimage-run also caches data in the user's HOME directory. It'd probably make more sense to do it in the build. |
cc @jb55
I don't really use this package anymore, sorry. Feel free to remove my
maintainership as an additional commit.
|
I don't quite follow what you mean by this. It would be helpful if you could elaborate a bit more. |
There's a folder in |
I want to compile a WebGL project. There is currently a problem with Emscripten embedded in Unity. Do you happen to know how to fix it? |
(mkDerivation rec{ can't execute (AppImage) and stop. |
unity3d = buildFHSUserEnv rec { Thanks @leo60228 but webgl files.. problem EM="$EDITOR/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten" ERROR 1: Failed running python " stdout: ERROR 2: Exception: Failed building WebGL Player.
|
is this pr blocked on only webgl? |
@ar1a I'm Open the file directly and use unity3d.tar.xz. |
I couldn't get this to work. First I updated the AppImage link to the newest one on their site, but then when I tried to run it with appimage-run, it doesn't seem to do anything. |
I had to use Unity for a class, I haven't touched it in a while. |
What is the status of this? |
I decided to put unityhub in a separate package in case someone still wants to use the other one. |
I have a problem with unity-hub. thanks. |
looks like the binary needs to be renamed from unityhub-2.2.2 to unityhub. |
''; | ||
|
||
src = fetchurl { | ||
url = "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage"; |
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.
I just realized, there will be broken hashes:
https://aur.archlinux.org/packages/unityhub/
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.
for posterity
Unity doesn't provide version-specific urls for Unity Hub so on every update there will be some period where the sum is incorrect until I find time to update the package.
Then even after I update the package, the CDN will keep serving the old version for a while to some people...
There isn't much that I can do to make this better, so please be patient.
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.
The alternative would be to upload UnityHub.AppImage to archive.org.
The hash is broken by the way in master.
I rolled back my change to the name. It works for me either way (I don't have licenses to test much, though). Still, the issue with the absence of a stable download is a major one. We might have to remove unityhub from nixpkgs because of that. |
surely there's an alternative to removing it. packaging is more help than just "here is a download url", it saves every single person who wants to use unityhub (there will be a lot, its what unity is transitioning to) to figuring out quirks, dependencies, etc |
Motivation for this change
#65229
Let's switch to unity hub so people can manage different versions of unity.
Seems like we don't need the old package anymore.
Things done
sandbox
innix.conf
on non-NixOS)./result/bin/
)nix-shell -p nix-review --run "nix-review wip"
nix path-info -S
before and after)