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