2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
testers,
|
|
|
|
static ? false,
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "libjpeg";
|
|
|
|
version = "9f";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
|
|
|
|
sha256 = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = lib.optional static "--enable-static --disable-shared";
|
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
outputs = [
|
|
|
|
"bin"
|
|
|
|
"dev"
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.ijg.org/";
|
|
|
|
description = "A library that implements the JPEG image file format";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.free;
|
|
|
|
pkgConfigModules = [ "libjpeg" ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
})
|