diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-06-22 16:47:07 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-06-22 16:48:26 -0400 |
commit | 054656a2fca813cfcd3da5692c080ddfa610b41f (patch) | |
tree | 23cee4898c2c174ca1aa5aa471fa9109a70a7917 /pkgs/development | |
parent | a7fc8ad140fdc95742b7a09e9e919ffc98112645 (diff) |
androidndk: reduce output sizw
Fixes #41704
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/mobile/androidenv/androidndk.nix | 5 | ||||
-rw-r--r-- | pkgs/development/mobile/androidenv/androidndk_r8e.nix | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/mobile/androidenv/androidndk.nix b/pkgs/development/mobile/androidenv/androidndk.nix index 3f9e53089c183..cc46c1b2b99c8 100644 --- a/pkgs/development/mobile/androidenv/androidndk.nix +++ b/pkgs/development/mobile/androidenv/androidndk.nix @@ -35,6 +35,11 @@ stdenv.mkDerivation rec { cd $out/libexec unzip -qq $src + # Steps to reduce output size + rm -rf docs sources tests + # We only support cross compiling with gcc for now + rm -rf toolchains/*-clang* toolchains/llvm-* + patchShebangs ${pkg_path} # so that it doesn't fail because of read-only permissions set diff --git a/pkgs/development/mobile/androidenv/androidndk_r8e.nix b/pkgs/development/mobile/androidenv/androidndk_r8e.nix index 4aeaaf039279b..44fa961b992ff 100644 --- a/pkgs/development/mobile/androidenv/androidndk_r8e.nix +++ b/pkgs/development/mobile/androidenv/androidndk_r8e.nix @@ -49,6 +49,11 @@ stdenv.mkDerivation rec { -d $out/libexec/${name} < ${ ./make-standalone-toolchain_r8e.patch } cd ${pkg_path} + # Steps to reduce output size + rm -rf docs sources tests + # We only support cross compiling with gcc for now + rm -rf toolchains/*-clang* toolchains/llvm-* + find ${pkg_path}/toolchains \( \ \( -type f -a -name "*.so*" \) -o \ \( -type f -a -perm -0100 \) \ |