From da52372d49806fa53a1b29a1498fa5ad98a2ea56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 10 Apr 2013 16:49:18 +0200 Subject: [PATCH] podofo: fixing cross-building --- pkgs/development/libraries/podofo/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/podofo/default.nix b/pkgs/development/libraries/podofo/default.nix index 243a792f6b9c..d6b604367fb4 100644 --- a/pkgs/development/libraries/podofo/default.nix +++ b/pkgs/development/libraries/podofo/default.nix @@ -10,6 +10,13 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; nativeBuildInputs = [ cmake ]; buildInputs = [ lua5 stdenv.gcc.libc ]; + + crossAttrs = { + propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv + libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv + lua5.crossDrv stdenv.gccCross.libc ]; + }; + cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF"; meta = {