nixpkgs/pkgs/applications/science/biology/dcm2niix/default.nix

34 lines
803 B
Nix
Raw Normal View History

2018-01-15 06:19:20 +01:00
{ stdenv
, fetchFromGitHub
, cmake
, libyamlcpp
}:
2018-01-15 07:53:28 +01:00
stdenv.mkDerivation rec {
version = "1.0.20170130";
2018-01-15 06:19:20 +01:00
name = "dcm2niix-${version}";
src = fetchFromGitHub {
owner = "rordenlab";
repo = "dcm2niix";
2018-01-15 07:53:28 +01:00
rev = "v${version}";
sha256 = "1f2nzd8flp1rfn725bi64z7aw3ccxyyygzarxijw6pvgl476i532";
2018-01-15 06:19:20 +01:00
};
enableParallelBuilding = true;
2018-01-15 07:53:28 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = [ libyamlcpp ];
2018-01-15 06:19:20 +01:00
2018-01-15 07:53:28 +01:00
meta = with stdenv.lib; {
2018-01-15 06:19:20 +01:00
description = "dcm2niix DICOM to NIfTI converter";
longDescription = ''
dcm2niix is a designed to convert neuroimaging data from the
DICOM format to the NIfTI format.
'';
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
}