2023-09-19 19:10:52 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, testers
|
|
|
|
, static ? false
|
|
|
|
}:
|
2014-03-31 23:55:32 +00:00
|
|
|
|
2023-09-19 19:10:52 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-25 23:36:30 +00:00
|
|
|
pname = "libjpeg";
|
2022-02-12 00:01:03 +00:00
|
|
|
version = "9e";
|
2013-06-11 11:41:33 +00:00
|
|
|
|
2003-11-06 15:24:19 +00:00
|
|
|
src = fetchurl {
|
2023-09-19 19:10:52 +00:00
|
|
|
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
|
2022-02-12 00:01:03 +00:00
|
|
|
sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
|
2003-11-06 15:24:19 +00:00
|
|
|
};
|
2013-06-11 11:41:33 +00:00
|
|
|
|
2021-07-25 23:36:30 +00:00
|
|
|
configureFlags = lib.optional static "--enable-static --disable-shared";
|
2014-08-23 14:04:53 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
2013-06-11 11:41:33 +00:00
|
|
|
|
2023-09-19 19:10:52 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2021-07-25 23:36:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.ijg.org/";
|
2009-10-29 14:13:07 +00:00
|
|
|
description = "A library that implements the JPEG image file format";
|
2021-07-25 23:36:30 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.free;
|
2023-09-19 19:10:52 +00:00
|
|
|
pkgConfigModules = [ "libjpeg" ];
|
2021-07-25 23:36:30 +00:00
|
|
|
platforms = platforms.unix;
|
2009-10-29 14:13:07 +00:00
|
|
|
};
|
2023-09-19 19:10:52 +00:00
|
|
|
})
|