From e0f9a5b9da57727fbd8beedd8d3a0e2b35e493c8 Mon Sep 17 00:00:00 2001 From: sophronesis Date: Mon, 9 Mar 2026 02:05:06 +0100 Subject: [PATCH] ultimate-doom-builder: fix render device error by adding missing libraries to wrapper The package was missing libGL, libpng, and libx11 in the LD_LIBRARY_PATH wrapper, causing a "Fatal Windows Forms error: Could not create render device" error when launching the application. These libraries are already in buildInputs but were not included in the wrapProgram call. They need to be dynamically loaded by Mono at runtime for proper OpenGL rendering support. --- pkgs/by-name/ul/ultimate-doom-builder/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ul/ultimate-doom-builder/package.nix b/pkgs/by-name/ul/ultimate-doom-builder/package.nix index 9ef1c4628385..6aba629d3472 100644 --- a/pkgs/by-name/ul/ultimate-doom-builder/package.nix +++ b/pkgs/by-name/ul/ultimate-doom-builder/package.nix @@ -92,9 +92,9 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace $out/opt/UltimateDoomBuilder/builder --replace-fail mono ${mono}/bin/mono substituteInPlace $out/opt/UltimateDoomBuilder/builder --replace-fail Builder.exe $out/opt/UltimateDoomBuilder/Builder.exe - # GTK is loaded dynamically by Mono at runtime + # GTK, OpenGL, and other libraries are loaded dynamically by Mono at runtime wrapProgram $out/opt/UltimateDoomBuilder/builder \ - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk2-x11 ]}" + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk2-x11 libGL libpng libx11 ]}" ln -s $out/opt/UltimateDoomBuilder/builder $out/bin/ultimate-doom-builder