deployAndroidPackage: prefer local builds

These derivations just unzip something and maybe do a little patching,
so there's no benefit to sending the zip file off to a build server and
then downloading the unzipped results again.
This commit is contained in:
Jamey Sharp 2019-11-09 10:34:14 -08:00 committed by Bjørn Forsman
parent 7889ec6069
commit 5d1c9cebd6

View File

@ -8,6 +8,7 @@ stdenv.mkDerivation ({
name = package.name + "-" + package.revision;
src = if os != null && builtins.hasAttr os package.archives then package.archives.${os} else package.archives.all;
buildInputs = [ unzip ] ++ buildInputs;
preferLocalBuild = true;
# Most Android Zip packages have a root folder, but some don't. We unpack
# the zip file in a folder and we try to discover whether it has a single root