2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libminc, bicpl, itk4, fftwFloat, gsl }:
|
2017-09-26 23:08:14 +01:00
|
|
|
|
2019-10-26 04:41:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "EZminc";
|
2020-07-22 21:16:59 +01:00
|
|
|
version = "unstable-2019-03-12";
|
2017-09-26 23:08:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
2020-04-27 20:03:38 +01:00
|
|
|
rev = "5e3333ee356f914d34d66d33ea8df809c7f7fa51";
|
|
|
|
sha256 = "0wy8cppf5xpgfqvgb3mqs1cjh81n6qzkk6zxv29wvng8nar9wsy4";
|
2017-09-26 23:08:14 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-27 20:03:38 +01:00
|
|
|
buildInputs = [ itk4 libminc bicpl fftwFloat gsl ];
|
2017-09-26 23:08:14 +01:00
|
|
|
|
2020-07-22 21:16:59 +01:00
|
|
|
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake"
|
2017-09-26 23:08:14 +01:00
|
|
|
"-DEZMINC_BUILD_TOOLS=TRUE"
|
|
|
|
"-DEZMINC_BUILD_MRFSEG=TRUE"
|
|
|
|
"-DEZMINC_BUILD_DD=TRUE" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-26 23:08:14 +01:00
|
|
|
homepage = "https://github.com/BIC-MNI/${pname}";
|
|
|
|
description = "Collection of Perl and shell scripts for processing MINC files";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.free;
|
|
|
|
};
|
|
|
|
}
|