2018-01-15 05:19:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libyamlcpp
|
2019-06-18 21:11:32 +01:00
|
|
|
, git
|
2018-01-15 05:19:20 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-15 06:53:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-01 11:35:45 +01:00
|
|
|
version = "1.0.20200331";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dcm2niix";
|
2018-01-15 05:19:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rordenlab";
|
|
|
|
repo = "dcm2niix";
|
2018-01-15 06:53:28 +00:00
|
|
|
rev = "v${version}";
|
2020-04-01 11:35:45 +01:00
|
|
|
sha256 = "1cncfwhyhmg18n970lkn6yvp0i74ajznsl8dqz00asqfzmg681n1";
|
2018-01-15 05:19:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2019-06-18 21:11:32 +01:00
|
|
|
nativeBuildInputs = [ cmake git ];
|
2018-01-15 06:53:28 +00:00
|
|
|
buildInputs = [ libyamlcpp ];
|
2018-01-15 05:19:20 +00:00
|
|
|
|
2018-01-15 06:53:28 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-15 05:19:20 +00:00
|
|
|
description = "dcm2niix DICOM to NIfTI converter";
|
|
|
|
longDescription = ''
|
|
|
|
dcm2niix is a designed to convert neuroimaging data from the
|
|
|
|
DICOM format to the NIfTI format.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nitrc.org/projects/dcm2nii";
|
2018-01-15 06:53:28 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ashgillman ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2018-01-15 05:19:20 +00:00
|
|
|
}
|