b22c1b7994
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pstoedit/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/m0nhahi727p7jwnxysk68svbyxv17k8m-pstoedit-3.73/bin/pstoedit had a zero exit code or showed the expected version - 0 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 3.73 with grep in /nix/store/m0nhahi727p7jwnxysk68svbyxv17k8m-pstoedit-3.73 - directory tree listing: https://gist.github.com/4da3ca3d5e74c32b039a23ccafc88d68 - du listing: https://gist.github.com/66649e7e80a80f79059715f8158aff56
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, darwin, lib
|
|
, zlib, ghostscript, imagemagick, plotutils, gd
|
|
, libjpeg, libwebp, libiconv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pstoedit-3.73";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pstoedit/${name}.tar.gz";
|
|
sha256 = "147jkgvm9n6mbkl6ndqnm9x74x5y9agbxkfwj0jrw6yxyhxx2cdd";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
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/;
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.marcweber ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|