diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2017-06-30 16:27:12 +0200 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2017-06-30 16:36:51 +0200 |
commit | 3ab280808c9e5ea0c62be05bda47a5d137baf862 (patch) | |
tree | f6c646d58d11cf4beb40ee279ec68a22fbde2e40 /pkgs | |
parent | 58a231d944fb87e434d88bf999697beaaf114d7a (diff) |
pstoedit: fix pkgconfig file
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/graphics/pstoedit/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/pstoedit/default.nix b/pkgs/tools/graphics/pstoedit/default.nix index 170dfdac2b6b..9fdf0ad0465a 100644 --- a/pkgs/tools/graphics/pstoedit/default.nix +++ b/pkgs/tools/graphics/pstoedit/default.nix @@ -13,11 +13,17 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ] + buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ libiconv ApplicationServices ]); + # '@LIBPNG_LDFLAGS@' is no longer substituted by autoconf (the code is commented out) + # so we need to remove it from the pkg-config file as well + preConfigure = '' + substituteInPlace config/pstoedit.pc.in --replace '@LIBPNG_LDFLAGS@' "" + ''; + meta = with stdenv.lib; { description = "Translates PostScript and PDF graphics into other vector formats"; homepage = https://sourceforge.net/projects/pstoedit/; |