azuredatastudio: fix file dialogs

File open dialogs in Azure Data Studio cause the application to crash.
As documented in #225989, this can be worked around by setting
XDG_DATA_DIRS, but the correct fix is to use GApps hooks. Add those to
the program packaging, and move the custom fixup phase to a pre-fixup
hook, so the main hooks also get run.

Fixes #225989

+3 -1
+3 -1
pkgs/by-name/az/azuredatastudio/package.nix
··· 28 28 openssl, 29 29 pango, 30 30 systemd, 31 + wrapGAppsHook3, 31 32 xorg, 32 33 zlib, 33 34 }: ··· 108 109 nativeBuildInputs = [ 109 110 makeWrapper 110 111 copyDesktopItems 112 + wrapGAppsHook3 111 113 ]; 112 114 113 115 buildInputs = [ ··· 180 182 sqltoolsserviceRpath 181 183 ]; 182 184 183 - fixupPhase = '' 185 + preFixup = '' 184 186 fix_sqltoolsservice() 185 187 { 186 188 mv ${sqltoolsservicePath}/$1 ${sqltoolsservicePath}/$1_old