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 openssl, 29 pango, 30 systemd, 31 xorg, 32 zlib, 33 }: ··· 108 nativeBuildInputs = [ 109 makeWrapper 110 copyDesktopItems 111 ]; 112 113 buildInputs = [ ··· 180 sqltoolsserviceRpath 181 ]; 182 183 - fixupPhase = '' 184 fix_sqltoolsservice() 185 { 186 mv ${sqltoolsservicePath}/$1 ${sqltoolsservicePath}/$1_old
··· 28 openssl, 29 pango, 30 systemd, 31 + wrapGAppsHook3, 32 xorg, 33 zlib, 34 }: ··· 109 nativeBuildInputs = [ 110 makeWrapper 111 copyDesktopItems 112 + wrapGAppsHook3 113 ]; 114 115 buildInputs = [ ··· 182 sqltoolsserviceRpath 183 ]; 184 185 + preFixup = '' 186 fix_sqltoolsservice() 187 { 188 mv ${sqltoolsservicePath}/$1 ${sqltoolsservicePath}/$1_old