2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
testers,
|
|
|
|
static ? false,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "libjpeg";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "9f";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
configureFlags = lib.optional static "--enable-static --disable-shared";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
outputs = [
|
|
|
|
"bin"
|
|
|
|
"dev"
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://www.ijg.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that implements the JPEG image file format";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
|
|
license = lib.licenses.free;
|
2023-10-09 19:29:22 +00:00
|
|
|
pkgConfigModules = [ "libjpeg" ];
|
2024-07-27 06:49:29 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|