aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-19 11:26:34 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-19 11:32:14 -0400
commit76baaeb341cf395c61877e6d598c290835529ca0 (patch)
treedddc7a7f8beec203acc77361538e76f819bd770e /src/libstore/derivations.hh
parent668377f217c0fa4053d746f7094dfe887e07887c (diff)
parentd3e2394e9106416e57cd0da10facd8db00e622e6 (diff)
Merge remote-tracking branch 'upstream/master' into ca-drv-exotic
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r--src/libstore/derivations.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index b36e4ea91..666dbff41 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -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;