unzip: Fix build with gcc-15

This commit is contained in:
Dmitry Bogatov
2025-07-19 13:13:31 +00:00
parent 88686e2fe3
commit 88b848ca71
+5
View File
@@ -86,6 +86,11 @@ stdenv.mkDerivation rec {
sha256 = "67ab260ae6adf8e7c5eda2d1d7846929b43562943ec4aff629bd7018954058b1";
});
# gcc-15 uses c23 standard, which removed non-prototype function declarations.
postPatch = ''
sed -i '/localtime()/ d' unix/unxcfg.h
'';
nativeBuildInputs = [ bzip2 ];
buildInputs = [ bzip2 ] ++ lib.optional enableNLS libnatspec;