The GitHub account has been inactive for 4+ years.
This is sadly necessary due to the delays in reviews/merges when others are waiting for the requested maintainers to review the PR.
Instructions for re-adding once you return https://github.com/NixOS/nixpkgs/tree/master/maintainers#how-to-become-a-maintainer
We appreciate your past and future contributions.
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Without the change the eval fails as:
$ nix build --no-link -f. tectonic.tests
error:
… while evaluating the attribute 'biber-compatibility'
… in the condition of the assert statement
at pkgs/stdenv/generic/make-derivation.nix:540:1:
539| # Policy on acceptable hash types in nixpkgs
540| assert attrs ? outputHash -> (
| ^
541| let algo =
… in the right operand of the IMPL (->) operator
at /home/slyfox/dev/git/nixpkgs-master/pkgs/stdenv/generic/make-derivation.nix:540:27:
539| # Policy on acceptable hash types in nixpkgs
540| assert attrs ? outputHash -> (
| ^
541| let algo =
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'outputHashAlgo' missing
at pkgs/tools/typesetting/tectonic/tests.nix:65:9:
64| inherit (emptyFile)
65| outputHashAlgo
| ^
66| outputHashMode
Hash mismatch was caused by #333143.
The build error message contains:
Validating consistency between /build/source/Cargo.lock and /build/texpresso-tonic-0.15.0-vendor.tar.gz/Cargo.lock
2372d2371
< "time",
2707c2706
< version = "0.3.36"
---
> version = "0.3.34"
...
ERROR: cargoHash or cargoSha256 is out of date
Fixes#334648.
This is done with the following bash script:
```
#!/usr/bin/env bash
process_line() {
local filename=${1%:}
if [[ $4 =~ \"(.*)\"\; ]]; then
local sha256="${BASH_REMATCH[1]}"
fi
[[ -z $sha256 ]] && return 0
local hash=$(nix hash to-sri --type sha256 $sha256)
echo "Processing: $filename"
echo " $sha256 => $hash"
sed -i "s|cargoSha256 = \"$sha256\"|cargoHash = \"$hash\"|"
$filename
}
# split output by line
grep -r 'cargoSha256 = ' . | while IFS= read -r line; do
# split them further by space
read -r -a parts <<< "$line"
process_line "${parts[@]}"
done
```