From 75e19af67b7b11eb2c7cfcba54ace16d85eccdf1 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyich@gmail.com>
Date: Mon, 10 Jul 2023 09:22:35 +0100
Subject: [PATCH] local-derivation-goal.cc: refer to the README.md on how to
 get it back

--- a/src/libstore/unix/build/derivation-builder.cc
+++ b/src/libstore/unix/build/derivation-builder.cc
@@ -211,7 +211,7 @@ void LocalDerivationGoal::tryLocalBuild()
     ifdef __linux__
     if (useSandbox && !mountAndPidNamespacesSupported()) {
         if (!settings.sandboxFallback)
-            throw Error("this system does not support the kernel namespaces that are required for sandboxing; use '--no-sandbox' to disable sandboxing");
+            throw Error("failed to enable PID and USER namespace: see https://github.com/trofi/nix-guix-gentoo#missing-sandbox-support for ways to fix and workaround it.");
         debug("auto-disabling sandboxing because the prerequisite namespaces are not available");
         useChroot = false;
     }
