mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
libminc: 2.3.00 -> 2.3.01 (develop branch)
This commit is contained in:
parent
83229813b3
commit
99dc5f4ab0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue