aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-18 00:36:52 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-18 14:59:56 +0000
commita544ed7684bdf5fa3c0b78d40913f5be3f73f5a7 (patch)
treef77f54edd0a598d2e31b11e25a44cd01bc40a0f7 /src/libexpr/primops.cc
parent049fae155a18784ca59d194bf3e579fadbc3b48f (diff)
Generalize `DerivationType` in preparation for impure derivations
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 2dc33103d..bfa18f898 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1235,11 +1235,8 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
/* Optimisation, but required in read-only mode! because in that
case we don't actually write store derivations, so we can't
- read them later.
-
- However, we don't bother doing this for floating CA derivations because
- their "hash modulo" is indeterminate until built. */
- if (drv.type() != DerivationType::CAFloating) {
+ read them later. */
+ {
auto h = hashDerivationModulo(*state.store, drv, false);
drvHashes.lock()->insert_or_assign(drvPath, h);
}