texlive: use sha256 (#130097)

This commit is contained in:
Felix Bühler 2021-07-14 19:20:11 +02:00 committed by GitHub
parent d04431fc02
commit b82409869a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9095 additions and 9096 deletions

View file

@ -19,7 +19,6 @@ let
};
# map: name -> fixed-output hash
# sha1 in base32 was chosen as a compromise between security and length
fixedHashes = lib.optionalAttrs useFixedHashes (import ./fixedHashes.nix);
# function for creating a working environment from a set of TL packages
@ -175,7 +174,7 @@ let
};
} // lib.optionalAttrs (fixedHash != null) {
outputHash = fixedHash;
outputHashAlgo = "sha1";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
}
)

View file

@ -10,7 +10,7 @@ BEGIN {
print "No match for \""$0"\"" > "/dev/stderr"
exit 1
}
cmd="nix-hash --type sha1 --base32 "$0
cmd="nix-hash --type sha256 --base32 "$0
if (( cmd | getline hash ) <= 0) {
print "Error executing nix-hash" > "/dev/stderr"
exit 1

File diff suppressed because it is too large Load diff