ebtks: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-21 20:00:48 +01:00
parent abb97f6022
commit 1dfbb1e1f7

View file

@ -15,6 +15,10 @@ stdenv.mkDerivation {
postPatch = ''
substituteInPlace templates/EBTKS/SimpleArray.h \
--replace "#define FINITE(x) finite(x)" "#define FINITE(x) isfinite(x)"
''
# error: ISO C++17 does not allow 'register' storage class specifier
+ ''
find . -type f -exec sed -i -e 's/register //g' {} +
'';
nativeBuildInputs = [ cmake ];