2022-12-17 10:02:37 +00:00
|
|
|
{deployAndroidPackage, requireFile, lib, packages, toolsVersion, os, callPackage, postInstall ? ""}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
if toolsVersion == "26.0.1" then callPackage ./tools/26.nix {
|
|
|
|
inherit deployAndroidPackage lib os postInstall;
|
2020-04-24 23:36:52 +00:00
|
|
|
package = {
|
|
|
|
name = "tools";
|
|
|
|
path = "tools";
|
|
|
|
revision = "26.0.1";
|
|
|
|
archives = {
|
|
|
|
linux = requireFile {
|
|
|
|
url = "https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip";
|
|
|
|
sha256 = "185yq7qwxflw24ccm5d6zziwlc9pxmsm3f54pm9p7xm0ik724kj4";
|
|
|
|
};
|
|
|
|
macosx = requireFile {
|
|
|
|
url = "https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip";
|
|
|
|
sha256 = "1ycx9gzdaqaw6n19yvxjawywacavn1jc6sadlz5qikhgfr57b0aa";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
} else if toolsVersion == "26.1.1" then callPackage ./tools/26.nix {
|
|
|
|
inherit deployAndroidPackage lib os postInstall;
|
2020-04-24 23:36:52 +00:00
|
|
|
package = packages.tools.${toolsVersion};
|
2022-12-17 10:02:37 +00:00
|
|
|
} else callPackage ./tools/25.nix {
|
|
|
|
inherit deployAndroidPackage lib os postInstall;
|
2020-04-24 23:36:52 +00:00
|
|
|
package = packages.tools.${toolsVersion};
|
|
|
|
}
|