From 5d1c9cebd65053dcb043a0404b0fe0e97857b6c2 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Sat, 9 Nov 2019 10:34:14 -0800 Subject: [PATCH] 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. --- pkgs/development/mobile/androidenv/deploy-androidpackage.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/mobile/androidenv/deploy-androidpackage.nix b/pkgs/development/mobile/androidenv/deploy-androidpackage.nix index 97fd197cb7d..839a14f7033 100644 --- a/pkgs/development/mobile/androidenv/deploy-androidpackage.nix +++ b/pkgs/development/mobile/androidenv/deploy-androidpackage.nix @@ -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