From d2ba3fba695ee009f9fe90e5517aefe9645c2184 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Sun, 5 Apr 2020 01:47:57 +0100 Subject: [PATCH] lib: add shortcut for fake SRI hash --- lib/default.nix | 2 +- lib/deprecated.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"; }