git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38664 from bcdarwin/minc_ecosystem

MINC ecosystem

commitd6ab16561de80ccb6d6e6be3abafee647936065e authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 21 Apr 2018, 20:30 (9 years ago) parente2c0702b1d4962
21 files changed+456−37
pkgs/applications/graphics/c3d/default.nix+4−3 pkgs/applications/science/biology/EZminc/default.nix+32 pkgs/applications/science/biology/N3/default.nix+38 pkgs/applications/science/biology/inormalize/default.nix+39 pkgs/applications/science/biology/inormalize/lgmask-interp.patch+10 pkgs/applications/science/biology/inormalize/nu_correct_norm-interp.patch+10 pkgs/applications/science/biology/minc-tools/default.nix+17−10 pkgs/applications/science/biology/minc-widgets/default.nix+34 pkgs/applications/science/biology/mni_autoreg/default.nix+36 pkgs/development/libraries/arguments/default.nix+32 pkgs/development/libraries/itk/default.nix+2 pkgs/development/libraries/libminc/default.nix+22−11 pkgs/development/libraries/science/biology/EBTKS/default.nix+28 pkgs/development/libraries/science/biology/bicpl/default.nix+33 pkgs/development/libraries/science/biology/elastix/default.nix+7−11 pkgs/development/libraries/science/biology/oobicpl/default.nix+31 pkgs/development/perl-modules/MNI/default.nix+21 pkgs/development/perl-modules/MNI/no-stdin.patch+13 pkgs/top-level/aliases.nix−1 pkgs/top-level/all-packages.nix+29−1 pkgs/top-level/perl-packages.nix+18
pkgs/applications/graphics/c3d/default.nix+4−3
@@ -3,12 +3,12 @@
33stdenv.mkDerivation rec {
44 name = "${pname}-${version}";
55 pname = "c3d";
6− version = "1.1.0";
6+ version = "2018-10-04";
77
88 src = fetchgit {
99 url = "https://git.code.sf.net/p/c3d/git";
10− rev = "3453f6133f0df831dcbb0d0cfbd8b26e121eb153";
11− sha256 = "1xgbk20w22jwvf7pa0n4lcbyx35fq56zzlslj0nvcclh6vx0b4z8";
10+ rev = "351929a582b2ef68fb9902df0b11d38f44a0ccd0";
11+ sha256 = "0mpv4yl6hdnxgvnwrmd182h64n3ppp30ldzm0jz6jglk0nvpzq9w";
1212 };
1313
1414 nativeBuildInputs = [ cmake ];
@@ -21,5 +21,6 @@ stdenv.mkDerivation rec {
2121 maintainers = with maintainers; [ bcdarwin ];
2222 platforms = platforms.unix;
2323 license = licenses.gpl2;
24+ broken = true;
2425 };
2526}
pkgs/applications/science/biology/EZminc/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, itk, fftwFloat, gsl }:
2+
3+stdenv.mkDerivation rec { pname = "EZminc";
4+ name = "${pname}-2017-08-29";
5+
6+ src = fetchFromGitHub {
7+ owner = "BIC-MNI";
8+ repo = pname;
9+ rev = "4e017236cb6e7f6e07507446b18b759c584b6fc3";
10+ sha256 = "1pg06x42pgsg7zy7dz9wf6ajakkm2n8by64lg9z64qi8qqy82b8v";
11+ };
12+
13+ nativeBuildInputs = [ cmake ];
14+ buildInputs = [ itk libminc bicpl fftwFloat gsl ];
15+
16+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/"
17+ "-DEZMINC_BUILD_TOOLS=TRUE"
18+ "-DEZMINC_BUILD_MRFSEG=TRUE"
19+ "-DEZMINC_BUILD_DD=TRUE" ];
20+
21+ checkPhase = "ctest --output-on-failure ../tests/"; # but ctest doesn't find the tests ...
22+
23+ enableParallelBuilding = true;
24+
25+ meta = with stdenv.lib; {
26+ homepage = "https://github.com/BIC-MNI/${pname}";
27+ description = "Collection of Perl and shell scripts for processing MINC files";
28+ maintainers = with maintainers; [ bcdarwin ];
29+ platforms = platforms.unix;
30+ license = licenses.free;
31+ };
32+}
pkgs/applications/science/biology/N3/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper,
2+ perl, MNI-Perllib, GetoptTabular,
3+ libminc, EBTKS }:
4+
5+stdenv.mkDerivation rec {
6+ pname = "N3";
7+ name = "${pname}-2017-09-18";
8+
9+ src = fetchFromGitHub {
10+ owner = "BIC-MNI";
11+ repo = pname;
12+ rev = "2fdd939f0f2b24a4039bc6a8ade4a190a1d8e75d";
13+ sha256 = "13z21c4r09hna3q1csvcn4i7ws5ixbdaja6ch421xv6nydjh2w5g";
14+ };
15+
16+ nativeBuildInputs = [ cmake makeWrapper ];
17+ buildInputs = [ libminc EBTKS ];
18+ propagatedBuildInputs = [ perl MNI-Perllib GetoptTabular ];
19+
20+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DEBTKS_DIR=${EBTKS}/lib/" ];
21+
22+ checkPhase = "ctest --output-on-failure";
23+ # don't run the tests as they fail at least due to missing program wrappers in this phase ...
24+
25+ postFixup = ''
26+ for p in $out/bin/*; do
27+ wrapProgram $p --prefix PERL5LIB : $PERL5LIB
28+ done
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ homepage = "https://github.com/BIC-MNI/${pname}";
33+ description = "MRI non-uniformity correction for MINC files";
34+ maintainers = with maintainers; [ bcdarwin ];
35+ platforms = platforms.unix;
36+ license = licenses.free;
37+ };
38+}
pkgs/applications/science/biology/inormalize/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper,
2+ perl, GetoptTabular, MNI-Perllib,
3+ libminc, EBTKS }:
4+
5+stdenv.mkDerivation rec {
6+ pname = "inormalize";
7+ name = "${pname}-2014-10-21";
8+
9+ src = fetchFromGitHub {
10+ owner = "BIC-MNI";
11+ repo = pname;
12+ rev = "79cea9cdfe7b99abfd40afda89ab2253b596ad2f";
13+ sha256 = "1ahqv5q0ljvji99a5q8azjkdf6bgp6nr8lwivkqwqs3jm0k5clq7";
14+ };
15+
16+ patches = [ ./lgmask-interp.patch ./nu_correct_norm-interp.patch ];
17+
18+ nativeBuildInputs = [ cmake makeWrapper ];
19+ buildInputs = [ libminc EBTKS ];
20+ propagatedBuildInputs = [ perl GetoptTabular MNI-Perllib ];
21+
22+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DEBTKS_DIR=${EBTKS}/lib/" ];
23+
24+ checkPhase = "ctest --output-on-failure"; # but no tests
25+
26+ postFixup = ''
27+ for p in $out/bin/*; do
28+ wrapProgram $p --prefix PERL5LIB : $PERL5LIB
29+ done
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ homepage = "https://github.com/BIC-MNI/${pname}";
34+ description = "Program to normalize intensity of MINC files";
35+ maintainers = with maintainers; [ bcdarwin ];
36+ platforms = platforms.unix;
37+ license = licenses.free;
38+ };
39+}
pkgs/applications/science/biology/inormalize/lgmask-interp.patchnew file+10
@@ -0,0 +1,10 @@
1+diff --git a/lgmask.in b/lgmask.in
2+index 17dbe4d..2195d91 100644
3+--- a/lgmask.in
4++++ b/lgmask.in
5+@@ -1,4 +1,4 @@
6+-#! @PERL@
7++#! /usr/bin/env perl
8+
9+ #---------------------------------------------------------------------------
10+ #@COPYRIGHT :
pkgs/applications/science/biology/inormalize/nu_correct_norm-interp.patchnew file+10
@@ -0,0 +1,10 @@
1+diff --git a/nu_correct_norm.in b/nu_correct_norm.in
2+index 1dc84ac..1bc6235 100644
3+--- a/nu_correct_norm.in
4++++ b/nu_correct_norm.in
5+@@ -1,4 +1,4 @@
6+-#! @PERL@
7++#! /usr/bin/perl
8+
9+ #---------------------------------------------------------------------------
10+ #@COPYRIGHT :
pkgs/applications/science/biology/minc-tools/default.nix+17−10
@@ -1,23 +1,29 @@
1−{ stdenv, fetchFromGitHub, perl, cmake, flex, bison, libminc }:
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper, flex, bison, perl, TextFormat, libminc, libjpeg, zlib }:
22
33stdenv.mkDerivation rec {
4− name = "${pname}-2.3.00";
54 pname = "minc-tools";
5+ name = "${pname}-2017-09-11";
66
77 src = fetchFromGitHub {
8− owner = "BIC-MNI";
9− repo = pname;
10− rev = builtins.replaceStrings [ "." ] [ "-" ] name;
11− sha256 = "0px5paprx4ds9aln3jdg1pywszgyz2aykgkdbj1y8gc1lwcizsl9";
8+ owner = "BIC-MNI";
9+ repo = pname;
10+ rev = "5b7c40425cd4f67a018055cb85c0157ee50a3056";
11+ sha256 = "0zkcs05svp1gj5h0cdgc0k20c7lrk8m7wg3ks3xc5mkaiannj8g7";
1212 };
1313
14− nativeBuildInputs = [ cmake flex bison ] ++ (if doCheck then [ perl ] else [ ]);
15− buildInputs = [ libminc ];
14+ nativeBuildInputs = [ cmake flex bison makeWrapper ];
15+ buildInputs = [ libminc libjpeg zlib ];
16+ propagatedBuildInputs = [ perl TextFormat ];
1617
1718 cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
1819
19− checkPhase = "ctest";
20− doCheck = false;
20+ checkPhase = "ctest --output-on-failure"; # still some weird test failures though
21+
22+ postFixup = ''
23+ for prog in minccomplete minchistory mincpik; do
24+ wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB
25+ done
26+ '';
2127
2228 enableParallelBuilding = true;
2329
@@ -26,5 +32,6 @@ stdenv.mkDerivation rec {
2632 description = "Command-line utilities for working with MINC files";
2733 maintainers = with maintainers; [ bcdarwin ];
2834 platforms = platforms.unix;
35+ license = licenses.free;
2936 };
3037}
pkgs/applications/science/biology/minc-widgets/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper,
2+ perl, GetoptTabular, MNI-Perllib,
3+ libminc, octave, coreutils, minc_tools }:
4+
5+stdenv.mkDerivation rec {
6+ pname = "minc-widgets";
7+ name = "${pname}-2016-04-20";
8+
9+
10+ src = fetchFromGitHub {
11+ owner = "BIC-MNI";
12+ repo = pname;
13+ rev = "f08b643894c81a1a2e0fbfe595a17a42ba8906db";
14+ sha256 = "1b9g6lf37wpp211ikaji4rf74rl9xcmrlyqcw1zq3z12ji9y33bm";
15+ };
16+
17+ nativeBuildInputs = [ cmake makeWrapper ];
18+ buildInputs = [ libminc ];
19+ propagatedBuildInputs = [ perl GetoptTabular MNI-Perllib octave coreutils minc_tools ];
20+
21+ postFixup = ''
22+ for p in $out/bin/*; do
23+ wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${stdenv.lib.makeBinPath [ coreutils minc_tools ]}";
24+ done
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ homepage = "https://github.com/BIC-MNI/${pname}";
29+ description = "Collection of Perl and shell scripts for processing MINC files";
30+ maintainers = with maintainers; [ bcdarwin ];
31+ platforms = platforms.unix;
32+ license = licenses.free;
33+ };
34+}
pkgs/applications/science/biology/mni_autoreg/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper, perl, GetoptTabular, MNI-Perllib, libminc }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "mni_autoreg";
5+ name = "${pname}-2017-09-22";
6+
7+ src = fetchFromGitHub {
8+ owner = "BIC-MNI";
9+ repo = pname;
10+ rev = "ab99e29987dc029737785baebf24896ec37a2d76";
11+ sha256 = "0axl069nv57vmb2wvqq7s9v3bfxwspzmk37bxm4973ai1irgppjq";
12+ };
13+
14+ nativeBuildInputs = [ cmake makeWrapper ];
15+ buildInputs = [ libminc ];
16+ propagatedBuildInputs = [ perl GetoptTabular MNI-Perllib ];
17+
18+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DBUILD_TESTING=FALSE" ];
19+ # testing broken: './minc_wrapper: Permission denied' from Testing/ellipse0.mnc
20+
21+ postFixup = ''
22+ for prog in autocrop mritoself mritotal xfmtool; do
23+ echo $out/bin/$prog
24+ wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB;
25+ done
26+ '';
27+
28+ meta = with stdenv.lib; {
29+ homepage = https://github.com/BIC-MNI/mni_autoreg;
30+ description = "Tools for automated registration using the MINC image format";
31+ maintainers = with maintainers; [ bcdarwin ];
32+ platforms = platforms.unix;
33+ license = licenses.free;
34+ };
35+}
36+
pkgs/development/libraries/arguments/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, cmake, libminc, bicpl }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "arguments";
5+ name = "${pname}-2015-11-30";
6+
7+ owner = "BIC-MNI";
8+
9+ src = fetchFromGitHub {
10+ inherit owner;
11+ repo = pname;
12+ rev = "b3aad97f6b6892cb8733455d0d448649a48fa108";
13+ sha256 = "1ar8lm1w1jflz3vdmjr5c4x6y7rscvrj78b8gmrv79y95qrgzv6s";
14+ };
15+
16+ nativeBuildInputs = [ cmake ];
17+ buildInputs = [ ];
18+
19+ #cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib" "-DBICPL_DIR=${bicpl}/lib" "-DBUILD_TESTING=FALSE" ];
20+
21+ checkPhase = "ctest --output-on-failure";
22+ doCheck = false;
23+ # internal_volume_io.h: No such file or directory
24+
25+ meta = with stdenv.lib; {
26+ homepage = "https://github.com/${owner}/${pname}";
27+ description = "Library for argument handling for MINC programs";
28+ maintainers = with maintainers; [ bcdarwin ];
29+ platforms = platforms.unix;
30+ license = licenses.free;
31+ };
32+}
pkgs/development/libraries/itk/default.nix+2
@@ -12,7 +12,9 @@ stdenv.mkDerivation rec {
1212 "-DBUILD_TESTING=OFF"
1313 "-DBUILD_EXAMPLES=OFF"
1414 "-DBUILD_SHARED_LIBS=ON"
15+ "-DModule_ITKMINC=ON"
1516 "-DModule_ITKIOMINC=ON"
17+ "-DModule_ITKIOTransformMINC=ON"
1618 "-DModule_ITKVtkGlue=ON"
1719 "-DModule_ITKReview=ON"
1820 ];
pkgs/development/libraries/libminc/default.nix+22−11
@@ -1,31 +1,42 @@
1−{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, hdf5 }:
1+{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, nifticlib, hdf5 }:
22
33stdenv.mkDerivation rec {
4− name = "${pname}-2.3.00";
54 pname = "libminc";
5+ name = "${pname}-2017-09-14";
66
7+ owner = "BIC-MNI";
8+
9+ # current master is significantly ahead of most recent release, so use Git version:
710 src = fetchFromGitHub {
8− owner = "BIC-MNI";
9− repo = pname;
10− rev = builtins.replaceStrings [ "." ] [ "-" ] name;
11− sha256 = "1gv1rq1q1brhglll2256cm6sns77ph6fvgbzk3ihkzq46y07yi9s";
11+ inherit owner;
12+ repo = pname;
13+ rev = "e11c6df9321b4061bf87a7d43171ec55e9e3908f";
14+ sha256 = "0lmd0js3jgni2mw1zfvd4qg6byxiv3ndgv2z3nm7975i83zw48xk";
1215 };
1316
1417 nativeBuildInputs = [ cmake ];
15− buildInputs = [ zlib netcdf hdf5 ];
18+ buildInputs = [ zlib netcdf nifticlib hdf5 ];
19+
20+ cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "TRUE" else "FALSE"}"
21+ "-DLIBMINC_MINC1_SUPPORT=TRUE"
22+ "-DLIBMINC_BUILD_SHARED_LIBS=TRUE"
23+ "-DLIBMINC_USE_SYSTEM_NIFTI=TRUE" ];
1624
17− cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
18− "-DLIBMINC_MINC1_SUPPORT=ON" ];
1925
20− checkPhase = "ctest";
26+ checkPhase = ''
27+ export LD_LIBRARY_PATH="$(pwd)" # see #22060
28+ ctest -E 'ezminc_rw_test|minc_conversion' --output-on-failure
29+ # ezminc_rw_test can't find libminc_io.so.5.2.0; minc_conversion hits netcdf compilation issue
30+ '';
2131 doCheck = true;
2232
2333 enableParallelBuilding = true;
2434
2535 meta = with stdenv.lib; {
26− homepage = https://github.com/BIC-MNI/libminc;
36+ homepage = "https://github.com/${owner}/${pname}";
2737 description = "Medical imaging library based on HDF5";
2838 maintainers = with maintainers; [ bcdarwin ];
2939 platforms = platforms.unix;
40+ license = licenses.free;
3041 };
3142}
pkgs/development/libraries/science/biology/EBTKS/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, cmake, libminc }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "EBTKS";
5+ name = "${pname}-2017-09-23";
6+
7+ src = fetchFromGitHub {
8+ owner = "BIC-MNI";
9+ repo = pname;
10+ rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
11+ sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq";
12+ };
13+
14+ nativeBuildInputs = [ cmake ];
15+ buildInputs = [ libminc ];
16+
17+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
18+
19+ checkPhase = "ctest --output-on-failure"; # but cmake doesn't run the tests ...
20+
21+ meta = with stdenv.lib; {
22+ homepage = "https://github.com/BIC-MNI/${pname}";
23+ description = "Library for working with MINC files";
24+ maintainers = with maintainers; [ bcdarwin ];
25+ platforms = platforms.unix;
26+ license = licenses.free;
27+ };
28+}
pkgs/development/libraries/science/biology/bicpl/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, cmake, libminc, netpbm }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "bicpl";
5+ name = "${pname}-2017-09-10";
6+
7+ owner = "BIC-MNI";
8+
9+ # current master is significantly ahead of most recent release, so use Git version:
10+ src = fetchFromGitHub {
11+ inherit owner;
12+ repo = pname;
13+ rev = "612a63e740fadb162fcf27ee00da6a18dec4d5a9";
14+ sha256 = "1vv9gi184bkvp3f99v9xmmw1ly63ip5b09y7zdjn39g7kmwzrga7";
15+ };
16+
17+ nativeBuildInputs = [ cmake ];
18+ buildInputs = [ libminc netpbm ];
19+
20+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib" "-DBUILD_TESTING=FALSE" ];
21+
22+ checkPhase = "ctest --output-on-failure";
23+ doCheck = false;
24+ # internal_volume_io.h: No such file or directory
25+
26+ meta = with stdenv.lib; {
27+ homepage = "https://github.com/${owner}/${pname}";
28+ description = "Brain Imaging Centre programming library";
29+ maintainers = with maintainers; [ bcdarwin ];
30+ platforms = platforms.unix;
31+ license = licenses.free;
32+ };
33+}
pkgs/development/libraries/science/biology/elastix/default.nix+7−11
@@ -1,22 +1,18 @@
1−{ stdenv, fetchFromGitHub, cmake, itk, python }:
1+{ stdenv, fetchurl, cmake, itk, python }:
22
33stdenv.mkDerivation rec {
4− _name = "elastix";
5− _version = "4.8";
6− name = "${_name}-${_version}";
4+ pname = "elastix";
5+ pversion = "4.9.0";
6+ name = "${pname}-${pversion}";
77
8− src = fetchFromGitHub {
9− owner = "SuperElastix";
10− repo = "elastix";
11− rev = "ef057ff89233822b26b04b31c3c043af57d5deff";
12− sha256 = "0gm3a8dgqww50h6zld9ighjk92wlpybpimjwfz4s5h82vdjsvxrm";
8+ src = fetchurl {
9+ url = "https://github.com/SuperElastix/${pname}/archive/${pversion}.tar.gz";
10+ sha256 = "02pbln36nq98xxfyqwlxg7b6gmigdq4fgfqr9mym1qn58aj04shg";
1311 };
1412
1513 nativeBuildInputs = [ cmake python ];
1614 buildInputs = [ itk ];
1715
18− cmakeFlags = [ "-DUSE_KNNGraphAlphaMutualInformationMetric=OFF" ];
19−
2016 checkPhase = "ctest";
2117
2218 meta = with stdenv.lib; {
pkgs/development/libraries/science/biology/oobicpl/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, arguments, pcre-cpp }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "oobicpl";
5+ name = "${pname}-2016-03-02";
6+
7+ owner = "BIC-MNI";
8+
9+ src = fetchFromGitHub {
10+ inherit owner;
11+ repo = pname;
12+ rev = "bc062a65dead2e58461f5afb37abedfa6173f10c";
13+ sha256 = "05l4ml9djw17bgdnrldhcxydrzkr2f2scqlyak52ph5azj5n4zsx";
14+ };
15+
16+ nativeBuildInputs = [ cmake ];
17+ buildInputs = [ libminc bicpl arguments pcre-cpp ];
18+
19+ cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib"
20+ "-DBICPL_DIR=${bicpl}/lib"
21+ "-DARGUMENTS_DIR=${arguments}/lib"
22+ "-DOOBICPL_BUILD_SHARED_LIBS=TRUE" ];
23+
24+ meta = with stdenv.lib; {
25+ homepage = "https://github.com/${owner}/${pname}";
26+ description = "Brain Imaging Centre object-oriented programming library (and tools)";
27+ maintainers = with maintainers; [ bcdarwin ];
28+ platforms = platforms.unix;
29+ license = licenses.free;
30+ };
31+}
pkgs/development/perl-modules/MNI/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ fetchFromGitHub, buildPerlPackage, stdenv, perl }:
2+
3+buildPerlPackage rec {
4+ name = "MNI-Perllib-2012-04-13";
5+
6+ src = fetchFromGitHub {
7+ owner = "BIC-MNI";
8+ repo = "mni-perllib";
9+ rev = "b908472b4390180ea5d19a121ac5edad6ed88d83";
10+ sha256 = "0vk99pwgbard62k63386r7dpnm3h435jdqywr4xqfq7p04dz6kyb";
11+ };
12+
13+ patches = [ ./no-stdin.patch ];
14+
15+ doCheck = false; # TODO: almost all tests fail ... is this a real problem?
16+
17+ meta = with stdenv.lib; {
18+ license = with licenses; [ artistic1 gpl1Plus ];
19+ maintainers = with maintainers; [ bcdarwin ];
20+ };
21+}
pkgs/development/perl-modules/MNI/no-stdin.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/Makefile.PL b/Makefile.PL
2+index 9f2039a..12d699c 100644
3+--- a/Makefile.PL
4++++ b/Makefile.PL
5+@@ -213,7 +213,7 @@ TEXT
6+ } # &MY::postamble
7+
8+
9+-query_subs;
10++#query_subs;
11+
12+ my $f;
13+ WriteMakefile
pkgs/top-level/aliases.nix−1
@@ -130,7 +130,6 @@ mapAliases (rec {
130130 man_db = man-db; # added 2016-05
131131 piwik = matomo; # added 2018-01-16
132132 midoriWrapper = midori; # added 2015-01
133− minc_tools = minc-tools; # 2017-12
134133 mlt-qt5 = libsForQt5.mlt; # added 2015-12-19
135134 mobile_broadband_provider_info = mobile-broadband-provider-info; # added 2018-02-25
136135 module_init_tools = kmod; # added 2016-04-22
pkgs/top-level/all-packages.nix+29−1
@@ -519,6 +519,8 @@ with pkgs;
519519
520520 apitrace = libsForQt5.callPackage ../applications/graphics/apitrace {};
521521
522+ arguments = callPackage ../development/libraries/arguments { };
523+
522524 argus = callPackage ../tools/networking/argus {};
523525
524526 argus-clients = callPackage ../tools/networking/argus-clients {};
@@ -1142,6 +1144,8 @@ with pkgs;
11421144
11431145 earlyoom = callPackage ../os-specific/linux/earlyoom { };
11441146
1147+ EBTKS = callPackage ../development/libraries/science/biology/EBTKS { };
1148+
11451149 ecasound = callPackage ../applications/audio/ecasound { };
11461150
11471151 edac-utils = callPackage ../os-specific/linux/edac-utils { };
@@ -8477,6 +8481,8 @@ with pkgs;
84778481
84788482 libopcodes = callPackage ../development/libraries/libopcodes { };
84798483
8484+ bicpl = callPackage ../development/libraries/science/biology/bicpl { };
8485+
84808486 # TODO(@Ericson2314): Build bionic libc from source
84818487 bionic = assert hostPlatform.useAndroidPrebuilt;
84828488 androidenv.androidndkPkgs.libraries;
@@ -10772,6 +10778,8 @@ with pkgs;
1077210778
1077310779 oniguruma = callPackage ../development/libraries/oniguruma { };
1077410780
10781+ oobicpl = callPackage ../development/libraries/science/biology/oobicpl { };
10782+
1077510783 openal = self.openalSoft;
1077610784
1077710785 openalSoft = callPackage ../development/libraries/openal-soft {
@@ -19741,10 +19749,16 @@ with pkgs;
1974119749
1974219750 emboss = callPackage ../applications/science/biology/emboss { };
1974319751
19752+ ezminc = callPackage ../applications/science/biology/EZminc { };
19753+
1974419754 htslib = callPackage ../development/libraries/science/biology/htslib { };
1974519755
1974619756 igv = callPackage ../applications/science/biology/igv { };
1974719757
19758+ inormalize = callPackage ../applications/science/biology/inormalize {
19759+ inherit (perlPackages) GetoptTabular MNI-Perllib;
19760+ };
19761+
1974819762 iv = callPackage ../applications/science/biology/iv {
1974919763 neuron-version = neuron.version;
1975019764 };
@@ -19753,6 +19767,10 @@ with pkgs;
1975319767
1975419768 muscle = callPackage ../applications/science/biology/muscle/default.nix { };
1975519769
19770+ n3 = callPackage ../applications/science/biology/N3 {
19771+ inherit (perlPackages) perl GetoptTabular MNI-Perllib;
19772+ };
19773+
1975619774 neuron = callPackage ../applications/science/biology/neuron {
1975719775 python = null;
1975819776 };
@@ -19765,7 +19783,17 @@ with pkgs;
1976519783
1976619784 mrbayes = callPackage ../applications/science/biology/mrbayes { };
1976719785
19768− minc-tools = callPackage ../applications/science/biology/minc-tools { };
19786+ minc_tools = callPackage ../applications/science/biology/minc-tools {
19787+ inherit (perlPackages) TextFormat;
19788+ };
19789+
19790+ minc_widgets = callPackage ../applications/science/biology/minc-widgets {
19791+ inherit (perlPackages) GetoptTabular MNI-Perllib;
19792+ };
19793+
19794+ mni_autoreg = callPackage ../applications/science/biology/mni_autoreg {
19795+ inherit (perlPackages) GetoptTabular MNI-Perllib;
19796+ };
1976919797
1977019798 ncbi_tools = callPackage ../applications/science/biology/ncbi-tools { };
1977119799
pkgs/top-level/perl-packages.nix+18
@@ -9634,6 +9634,8 @@ let self = _self // overrides; _self = with self; {
96349634 };
96359635 };
96369636
9637+ MNI-Perllib = pkgs.callPackage ../development/perl-modules/MNI {};
9638+
96379639 Mo = buildPerlPackage rec {
96389640 name = "Mo-0.40";
96399641 src = fetchurl {
@@ -9661,6 +9663,7 @@ let self = _self // overrides; _self = with self; {
96619663
96629664 ModernPerl = buildPerlModule {
96639665 name = "Modern-Perl-1.20170117";
9666+
96649667 src = fetchurl {
96659668 url = mirror://cpan/authors/id/C/CH/CHROMATIC/Modern-Perl-1.20170117.tar.gz;
96669669 sha256 = "5df2a83461163212db22b9c3353606a1a123616820fe50675041c34f004b3628";
@@ -16236,6 +16239,21 @@ let self = _self // overrides; _self = with self; {
1623616239 };
1623716240 };
1623816241
16242+ TextFormat = buildPerlPackage rec {
16243+ name = "Text-Format-0.60";
16244+ src = fetchurl {
16245+ url = "mirror://cpan/authors/id/S/SH/SHLOMIF/${name}.tar.gz";
16246+ sha256 = "664f313570604624ff9e1fc9b26b6d04e06897b3e4eac83089fc0905a692a2b8";
16247+ };
16248+ buildInputs = [ ModuleBuild ];
16249+ meta = {
16250+ homepage = http://www.shlomifish.org/open-source/projects/Text-Format/;
16251+ description = "Format text";
16252+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
16253+ maintainers = with maintainers; [ bcdarwin ];
16254+ };
16255+ };
16256+
1623916257 TextGerman = buildPerlPackage rec {
1624016258 name = "Text-German-0.06";
1624116259 src = fetchurl {