Added missing sha1 and sha512 flags

This commit is contained in:
Luis Hebendanz 2020-11-30 18:49:29 +01:00 committed by Jörg Thalheim
parent 397597f731
commit 5f8eca5461
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -2,15 +2,19 @@
let let
in in
{ name, {
url, name
sha256, , url
, md5 ? ""
, sha1 ? ""
, sha256 ? ""
, sha512 ? ""
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit name; inherit name;
extid = "${sha256}@${name}"; extid = "${src.outputHash}@${name}";
passthru = { passthru = {
exitd=extid; exitd=extid;
}; };
@ -31,7 +35,7 @@ stdenv.mkDerivation rec {
''; '';
src = fetchurl { src = fetchurl {
url = url; url = url;
sha256 = sha256; inherit md5 sha1 sha256 sha512;
}; };
nativeBuildInputs = [ coreutils unzip zip jq ]; nativeBuildInputs = [ coreutils unzip zip jq ];
} }