fetchfirefoxaddon: support for SRI hashes
commite9158eca70ae59e73fae23be5d13d3fa0cfc78b4
authorEmery Hemingway <ehmry@posteo.net>
dateWed 9 Dec 2020, 13:39 (6 years ago)
parent35d4f19
pkgs/build-support/fetchfirefoxaddon/default.nix+2−1
@@ -5,6 +5,7 @@
55, sha1 ? ""
66, sha256 ? ""
77, sha512 ? ""
8+, hash ? ""
89}:
910stdenv.mkDerivation rec {
1011
@@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
3031 '';
3132 src = fetchurl {
3233 url = url;
33− inherit md5 sha1 sha256 sha512;
34+ inherit md5 sha1 sha256 sha512 hash;
3435 };
3536 nativeBuildInputs = [ coreutils unzip zip jq ];
3637}