mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
04d2aa443e
svn path=/nixpkgs/trunk/; revision=32523
35 lines
853 B
Nix
35 lines
853 B
Nix
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz
|
|
, libX11}:
|
|
|
|
let version = "1.3.13"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "graphicsmagick-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
|
|
sha256 = "08lgjvhvhw3by5h4kfpl7072dbvkcpsajy5f6izq69cv61vadqs5";
|
|
};
|
|
|
|
configureFlags = "--enable-shared";
|
|
|
|
buildInputs =
|
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
|
|
zlib libtool
|
|
];
|
|
|
|
buildNativeInputs = [ 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;
|
|
};
|
|
}
|