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