mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
minc_tools: enable building conversion tools
This commit is contained in:
parent
bcad453bcf
commit
39f0e3b32b
@ -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
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user