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:
parent
045b07200c
commit
9f736dd89d
7 changed files with 17 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue