venator: fix build; fix blank UI on NVIDIA GPU and X11 (#515556)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-05 21:06:55 +00:00
committed by GitHub
+8 -2
View File
@@ -26,7 +26,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-qjSB/XAxB/VbO4m9Gg/XP9332WaSm/d/ejSTrHRchHg=";
};
cargoRoot = "venator-app";
buildAndTestSubdir = "venator-app";
# NOTE: don't put npmRoot here because it will break the build with "Found
# version mismatched Tauri packages".
@@ -35,7 +34,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
postPatch = ''
cp ${finalAttrs.src}/venator-app/package.json .
cp ${finalAttrs.src}/venator-app/package-lock.json .
cp ${finalAttrs.src}/Cargo.lock venator-app/
'';
cargoHash = "sha256-OLtWDJuK9fXbpjUfidLP2nKdD49cWmqWI92bhV29054=";
@@ -58,6 +56,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
webkitgtk_4_1
];
# "Failed to create GBM buffer" on NVIDIA GPU and X11
# See https://github.com/tauri-apps/tauri/issues/9394
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
gappsWrapperArgs+=(
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
)
'';
passthru.updateScript = nix-update-script { };
meta = {