From 67ae8e3d3835615002f8b309f45a69ce6f868a82 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 1 Jul 2007 22:31:24 +0000 Subject: [PATCH] Added ImageMagick svn path=/nixpkgs/trunk/; revision=8939 --- .../graphics/ImageMagick/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/applications/graphics/ImageMagick/default.nix diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix new file mode 100644 index 000000000000..911ab53b8c05 --- /dev/null +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -0,0 +1,18 @@ + +{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript, +libjpeg, libpng, libtiff, libX11, libxml2, zlib}: +stdenv.mkDerivation { + name = "ImageMagick"; + + src = fetchurl { + url = ftp://ftp.carnet.hr/misc/imagemagick/ImageMagick-6.3.4-7.tar.bz2; + sha1 = "bead7b27d951cb9c780c76771562e9e7c7c23d16"; +# cdc388e20580de2a0f91f68e1228c68b0735f385 + }; + + configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript + + "/share/ghostscript/fonts --with-gslib "; + + buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng + libtiff libX11 libxml2 zlib ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c69cff316b01..c36d7cd37186 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2894,6 +2894,12 @@ rec { inherit fetchurl stdenv perl; }; + imagemagick = import ../applications/graphics/ImageMagick { + inherit stdenv fetchurl bzip2 freetype graphviz + ghostscript libjpeg libpng libtiff libxml2 zlib; + inherit (xlibs) libX11; + }; + inkscape = import ../applications/graphics/inkscape { inherit fetchurl stdenv perl perlXMLParser pkgconfig zlib popt libxml2 libxslt libpng boehmgc fontconfig gtkmm