2010-03-04 14:44:47 +00:00
|
|
|
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
2012-02-23 21:14:19 +00:00
|
|
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz
|
2013-05-22 17:25:30 +01:00
|
|
|
, libX11, quantumdepth ? 8}:
|
2010-03-04 14:44:47 +00:00
|
|
|
|
2015-09-09 23:59:05 +01:00
|
|
|
let version = "1.3.21"; in
|
2010-03-04 14:44:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "graphicsmagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-23 21:14:19 +00:00
|
|
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
|
2015-09-09 23:59:05 +01:00
|
|
|
sha256 = "07rwpxy62r9m4r2cg6yll2nr698mxyvbji8vgsivcxhpk56k0ich";
|
2010-03-04 14:44:47 +00:00
|
|
|
};
|
|
|
|
|
2013-05-22 17:25:30 +01:00
|
|
|
configureFlags = "--enable-shared --with-quantum-depth=" + toString quantumdepth;
|
2010-03-04 14:44:51 +00:00
|
|
|
|
2010-03-04 14:44:47 +00:00
|
|
|
buildInputs =
|
|
|
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
|
|
|
|
zlib libtool
|
|
|
|
];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ xz ];
|
2012-02-23 21:14:19 +00:00
|
|
|
|
2010-03-04 16:41:10 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
|
|
|
|
'';
|
|
|
|
|
2010-03-04 14:44:47 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.graphicsmagick.org;
|
|
|
|
description = "Swiss army knife of image processing";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2012-02-03 21:02:00 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-03-04 14:44:47 +00:00
|
|
|
};
|
|
|
|
}
|