2017-12-01 00:36:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, hdf5 }:
|
2015-11-11 22:51:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-01 00:36:15 +00:00
|
|
|
name = "${pname}-2.3.00";
|
|
|
|
pname = "libminc";
|
2015-11-11 22:51:50 +00:00
|
|
|
|
2017-12-01 00:36:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
|
|
|
rev = builtins.replaceStrings [ "." ] [ "-" ] name;
|
|
|
|
sha256 = "1gv1rq1q1brhglll2256cm6sns77ph6fvgbzk3ihkzq46y07yi9s";
|
2015-11-11 22:51:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib netcdf hdf5 ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
|
|
|
|
"-DLIBMINC_MINC1_SUPPORT=ON" ];
|
|
|
|
|
|
|
|
checkPhase = "ctest";
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-12-01 00:36:15 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-11-11 22:51:50 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|