superscs: fix build with gcc 15 (#477003)

This commit is contained in:
Wolfgang Walther
2026-01-10 15:57:53 +00:00
committed by GitHub
+5 -1
View File
@@ -19,7 +19,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Qu7RM6Ew4hEmoIXO0utDDVmjmNX3yt3FxWZXCQ/Xjp4=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
postPatch = ''
substituteInPlace include/unit_test_util.h \
--replace-fail "typedef int bool;" "#include <stdbool.h>"
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace Makefile --replace-fail \
".so" \
".dylib"