forked from mirrors/nixpkgs
Merge pull request #10980 from bcdarwin/minc-tools
MINC (Medical Image NetCDF) tools
This commit is contained in:
commit
32ce97ec76
26
pkgs/applications/science/biology/minc-tools/default.nix
Normal file
26
pkgs/applications/science/biology/minc-tools/default.nix
Normal 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;
|
||||
};
|
||||
}
|
27
pkgs/development/libraries/libminc/default.nix
Normal file
27
pkgs/development/libraries/libminc/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue