summary refs log tree commit diff
path: root/pkgs/development/libraries/libwebp/default.nix
blob: 3d52fa3ac9df06f9f005af325f72da6b2cb212e2 (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
{ stdenv, fetchurl, libpng, libjpeg, giflib, libtiff }:

stdenv.mkDerivation rec {
  name = "libwebp-0.4.1";

  src = fetchurl {
    url = "http://downloads.webmproject.org/releases/webp/${name}.tar.gz";
    sha256 = "09yhfhb90hlhr0vq8ajnpk9rxvmb1bkiywcqm7xahl35yvk4ddh0";
  };

  buildInputs = [ libpng libjpeg giflib libtiff ];

  configureFlags = [
    "--enable-libwebpmux"
    "--enable-libwebpdemux"
    "--enable-libwebpdecoder"
  ];

  meta = {
    homepage = http://code.google.com/p/webp/;
    description = "Tools and library for the WebP image format";

    /* It has its own licence, google-related, but that looks like BSD */
    license = stdenv.lib.licenses.free;
  };
}