Fix 'nix profile'

This commit is contained in:
Eelco Dolstra 2019-12-14 23:09:57 +01:00
parent a045f93396
commit b8a38fa521

View file

@ -126,9 +126,11 @@ struct ProfileManifest
StringSink sink; StringSink sink;
dumpPath(tempDir, sink); dumpPath(tempDir, sink);
ValidPathInfo info(store->makeFixedOutputPath(true, info.narHash, "profile", references)); auto narHash = hashString(htSHA256, *sink.s);
ValidPathInfo info(store->makeFixedOutputPath(true, narHash, "profile", references));
info.references = std::move(references); info.references = std::move(references);
info.narHash = hashString(htSHA256, *sink.s); info.narHash = narHash;
info.narSize = sink.s->size(); info.narSize = sink.s->size();
info.ca = makeFixedOutputCA(true, info.narHash); info.ca = makeFixedOutputCA(true, info.narHash);