minc_tools: enable building conversion tools

This commit is contained in:
Ben Darwin 2020-02-07 11:57:12 -05:00 committed by Frederik Rietdijk
parent bcad453bcf
commit 39f0e3b32b
2 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper, flex, bison, perlPackages, libminc, libjpeg, zlib }:
{ stdenv, fetchFromGitHub, cmake, makeWrapper, flex, bison, perl, TextFormat,
libminc, libjpeg, nifticlib, zlib }:
stdenv.mkDerivation rec {
pname = "minc-tools";
@ -15,9 +16,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake flex bison makeWrapper ];
buildInputs = [ libminc libjpeg zlib ];
propagatedBuildInputs = with perlPackages; [ perl TextFormat ];
propagatedBuildInputs = [ perl TextFormat ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/"
"-DZNZ_INCLUDE_DIR=${nifticlib}/include/"
"-DZNZ_LIBRARY=${nifticlib}/lib/libznz.a"
"-DNIFTI_INCLUDE_DIR=${nifticlib}/include/nifti/"
"-DNIFTI_LIBRARY=${nifticlib}/lib/libniftiio.a" ];
postFixup = ''
for prog in minccomplete minchistory mincpik; do

View File

@ -23884,7 +23884,9 @@ in
messer-slim = callPackage ../applications/science/biology/messer-slim { };
minc_tools = callPackage ../applications/science/biology/minc-tools { };
minc_tools = callPackage ../applications/science/biology/minc-tools {
inherit (perlPackages) perl TextFormat;
};
minc_widgets = callPackage ../applications/science/biology/minc-widgets { };