diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-01-30 21:08:55 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-02-04 06:25:37 +0100 |
commit | 5a1bc70ec063b414694b31a1bf39deeed008e688 (patch) | |
tree | 68879e26ac422e4569d5059d5f5efdfa17324751 /pkgs/common-updater/scripts.nix | |
parent | ea9da648ef8df7fdec3efb3e2efc170e68776869 (diff) | |
download | nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar.gz nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar.bz2 nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar.lz nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar.xz nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.tar.zst nixlib-5a1bc70ec063b414694b31a1bf39deeed008e688.zip |
common-updater-scripts: Support SRI-style hash
Some fetcher functions support SRI-style `hash` attribute in addition to legacy type-specific attributes. When `hash` is used `outputHashAlgo` is null so let’s complain when SRI-style hash value was not detected. Such attributes match the form ${type}${separator}${hash}: True SRI uses dash as a separator and only supports base64, whereas Nix’s SRI-style format uses a colon and supports all the same encodings like regular hashes (16/32/64). To keep this program reasonably simple, we will upgrade Nix’s SRI-like format to pure SRI instead of preserving it.
Diffstat (limited to 'pkgs/common-updater/scripts.nix')
0 files changed, 0 insertions, 0 deletions