libjpeg-tools: init at 1.71

+50
+50
pkgs/by-name/li/libjpeg-tools/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + }: 6 + 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "libjpeg-tools"; 9 + version = "1.71"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "thorfdbg"; 13 + repo = "libjpeg"; 14 + rev = "25f71280913fde7400801772bbf885bb3e873242"; 15 + hash = "sha256-40yb9EujJp9y1PnuYLcPxK31Kj2Q4UQ5YBwXQFYXI/Y="; 16 + }; 17 + 18 + outputs = [ 19 + "out" 20 + "lib" 21 + ]; 22 + 23 + buildPhase = '' 24 + runHook preBuild 25 + make lib 26 + make final 27 + runHook postBuild 28 + ''; 29 + 30 + installPhase = '' 31 + runHook preInstall 32 + install -m755 -D jpeg $out/bin/jpeg 33 + install -m644 -D libjpeg.so $lib/lib/libjpeg 34 + runHook postInstall 35 + ''; 36 + 37 + doCheck = false; # no tests 38 + 39 + meta = { 40 + description = "A complete implementation of 10918-1 (JPEG) coming from jpeg.org (the ISO group) with extensions for HDR, lossless and alpha channel coding standardized as ISO/IEC 18477 (JPEG XT)"; 41 + homepage = "https://github.com/thorfdbg/libjpeg"; 42 + license = with lib.licenses; [ gpl3 ]; 43 + changelog = "https://github.com/thorfdbg/libjpeg/README.history"; 44 + maintainers = with lib.maintainers; [ bcdarwin ]; 45 + platforms = lib.platforms.unix; 46 + mainProgram = "jpeg"; 47 + # clang build fails with "ld: symbol(s) not found for architecture arm64" (on aarch64-darwin) 48 + broken = stdenv.hostPlatform.isDarwin; 49 + }; 50 + })