1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

fetchfirefoxaddon: support for SRI hashes

This commit is contained in:
Emery Hemingway 2020-12-09 13:39:15 +01:00
parent 35d4f19991
commit e9158eca70

View file

@ -5,6 +5,7 @@
, sha1 ? ""
, sha256 ? ""
, sha512 ? ""
, hash ? ""
}:
stdenv.mkDerivation rec {
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
'';
src = fetchurl {
url = url;
inherit md5 sha1 sha256 sha512;
inherit md5 sha1 sha256 sha512 hash;
};
nativeBuildInputs = [ coreutils unzip zip jq ];
}