diff --git a/subprojects/crates/db/src/connection.rs b/subprojects/crates/db/src/connection.rs
index a43b0f5e5..c99679738 100644
--- a/subprojects/crates/db/src/connection.rs
+++ b/subprojects/crates/db/src/connection.rs
@@ -395,6 +395,41 @@ impl Connection {
Ok(results)
}
+ /// Look up a single output of a derivation from the most recent
+ /// successful buildstep.
+ pub async fn resolve_drv_output(
+ &mut self,
+ store_dir: &StoreDir,
+ drv_path: &StorePath,
+ output_name: &OutputName,
+ ) -> sqlx::Result