nixpkgs/pkgs/applications/graphics/graphicsmagick/default.nix
R. RyanTM d2b6be544b graphicsmagick: 1.3.29 -> 1.3.30 (#42704)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/graphicsmagick/versions.

These checks were done:

- built on NixOS
- /nix/store/kws698xdnjfrl70gi5gvp4f90i00w35p-graphicsmagick-1.3.30/bin/gm passed the binary check.
- /nix/store/kws698xdnjfrl70gi5gvp4f90i00w35p-graphicsmagick-1.3.30/bin/GraphicsMagick++-config passed the binary check.
- /nix/store/kws698xdnjfrl70gi5gvp4f90i00w35p-graphicsmagick-1.3.30/bin/GraphicsMagick-config passed the binary check.
- /nix/store/kws698xdnjfrl70gi5gvp4f90i00w35p-graphicsmagick-1.3.30/bin/GraphicsMagickWand-config passed the binary check.
- 4 of 4 passed binary check by having a zero exit code.
- 3 of 4 passed binary check by having the new version present in output.
- found 1.3.30 with grep in /nix/store/kws698xdnjfrl70gi5gvp4f90i00w35p-graphicsmagick-1.3.30
- directory tree listing: https://gist.github.com/e51d94d9d1da3d8ccfb7359a7d6e7655
- du listing: https://gist.github.com/e1a40fb5a980660ff689d25e98d20d18
2018-07-05 09:31:36 +02:00

43 lines
1.1 KiB
Nix

{ stdenv, fetchurl, fetchpatch, bzip2, freetype, graphviz, ghostscript
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
, libwebp, quantumdepth ? 8, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
name = "graphicsmagick-${version}";
version = "1.3.30";
src = fetchurl {
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
sha256 = "1warar0731xf94r4bn5x1km85rjabl4iq8r0dk3ywmczap3farfr";
};
patches = [
./disable-popen.patch
];
configureFlags = [
"--enable-shared"
"--with-quantum-depth=${toString quantumdepth}"
"--with-gslib=yes"
];
buildInputs =
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
zlib libtool libwebp
]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
nativeBuildInputs = [ xz ];
postInstall = ''
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
'';
meta = {
homepage = http://www.graphicsmagick.org;
description = "Swiss army knife of image processing";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.all;
};
}