glslviewer: fix build with gcc 13

This commit is contained in:
Weijia Wang 2024-01-28 17:30:22 +01:00
parent eb39a06856
commit 753ca44306

View file

@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
postPatch = ''
sed '1i#include <cstring>' -i src/tools/text.cpp # gcc12
sed '8i#include <cstdint>' -i src/io/fs.cpp # gcc13
'';
nativeBuildInputs = [ pkg-config ensureNewerSourcesForZipFilesHook python3Packages.six ];