1{ 2 buildPerlPackage, 3 exiftool, 4 fetchurl, 5 gitUpdater, 6 lib, 7 shortenPerlShebang, 8 stdenv, 9 testers, 10}: 11 12buildPerlPackage rec { 13 pname = "Image-ExifTool"; 14 version = "13.25"; 15 16 src = fetchurl { 17 url = "https://exiftool.org/Image-ExifTool-${version}.tar.gz"; 18 hash = "sha256-HNVVFEhGooKYeDvr86tFIjUnPHg1hBCBPj1Ok8ZTsfo="; 19 }; 20 21 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; 22 23 postPatch = '' 24 patchShebangs exiftool 25 ''; 26 27 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 28 shortenPerlShebang $out/bin/exiftool 29 ''; 30 31 passthru = { 32 tests.version = testers.testVersion { 33 inherit version; 34 command = "${lib.getExe exiftool} -ver"; 35 package = exiftool; 36 }; 37 updateScript = gitUpdater { url = "https://github.com/exiftool/exiftool.git"; }; 38 }; 39 40 meta = { 41 description = "Tool to read, write and edit EXIF meta information"; 42 longDescription = '' 43 ExifTool is a platform-independent Perl library plus a command-line 44 application for reading, writing and editing meta information in a wide 45 variety of files. ExifTool supports many different metadata formats 46 including EXIF, GPS, IPTC, XMP, JFIF, GeoTIFF, ICC Profile, Photoshop 47 IRB, FlashPix, AFCP and ID3, as well as the maker notes of many digital 48 cameras by Canon, Casio, DJI, FLIR, FujiFilm, GE, GoPro, HP, 49 JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Motorola, Nikon, 50 Nintendo, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Phase One, 51 Reconyx, Ricoh, Samsung, Sanyo, Sigma/Foveon and Sony. 52 ''; 53 homepage = "https://exiftool.org/"; 54 changelog = "https://exiftool.org/history.html"; 55 license = with lib.licenses; [ 56 gpl1Plus # or 57 artistic2 58 ]; 59 maintainers = with lib.maintainers; [ 60 kiloreux 61 anthonyroussel 62 ]; 63 mainProgram = "exiftool"; 64 }; 65}