3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #10980 from bcdarwin/minc-tools

MINC (Medical Image NetCDF) tools
This commit is contained in:
Arseniy Seroka 2016-02-23 22:22:29 +03:00
commit 32ce97ec76
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ stdenv, fetchurl, perl, cmake, flex, bison, libminc }:
stdenv.mkDerivation rec {
_name = "minc-tools";
name = "${_name}-2.3.00";
src = fetchurl {
url = "https://github.com/BIC-MNI/${_name}/archive/${_name}-2-3-00.tar.gz";
sha256 = "1d457vrwy2fl6ga2axnwn1cchkx2rmgixfzyb1zjxb06cxkfj1dm";
};
nativeBuildInputs = [ cmake flex bison ] ++ (if doCheck then [ perl ] else [ ]);
buildInputs = [ libminc ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
checkPhase = "ctest";
doCheck = true;
meta = with stdenv.lib; {
homepage = https://github.com/BIC-MNI/minc-tools;
description = "Command-line utilities for working with MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, fetchurl, cmake, zlib, netcdf, hdf5 }:
stdenv.mkDerivation rec {
_name = "libminc";
name = "${_name}-2.3.00";
src = fetchurl {
url = "https://github.com/BIC-MNI/${_name}/archive/${_name}-2-3-00.tar.gz";
sha256 = "04ngqx4wkssxs9qqcgq2bvfs1cldcycmpcx587wy3b3m6lwf004c";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib netcdf hdf5 ];
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
"-DLIBMINC_MINC1_SUPPORT=ON" ];
checkPhase = "ctest";
doCheck = true;
meta = with stdenv.lib; {
homepage = https://github.com/BIC-MNI/libminc;
description = "Medical imaging library based on HDF5";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
};
}

View file

@ -7668,6 +7668,8 @@ let
libmilter = callPackage ../development/libraries/libmilter { };
libminc = callPackage ../development/libraries/libminc { };
libmkv = callPackage ../development/libraries/libmkv { };
libmms = callPackage ../development/libraries/libmms { };
@ -15179,6 +15181,8 @@ let
mrbayes = callPackage ../applications/science/biology/mrbayes { };
minc_tools = callPackage ../applications/science/biology/minc-tools { };
ncbi_tools = callPackage ../applications/science/biology/ncbi-tools { };
paml = callPackage ../applications/science/biology/paml { };