11 stdenv.mkDerivation rec {
16 url = "https://www.neuron.yale.edu/ftp/neuron/versions/v${neuron-version}/iv-${version}.tar.gz";
17 sha256 = "07a3g8zzay4h0bls7fh89dd0phn7s34c2g15pij6dsnwpmjg06yx";
20 nativeBuildInputs = [ patchelf ];
21 buildInputs = [ libXext ];
22 propagatedBuildInputs = [ libX11 ];
24 hardeningDisable = [ "format" ];
28 for dir in $out/*; do # */
29 if [ -d $dir/lib ]; then
36 + lib.optionalString stdenv.hostPlatform.isLinux ''
37 patchelf --add-needed ${libX11}/lib/libX11.so $out/lib/libIVhines.so
41 description = "InterViews graphical library for Neuron";
42 license = licenses.bsd3;
43 homepage = "http://www.neuron.yale.edu/neuron";
44 platforms = platforms.all;