1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

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 ];