From c0c31b58a43dc46c5f2a4f7f1880387db449711b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 31 Aug 2018 11:12:51 +0200 Subject: [PATCH] Add localhost alias for ::1 to the sandbox --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d75ca0be8..cd37f7a3f 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2007,7 +2007,7 @@ void DerivationGoal::startBuilder() /* Create /etc/hosts with localhost entry. */ if (!fixedOutput) - writeFile(chrootRootDir + "/etc/hosts", "127.0.0.1 localhost\n"); + writeFile(chrootRootDir + "/etc/hosts", "127.0.0.1 localhost\n::1 localhost\n"); /* Make the closure of the inputs available in the chroot, rather than the whole Nix store. This prevents any access