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:
parent
abb97f6022
commit
1dfbb1e1f7
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue