aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-17 13:58:55 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-11-17 13:58:55 +0100
commite6b7c7b79c697f1d8508930964e8c810f04a8963 (patch)
tree0085f736803a3217f11aa429620a120145d2c00b /src/libstore/derivations.cc
parentbccff827dc968b08bddda03aadcb3d9cc41c2719 (diff)
Cleanup
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r--src/libstore/derivations.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index eea129df3..106ec5daa 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -468,10 +468,7 @@ static const DrvHashModulo & pathDerivationModulo(Store & store, const StorePath
drvPath,
hashDerivationModulo(
store,
- parseDerivation(
- store,
- readFile(store.toRealPath(drvPath)),
- Derivation::nameFromPath(drvPath)),
+ store.readInvalidDerivation(drvPath),
false)).first;
}
return h->second;