Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libjpeg-tools";
version = "1.71";
src = fetchFromGitHub {
owner = "thorfdbg";
repo = "libjpeg";
rev = "25f71280913fde7400801772bbf885bb3e873242";
hash = "sha256-40yb9EujJp9y1PnuYLcPxK31Kj2Q4UQ5YBwXQFYXI/Y=";
};
outputs = [
"out"
"lib"
];
buildPhase = ''
runHook preBuild
make lib
make final
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -m755 -D jpeg $out/bin/jpeg
install -m644 -D libjpeg.so $lib/lib/libjpeg
runHook postInstall
'';
doCheck = false; # no tests
meta = {
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)";
homepage = "https://github.com/thorfdbg/libjpeg";
license = with lib.licenses; [ gpl3 ];
changelog = "https://github.com/thorfdbg/libjpeg/README.history";
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.unix;
mainProgram = "jpeg";
# clang build fails with "ld: symbol(s) not found for architecture arm64" (on aarch64-darwin)
broken = stdenv.hostPlatform.isDarwin;
};
})