From 743e31004682f6444c1c891c802233d52b106ee3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 5 Jan 2016 13:31:15 +0100 Subject: Fix non-Darwin build --- src/libstore/build.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 02faa5c9d873..b41daac99159 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") -- cgit 1.4.1