From a80c6de4c2f32f646519b4c7bba1e4071d4c4621 Mon Sep 17 00:00:00 2001 From: Mauricio Scheffer Date: Mon, 19 Aug 2024 22:13:24 +0100 Subject: [PATCH] dbeaver-bin: fix crash at startup Fixes #330889 (cherry picked and adapted from commit da69826d745bdad0f2d9fc00830403387c6f3eb7) --- pkgs/by-name/db/dbeaver-bin/package.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/db/dbeaver-bin/package.nix b/pkgs/by-name/db/dbeaver-bin/package.nix index 4f516930c313a..00e718c470012 100644 --- a/pkgs/by-name/db/dbeaver-bin/package.nix +++ b/pkgs/by-name/db/dbeaver-bin/package.nix @@ -6,6 +6,9 @@ , gnused , autoPatchelfHook , wrapGAppsHook3 +, gtk3 +, glib +, swt }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -46,7 +49,15 @@ stdenvNoCC.mkDerivation (finalAttrs: { cp -r * $out/opt/dbeaver makeWrapper $out/opt/dbeaver/dbeaver $out/bin/dbeaver \ --prefix PATH : "${openjdk17}/bin" \ - --set JAVA_HOME "${openjdk17.home}" + --set JAVA_HOME "${openjdk17.home}" \ + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath [ + swt + gtk3 + glib + ] + }" + mkdir -p $out/share/icons/hicolor/256x256/apps ln -s $out/opt/dbeaver/dbeaver.png $out/share/icons/hicolor/256x256/apps/dbeaver.png