[Backport release-21.05] texlive: allow substitutes for texlive packages (#126866)

* texlive: allow substitutes for texlive packages

(cherry picked from commit 0f1e7e09b56cc8d98c5d02b87dd2626be9456d9c)

(cherry picked from commit 54cd3b840d4043322da7cfefd3a7d8ee80d68bc4)

Co-authored-by: Vincenzo Mantova <xworld21@users.sf.net>
This commit is contained in:
github-actions[bot] 2021-06-16 09:33:33 +02:00 committed by GitHub
parent dfbaf6023d
commit 17c0585cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -131,6 +131,7 @@ let
in if sha512 == "" then in if sha512 == "" then
# hash stripped from pkgs.nix to save space -> fetch&unpack in a single step # hash stripped from pkgs.nix to save space -> fetch&unpack in a single step
# currently unused as we prefer to keep the sha512 hashes for reproducibility
fetchurl { fetchurl {
inherit urls; inherit urls;
sha1 = if fixedHash == null then throw "TeX Live package ${tlName} is missing hash!" sha1 = if fixedHash == null then throw "TeX Live package ${tlName} is missing hash!"
@ -144,8 +145,7 @@ let
// passthru // passthru
else runCommand "texlive-${tlName}" else runCommand "texlive-${tlName}"
( { # lots of derivations, not meant to be cached ( {
preferLocalBuild = true; allowSubstitutes = false;
inherit passthru; inherit passthru;
} // lib.optionalAttrs (fixedHash != null) { } // lib.optionalAttrs (fixedHash != null) {
outputHash = fixedHash; outputHash = fixedHash;