Repository navigation
dorion: 6.13.2 -> 7.0.1 - #579758
dorion: 6.13.2 -> 7.0.1#579758lonerOrz wants to merge 1 commit into
Conversation
5c7f76f to
6859eae
Compare
|
Can cef binary be updated to the latest version and use that instead? The one from nixpkgs itself.. |
6859eae to
4d44357
Compare
all done |
|
Dorion 7.0.1 is out and with that CEF sharing has an ENV to go along with it. |
4d44357 to
1732203
Compare
Dorion 7.0.1 pins |
|
only ALSA devices show up by default. using workaround for now (excuse the llm code): [Note: the |
50619cd to
c15ceee
Compare
nixpkgs' cargoSetupHook now makes zstd-sys link zstd from nixpkgs. dorion's Linux inputs pull zstd in, but on Darwin it lists only openssl and the SDK, so the macos Home Manager build fails. The fix is part of an open nixpkgs pull request, so it lives here rather than as a cherry-pick in the fork, and goes once NixOS/nixpkgs#579758 reaches nixos-unstable. Change-Id: I2ebacfeb62364a697dec248f67316193ca561ed5
|
@lonerOrz did you ever get around to fixing the issue? |
ilkecan
left a comment
There was a problem hiding this comment.
Now that CEF comes from nixpkgs's cef-binary, most of the runpath and buildInputs added for the bundled CEF look unnecessary. Details inline.
| [ -f ${buildType}/libEGL.so ] && patchelf --set-rpath "${gl_rpath}" ${buildType}/libEGL.so | ||
| [ -f ${buildType}/libGLESv2.so ] && patchelf --add-needed libGL.so.1 --set-rpath "${gl_rpath}" ${buildType}/libGLESv2.so |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
c15ceee to
cb1edbd
Compare
| postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' | ||
| patchelf --add-rpath "${cefPath}:$out/bin" "$out/bin/.Dorion-wrapped" | ||
| ''; |
There was a problem hiding this comment.
Dorion's own code also dlopens libraries, so libxkbcommon and libx11 are needed after all. Without libxkbcommon-x11.so.0, which winit loads through xkbcommon-dl, it panics at startup (x11.rs:59). The binary also references libxkbcommon.so.0, libX11.so.6, libX11-xcb.so.1, libXi.so.6 and libwayland-client.so.0.
The current postFixup is redundant, since the linker wrapper already adds cef-path to the runpath and $out/bin has no libraries. With the following instead, plus the four new function arguments, the window opens.
| postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' | |
| patchelf --add-rpath "${cefPath}:$out/bin" "$out/bin/.Dorion-wrapped" | |
| ''; | |
| postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' | |
| # Dlopened by Rust dependencies such as winit and x11-dl. | |
| patchelf --add-rpath "${ | |
| lib.makeLibraryPath [ | |
| libxkbcommon | |
| libx11 | |
| libxi | |
| wayland | |
| ] | |
| }" "$out/bin/.Dorion-wrapped" | |
| ''; |
| desktop-file-utils | ||
| cmake | ||
| ninja | ||
| lld |
There was a problem hiding this comment.
lld can be dropped, here and from the function arguments. See SpikeHD/Dorion#552.
Resolves #579628
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.