fetchfirefoxaddon: support for SRI hashes
This commit is contained in:
parent
35d4f19991
commit
e9158eca70
|
@ -5,6 +5,7 @@
|
||||||
, sha1 ? ""
|
, sha1 ? ""
|
||||||
, sha256 ? ""
|
, sha256 ? ""
|
||||||
, sha512 ? ""
|
, sha512 ? ""
|
||||||
|
, hash ? ""
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = url;
|
url = url;
|
||||||
inherit md5 sha1 sha256 sha512;
|
inherit md5 sha1 sha256 sha512 hash;
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ coreutils unzip zip jq ];
|
nativeBuildInputs = [ coreutils unzip zip jq ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue