git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #53754 from danbst/lib-fake-hashes

lib: add fake hashes

commitb75aff7202418d68699db617e63fc8a68a4b7449 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 10 Jan 2019, 17:56 (8 years ago) parent9e9fec668a6b47
2 files changed+5
lib/default.nix+1 lib/deprecated.nix+4
lib/default.nix+1
@@ -132,6 +132,7 @@ let
132132 mergeAttrsWithFunc mergeAttrsConcatenateValues
133133 mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults
134134 mergeAttrsByFuncDefaultsClean mergeAttrBy
135+ fakeSha256 fakeSha512
135136 nixType imap;
136137 });
137138in lib
lib/deprecated.nix+4
@@ -270,4 +270,8 @@ rec {
270270 starting at zero.
271271 */
272272 imap = imap1;
273+
274+ # Fake hashes. Can be used as hash placeholders, when computing hash ahead isn't trivial
275+ fakeSha256 = "0000000000000000000000000000000000000000000000000000000000000000";
276+ fakeSha512 = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
273277}