@@ -1,6 +1,9 @@
11{ stdenv, fetchurl, zlib, ncurses5, unzip, lib, makeWrapper
22, coreutils, file, findutils, gawk, gnugrep, gnused, jdk, which
33, platformTools, python3, libcxx, version, sha256
4+, fullNDK ? false # set to true if you want other parts of the NDK
5+ # that is not used by Nixpkgs like sources,
6+ # examples, docs, or LLVM toolchains
47}:
58
69stdenv.mkDerivation rec {
@@ -55,11 +58,14 @@ stdenv.mkDerivation rec {
5558 }
5659 cd ${pkg_path}
5760
61+ '' + lib.optionalString (!fullNDK) ''
5862 # Steps to reduce output size
5963 rm -rf docs sources tests
6064 # We only support cross compiling with gcc for now
6165 rm -rf toolchains/*-clang* toolchains/llvm*
66+ '' +
6267
68+ ''
6369 find ${pkg_path}/toolchains \( \
6470 \( -type f -a -name "*.so*" \) -o \
6571 \( -type f -a -perm -0100 \) \