Skip to content

Commit

Permalink
dbeaver-bin: fix crash at startup
Browse files Browse the repository at this point in the history
Fixes #330889

(cherry picked and adapted from commit da69826)
  • Loading branch information
mausch committed Aug 19, 2024
1 parent f1bad50 commit a80c6de
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/by-name/db/dbeaver-bin/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
, gnused
, autoPatchelfHook
, wrapGAppsHook3
, gtk3
, glib
, swt
}:

stdenvNoCC.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a80c6de

Please sign in to comment.