diff options
author | Olivia Crain <olivia@olivia.dev> | 2024-01-03 11:36:03 -0600 |
---|---|---|
committer | Olivia Crain <olivia@olivia.dev> | 2024-01-03 11:36:03 -0600 |
commit | f6e6a6d80e96ee1da4a79b0e9578612831b5cc3c (patch) | |
tree | 127811d117380e4ce6684d6b6b91fd1b37cef236 | |
parent | 75edae02ddf6e64fc76d7a761c89724e1f1187e3 (diff) |
doc: replace pcre with pcre2 in example script
https://www.pcre.org/ The `pcre` library is "now at end of life, and is no longer being maintained," according to the upstream maintainers. Accordingly, we should replace uses of `pcre` with its actively maintained successor, `pcre2`, wherever possible .
-rw-r--r-- | doc/stdenv/stdenv.chapter.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index c66301bcb1c82..a5981d2efbe89 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -475,11 +475,11 @@ A script to be run by `maintainers/scripts/update.nix` when the package is match ```nix passthru.updateScript = writeScript "update-zoom-us" '' #!/usr/bin/env nix-shell - #!nix-shell -i bash -p curl pcre common-updater-scripts + #!nix-shell -i bash -p curl pcre2 common-updater-scripts set -eu -o pipefail - version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcregrep -o1 '/(([0-9]\.?)+)/')" + version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcre2grep -o1 '/(([0-9]\.?)+)/')" update-source-version zoom-us "$version" ''; ``` |