2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libyamlcpp
|
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "1.0.20200331";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dcm2niix";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rordenlab";
|
|
|
|
repo = "dcm2niix";
|
|
|
|
rev = "v${version}";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "1cncfwhyhmg18n970lkn6yvp0i74ajznsl8dqz00asqfzmg681n1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake git ];
|
|
|
|
buildInputs = [ libyamlcpp ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "DICOM to NIfTI converter";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
dcm2niix is a designed to convert neuroimaging data from the
|
|
|
|
DICOM format to the NIfTI format.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.nitrc.org/projects/dcm2nii";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ashgillman ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|