about summary refs log tree commit diff
path: root/pkgs/development/libraries/libjpeg/default.nix
blob: ce73a59553546856bc545cb88ad7694b942c0a74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  stdenv,
  fetchurl,
  testers,
  static ? false,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libjpeg";
  version = "9f";

  src = fetchurl {
    url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
    hash = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
  };

  configureFlags = lib.optional static "--enable-static --disable-shared";

  outputs = [
    "bin"
    "dev"
    "out"
    "man"
  ];

  passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;

  meta = {
    homepage = "https://www.ijg.org/";
    description = "Library that implements the JPEG image file format";
    maintainers = with lib.maintainers; [ sigmanificient ];
    license = lib.licenses.free;
    pkgConfigModules = [ "libjpeg" ];
    platforms = lib.platforms.unix;
  };
})