dcm2niix: wrap with pigz binary for '-z y' and '-z o' settings

This commit is contained in:
Ben Darwin
2025-01-16 21:08:51 -05:00
parent c8637a9bbc
commit 7c3ad55090
+12 -1
View File
@@ -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";