2012-01-27 15:05:35 +00:00
|
|
|
{ stdenv, fetchurl, zlib, libpng, patchutils }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2009-09-13 08:54:44 +00:00
|
|
|
stdenv.mkDerivation {
|
2011-07-02 14:16:06 +00:00
|
|
|
name = "libharu-2.2.1";
|
2009-09-13 08:54:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-07-02 14:16:06 +00:00
|
|
|
url = http://libharu.org/files/libharu-2.2.1.tar.bz2;
|
|
|
|
sha256 = "04493rjb4z8f04p3kjvnya8phg4b0vzy3mbdbp8jfy0dhvqg4h4j";
|
2009-09-13 08:54:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--with-zlib=${zlib} --with-png=${libpng}";
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
buildInputs = [ zlib libpng ];
|
2009-09-13 08:54:44 +00:00
|
|
|
|
2012-01-27 15:05:35 +00:00
|
|
|
patches =
|
|
|
|
[ (stdenv.mkDerivation {
|
|
|
|
name = "linpng15.patch";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/tony2001/libharu/commit/e5bf8b01f6c3d5e3fe0e26ac5345e0da10c03934.diff;
|
|
|
|
sha256 = "1993vskpycyr43rwdp8f688fc5zvllrqq935r7rhsgbqbipkk73h";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildNativeInputs = [ patchutils ];
|
|
|
|
|
|
|
|
buildCommand = "filterdiff -x '*/CHANGES' $src > $out";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = https://github.com/tony2001/libharu/commit/b472b64ab44d834eb29d237f31bf12396fee9aca.diff;
|
|
|
|
name = "endless-loop.patch";
|
|
|
|
sha256 = "1c95mn6a5wddznqgrsaf3xsh27lz8q0pzc0a7ampxpscq0w6c9fq";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2011-07-02 14:16:06 +00:00
|
|
|
meta = {
|
|
|
|
description = "Cross platform, open source library for generating PDF files";
|
2009-09-13 08:54:44 +00:00
|
|
|
homepage = http://libharu.org/wiki/Main_Page;
|
|
|
|
license = "ZLIB/LIBPNG"; # see README.
|
2010-07-28 11:55:54 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-13 08:54:44 +00:00
|
|
|
};
|
|
|
|
}
|