git.iko.soy/typeable/nixpkgs
on master help sign in
podofo: cleanup
commit797e0d84a180dd24b7572ffef9a52677860970cb authorMatthew Bauer <mjbauer95@gmail.com> dateTue 6 Nov 2018, 20:01 (8 years ago) parent8511f04
1 file changed+8−14
pkgs/development/libraries/podofo/default.nix+8−14
pkgs/development/libraries/podofo/default.nix+8−14
@@ -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";