diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2020-01-16 23:30:20 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-01-16 23:30:20 -0500 |
commit | 39700a65ef75e473f46270e07238cabff0462631 (patch) | |
tree | 461df717d49cf41091fda5ef3b1f5ea2f2ec0d95 | |
parent | 2628f20267d0c917772abc4c0a7c35788a740b31 (diff) | |
download | nixlib-39700a65ef75e473f46270e07238cabff0462631.tar nixlib-39700a65ef75e473f46270e07238cabff0462631.tar.gz nixlib-39700a65ef75e473f46270e07238cabff0462631.tar.bz2 nixlib-39700a65ef75e473f46270e07238cabff0462631.tar.lz nixlib-39700a65ef75e473f46270e07238cabff0462631.tar.xz nixlib-39700a65ef75e473f46270e07238cabff0462631.tar.zst nixlib-39700a65ef75e473f46270e07238cabff0462631.zip |
texlive: touchup documentation (#77718)
The `bash` pragma gives syntax highlighting on the file, and removing the prompts allows a user to just copy-paste the entire block into the terminal to run the update.
-rw-r--r-- | pkgs/tools/typesetting/tex/texlive/UPGRADING.md | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/UPGRADING.md b/pkgs/tools/typesetting/tex/texlive/UPGRADING.md index 6c0380fac49a..3f37184e5d3f 100644 --- a/pkgs/tools/typesetting/tex/texlive/UPGRADING.md +++ b/pkgs/tools/typesetting/tex/texlive/UPGRADING.md @@ -28,15 +28,15 @@ To upgrade the package snapshot, follow this process: ### Snapshot sources and texlive package database Mirror the current CTAN archive to our mirror(s) and IPFS (URLs in `default.nix`). -See <https://tug.org/texlive/acquire-mirror.html> for instructions. +See https://tug.org/texlive/acquire-mirror.html for instructions. ### Upgrade package information from texlive package database -``` -$ curl -L http://mirror.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz \ - | xzcat | uniq -u | sed -rn -f ./tl2nix.sed > ./pkgs.nix +```bash +curl -L http://mirror.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz \ + | xzcat | uniq -u | sed -rn -f ./tl2nix.sed > ./pkgs.nix ``` This will download a current snapshot of the CTAN package database `texlive.tlpdb.xz` @@ -52,17 +52,18 @@ Updating the list of fixed hashes requires a local build of *all* packages, which is a resource-intensive process: -``` +```bash # move fixedHashes away, otherwise build will fail on updated packages -$ mv fixedHashes.nix fixedHashes-old.nix +mv fixedHashes.nix fixedHashes-old.nix # start with empty fixedHashes -$ echo '{}' > fixedHashes.nix -$ nix-build ../../../../.. -Q --no-out-link -A texlive.scheme-full.pkgs | ./fixHashes.sh > ./fixedHashes-new.nix +echo '{}' > fixedHashes.nix + +nix-build ../../../../.. -Q --no-out-link -A texlive.scheme-full.pkgs | ./fixHashes.sh > ./fixedHashes-new.nix + # The script wrongly includes the nix store path to `biber`, which is a separate nixpkgs package -$ grep -v -F '/nix/store/' fixedHashes-new.nix > fixedHashes.nix +grep -v -F '/nix/store/' fixedHashes-new.nix > fixedHashes.nix ``` ### Commit changes Commit the updated `pkgs.nix` and `fixedHashes.nix` to the repository. - |