lean: fix build with GCC 15 (#480010)

This commit is contained in:
dotlambda
2026-01-15 18:03:07 +00:00
committed by GitHub
+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 \