File tree 3 files changed +40
-2
lines changed
applications/science/biology
3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ { stdenv , fetchurl , neuron-version
2
+ , libX11 , libXext , patchelf
3
+ } :
4
+
5
+ stdenv . mkDerivation rec
6
+ { name = "iv-19" ;
7
+ src = fetchurl
8
+ { url = "http://www.neuron.yale.edu/ftp/neuron/versions/v${ neuron-version } /${ name } .tar.gz" ;
9
+ sha256 = "1q22vjngvn3m61mjxynkik7pxvsgc9a0ym46qpa84hmz1v86mdrw" ;
10
+ } ;
11
+ nativeBuildInputs = [ patchelf ] ;
12
+ buildInputs = [ libXext ] ;
13
+ propagatedBuildInputs = [ libX11 ] ;
14
+ hardeningDisable = [ "format" ] ;
15
+ postInstall = ''
16
+ for dir in $out/*; do # */
17
+ if [ -d $dir/lib ]; then
18
+ mv $dir/* $out # */
19
+ rmdir $dir
20
+ break
21
+ fi
22
+ done
23
+ patchelf --add-needed ${ libX11 } /lib/libX11.so $out/lib/libIVhines.so
24
+ '' ;
25
+ meta = with stdenv . lib ;
26
+ { description = "InterViews graphical library for Neuron" ;
27
+ license = licenses . bsd3 ;
28
+ homepage = http://www.neuron.yale.edu/neuron ;
29
+ platforms = platforms . all ;
30
+ } ;
31
+ }
Original file line number Diff line number Diff line change 9
9
, which
10
10
, python ? null
11
11
, mpi ? null
12
+ , iv
12
13
} :
13
14
14
15
stdenv . mkDerivation rec {
15
16
name = "neuron-${ version } " ;
16
17
version = "7.4" ;
17
18
18
19
nativeBuildInputs = [ which pkgconfig automake autoconf libtool ] ;
19
- buildInputs = [ ncurses readline python mpi ] ;
20
+ buildInputs = [ ncurses readline python mpi iv ] ;
20
21
21
22
src = fetchurl {
22
23
url = "http://www.neuron.yale.edu/ftp/neuron/versions/v${ version } /nrn-${ version } .tar.gz" ;
@@ -45,7 +46,7 @@ stdenv.mkDerivation rec {
45
46
'' ;
46
47
47
48
configureFlags = with stdenv . lib ;
48
- [ "--without-x " "--with-readline =${ readline } " ]
49
+ [ "--with-readline= ${ readline } " "--with-iv =${ iv } " ]
49
50
++ optionals ( python != null ) [ "--with-nrnpython=${ python . interpreter } " ]
50
51
++ ( if mpi != null then [ "--with-mpi" "--with-paranrn" ]
51
52
else [ "--without-mpi" ] ) ;
Original file line number Diff line number Diff line change @@ -17659,6 +17659,10 @@ with pkgs;
17659
17659
17660
17660
igv = callPackage ../applications/science/biology/igv { };
17661
17661
17662
+ iv = callPackage ../applications/science/biology/iv {
17663
+ neuron-version = neuron.version;
17664
+ };
17665
+
17662
17666
neuron = callPackage ../applications/science/biology/neuron {
17663
17667
python = null;
17664
17668
};
@@ -17667,6 +17671,8 @@ with pkgs;
17667
17671
mpi = pkgs.openmpi;
17668
17672
});
17669
17673
17674
+ neuron-full = neuron-mpi.override { inherit python; };
17675
+
17670
17676
mrbayes = callPackage ../applications/science/biology/mrbayes { };
17671
17677
17672
17678
minc_tools = callPackage ../applications/science/biology/minc-tools { };
You can’t perform that action at this time.
0 commit comments