summary refs log tree commit diff
path: root/pkgs/development/libraries/libjpeg/default.nix
blob: 025be2009599b23c734ca7f2defdc6f1658a38f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, static ? false }:

with stdenv.lib;

stdenv.mkDerivation {
  name = "libjpeg-8d";

  src = fetchurl {
    url = http://www.ijg.org/files/jpegsrc.v8d.tar.gz;
    sha256 = "1cz0dy05mgxqdgjf52p54yxpyy95rgl30cnazdrfmw7hfca9n0h0";
  };

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

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

  meta = {
    homepage = http://www.ijg.org/;
    description = "A library that implements the JPEG image file format";
    license = stdenv.lib.licenses.free;
  };
}