git.iko.soy/typeable/nixpkgs
on master help sign in
podofo: fix on LLVM 4

Not sure if the things I made optional on Darwin are really worth keeping at all, but I don't have a Linux box handy so I'm minimizing potential damage.

commit1be61d192137ad022a9e1b8fd5d1f3d76fc5bbfc authorDan Peebles <pumpkin@me.com> dateThu 6 Apr 2017, 23:33 (10 years ago) parent0cacae6
1 file changed+6−2
pkgs/development/libraries/podofo/default.nix+6−2
pkgs/development/libraries/podofo/default.nix+6−2
@@ -10,8 +10,12 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ];
13− nativeBuildInputs = [ cmake gcc5 pkgconfig ];
14− buildInputs = [ lua5 stdenv.cc.libc ];
13+
14+ # Does Linux really need gcc5? Darwin doesn't seem to...
15+ nativeBuildInputs = [ cmake pkgconfig ] ++ stdenv.lib.optional stdenv.isLinux gcc5;
16+
17+ # Does Linux really need libc here? Darwin doesn't seem to...
18+ buildInputs = [ lua5 ] ++ stdenv.lib.optional stdenv.isLinux stdenv.cc.libc;
1519
1620 crossAttrs = {
1721 propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv