git.iko.soy/typeable/nixpkgs
on master help sign in
neuron: enable GUI
commit24c59a445275b726cec33242d741db8ad97c8ee9 authorShea Levy <shea@shealevy.com> dateWed 28 Jun 2017, 11:59 (9 years ago) parent46a4462
3 files changed+40−2
pkgs/applications/science/biology/iv/default.nix+31 pkgs/applications/science/biology/neuron/default.nix+3−2 pkgs/top-level/all-packages.nix+6
pkgs/applications/science/biology/iv/default.nixnew file+31
@@ -0,0 +1,31 @@
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+ }
pkgs/applications/science/biology/neuron/default.nix+3−2
@@ -9,6 +9,7 @@
99, which
1010, python ? null
1111, mpi ? null
12+, iv
1213}:
1314
1415stdenv.mkDerivation rec {
@@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
1617 version = "7.4";
1718
1819 nativeBuildInputs = [ which pkgconfig automake autoconf libtool ];
19− buildInputs = [ ncurses readline python mpi ];
20+ buildInputs = [ ncurses readline python mpi iv ];
2021
2122 src = fetchurl {
2223 url = "http://www.neuron.yale.edu/ftp/neuron/versions/v${version}/nrn-${version}.tar.gz";
@@ -45,7 +46,7 @@ stdenv.mkDerivation rec {
4546 '';
4647
4748 configureFlags = with stdenv.lib;
48− [ "--without-x" "--with-readline=${readline}" ]
49+ [ "--with-readline=${readline}" "--with-iv=${iv}" ]
4950 ++ optionals (python != null) [ "--with-nrnpython=${python.interpreter}" ]
5051 ++ (if mpi != null then ["--with-mpi" "--with-paranrn"]
5152 else ["--without-mpi"]);
pkgs/top-level/all-packages.nix+6
@@ -17659,6 +17659,10 @@ with pkgs;
1765917659
1766017660 igv = callPackage ../applications/science/biology/igv { };
1766117661
17662+ iv = callPackage ../applications/science/biology/iv {
17663+ neuron-version = neuron.version;
17664+ };
17665+
1766217666 neuron = callPackage ../applications/science/biology/neuron {
1766317667 python = null;
1766417668 };
@@ -17667,6 +17671,8 @@ with pkgs;
1766717671 mpi = pkgs.openmpi;
1766817672 });
1766917673
17674+ neuron-full = neuron-mpi.override { inherit python; };
17675+
1767017676 mrbayes = callPackage ../applications/science/biology/mrbayes { };
1767117677
1767217678 minc_tools = callPackage ../applications/science/biology/minc-tools { };