mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #21462 from phunehehe/android-studio
Fontconfig for Android Studio
This commit is contained in:
commit
acc889f5ed
@ -9,7 +9,6 @@
|
||||
, gnugrep
|
||||
, gnutar
|
||||
, gzip
|
||||
, jdk
|
||||
, fontconfig
|
||||
, freetype
|
||||
, libpulseaudio
|
||||
@ -29,6 +28,7 @@
|
||||
, writeTextFile
|
||||
, xkeyboard_config
|
||||
, zlib
|
||||
, fontsConf
|
||||
}:
|
||||
|
||||
let
|
||||
@ -44,13 +44,13 @@ let
|
||||
];
|
||||
installPhase = ''
|
||||
cp -r . $out
|
||||
wrapProgram $out/bin/studio.sh --set PATH "${stdenv.lib.makeBinPath [
|
||||
wrapProgram $out/bin/studio.sh \
|
||||
--set PATH "${stdenv.lib.makeBinPath [
|
||||
|
||||
# Checked in studio.sh
|
||||
coreutils
|
||||
findutils
|
||||
gnugrep
|
||||
jdk
|
||||
which
|
||||
|
||||
# For Android emulator
|
||||
@ -66,7 +66,17 @@ let
|
||||
# Runtime stuff
|
||||
git
|
||||
|
||||
]}" --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
|
||||
]}" \
|
||||
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
|
||||
|
||||
# Crash at startup without these
|
||||
fontconfig
|
||||
freetype
|
||||
libXext
|
||||
libXi
|
||||
libXrender
|
||||
libXtst
|
||||
|
||||
# Gradle wants libstdc++.so.6
|
||||
stdenv.cc.cc.lib
|
||||
# mksdcard wants 32 bit libstdc++.so.6
|
||||
@ -81,13 +91,10 @@ let
|
||||
# For Android emulator
|
||||
libpulseaudio
|
||||
libX11
|
||||
libXext
|
||||
libXrender
|
||||
libXtst
|
||||
libXi
|
||||
freetype
|
||||
fontconfig
|
||||
]}" --set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb"
|
||||
|
||||
]}" \
|
||||
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
|
||||
--set FONTCONFIG_FILE ${fontsConf}
|
||||
'';
|
||||
src = fetchurl {
|
||||
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip";
|
||||
|
@ -12361,19 +12361,10 @@ in
|
||||
|
||||
amsn = callPackage ../applications/networking/instant-messengers/amsn { };
|
||||
|
||||
# Oracle JDK is recommended upstream, but unfree and requires a manual
|
||||
# download. OpenJDK is straightforward, but may suffer from compatibility
|
||||
# problems e.g. https://code.google.com/p/android/issues/detail?id=174496.
|
||||
# To use Oracle JDK add an override to ~/.nixpkgs/config.nix:
|
||||
# {
|
||||
# packageOverrides = pkgs: {
|
||||
# android-studio = pkgs.android-studio.override {
|
||||
# jdk = pkgs.oraclejdk8;
|
||||
# };
|
||||
# };
|
||||
# }
|
||||
android-studio = callPackage ../applications/editors/android-studio {
|
||||
inherit (xorg) libX11 libXext libXi libXrandr libXrender libXtst;
|
||||
fontsConf = makeFontsConf {
|
||||
fontDirectories = [];
|
||||
};
|
||||
};
|
||||
|
||||
antimony = qt5.callPackage ../applications/graphics/antimony {};
|
||||
|
Loading…
Reference in New Issue
Block a user