glslviewer, tab: fixup build with gcc12
This commit is contained in:
parent
6056eaaa8b
commit
ef5aa34f4c
|
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0v7x93b61ama0gmzlx1zc56jgi7bvzsfvbkfl82xzwf2h5g1zni7";
|
sha256 = "0v7x93b61ama0gmzlx1zc56jgi7bvzsfvbkfl82xzwf2h5g1zni7";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed '1i#include <cstring>' -i src/tools/text.cpp # gcc12
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ensureNewerSourcesForZipFilesHook python3Packages.six ];
|
nativeBuildInputs = [ pkg-config ensureNewerSourcesForZipFilesHook python3Packages.six ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glfw libGLU glfw libXrandr libXdamage
|
glfw libGLU glfw libXrandr libXdamage
|
||||||
|
|
|
@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-AhgWeV/ojB8jM16A5ggrOD1YjWfRVcoQbkd3S2bgdyE=";
|
sha256 = "sha256-AhgWeV/ojB8jM16A5ggrOD1YjWfRVcoQbkd3S2bgdyE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# gcc12; see https://github.com/ivan-tkatchev/tab/commit/673bdac998
|
||||||
|
postPatch = ''
|
||||||
|
sed '1i#include <cstring>' -i deps.h
|
||||||
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [ python3 ];
|
nativeCheckInputs = [ python3 ];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
Loading…
Reference in a new issue