pythonPackages.neuron: fix for darwin

un-compensate for some of the darwin quirks the neuron
source is expecting
This commit is contained in:
Robert Scott 2019-06-08 23:44:46 +01:00 committed by Frederik Rietdijk
parent 72216e12de
commit e0aec554eb

View file

@ -33,6 +33,12 @@ stdenv.mkDerivation rec {
--replace 'float abs(float arg);' "" \
--replace 'short abs(short arg);' "" \
--replace 'long abs(long arg);' ""
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# we are darwin, but we don't have all the quirks the source wants to compensate for
substituteInPlace src/nrnpython/setup.py.in --replace 'readline="edit"' 'readline="readline"'
for f in src/nrnpython/*.[ch] ; do
substituteInPlace $f --replace "<Python/Python.h>" "<Python.h>"
done
'';
enableParallelBuilding = true;