about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-05T12·31+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-05T12·31+0100
commit743e31004682f6444c1c891c802233d52b106ee3 (patch)
tree43ef753e03c35054a8ef0fb835e0cf0319241de9 /src
parent29c0199d5c53cec59cfb44c94a4c9651b1c034b4 (diff)
Fix non-Darwin build
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 02faa5c9d8..b41daac991 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1729,9 +1729,11 @@ void DerivationGoal::startBuilder()
             if (get(drv->env, "__noChroot") == "1")
                 throw Error(format("derivation ‘%1%’ has ‘__noChroot’ set, "
                     "but that's not allowed when ‘build-use-sandbox’ is ‘true’") % drvPath);
+#if __APPLE__
             if (additionalSandboxProfile != "")
                 throw Error(format("derivation ‘%1%’ specifies a sandbox profile, "
                     "but this is only allowed when ‘build-use-sandbox’ is ‘relaxed’") % drvPath);
+#endif
             useChroot = true;
         }
         else if (x == "false")