From f1a5c7062ab43967f98f9043f1a5fed85dd022a9 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Tue, 7 Jul 2026 22:14:18 +0800 Subject: [PATCH] meshlab: fix launch failure with EGL-only glew meshlab renders through Qt's xcb platform, which creates a GLX context and calls glewInit() against it. Since the glew 2.2.0 -> 2.3.1 upgrade (#526521) dropped Arch's egl+glx coexistence patch, the default EGL-enabled glew is built EGL-only (no GLX dispatch table), so glewInit can't read GL_VERSION and meshlab fails to launch with "GLEW initialization failed: Missing GL version". Use a GLX-capable glew (enableEGL = false), matching the workaround already used by openscad and rpcs3. Resolves #531470 Co-authored-by: daef Assisted-by: Claude-Code:GLM-5.2 --- pkgs/by-name/me/meshlab/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/me/meshlab/package.nix b/pkgs/by-name/me/meshlab/package.nix index 104fbc3a03d2..ed277bf0733b 100644 --- a/pkgs/by-name/me/meshlab/package.nix +++ b/pkgs/by-name/me/meshlab/package.nix @@ -76,7 +76,12 @@ stdenv.mkDerivation (finalAttrs: { bzip2 muparser eigen - glew + # MeshLab renders through Qt's xcb platform, which creates a GLX context, + # and calls glewInit() against it. The default EGL-enabled glew is built + # EGL-only (no GLX dispatch table), so glewInit can't read GL_VERSION and + # the app fails to launch with "GLEW initialization failed: Missing GL + # version". See https://github.com/NixOS/nixpkgs/issues/531470 + (glew.override { enableEGL = false; }) gmp levmar qhull