dcm2niix: wrap with pigz binary for parallel output compression (#325863)

authored by Peder Bergebakken Sundt and committed by GitHub 82b4147e b7c35fce

+12 -1
+12 -1
pkgs/by-name/dc/dcm2niix/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 + makeBinaryWrapper, 5 6 replaceVars, 6 7 cmake, 7 8 openjpeg, 9 + pigz, 8 10 yaml-cpp, 9 11 batchVersion ? false, 10 12 withJpegLs ? true, 11 13 withOpenJpeg ? true, 14 + withPigz ? true, 12 15 withCloudflareZlib ? true, 13 16 }: 14 17 ··· 39 42 }) 40 43 ]; 41 44 42 - nativeBuildInputs = [ cmake ]; 45 + nativeBuildInputs = [ 46 + cmake 47 + makeBinaryWrapper 48 + ]; 49 + 43 50 buildInputs = 44 51 lib.optionals batchVersion [ yaml-cpp ] 45 52 ++ lib.optionals withOpenJpeg [ ··· 62 69 ++ lib.optionals withCloudflareZlib [ 63 70 "-DZLIB_IMPLEMENTATION=Cloudflare" 64 71 ]; 72 + 73 + postInstall = lib.optionalString withPigz '' 74 + wrapProgram $out/bin/dcm2niix --prefix PATH : "${lib.makeBinPath [ pigz ]}" 75 + ''; 65 76 66 77 meta = { 67 78 description = "DICOM to NIfTI converter";