diff --git a/pkgs/development/perl-modules/ImageExifTool/default.nix b/pkgs/development/perl-modules/ImageExifTool/default.nix index b264606cd05a..caca8be2c14f 100644 --- a/pkgs/development/perl-modules/ImageExifTool/default.nix +++ b/pkgs/development/perl-modules/ImageExifTool/default.nix @@ -6,6 +6,10 @@ shortenPerlShebang, stdenv, versionCheckHook, + ArchiveZip, + CompressRawLzma, + IOCompress, + IOCompressBrotli, }: buildPerlPackage rec { @@ -19,12 +23,19 @@ buildPerlPackage rec { hash = "sha256-GPm3HOt7fNMbXRrV5V+ykJAfhww1O6NrD0l/7hA2i28="; }; - nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; - postPatch = '' patchShebangs exiftool ''; + nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; + + propagatedBuildInputs = [ + ArchiveZip + CompressRawLzma + IOCompress + IOCompressBrotli + ]; + postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' shortenPerlShebang $out/bin/exiftool '';