xz: 5.2.9 -> 5.4.0
Changes: https://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;hb=HEAD While at it fixed the updater to pick single first (most recent) version.
This commit is contained in:
parent
3a63bcb4b6
commit
73e6d3ed00
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue