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

Rename fromSRI to parseSRI for constistency

This commit is contained in:
Carlo Nucera 2020-07-02 11:11:18 -04:00
parent f61bc45d19
commit 9462d8a50b
4 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs)
auto res = inputScheme->inputFromAttrs(attrs2);
if (res) {
if (auto narHash = maybeGetStrAttr(attrs, "narHash"))
res->narHash = Hash::fromSRI(*narHash);
res->narHash = Hash::parseSRI(*narHash);
return res;
}
}