Skip to content

dorion: 6.13.2 -> 7.0.1 - #579758

Open
lonerOrz wants to merge 1 commit into
NixOS:masterfrom
lonerOrz:update/dorion
Open

lonerOrz wants to merge 1 commit into
NixOS:masterfrom
lonerOrz:update/dorion

Conversation

@lonerOrz

Copy link
Copy Markdown
Member

Resolves #579628

Things done

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 27, 2026
@nyabinary

Copy link
Copy Markdown
Contributor

Can cef binary be updated to the latest version and use that instead? The one from nixpkgs itself..

@lonerOrz lonerOrz changed the title dorion: 6.13.2 -> 7.0.0 cef-binary: 151.3.16 -> 156.0.14,dorion: 6.13.2 -> 7.0.0 Oct 28, 2026
@lonerOrz

Copy link
Copy Markdown
Member Author

Can cef binary be updated to the latest version and use that instead? The one from nixpkgs itself..

all done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from puffnfresh October 28, 2026 10:27
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 28, 2026
@nyabinary

Copy link
Copy Markdown
Contributor

Dorion 7.0.1 is out and with that CEF sharing has an ENV to go along with it.

@lonerOrz

lonerOrz commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Dorion 7.0.1 is out and with that CEF sharing has an ENV to go along with it.

Dorion 7.0.1 pins cef-dll-sys 146.6.0, which does not yet include support for NIX_CEF_BINARY.

@lonerOrz lonerOrz changed the title cef-binary: 151.3.16 -> 156.0.14,dorion: 6.13.2 -> 7.0.0 cef-binary: 151.3.16 -> 156.0.14,dorion: 6.13.2 -> 7.0.1 Nov 2, 2026
@writzx

writzx commented Nov 9, 2026

Copy link
Copy Markdown

only ALSA devices show up by default. libpulseaudio is not in the cef-binary run path. The fix was manually adding libpulseaudio path to LD_LIBRARY_PATH.

using workaround for now (excuse the llm code):

  # libpulseaudio: CEF loads it only at run time. Without it, CEF uses ALSA
  #   and does not show the PipeWire audio nodes.
  dorion = pkgs.symlinkJoin {
    name = "dorion-${dorionPackage.version}";
    paths = [ dorionPackage ];
    nativeBuildInputs = [ pkgs.makeWrapper ];
    postBuild = ''
      rm "$out/bin/Dorion"
      makeWrapper "${dorionPackage}/bin/Dorion" "$out/bin/Dorion" \
        --add-flags --no-sandbox \
        --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.libpulseaudio ]}"
    '';
  };

[Note: the --no-sandbox is not necessary, dorion automatically does a restart with --no-sandbox.]

@lonerOrz
lonerOrz force-pushed the update/dorion branch 4 times, most recently from 50619cd to c15ceee Compare November 11, 2026 01:30
mulatta added a commit to mulatta/dots that referenced this pull request Nov 12, 2026
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
@nyabinary

Copy link
Copy Markdown
Contributor

@lonerOrz did you ever get around to fixing the issue?

@lonerOrz

Copy link
Copy Markdown
Member Author

@lonerOrz did you ever get around to fixing the issue?

done

@ilkecan ilkecan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that CEF comes from nixpkgs's cef-binary, most of the runpath and buildInputs added for the bundled CEF look unnecessary. Details inline.

Comment thread pkgs/by-name/do/dorion/package.nix Resolved
Comment thread pkgs/by-name/do/dorion/package.nix Resolved
Comment thread pkgs/by-name/ce/cef-binary/package.nix Outdated
Comment on lines +105 to +106
[ -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.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Nov 28, 2026
@lonerOrz lonerOrz changed the title cef-binary: 151.3.16 -> 156.0.14,dorion: 6.13.2 -> 7.0.1 dorion: 6.13.2 -> 7.0.1 Nov 28, 2026
Comment on lines +174 to +176
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf --add-rpath "${cefPath}:$out/bin" "$out/bin/.Dorion-wrapped"
'';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lld can be dropped, here and from the function arguments. See SpikeHD/Dorion#552.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Request: dorion 6.13.2 → 7.0.0

4 participants