1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

use Tree ctor

This commit is contained in:
Matthew Kenigsberg 2020-06-01 08:59:26 -06:00
parent 7680993506
commit c254254a80
6 changed files with 13 additions and 33 deletions

View file

@ -140,10 +140,7 @@ struct GitArchiveInputScheme : InputScheme
if (auto res = getCache()->lookup(store, immutableAttrs)) {
input.attrs.insert_or_assign("lastModified", getIntAttr(res->first, "lastModified"));
return {
Tree{
.actualPath = store->toRealPath(res->second),
.storePath = std::move(res->second),
},
Tree(store->toRealPath(res->second), std::move(res->second)),
input
};
}