diff options
author | Tony Olagbaiye <me@fron.io> | 2020-04-05 01:47:57 +0100 |
---|---|---|
committer | Tony Olagbaiye <me@fron.io> | 2020-04-05 01:48:20 +0100 |
commit | d2ba3fba695ee009f9fe90e5517aefe9645c2184 (patch) | |
tree | 89769c3d4a89aaaefe47f2d77022e6de14200fda /lib | |
parent | d20a62ae85d9effe31ee218c54d5e0eac68e30c4 (diff) |
lib: add shortcut for fake SRI hash
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 2 | ||||
-rw-r--r-- | lib/deprecated.nix | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index a909cefd60f1..d00c4abec0a9 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -141,7 +141,7 @@ let mergeAttrsWithFunc mergeAttrsConcatenateValues mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults mergeAttrsByFuncDefaultsClean mergeAttrBy - fakeSha256 fakeSha512 + fakeSri fakeSha256 fakeSha512 nixType imap; inherit (versions) splitVersion; diff --git a/lib/deprecated.nix b/lib/deprecated.nix index 155d6f0c3611..8c4fe9c390c6 100644 --- a/lib/deprecated.nix +++ b/lib/deprecated.nix @@ -272,6 +272,7 @@ rec { imap = imap1; # Fake hashes. Can be used as hash placeholders, when computing hash ahead isn't trivial + fakeSri = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; fakeSha256 = "0000000000000000000000000000000000000000000000000000000000000000"; fakeSha512 = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"; } |