unzip: Fix build with gcc-15
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user