anchor.diff:  { stdenv
   , fetchurl
  +, pkgconfig
   , bzip2
  +, fontconfig
   , freetype
   , ghostscript ? null
   , libjpeg
  
positive.code: }:
  
  let
    version = "6.8.6-9";
  in
  stdenv.mkDerivation rec {
    name = "ImageMagick-${version}";
  
    src = fetchurl {
      url = "mirror://imagemagick/${name}.tar.xz";
      sha256 = "1bpj8676mph5cvyjsdgf27i6yg2iw9iskk5c69mvpxkyawgjw1vg";
    };
  
    enableParallelBuilding = true;
  
negative.code:   '';
  
    propagatedBuildInputs =
      [ bzip2 fontconfig freetype libjpeg libpng libtiff libxml2 zlib librsvg
        libtool jasper libX11
      ] ++ stdenv.lib.optional (ghostscript != null && stdenv.system != "x86_64-darwin") ghostscript;
  
    buildInputs = [ tetex pkgconfig ];
  
    postInstall = ''(cd "$out/include" && ln -s ImageMagick* ImageMagick)'';
  
    meta = with stdenv.lib; {
      homepage = http://www.imagemagick.org/;
      description = "A software suite to create, edit, compose, or convert bitmap images";
      platforms = platforms.linux;
      maintainers = with maintainers; [ the-kenny ];
    };
  }
  