mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
argyllcms: use pcre2grep for update version
This commit is contained in:
@@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user