glslviewer, tab: fixup build with gcc12

+9
+4
pkgs/development/tools/glslviewer/default.nix
··· 15 sha256 = "0v7x93b61ama0gmzlx1zc56jgi7bvzsfvbkfl82xzwf2h5g1zni7"; 16 }; 17 18 nativeBuildInputs = [ pkg-config ensureNewerSourcesForZipFilesHook python3Packages.six ]; 19 buildInputs = [ 20 glfw libGLU glfw libXrandr libXdamage
··· 15 sha256 = "0v7x93b61ama0gmzlx1zc56jgi7bvzsfvbkfl82xzwf2h5g1zni7"; 16 }; 17 18 + postPatch = '' 19 + sed '1i#include <cstring>' -i src/tools/text.cpp # gcc12 20 + ''; 21 + 22 nativeBuildInputs = [ pkg-config ensureNewerSourcesForZipFilesHook python3Packages.six ]; 23 buildInputs = [ 24 glfw libGLU glfw libXrandr libXdamage
+5
pkgs/tools/text/tab/default.nix
··· 11 sha256 = "sha256-AhgWeV/ojB8jM16A5ggrOD1YjWfRVcoQbkd3S2bgdyE="; 12 }; 13 14 nativeCheckInputs = [ python3 ]; 15 16 doCheck = !stdenv.isDarwin;
··· 11 sha256 = "sha256-AhgWeV/ojB8jM16A5ggrOD1YjWfRVcoQbkd3S2bgdyE="; 12 }; 13 14 + # gcc12; see https://github.com/ivan-tkatchev/tab/commit/673bdac998 15 + postPatch = '' 16 + sed '1i#include <cstring>' -i deps.h 17 + ''; 18 + 19 nativeCheckInputs = [ python3 ]; 20 21 doCheck = !stdenv.isDarwin;