Merge pull request #206704 from trofi/xz-update

xz: 5.2.9 -> 5.4.0
This commit is contained in:
Sergei Trofimovich 2022-12-22 00:05:43 +00:00 committed by GitHub
commit b7886b068b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,11 +10,11 @@
stdenv.mkDerivation rec {
pname = "xz";
version = "5.2.9";
version = "5.4.0";
src = fetchurl {
url = "https://tukaani.org/xz/xz-${version}.tar.bz2";
sha256 = "sZRQf7o6Rip1PFUxSczaoWgze8t97v3dBnuph8g9/OY=";
sha256 = "eV6gSUxm1QmwUt3DbcY71jTln/Kg85wWo7VkTdAdh+Y=";
};
strictDeps = true;
@ -45,7 +45,8 @@ stdenv.mkDerivation rec {
# Expect the text in format of '>xz-5.2.6.tar.bz2</a>'
# We pick first match where a stable release goes first.
new_version="$(curl -s https://tukaani.org/xz/ |
pcregrep -o1 '>xz-([0-9.]+)[.]tar[.]bz2</a>')"
pcregrep -o1 '>xz-([0-9.]+)[.]tar[.]bz2</a>' |
head -n1)"
update-source-version ${pname} "$new_version"
'';
};