mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
da5aecb73b
Otherwise they can't be crossbuilt.
21 lines
751 B
Nix
21 lines
751 B
Nix
{stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig,
|
|
openssl, libpng, lua5}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "podofo-0.9.1";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/podofo/${name}.tar.gz";
|
|
sha256 = "0icpxh1l1dpviq2zwy764dhg8y03zwyf4pgw4s7kb165nvh9v5kv";
|
|
};
|
|
propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ];
|
|
buildNativeInputs = [ cmake ];
|
|
buildInputs = [ lua5 stdenv.gcc.libc ];
|
|
cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
|
|
|
|
meta = {
|
|
homepage = http://podofo.sourceforge.net;
|
|
description = "A library to work with the PDF file format";
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
};
|
|
}
|