androidenv: version buildTools and add buildToolsVersions sdk argument

This commit is contained in:
Nick Novitski
2018-10-26 22:09:47 -07:00
parent 4a0ae5d7d6
commit d861da151f
9 changed files with 865 additions and 54 deletions
+12 -1
View File
@@ -9,8 +9,19 @@ rec {
inherit buildPackages pkgs;
};
buildToolsSources = let
system = pkgs.stdenv.hostPlatform.system;
path = if (system == "i686-linux" || system == "x86_64-linux")
then ./build-tools-srcs-linux.nix
else if system == "x86_64-darwin"
then ./build-tools-srcs-macosx.nix
else throw "System: ${system} not supported!";
in
import path { inherit (pkgs) fetchurl; };
buildTools = import ./build-tools.nix {
inherit (pkgs) stdenv fetchurl unzip zlib file coreutils;
inherit (pkgs) stdenv lib fetchurl unzip zlib file coreutils;
inherit buildToolsSources;
stdenv_32bit = pkgs_i686.stdenv;
zlib_32bit = pkgs_i686.zlib;
ncurses_32bit = pkgs_i686.ncurses5;