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

with stdenv.lib;

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

  src = fetchurl {
    url = "http://www.ijg.org/files/jpegsrc.v9d.tar.gz";
    sha256 = "0clwys9lcqlxqgcw8s1gwfm5ix2zjlqpklmd3mbvqmj5ibj51jwr";
  };

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

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

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