nuclear: 0.6.6 -> unstable-2022-04-20#169347
nuclear: 0.6.6 -> unstable-2022-04-20#169347WolfangAukang wants to merge 1 commit intoNixOS:masterfrom
Conversation
d018267 to
6f4b893
Compare
6f4b893 to
a80059d
Compare
|
I'm getting the following error when running this from nixpkgs-review: [nix-shell:~/.cache/nixpkgs-review/pr-169347-1]$ ./results/nuclear/bin/nuclear
main › (node:2) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `nuclear --trace-deprecation ...` to show where the warning was created)
[2:0421/193633.580170:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.Adding the Other than that, this looks good to me 👍 |
a80059d to
5a7ead2
Compare
Sure thing, just wrapped it |
There was a problem hiding this comment.
I have created an issue upstream so that we can hopefully get this fixed in a future release. See nukeop/nuclear#1268.
There was a problem hiding this comment.
This way the fix only applies to the desktop file, so launching the app from the terminal would still cause issues. You should use wrapProgram instead:
| --replace 'Exec=AppRun' 'Exec=${pname} --no-sandbox' | |
| --replace 'Exec=AppRun' 'Exec=${pname}' | |
| # Temporary fix for https://github.com/nukeop/nuclear/issues/1268 | |
| wrapProgram $out/bin/nuclear --add-flags "--no-sandbox" |
There was a problem hiding this comment.
Here is the thing: To do this, you need to run wrapProgram into a nativeBuildInputs list so it can be recognized for its usage on the phase. As this is an AppImage, I'm not sure of the correct approach, as nativeBuildInputs is an anonymous function at this scope. That's why I only wrapped the desktop file.
One plan is to try using stdenv.mkDerivation, but I haven't found an example of this with AppImages. and I've found an example with blockbench-electron, going to try it
There was a problem hiding this comment.
Ok, I was able to move it into an mkDerivation, but some considerable observations:
- As we are just wrapping to wait for a fix, it would be preferred to revert it into the old structure (the AppImage wrapType2) after the fix is finally applied.
- Nuclear maximum supported Electron version is 13, which is currently marked as insecure.
There was a problem hiding this comment.
Mhmm, that does seem a bit annoying. I saw the other PR that updates this used extraPkgs = pkgs: with pkgs; [ wrapGAppsHook ];, which would only do anything if it's an nativeBuildInput right? Wouldn't that work the same with makeWrapper?
There was a problem hiding this comment.
Unfortunately I still get a wrapProgram: command not found. I'm using makeWrapper as an input.
5a7ead2 to
f2dea33
Compare
Using stdenv.mkDerivation instead of appimageTools.wrapType2 as a temporary workaround because the binary needs to be wrapped with the --no-sandbox flag
f2dea33 to
06d4e1c
Compare
|
Moving to NUR |
Description of changes
Latest stable version (0.6.17) does not work, but one of the latest pre-releases works fine. Also, as this app is still an alpha, using an unstable version shouldn't be a problem.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes