2023-10-09 19:29:22 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, testers
|
|
|
|
, static ? false
|
|
|
|
}:
|
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-01-25 14:12:00 +00:00
|
|
|
sha256 = "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
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.ijg.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that implements the JPEG image file format";
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.free;
|
2023-10-09 19:29:22 +00:00
|
|
|
pkgConfigModules = [ "libjpeg" ];
|
2021-08-05 21:33:18 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|