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