Can't see the abyss for all these rabbit holes

Bambu-studio in nixos 23.11

If you want to run bambu-studio in nixos 23.11, you'll find it only packaged for the (current) unstable. And running that with nix run nixpkgs/master#bambu-studio, all you get is empty windows.

You'll need to export WEBKIT_DISABLE_DMABUF_RENDERER=1 to actually see something.

Here's a nixpkgs overlay, assuming you have added a recent nixpkgs commit as nixpkgs_for_bambu as as input:

(
	final: prev: {
	  bambu-studio = let
		unwrapped = (import nixpkgs_for_bambu {inherit (prev) system;}).bambu-studio;
	  in
		prev.runCommand "bambu-studio-wrapper" {buildInputs = [unwrapped prev.makeWrapper];} ''
		  mkdir -p $out/bin
		  makeWrapper ${unwrapped}/bin/bambu-studio $out/bin/bambu-studio --set WEBKIT_DISABLE_DMABUF_RENDERER 1
		'';
	}
)