mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
podofo: Simplify derivation
Bunch of junk for linux and cross compilation that's no longer needed
This commit is contained in:
parent
f55ccbb60f
commit
29c4d7f505
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig
|
||||
, gcc5, openssl, libpng, lua5, pkgconfig, libidn, expat }:
|
||||
, openssl, libpng, lua5, pkgconfig, libidn, expat
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "podofo-0.9.5";
|
||||
@ -11,17 +12,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ];
|
||||
|
||||
# Does Linux really need gcc5? Darwin doesn't seem to...
|
||||
nativeBuildInputs = [ cmake pkgconfig ] ++ stdenv.lib.optional stdenv.isLinux gcc5;
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
# Does Linux really need libc here? Darwin doesn't seem to...
|
||||
buildInputs = [ lua5 ] ++ stdenv.lib.optional stdenv.isLinux stdenv.cc.libc;
|
||||
|
||||
crossAttrs = {
|
||||
propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv
|
||||
libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv
|
||||
lua5.crossDrv stdenv.ccCross.libc ];
|
||||
};
|
||||
buildInputs = [ lua5 ];
|
||||
|
||||
cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user