aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/parsed-derivations.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-06-17 15:39:10 +0200
committerregnat <rg@regnat.ovh>2020-06-17 15:41:17 +0200
commit56d75bf4fcb06da1a577c6e381f4afef57f30243 (patch)
tree10f3c803328c994d19fc0f4e66424edcd900f732 /src/libstore/parsed-derivations.cc
parentccbea8255cf52413938d994a69222fd953b08659 (diff)
Reserve the `__contentAddressed` derivation parameter
Not implementing anything here, just throwing an error if a derivation sets `__contentAddressed = true` without `--experimental-features content-addressed-paths` (and also with it as there's nothing implemented yet)
Diffstat (limited to 'src/libstore/parsed-derivations.cc')
-rw-r--r--src/libstore/parsed-derivations.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/parsed-derivations.cc b/src/libstore/parsed-derivations.cc
index 24f848e46..c7797b730 100644
--- a/src/libstore/parsed-derivations.cc
+++ b/src/libstore/parsed-derivations.cc
@@ -117,4 +117,9 @@ bool ParsedDerivation::substitutesAllowed() const
return getBoolAttr("allowSubstitutes", true);
}
+bool ParsedDerivation::contentAddressed() const
+{
+ return getBoolAttr("__contentAddressed", false);
+}
+
}