-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
electron-cash: 3.1.6 -> 3.3.1 #43390
electron-cash: 3.1.6 -> 3.3.1 #43390
Conversation
Using this gross workaround I just thought of I am able to run most Qt apps in that situation. This update seems to run fine with this. (Read the comments in the gist for details about how.)
This gets the thumbs-up of probably working as-designed. (It probably works when used in a profile or environment when other Qt apps work.)
|
@GrahamcOfBorg build electron-cash |
Failure on x86_64-linux (full log) Attempted: electron-cash Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: electron-cash Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: electron-cash Partial log (click to expand)
|
223bde8
to
bda3a47
Compare
|
||
substituteInPlace $out/share/applications/electron-cash.desktop \ | ||
--replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u" | ||
|
||
wrapProgram $out/bin/electron-cash \ | ||
--prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins |
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.
While this may make the applications work, this is something that will need to be cleaned up after an actual fix is built into nixpkgs, such as #44047. (Nothing to do, just remarking; this will cross-reference in the PR.)
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.
Yes it was meant to be a temporary fix
@samueldr would this be acceptable to merge this as is, while waiting for your better fix ? |
I'm not fond of the idea of wrapping Qt executables to work around the issue, but I think that making the thing usable on mis-matched Qt is better than it not working. Sideway thumb for the Qt wrapper. As far as updating the package, seems alright. EDIT: JUST in case, I was about to click the "Merge pull request" button; your title still has WIP in it. Is it still in WIP @nyanloutre? |
@samueldr I will just add a commentary above the wrapper definition, so it's not left there in the future. I will remove the WIP title when I am done and ping you |
dae34ea
to
1004dae
Compare
@samueldr done, everything is working fine, thanks for the help ! |
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.
Thanks, didn't need the reminder, but is fine with; makes it more obvious to a future contributor why this is there.
Motivation for this change
Upgrade electron-cash to version 3.3
Unfortunately it's more complicated than expected.
Here is the error I get :
If somebody could help me debug this, I would be very glad !
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)