-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nwjs: 0.54.1 -> 0.82.0 #262424
nwjs: 0.54.1 -> 0.82.0 #262424
Conversation
Result of nixpkgs review: 10 packages built:betaflight-configurator emuflight-configurator gridtracker inav-configurator nwjs nwjs-sdk onlykey pinegrow pinegrow6 popcorntime |
Program runs:
|
cdbbd56
to
10bd054
Compare
Please move the formatting into a separate commit, thanks! |
10bd054
to
88b26b9
Compare
@emilylange - Done (: |
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.
just some nits
c03716a
to
fc90e41
Compare
@robert-manchester - Cool, I appreciate it 😃 |
fc90e41
to
262c1f2
Compare
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 was playing around with this. have some comments inline about just removing the patchelf and for loops in the install phase and modifying the inputs to autoPatchelfHook to get a nice rpath.
[edit] just posted the changes in a PR
Changes have been merged, and I've tested that programs using the library still run. |
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
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 think makeWrapper can get removed.
85528bf
to
2afd973
Compare
2afd973
to
8490eae
Compare
8490eae
to
43d7187
Compare
Co-authored-by: robert manchester <86313040+robert-manchester@users.noreply.github.com>
9794ae0
to
ab8d314
Compare
Works well enough on my GNOME setup, but Wayland on Sway should probably support {pkgs ? import (fetchTarball "https://github.com/MikaelFangel/nixpkgs-upstream/archive/update-nwjs.tar.gz") {}}:
pkgs.nwjs.overrideAttrs (oldAttrs: {
buildInputs =
(oldAttrs.buildInputs or [])
++ [
(pkgs.wrapGAppsHook.override {
makeWrapper = pkgs.makeWrapper;
})
];
preFixup = ''
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
)
'';
}) Without overriding makeWrapper, I get an error like
I looked to Signal for a workaround. Just using |
16e908e
to
b4c8a38
Compare
@nekowinston - The crash doesn't happen on Hyprland w/ wayland, but adding your suggestions makes nwjs respected by the WM. (: |
Result of 10 packages built:
It is a joy to review large changes when it is so cleanly divided into atomic commits, thank you. Runs fine and LGTM! |
Thank you @pbsds (: |
Description of changes
This updates nwjs and as a noteworthy change I've added the autoPatchElfHook to the nativeBuildInputs, because of issues with running nwjs else wise. I've also run a formatter on the derivation, hence the many changes.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)