slang: use pcre2grep for update version

This commit is contained in:
fliiiix
2026-07-27 16:48:46 +02:00
parent bd4e05e0e9
commit 4792a8e108

View File

@@ -67,13 +67,13 @@ stdenv.mkDerivation rec {
passthru = {
updateScript = writeScript "update-slang" ''
#!/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
# Expect the text in format of 'Version 2.3.3</td>'
new_version="$(curl -s https://www.jedsoft.org/slang/ |
pcregrep -o1 'Version ([0-9.]+)</td>')"
pcre2grep -o1 'Version ([0-9.]+)</td>')"
update-source-version ${pname} "$new_version"
'';
};