From e0aec554eba2c8e3e9696282bdeb5576270d2c2d Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 8 Jun 2019 23:44:46 +0100 Subject: [PATCH] pythonPackages.neuron: fix for darwin un-compensate for some of the darwin quirks the neuron source is expecting --- pkgs/applications/science/biology/neuron/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/science/biology/neuron/default.nix b/pkgs/applications/science/biology/neuron/default.nix index 35710fd1fe1..1dc0688d5e9 100644 --- a/pkgs/applications/science/biology/neuron/default.nix +++ b/pkgs/applications/science/biology/neuron/default.nix @@ -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 "" "" + done ''; enableParallelBuilding = true;