cvc4: fix build on darwin

This commit is contained in:
Ben Siraphob
2025-08-25 14:23:41 +02:00
committed by Vincent Laporte
parent 40d8532c08
commit baa3367ea6
+13
View File
@@ -61,6 +61,19 @@ stdenv.mkDerivation rec {
./cvc4-bash-patsub-replacement.patch
];
postPatch = ''
# Fix missing size_t declarations by adding after pragma once or include guards
sed -i '/#pragma once/a\
#include <cstddef>' src/expr/emptyset.h || sed -i '1i\
#include <cstddef>' src/expr/emptyset.h
sed -i '/#define CVC4__EXPR__EXPR_IOMANIP_H/a\
#include <cstddef>' src/expr/expr_iomanip.h
sed -i '/#define CVC4__UTIL__REGEXP_H/a\
#include <cstddef>' src/util/regexp.h
'';
preConfigure = ''
patchShebangs ./src/
'';