lean: fix build with GCC 15

This commit is contained in:
Robert Schütz
2026-01-14 03:15:10 -08:00
parent 8c538e5196
commit 7f87b7b795
+7 -1
View File
@@ -54,7 +54,13 @@ stdenv.mkDerivation rec {
--subst-var-by GIT_SHA1 "${src.rev}"
'';
postPatch = "patchShebangs .";
postPatch = ''
patchShebangs .
sed -e '1i #include <cstdint>' -i src/util/hash.{cpp,h}
'';
env.NIX_CFLAGS_COMPILE = "-Wno-error=template-body";
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace $out/bin/leanpkg \