Merge pull request #91071 from bcdarwin/minc-tools-build-nifti-tools
minc-tools: actually build Nifti support
This commit is contained in:
commit
0f94e2413d
|
@ -14,15 +14,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [ ./fix-netcdf-header.patch ];
|
patches = [ ./fix-netcdf-header.patch ];
|
||||||
|
|
||||||
|
# add missing CMake module to build NIFTI support
|
||||||
|
# (the maintainers normally build libminc and minc-tools in a meta-project)
|
||||||
|
postPatch = ''
|
||||||
|
cp ${libminc.src}/cmake-modules/FindNIFTI.cmake cmake-modules
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake flex bison makeWrapper ];
|
nativeBuildInputs = [ cmake flex bison makeWrapper ];
|
||||||
buildInputs = [ libminc libjpeg zlib ];
|
buildInputs = [ libminc libjpeg nifticlib zlib ];
|
||||||
propagatedBuildInputs = [ perl TextFormat ];
|
propagatedBuildInputs = [ perl TextFormat ];
|
||||||
|
|
||||||
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/"
|
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/"
|
||||||
"-DZNZ_INCLUDE_DIR=${nifticlib}/include/"
|
"-DZNZ_INCLUDE_DIR=${nifticlib}/include/nifti"
|
||||||
"-DZNZ_LIBRARY=${nifticlib}/lib/libznz.a"
|
"-DNIFTI_INCLUDE_DIR=${nifticlib}/include/nifti" ];
|
||||||
"-DNIFTI_INCLUDE_DIR=${nifticlib}/include/nifti/"
|
|
||||||
"-DNIFTI_LIBRARY=${nifticlib}/lib/libniftiio.a" ];
|
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
for prog in minccomplete minchistory mincpik; do
|
for prog in minccomplete minchistory mincpik; do
|
||||||
|
|
Loading…
Reference in a new issue