2014-03-18 01:25:39 +04:00
|
|
|
{ stdenv, fetchurl, libpng, libjpeg, giflib, libtiff }:
|
2012-02-09 01:37:20 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-30 23:37:05 +04:00
|
|
|
name = "libwebp-0.4.1";
|
2014-03-18 01:17:16 +04:00
|
|
|
|
2012-02-09 01:37:20 +04:00
|
|
|
src = fetchurl {
|
2014-09-30 23:37:05 +04:00
|
|
|
url = "http://downloads.webmproject.org/releases/webp/${name}.tar.gz";
|
|
|
|
sha256 = "09yhfhb90hlhr0vq8ajnpk9rxvmb1bkiywcqm7xahl35yvk4ddh0";
|
2012-02-09 01:37:20 +04:00
|
|
|
};
|
|
|
|
|
2014-03-18 01:25:39 +04:00
|
|
|
buildInputs = [ libpng libjpeg giflib libtiff ];
|
2012-02-09 01:37:20 +04:00
|
|
|
|
2014-03-18 06:38:06 +04:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-libwebpmux"
|
|
|
|
"--enable-libwebpdemux"
|
|
|
|
"--enable-libwebpdecoder"
|
|
|
|
];
|
|
|
|
|
2012-02-09 01:37:20 +04:00
|
|
|
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 */
|
2014-11-06 03:44:33 +03:00
|
|
|
license = stdenv.lib.licenses.free;
|
2012-02-09 01:37:20 +04:00
|
|
|
};
|
|
|
|
}
|