From a2865f6b3d2af5593a100cba5c86ba62a1330bdb Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 8 Jul 2012 11:11:02 -0400 Subject: [PATCH] corepkgs/fetchurl: Build locally and outside of the chroot --- corepkgs/fetchurl.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix index 3d467fe187..91870a70c1 100644 --- a/corepkgs/fetchurl.nix +++ b/corepkgs/fetchurl.nix @@ -23,4 +23,10 @@ derivation { if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5; inherit system url curl; + + # No need to double the amount of network traffic + preferLocalBuild = true; + + # Don't build in a chroot because Nix's dependencies may not be there. + __noChroot = true; }