@@ -9,7 +9,6 @@
99, gnugrep
1010, gnutar
1111, gzip
12−, jdk
1312, fontconfig
1413, freetype
1514, libpulseaudio
@@ -29,6 +28,7 @@
2928, writeTextFile
3029, xkeyboard_config
3130, zlib
31+, fontsConf
3232}:
3333
3434let
@@ -44,50 +44,57 @@ let
4444 ];
4545 installPhase = ''
4646 cp -r . $out
47− wrapProgram $out/bin/studio.sh --set PATH "${stdenv.lib.makeBinPath [
47+ wrapProgram $out/bin/studio.sh \
48+ --set PATH "${stdenv.lib.makeBinPath [
4849
49− # Checked in studio.sh
50− coreutils
51− findutils
52− gnugrep
53− jdk
54− which
50+ # Checked in studio.sh
51+ coreutils
52+ findutils
53+ gnugrep
54+ which
5555
56− # For Android emulator
57− file
58− glxinfo
59− pciutils
60− setxkbmap
56+ # For Android emulator
57+ file
58+ glxinfo
59+ pciutils
60+ setxkbmap
6161
62− # Used during setup wizard
63− gnutar
64− gzip
62+ # Used during setup wizard
63+ gnutar
64+ gzip
6565
66− # Runtime stuff
67− git
66+ # Runtime stuff
67+ git
6868
69− ]}" --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
70− # Gradle wants libstdc++.so.6
71− stdenv.cc.cc.lib
72− # mksdcard wants 32 bit libstdc++.so.6
73− pkgsi686Linux.stdenv.cc.cc.lib
69+ ]}" \
70+ --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
7471
75− # aapt wants libz.so.1
76− zlib
77− pkgsi686Linux.zlib
78− # Support multiple monitors
79− libXrandr
72+ # Crash at startup without these
73+ fontconfig
74+ freetype
75+ libXext
76+ libXi
77+ libXrender
78+ libXtst
8079
81− # For Android emulator
82− libpulseaudio
83− libX11
84− libXext
85− libXrender
86− libXtst
87− libXi
88− freetype
89− fontconfig
90− ]}" --set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb"
80+ # Gradle wants libstdc++.so.6
81+ stdenv.cc.cc.lib
82+ # mksdcard wants 32 bit libstdc++.so.6
83+ pkgsi686Linux.stdenv.cc.cc.lib
84+
85+ # aapt wants libz.so.1
86+ zlib
87+ pkgsi686Linux.zlib
88+ # Support multiple monitors
89+ libXrandr
90+
91+ # For Android emulator
92+ libpulseaudio
93+ libX11
94+
95+ ]}" \
96+ --set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
97+ --set FONTCONFIG_FILE ${fontsConf}
9198 '';
9299 src = fetchurl {
93100 url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip";