1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 06:31:00 +01:00

Correct FIXMEs in libfetchers

This commit is contained in:
Carlo Nucera 2020-07-01 17:47:15 -04:00
parent c2e7f7a712
commit 274a8136fb
4 changed files with 5 additions and 7 deletions

View file

@ -35,8 +35,7 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs)
auto res = inputScheme->inputFromAttrs(attrs2);
if (res) {
if (auto narHash = maybeGetStrAttr(attrs, "narHash"))
// FIXME: require SRI hash.
res->narHash = newHashAllowEmpty(*narHash, {});
res->narHash = Hash::fromSRI(*narHash);
return res;
}
}