Skip to content

Commit

Permalink
pstoedit: fix pkgconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
bennofs committed Jun 30, 2017
1 parent 58a231d commit 3ab2808
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/tools/graphics/pstoedit/default.nix
Original file line number Diff line number Diff line change
@@ -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/;

0 comments on commit 3ab2808

Please sign in to comment.