1{ stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig
2, openssl, libpng, lua5, pkgconfig, libidn, expat
3, gcc5 # TODO(@Dridus) remove this at next hash break
4}:
5
6stdenv.mkDerivation rec {
7 name = "podofo-0.9.6";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/podofo/${name}.tar.gz";
11 sha256 = "0wj0y4zcmj4q79wrn3vv3xq4bb0vhhxs8yifafwy9f2sjm83c5p9";
12 };
13
14 propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ];
15
16 # TODO(@Dridus) remove the ++ ghc5 at next hash break
17 nativeBuildInputs = [ cmake pkgconfig ] ++ stdenv.lib.optional stdenv.isLinux gcc5;
18
19 # TODO(@Dridus) remove the ++ libc at next hash break
20 buildInputs = [ lua5 ] ++ stdenv.lib.optional stdenv.isLinux stdenv.cc.libc;
21
22 cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
23
24 meta = {
25 homepage = http://podofo.sourceforge.net;
26 description = "A library to work with the PDF file format";
27 platforms = stdenv.lib.platforms.all;
28 maintainers = [ ];
29 };
30}