about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libjpeg/default.nix
blob: aaa481e8fd5d8a1926e15f7adcd525d0278010ac (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
{ lib, stdenv, fetchurl
, testers
, static ? false
}:

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

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

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

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

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

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