libminc: 2.3.00 -> 2.3.01 (develop branch)

This commit is contained in:
Ben Darwin 2017-09-24 17:28:16 -04:00
parent 83229813b3
commit 99dc5f4ab0

View File

@ -1,23 +1,30 @@
{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, hdf5 }:
{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, nifticlib, hdf5 }:
stdenv.mkDerivation rec {
name = "${pname}-2.3.00";
pname = "libminc";
name = "${pname}-2.3.01";
# current master significantly ahead of most recent release
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = builtins.replaceStrings [ "." ] [ "-" ] name;
sha256 = "1gv1rq1q1brhglll2256cm6sns77ph6fvgbzk3ihkzq46y07yi9s";
owner = "BIC-MNI";
repo = pname;
rev = "e11c6df9321b4061bf87a7d43171ec55e9e3908f";
sha256 = "0lmd0js3jgni2mw1zfvd4qg6byxiv3ndgv2z3nm7975i83zw48xk";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib netcdf hdf5 ];
buildInputs = [ zlib netcdf nifticlib hdf5 ];
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
"-DLIBMINC_MINC1_SUPPORT=ON" ];
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "TRUE" else "FALSE"}"
"-DLIBMINC_MINC1_SUPPORT=TRUE"
"-DLIBMINC_BUILD_SHARED_LIBS=TRUE"
"-DLIBMINC_USE_SYSTEM_NIFTI=TRUE" ];
checkPhase = "ctest";
checkPhase = ''
export LD_LIBRARY_PATH="$(pwd)" # see #22060
ctest -E ezminc_rw_test --output-on-failure # ezminc_rw_test can't find libminc_io.so.5.2.0
'';
doCheck = true;
enableParallelBuilding = true;