dbeaver-bin: fix crash at startup

Fixes #330889
This commit is contained in:
Mauricio Scheffer 2024-08-18 11:31:18 +01:00
parent e72ccc6f76
commit da69826d74

View File

@ -8,6 +8,9 @@
gnused,
autoPatchelfHook,
wrapGAppsHook3,
gtk3,
swt,
glib,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@ -59,7 +62,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 CLASSPATH : "$out/dbeaver/plugins/*:${swt}/jars/swt.jar" \
--prefix LD_LIBRARY_PATH : "$out/lib:${
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