anchor.diff: -{ stdenv
  +{ lib
  +, stdenv
   , fetchurl
   , pkgconfig
   , bzip2
  
positive.code:       export DVIDecodeDelegate=${tetex}/bin/dvips
      '' else "";
  
    configureFlags = "" + stdenv.lib.optionalString (stdenv.system != "x86_64-darwin") ''
      --with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
      --with-gslib
    '' + ''
      --with-frozenpaths
      ${if librsvg != null then "--with-rsvg" else ""}
    '';
  
    propagatedBuildInputs =
      [ bzip2 fontconfig freetype libjpeg libpng libtiff libxml2 zlib librsvg
        libtool jasper libX11
      ] ++ stdenv.lib.optional (stdenv.system != "x86_64-darwin") ghostscript;
  
    buildInputs = [ tetex pkgconfig ];
  
  
negative.code: }:
  
  let
  
    version = "6.8.9-8";
  
    arch =
      if stdenv.system == "i686-linux" then "i686"
      else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64"
      else throw "ImageMagick is not supported on this platform.";
  
  in
  
  stdenv.mkDerivation rec {
    name = "ImageMagick-${version}";
  
  