1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Add Store::readDerivation() convenience function

This commit is contained in:
Eelco Dolstra 2020-06-12 13:04:52 +02:00
parent 045b07200c
commit 9f736dd89d
7 changed files with 17 additions and 11 deletions

View file

@ -329,7 +329,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
case wopQueryDerivationOutputNames: {
auto path = store->parseStorePath(readString(from));
logger->startWork();
auto names = readDerivation(*store, store->toRealPath(path)).outputNames();
auto names = store->readDerivation(path).outputNames();
logger->stopWork();
to << names;
break;