You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
1.5 KiB
108 lines
1.5 KiB
let
|
|
|
|
nixpkgs = import <nixpkgs> {}
|
|
|
|
; android-studio-deps = with nixpkgs;
|
|
[
|
|
coreutils
|
|
findutils
|
|
file
|
|
git
|
|
glxinfo
|
|
gn
|
|
gnused
|
|
gnutar
|
|
gtk3
|
|
gnome3.gvfs
|
|
glib
|
|
# gnome3.gconf
|
|
# gnome3.libsecret
|
|
gzip
|
|
fontconfig
|
|
freetype
|
|
libpulseaudio
|
|
libGL
|
|
xorg.libX11
|
|
xorg.libXext
|
|
xorg.libXi
|
|
xorg.libXrandr
|
|
xorg.libXrender
|
|
xorg.libXtst
|
|
xorg.setxkbmap
|
|
pciutils
|
|
unzip
|
|
which
|
|
xkeyboard_config
|
|
zlib
|
|
ncurses5
|
|
]
|
|
|
|
; in
|
|
|
|
with nixpkgs;
|
|
|
|
(buildFHSUserEnv {
|
|
name = "wownerojo-env"
|
|
; targetPkgs = pkgs: (with pkgs;
|
|
[
|
|
bash
|
|
git
|
|
curl
|
|
unzip
|
|
libGLU
|
|
which
|
|
|
|
zsh
|
|
jdk
|
|
cmake
|
|
python
|
|
wget
|
|
perl
|
|
gnumake
|
|
binutils
|
|
gcc
|
|
doxygen
|
|
graphviz
|
|
pkgconfig
|
|
|
|
# androidsdk_9_0
|
|
|
|
vim
|
|
exiftool
|
|
ccache
|
|
libtool
|
|
autoconf
|
|
automake
|
|
gnum4
|
|
androidenv.androidPkgs_9_0.platform-tools
|
|
]
|
|
++ android-studio-deps
|
|
)
|
|
|
|
; multiPkgs = pkgs: (with pkgs;
|
|
[
|
|
])
|
|
|
|
; profile = ''
|
|
export ANDROID_HOME=~/SDK/Android/Sdk
|
|
|
|
export ANDROID_NDK_ROOT=~/SDK/Android/ndk-archive/android-ndk-r17c
|
|
|
|
PATH=~/SDK/Android/android-studio/bin/:$PATH
|
|
PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH
|
|
export PATH
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export app_version=1200
|
|
export gradle_app_version=2x6x0x0
|
|
export release_key=~/.android/fuwa-release-key.jks
|
|
|
|
export USE_CCACHE=1
|
|
export NPROC=$(nproc --ignore=1)
|
|
|
|
exec zsh
|
|
''
|
|
|
|
; }).env
|