anchor.diff:    '';
   
     preBuild = ''
  -    make -C test/unicode all SHELL="${stdenv.shell}"
  -    make -C extras glpk_h.jl GLPK_PREFIX="$GLPK_PREFIX" SHELL="${stdenv.shell}"
  -
       mkdir -p usr/lib
       ln -s libuv.a usr/lib/uv.a
     '';
   
     postInstall = ''
  -   ld -E --whole-archive --shared ${suitesparse}/lib/lib*[a-z].a -o "$out"/lib/libsuitesparse-shared.so
  -   for i in umfpack cholmod amd camd colamd btf cxsparse ldl rbio spqr suitesparseconfig; do
  -     ln -s "libsuitesparse-shared.so" "$out/lib/lib$i.so"
  -   done
  -   ln -s "${lighttpd}/sbin/lighttpd" "$out/sbin/"
  -   ln -s "${lighttpd}/lib/"* "$out/lib/"
  +   make -C deps install-tk-wrapper
  +
  +   (
  +   cd $out/share/julia/test/ 
  +   $out/bin/julia runtests.jl all
  +   ) || true
     '';
   
     meta = {
  
positive.code: { stdenv, fetchgit, gfortran, perl, m4, llvm, gmp, pcre, zlib
   , readline, fftwSinglePrec, fftw, libunwind, suitesparse, glpk, fetchurl
   , ncurses, libunistring, lighttpd, patchelf, openblas, liblapack
   , tcl, tk
   } :
  let
    realGcc = stdenv.gcc.gcc;
  in
  stdenv.mkDerivation rec {
    pname = "julia";
    date = "20121122";
    name = "${pname}-git-${date}";
  
    grisu_ver = "1.1.1";
  
negative.code:     ${if realGcc ==null then "" else 
      ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${realGcc}/lib -L${realGcc}/lib64 -lpcre -llapack -lm -lfftw3f -lfftw3 -lglpk -lunistring -lz "''}
      export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC "
  
      export LDFLAGS="-L${suitesparse}/lib -L$out/lib/julia -Wl,-rpath,$out/lib/julia"
  
  