10 stdenv.mkDerivation rec {
15 url = "https://www.neuron.yale.edu/ftp/neuron/versions/v${neuron-version}/iv-${version}.tar.gz";
16 sha256 = "07a3g8zzay4h0bls7fh89dd0phn7s34c2g15pij6dsnwpmjg06yx";
19 nativeBuildInputs = [ patchelf ];
20 buildInputs = [ libXext ];
21 propagatedBuildInputs = [ libX11 ];
23 hardeningDisable = [ "format" ];
26 for dir in $out/*; do # */
27 if [ -d $dir/lib ]; then
33 '' + lib.optionalString stdenv.hostPlatform.isLinux ''
34 patchelf --add-needed ${libX11}/lib/libX11.so $out/lib/libIVhines.so
38 description = "InterViews graphical library for Neuron";
39 license = licenses.bsd3;
40 homepage = "http://www.neuron.yale.edu/neuron";
41 platforms = platforms.all;