argyllcms: use pcre2grep for update version

This commit is contained in:
fliiiix
2026-07-27 16:48:45 +02:00
parent 4b0320094b
commit bc1d9ca2d8

View File

@@ -171,13 +171,13 @@ stdenv.mkDerivation rec {
passthru = {
updateScript = writeScript "update-argyllcms" ''
#!/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 'Current Version 3.0.1 (19th October 2023)'
new_version="$(curl -s https://www.argyllcms.com/ |
pcregrep -o1 '>Current Version ([0-9.]+) ')"
pcre2grep -o1 '>Current Version ([0-9.]+) ')"
update-source-version ${pname} "$new_version"
'';
};