mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Gate experimental features in DerivationOutput::fromJSON
This is an entry point for outside data, so we need to check enabled experimental features here.
This commit is contained in:
parent
64ee02890c
commit
aa74c7b0bc
5 changed files with 54 additions and 11 deletions
|
@ -136,11 +136,15 @@ struct DerivationOutput : _DerivationOutputRaw
|
|||
const Store & store,
|
||||
std::string_view drvName,
|
||||
std::string_view outputName) const;
|
||||
/**
|
||||
* @param xpSettings Stop-gap to avoid globals during unit tests.
|
||||
*/
|
||||
static DerivationOutput fromJSON(
|
||||
const Store & store,
|
||||
std::string_view drvName,
|
||||
std::string_view outputName,
|
||||
const nlohmann::json & json);
|
||||
const nlohmann::json & json,
|
||||
const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings);
|
||||
};
|
||||
|
||||
typedef std::map<std::string, DerivationOutput> DerivationOutputs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue