mirror of
https://github.com/NixOS/nix.git
synced 2025-12-01 14:41:00 +01:00
Merge pull request #3674 from matthewbauer/allow-empty-hash2
Allow empty hash in derivations
This commit is contained in:
commit
00fa7e2205
6 changed files with 18 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs)
|
|||
if (res) {
|
||||
if (auto narHash = maybeGetStrAttr(attrs, "narHash"))
|
||||
// FIXME: require SRI hash.
|
||||
res->narHash = Hash(*narHash);
|
||||
res->narHash = newHashAllowEmpty(*narHash, htUnknown);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue