1 { lib, stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig
2 , openssl, libpng, lua5, pkg-config, libidn, expat
5 stdenv.mkDerivation rec {
10 url = "mirror://sourceforge/podofo/${pname}-${version}.tar.gz";
11 sha256 = "sha256-XeYH4V8ZK4rZBzgwB1nYjeoPXM3OO/AASKDJMrxkUVQ=";
14 outputs = [ "out" "dev" "lib" ];
16 nativeBuildInputs = [ cmake pkg-config ];
18 buildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng
22 "-DPODOFO_BUILD_SHARED=ON"
23 "-DPODOFO_BUILD_STATIC=OFF"
24 "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
28 moveToOutput lib "$lib"
32 homepage = "https://podofo.sourceforge.net";
33 description = "A library to work with the PDF file format";
34 platforms = platforms.all;
35 license = with licenses; [ gpl2Plus lgpl2Plus ];