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