aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build/local-derivation-goal.hh')
-rw-r--r--src/libstore/build/local-derivation-goal.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.hh b/src/libstore/build/local-derivation-goal.hh
index 91329ca35..857339b5d 100644
--- a/src/libstore/build/local-derivation-goal.hh
+++ b/src/libstore/build/local-derivation-goal.hh
@@ -325,11 +325,28 @@ protected:
using DerivationGoal::DerivationGoal;
/**
+ * Setup dependencies outside the sandbox.
+ * Called in the parent nix process.
+ */
+ virtual void prepareSandbox()
+ {
+ throw Error("sandboxing builds is not supported on this platform");
+ };
+
+ /**
* Execute the builder, replacing the current process.
* Generally this means an `execve` call.
*/
virtual void execBuilder(std::string builder, Strings args, Strings envStrs);
+ /**
+ * Whether derivation can be built on current platform with `uid-range` feature
+ */
+ virtual bool supportsUidRange()
+ {
+ return false;
+ }
+
};
}