aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-17 19:02:45 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-17 19:02:45 -0400
commit668377f217c0fa4053d746f7094dfe887e07887c (patch)
tree40f1f7cc892b5f1bde41f1a2d105574c0bb5a716 /src/libstore/derivations.cc
parentf56c4a5bdfb0ec881b8cb0c06940abbea71b5f2b (diff)
`TextHashMethod` -> `TextIngestionMethod`, gate with XP feature
I suppose we can use `dynamic-derivations` for the few things we neeed.
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r--src/libstore/derivations.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index fc76ae7ad..1f5f78964 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -216,6 +216,8 @@ static DerivationOutput parseDerivationOutput(const Store & store,
{
if (hashAlgo != "") {
ContentAddressMethod method = ContentAddressMethod::parsePrefix(hashAlgo);
+ if (method == TextIngestionMethod {})
+ experimentalFeatureSettings.require(Xp::DynamicDerivations);
const auto hashType = parseHashType(hashAlgo);
if (hashS == "impure") {
experimentalFeatureSettings.require(Xp::ImpureDerivations);