Copy deriver field to the binary cache

Fixes https://github.com/NixOS/nixos-org-configurations/issues/129.
This commit is contained in:
Eelco Dolstra 2020-11-02 17:08:02 +01:00
parent d50f9a242f
commit 73dfef364b

View file

@ -449,7 +449,7 @@ void State::buildRemote(ref<Store> destStore,
while (true) {
auto storePathS = readString(from);
if (storePathS == "") break;
readString(from); // deriver
auto deriver = readString(from); // deriver
auto references = worker_proto::read(*localStore, from, Phantom<StorePathSet> {});
readLongLong(from); // download size
auto narSize = readLongLong(from);
@ -463,6 +463,8 @@ void State::buildRemote(ref<Store> destStore,
totalNarSize += info.narSize;
info.narHash = narHash;
info.ca = ca;
if (deriver != "")
info.deriver = localStore->parseStorePath(deriver);
infos.insert_or_assign(info.path, info);
}