2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-01-15 05:19:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libyamlcpp
|
2019-06-18 20:11:32 +00:00
|
|
|
, git
|
2018-01-15 05:19:20 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-15 06:53:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-29 09:34:20 +00:00
|
|
|
version = "1.0.20211006";
|
2019-08-15 12:41:18 +00: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}";
|
2021-10-29 09:34:20 +00:00
|
|
|
sha256 = "sha256-fQAVOzynMdSLDfhcYWcaXkFW/mnv4zySGLVJNE7ql/c=";
|
2018-01-15 05:19:20 +00:00
|
|
|
};
|
|
|
|
|
2019-06-18 20:11:32 +00:00
|
|
|
nativeBuildInputs = [ cmake git ];
|
2018-01-15 06:53:28 +00:00
|
|
|
buildInputs = [ libyamlcpp ];
|
2018-01-15 05:19:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "DICOM to NIfTI converter";
|
2018-01-15 05:19:20 +00:00
|
|
|
longDescription = ''
|
|
|
|
dcm2niix is a designed to convert neuroimaging data from the
|
|
|
|
DICOM format to the NIfTI format.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00: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
|
|
|
}
|