firefox-bin: Switch to sha256 sums in update scripts

There is no extra security properties provided by sha512, they are
just bigger.
This commit is contained in:
adisbladis 2020-07-14 20:26:15 +02:00
parent 87eb9e334a
commit f84cd5f8aa
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 4 additions and 4 deletions

View file

@ -85,7 +85,7 @@ in
stdenv.mkDerivation {
inherit name;
src = fetchurl { inherit (source) url sha512; };
src = fetchurl { inherit (source) url sha256; };
phases = [ "unpackPhase" "patchPhase" "installPhase" "fixupPhase" ];

View file

@ -47,8 +47,8 @@ in writeScript "update-${name}" ''
grep -e "${if isBeta then "b" else ""}\([[:digit:]]\|[[:digit:]][[:digit:]]\)$" | ${if isBeta then "" else "grep -v \"b\" |"} \
tail -1`
curl --silent -o $HOME/shasums "$url$version/SHA512SUMS"
curl --silent -o $HOME/shasums.asc "$url$version/SHA512SUMS.asc"
curl --silent -o $HOME/shasums "$url$version/SHA256SUMS"
curl --silent -o $HOME/shasums.asc "$url$version/SHA256SUMS.asc"
gpgv --keyring=$GNUPGHOME/pubring.kbx $HOME/shasums.asc $HOME/shasums
# this is a list of sha512 and tarballs for both arches
@ -74,7 +74,7 @@ in writeScript "update-${name}" ''
{ url = "$url$version/`echo $line | cut -d":" -f3`";
locale = "`echo $line | cut -d":" -f3 | sed "s/$arch\///" | sed "s/\/.*//"`";
arch = "$arch";
sha512 = "`echo $line | cut -d":" -f1`";
sha256 = "`echo $line | cut -d":" -f1`";
}
EOF
done