nixpkgs/pkgs/tools/graphics/pstoedit/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, darwin, lib
, zlib, ghostscript, imagemagick, plotutils, gd
, libjpeg, libwebp, libiconv
}:
stdenv.mkDerivation rec {
name = "pstoedit-3.71";
src = fetchurl {
url = "mirror://sourceforge/pstoedit/${name}.tar.gz";
sha256 = "15dwrwjbixjqph2jmdqzi9fihwpqc1kz5jcv5phxw8wwrlicv285";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig ];
2017-06-30 14:27:12 +00:00
buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
libiconv ApplicationServices
]);
2017-06-30 14:27:12 +00:00
# '@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/;
license = licenses.gpl2;
maintainers = [ maintainers.marcweber ];
platforms = platforms.unix;
};
}