Allow orca-slicer/bambu-slicer to work with Nvidia drivers

There was a patch to the upstream orca-slicer to add these overrides to the app-image build they provide (though I cant get their app-image to run under nixos, and would rather use the built in nix package)

I can get it running on nixos with wayland and nvidia by taking the changes and making a wrapper script:

$ cat orca.sh
export __GLX_VENDOR_LIBRARY_NAME=mesa
export __EGL_VENDOR_LIBRARY_FILENAMES=/nix/store/mdcrghy6cxi1924i2li2r4265lhrw737-mesa-25.0.6/share/glvnd/egl_vendor.d/50_mesa.json
export MESA_LOADER_DRIVER_OVERRIDE=zink
export GALLIUM_DRIVER=zink
export WEBKIT_DISABLE_DMABUF_RENDERER=1
orca-slicer

I’m not sure how we could conditionally set these when wayland and nvidia propriteary are present. If someone could guide me on where those settings might be or run with it, it’d appreciated it!

-Eric

1 Like

This discourse issue came up while I was searching and I found an answer posted on github.

Hopefully this helps!

So the solution proposed is to wrap it with some app called nix-alien? (I’ve not heard of it till just now)

Is there a way we could understand what nix-alien is doing and just fix it for everyone in nix-pkgs?

It is not a universal fix.

I proposed the “solution” and sometimes it works, sometimes it doesn’t.
Depends on whether you update or not.

What does nix-alien do? Not sure, but from my quick search on their GitHub, they appear to spawn a a FHS shell with all needed shared dependencies to execute the binary