diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 2c4d546f8..1ff47ff35 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1634,6 +1634,10 @@ void LocalStore::queryRealisationUncached( const DrvOutput & id, Callback> callback) noexcept { try { + if (!experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) { + callback(nullptr); + return; + } auto maybeRealisation = retrySQLite>( [&]() { return queryRealisation_(*_state->lock(), id); }); if (maybeRealisation)