diff options
author | regnat <rg@regnat.ovh> | 2021-06-11 08:37:59 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-06-11 09:12:53 +0200 |
commit | 7c077d2a0f4ccdeb84a4ad14ba5871a3fbe170e4 (patch) | |
tree | bfc613d5e8c4675f37486949c766a3d7ea66a8da /src/libstore/store-api.cc | |
parent | 8e6ee1b9e924fbbbeb5594eb89e7a570f36ab6e1 (diff) |
Add a ca-derivations required machine feature
Make ca-derivations require a `ca-derivations` machine feature, and
ca-aware builders expose it.
That way, a network of builders can mix ca-aware and non-ca-aware
machines, and the scheduler will send them in the right place.
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 93fcb068f..6ca8e5b24 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -337,6 +337,13 @@ ValidPathInfo Store::addToStoreSlow(std::string_view name, const Path & srcPath, return info; } +StringSet StoreConfig::getDefaultSystemFeatures() +{ + auto res = settings.systemFeatures.get(); + if (settings.isExperimentalFeatureEnabled("ca-derivations")) + res.insert("ca-derivations"); + return res; +} Store::Store(const Params & params) : StoreConfig(params) |