Skip to content

Commit

Permalink
texlive: use sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Jul 13, 2021
1 parent 5779c9a commit 3621767
Show file tree
Hide file tree
Showing 3 changed files with 9,095 additions and 9,096 deletions.
3 changes: 1 addition & 2 deletions pkgs/tools/typesetting/tex/texlive/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -175,7 +174,7 @@ let
};
} // lib.optionalAttrs (fixedHash != null) {
outputHash = fixedHash;
outputHashAlgo = "sha1";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
}
)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/typesetting/tex/texlive/fixHashes.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 3621767

Please sign in to comment.