mirror of
https://github.com/NixOS/nix
synced 2025-07-01 04:18:00 +02: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
|
@ -94,6 +94,8 @@ struct Hash
|
|||
}
|
||||
};
|
||||
|
||||
/* Helper that defaults empty hashes to the 0 hash. */
|
||||
Hash newHashAllowEmpty(std::string hashStr, HashType ht);
|
||||
|
||||
/* Print a hash in base-16 if it's MD5, or base-32 otherwise. */
|
||||
string printHash16or32(const Hash & hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue