Skip to content

Commit 6aa50d0

Browse files
committed
xz: switch to a working src URL, add warning
1 parent 04a8958 commit 6aa50d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkgs/tools/compression/xz/default.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111

1212
stdenv.mkDerivation (finalAttrs: {
1313
pname = "xz";
14-
version = "5.4.6";
14+
version = "5.4.6"; # Beware of CVE-2024-3094 and related risks!!!
1515

1616
src = fetchurl {
17-
url = with finalAttrs; "https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.bz2";
17+
url = with finalAttrs;
18+
# The original URL has been taken down.
19+
# "https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.bz2";
20+
"mirror://sourceforge/lzmautils/xz-${version}.tar.bz2";
1821
sha256 = "sha256-kThRsnTo4dMXgeyUnxwj6NvPDs9uc6JDbcIXad0+b0k=";
1922
};
2023

0 commit comments

Comments
 (0)