dcm2niix: wrap with pigz binary for '-z y' and '-z o' settings
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
makeBinaryWrapper,
|
||||
replaceVars,
|
||||
cmake,
|
||||
openjpeg,
|
||||
pigz,
|
||||
yaml-cpp,
|
||||
batchVersion ? false,
|
||||
withJpegLs ? true,
|
||||
withOpenJpeg ? true,
|
||||
withPigz ? true,
|
||||
withCloudflareZlib ? true,
|
||||
}:
|
||||
|
||||
@@ -39,7 +42,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
lib.optionals batchVersion [ yaml-cpp ]
|
||||
++ lib.optionals withOpenJpeg [
|
||||
@@ -63,6 +70,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DZLIB_IMPLEMENTATION=Cloudflare"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString withPigz ''
|
||||
wrapProgram $out/bin/dcm2niix --prefix PATH : "${lib.makeBinPath [ pigz ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "DICOM to NIfTI converter";
|
||||
mainProgram = "dcm2niix";
|
||||
|
||||
Reference in New Issue
Block a user