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