@@ -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