From 47845ec5a69353eb7cac21bb05e3ae3ccd8d4f5a Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 10 Jul 2026 17:18:21 +0000 Subject: [PATCH 1/5] Desktop: Use custom CEF build on Linux to fix GPU accelerated UI --- .nix/pkgs/graphite-cef.nix | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.nix/pkgs/graphite-cef.nix b/.nix/pkgs/graphite-cef.nix index 732ffd0943..45e12a5d1a 100644 --- a/.nix/pkgs/graphite-cef.nix +++ b/.nix/pkgs/graphite-cef.nix @@ -1,30 +1,27 @@ { pkgs, ... }: let - version = "149.0.5+g6770623+chromium-149.0.7827.197"; - hashes = { - aarch64-linux = "sha256-cBAvcvs1rAg5EKJkCt81RZYupCWpUNIC/nLt3PJow7Q="; - x86_64-linux = "sha256-OPGMBJmvvLiLdBDniBQwx7LmTGGI59AcesJdILSeqcs="; - }; + version = "149.7827.0"; + upstream = "149.0.5+g6770623+chromium-149.0.7827.197"; selectSystem = attrs: attrs.${pkgs.stdenv.hostPlatform.system} or (throw "Unsupported system ${pkgs.stdenv.hostPlatform.system}"); - src = pkgs.fetchurl { - url = "https://cef-builds.spotifycdn.com/cef_binary_${version}_${ - selectSystem { - aarch64-linux = "linuxarm64"; - x86_64-linux = "linux64"; - } - }_minimal.tar.bz2"; - hash = selectSystem hashes; + src = selectSystem { + x86_64-linux = pkgs.fetchurl { + url = "https://github.com/timon-schelling/graphite-cef/releases/download/v${version}/graphite_cef_x86-64_linux.tar.xz"; + hash = "sha256-ePkZWzsHLBdZyHOgzD1vuzafGRFWFGPIsU40pGIZZvM="; + }; + aarch64-linux = pkgs.fetchurl { + url = "https://cef-builds.spotifycdn.com/cef_binary_${upstream}_linuxarm64_minimal.tar.bz2"; + hash = "sha256-cBAvcvs1rAg5EKJkCt81RZYupCWpUNIC/nLt3PJow7Q="; + }; }; in -pkgs.cef-binary.overrideAttrs (finalAttrs: { - version = builtins.head (builtins.split "\\+" version); - inherit src; +pkgs.cef-binary.overrideAttrs (_: { + inherit src version; postInstall = '' rm -r $out/* $out/.* || true strip ./Release/*.so* @@ -38,7 +35,7 @@ pkgs.cef-binary.overrideAttrs (finalAttrs: { echo '${ builtins.toJSON { type = "minimal"; - name = builtins.baseNameOf finalAttrs.src.url; + name = "cef_binary_${upstream}"; sha1 = ""; } }' > $out/archive.json From a47695090db7575a18bcee0acc6e1359adb6a9df Mon Sep 17 00:00:00 2001 From: Timon Date: Sun, 19 Jul 2026 10:50:06 +0000 Subject: [PATCH 2/5] Update hash --- .nix/pkgs/graphite-cef.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nix/pkgs/graphite-cef.nix b/.nix/pkgs/graphite-cef.nix index 45e12a5d1a..757ae71f06 100644 --- a/.nix/pkgs/graphite-cef.nix +++ b/.nix/pkgs/graphite-cef.nix @@ -12,7 +12,7 @@ let src = selectSystem { x86_64-linux = pkgs.fetchurl { url = "https://github.com/timon-schelling/graphite-cef/releases/download/v${version}/graphite_cef_x86-64_linux.tar.xz"; - hash = "sha256-ePkZWzsHLBdZyHOgzD1vuzafGRFWFGPIsU40pGIZZvM="; + hash = "sha256-NQnddlL5lvoqJ9BLzIDUfbP/iCW/PfjNuJbtc92Y/Qw="; }; aarch64-linux = pkgs.fetchurl { url = "https://cef-builds.spotifycdn.com/cef_binary_${upstream}_linuxarm64_minimal.tar.bz2"; From c9cec904371b8d73a2399eec97a9199a0ad6668a Mon Sep 17 00:00:00 2001 From: Timon Date: Sun, 19 Jul 2026 11:41:49 +0000 Subject: [PATCH 3/5] Update hash --- .nix/pkgs/graphite-cef.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nix/pkgs/graphite-cef.nix b/.nix/pkgs/graphite-cef.nix index 757ae71f06..c34f691738 100644 --- a/.nix/pkgs/graphite-cef.nix +++ b/.nix/pkgs/graphite-cef.nix @@ -12,7 +12,7 @@ let src = selectSystem { x86_64-linux = pkgs.fetchurl { url = "https://github.com/timon-schelling/graphite-cef/releases/download/v${version}/graphite_cef_x86-64_linux.tar.xz"; - hash = "sha256-NQnddlL5lvoqJ9BLzIDUfbP/iCW/PfjNuJbtc92Y/Qw="; + hash = "sha256-lrxAALouHjQlw5lSSZka/BNpa5PVjjcncbofgKruOWk="; }; aarch64-linux = pkgs.fetchurl { url = "https://cef-builds.spotifycdn.com/cef_binary_${upstream}_linuxarm64_minimal.tar.bz2"; From adba81a906ac310686f9fa9965d85afe0553df1c Mon Sep 17 00:00:00 2001 From: Timon Date: Sun, 19 Jul 2026 14:49:44 +0000 Subject: [PATCH 4/5] Update hash --- .nix/pkgs/graphite-cef.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nix/pkgs/graphite-cef.nix b/.nix/pkgs/graphite-cef.nix index c34f691738..4e131a2c77 100644 --- a/.nix/pkgs/graphite-cef.nix +++ b/.nix/pkgs/graphite-cef.nix @@ -12,7 +12,7 @@ let src = selectSystem { x86_64-linux = pkgs.fetchurl { url = "https://github.com/timon-schelling/graphite-cef/releases/download/v${version}/graphite_cef_x86-64_linux.tar.xz"; - hash = "sha256-lrxAALouHjQlw5lSSZka/BNpa5PVjjcncbofgKruOWk="; + hash = "sha256-CtvS/+NUh5ilnunt4AsWaZfWPiCsdEtz6+TLADT1Gqk="; }; aarch64-linux = pkgs.fetchurl { url = "https://cef-builds.spotifycdn.com/cef_binary_${upstream}_linuxarm64_minimal.tar.bz2"; From 90d953f199ea26a24db365e4540ba1ffd4c4ef3c Mon Sep 17 00:00:00 2001 From: Timon Date: Sun, 19 Jul 2026 15:17:10 +0000 Subject: [PATCH 5/5] Fix adapter selection --- node-graph/libraries/wgpu-executor/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-graph/libraries/wgpu-executor/src/context.rs b/node-graph/libraries/wgpu-executor/src/context.rs index cb83597fef..e959af5d48 100644 --- a/node-graph/libraries/wgpu-executor/src/context.rs +++ b/node-graph/libraries/wgpu-executor/src/context.rs @@ -49,7 +49,7 @@ impl ContextBuilder { let mut adapters = enumerate_sorted(&instance, self.backends).await; if let Some(index) = self.selection - && index >= adapters.len() + && index < adapters.len() { let selected_adapter = adapters.remove(index); adapters.insert(0, selected_adapter);