anchor.diff:      sed -e s@/usr/bin/@@g -i $(grep /usr/bin/ -rl . )
       sed -e '/ubidi_open/i#include <unicode/urename.h>' -i $(find . -name configure)
       sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . ) 
  -    sed -e 's/.*pyhyph.*/=&/' -i $out/share/texmf-config/tex/generic/config/language.dat
  -
  -    updmap --syncwithtrees
   
       NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
       NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${icu}/include/layout";
     '') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
  +
  +  doInstallCMSuper = FullDepEntry (''
  +    tar xf ${cmSuperSrc}
  +    ensureDir $out/share/texmf/fonts/type1/public/cm-super
  +    cp cm-super-*/pfb/*.pfb $out/share/texmf/fonts/type1/public/cm-super
  +    ensureDir $out/share/texmf/dvips/cm-super
  +    cp cm-super-*/dvips/*.{map,enc}  $out/share/texmf/dvips/cm-super
  +    cp cm-super-*/dvips/*.enc  $out/share/texmf/fonts/enc
  +    cp cm-super-*/dvips/*.map  $out/share/texmf/fonts/map
  +    ensureDir $out/share/texmf/dvipdfm/config
  +    cp cm-super-*/dvipdfm/*.map  $out/share/texmf/dvipdfm/config
  +  '') ["minInit" "defEnsureDir" "doPreConfigure"];
   
     doPostInstall = FullDepEntry(''
       mv $out/bin $out/libexec
  
positive.code:     url = mirror://debian/pool/main/t/texlive-lang/texlive-lang_2007.orig.tar.gz;
      sha256 = "0cmd9ryd57rzzg7g2gm3qn4ijakkacy810h5zncqd39p3i1yn6nx";
    };
    
    setupHook = ./setup-hook.sh;
  
  
negative.code:   ];
  
    phaseNames = ["doPreConfigure" "doConfigure" 
      "doInstallCMSuper" "doMakeInstall" "doPostInstall"];
  
    name = "texlive-core-2007";
    meta = {
      description = "A TeX distribution";
      srcs = [texmfSrc langTexmfSrc cmSuperSrc];
    };
  }
  