1{ lib, stdenv, fetchurl
2, testers
3, static ? false
4}:
5
6stdenv.mkDerivation (finalAttrs: {
7 pname = "libjpeg";
8 version = "9e";
9
10 src = fetchurl {
11 url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
12 sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
13 };
14
15 configureFlags = lib.optional static "--enable-static --disable-shared";
16
17 outputs = [ "bin" "dev" "out" "man" ];
18
19 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
20
21 meta = with lib; {
22 homepage = "https://www.ijg.org/";
23 description = "A library that implements the JPEG image file format";
24 maintainers = with maintainers; [ ];
25 license = licenses.free;
26 pkgConfigModules = [ "libjpeg" ];
27 platforms = platforms.unix;
28 };
29})