anchor.diff:  , libtool
   , jasper
   , libX11
  +, xz
   , tetex ? null
   , librsvg ? null
   }:
  
positive.code:   name = "ImageMagick-${version}";
  
    src = fetchurl {
      url = "mirror://imagemagick/${name}.tar.bz2";
      sha256 = "0byaawz7zbc75rz9hraraaggpn98lajkrad4mv5z3b2nlln2nf4i";
    };
  
    configureFlags = ''
  
negative.code:     ${if librsvg != null then "--with-rsvg" else ""}
    '';
  
    propagatedBuildInputs =
      [ bzip2 freetype ghostscript libjpeg libpng libtiff libxml2 zlib librsvg
      libtool jasper libX11 ];
  
    buildInputs = [ tetex graphviz ];
  
    buildNativeInputs = [ xz ];
  
    preConfigure = if tetex != null then
      ''
  