uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/tools/graphics/pstoedit/default.nix
Normal file
40
pkgs/tools/graphics/pstoedit/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchurl, pkg-config, darwin, lib
|
||||
, zlib, ghostscript, imagemagick, plotutils, gd
|
||||
, libjpeg, libwebp, libiconv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pstoedit";
|
||||
version = "3.78";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pstoedit/pstoedit-${version}.tar.gz";
|
||||
sha256 = "sha256-jMKONLx/iNkTeA+AdOgT3VqqCsIFams21L8ASg6Q2AE=";
|
||||
};
|
||||
|
||||
#
|
||||
# Turn on "-rdb" option (REALLYDELAYBIND) by default to ensure compatibility with gs-9.22
|
||||
#
|
||||
patches = [ ./pstoedit-gs-9.22-compat.patch ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
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 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue