@@ -12,8 +12,6 @@ stdenv.mkDerivation rec {
1212 sha256 = "0wj0y4zcmj4q79wrn3vv3xq4bb0vhhxs8yifafwy9f2sjm83c5p9";
1313 };
1414
15− propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ];
16−
1715 patches = [
1816 # https://sourceforge.net/p/podofo/tickets/24/
1917 (fetchpatch {
@@ -23,20 +21,16 @@ stdenv.mkDerivation rec {
2321 })
2422 ];
2523
26− # TODO(@Dridus) remove the ++ ghc5 at next hash break
27− nativeBuildInputs = [ cmake pkgconfig ] ++ stdenv.lib.optional stdenv.isLinux gcc5;
28−
29− # TODO(@Dridus) remove the ++ libc at next hash break
30− buildInputs = [ lua5 ] ++ stdenv.lib.optional stdenv.isLinux stdenv.cc.libc;
24+ nativeBuildInputs = [ cmake pkgconfig ];
3125
32− cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
33−
34− postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
35− for i in $out/bin/* ; do
36− install_name_tool -change libpodofo.${version}.dylib $out/lib/libpodofo.${version}.dylib "$i"
37− done
38− '';
26+ buildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng
27+ libidn expat lua5 ];
3928
29+ cmakeFlags = [
30+ "-DPODOFO_BUILD_SHARED=ON"
31+ "-DPODOFO_BUILD_STATIC=OFF"
32+ "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
33+ ];
4034 meta = with stdenv.lib; {
4135 homepage = http://podofo.sourceforge.net;
4236 description = "A library to work with the PDF file format";