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