summary refs log tree commit diff
path: root/pkgs/development/libraries/libjpeg-turbo/default.nix
blob: 4ce79a0f894c8e1b2b15d67f305fe946fa5871ef (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
{ stdenv, fetchurl, nasm, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "libjpeg-turbo-1.4.0";

  src = fetchurl {
    url = "mirror://sourceforge/libjpeg-turbo/${name}.tar.gz";
    sha256 = "1vmv5ciqq98gi2ishqbvlx9hsk7sl06lr6xkcgw480jiddadhfnr";
  };

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

  buildInputs = [ autoreconfHook nasm ];

  enableParallelBuilding = true;

  doCheck = true;
  checkTarget = "test";

  meta = with stdenv.lib; {
    homepage = http://libjpeg-turbo.virtualgl.org/;
    description = "A faster (using SIMD) libjpeg implementation";
    license = licenses.ijg; # and some parts under other BSD-style licenses
    platforms = platforms.all;
    maintainers = [ maintainers.vcunat ];
  };
}