{stdenv, fetchurl, libpng, libjpeg}:

stdenv.mkDerivation rec {
  name = "libwebp-0.1.3";
  
  src = fetchurl {
    url = "http://webp.googlecode.com/files/${name}.tar.gz";
    sha256 = "1fkssvg99s9ypswh4ywkirgcy1wmy3b6388f3cqj4a4vwdb89ca0";
  };

  buildInputs = [ libpng libjpeg ];

  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 = "free";
  };
}

{stdenv, fetchurl, libpng, libjpeg}:

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

  src = fetchurl {
    url = "http://webp.googlecode.com/files/${name}.tar.gz";
    sha256 = "0sadjkx8m6sf064r5gngjvz4b5246q3j27dlaml5b1k3x5vkb49i";
  };

  buildInputs = [ libpng libjpeg ];

  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 = "free";
  };
}

Update to new upstream version 0.4.0.
libwebp: Update to new upstream version 0.4.0.

Now the version should be recent enough to be built against Chromium,
see: https://code.google.com/p/webp/issues/detail?id=122#c6

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>
