2017-12-01 01:36:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, hdf5 }:
|
2015-11-11 23:51:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-01 01:36:15 +01:00
|
|
|
name = "${pname}-2.3.00";
|
|
|
|
pname = "libminc";
|
2015-11-11 23:51:50 +01:00
|
|
|
|
2017-12-01 01:36:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
|
|
|
rev = builtins.replaceStrings [ "." ] [ "-" ] name;
|
|
|
|
sha256 = "1gv1rq1q1brhglll2256cm6sns77ph6fvgbzk3ihkzq46y07yi9s";
|
2015-11-11 23:51:50 +01: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 01:36:15 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-11-11 23:51:50 +01: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;
|
|
|
|
};
|
|
|
|
}
|