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

34 lines
761 B
Nix
Raw Normal View History

{ 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";
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
meta = with lib; {
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.
'';
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
}