anchor.diff:      }
   
       for i in "${grisu_src}" "${dsfmt_src}" "${arpack_src}" "${clp_src}" "${lighttpd_src}" ; do
  -      copy_kill_hash "$i" external
  +      copy_kill_hash "$i" deps
       done
  -    copy_kill_hash "${dsfmt_src}" external/random
  +    copy_kill_hash "${dsfmt_src}" deps/random
   
  -    sed -e '/cd SuiteSparse-SYSTEM/,+1s@find /lib /usr/lib /usr/local/lib@find ${suitesparse}/lib@' -i external/Makefile
  +    sed -e '/cd SuiteSparse-SYSTEM/,+1s@find /lib /usr/lib /usr/local/lib@find ${suitesparse}/lib@' -i deps/Makefile
   
       ${if realGcc ==null then "" else 
       ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${realGcc}/lib -L${realGcc}/lib64 -lpcre -llapack -lm -lfftw3f -lfftw3 -lglpk -lunistring "''}
   
       sed -e 's@ cpp @ gcc -E @g' -i base/Makefile
  -  '';
   
  -  preInstall = ''
  -    export makeFlags="$makeFlags PREFIX=\"$out\""
  +    sed -e '1s@#! */bin/bash@#!${stdenv.shell}@' -i deps/*.sh
  +
  +    export LDFLAGS="-L${suitesparse}/lib"
  +
  +    mkdir -p "$out/lib"
  +    sed -e "s@/usr/local/lib@$out/lib@g" -i deps/Makefile
  +    sed -e "s@/usr/lib@$out/lib@g" -i deps/Makefile
  +    
  +    sed -e '/libumfpack.a/s@find @find ${suitesparse}/lib @' -i deps/Makefile
  +
  +    export makeFlags="$makeFlags PREFIX=\"$out\" USR=\"$out\""
  +
  +    sed -e 's@openblas@blas@' -i base/*.jl
  +
  +    sed -e '/install -v julia-release-webserver/d' -i Makefile
  +
  +    export dontPatchELF=1
     '';
   
     postInstall = ''
  -    mkdir -p "$out/bin"
  -    ln -s "$out/share/julia/julia" "$out/bin"
  +   ln -s "$out/share/julia/julia" "$out/bin"
   
  -    mkdir -p "$out/share/julia/ui/"
  -    cp -r ui/website "$out/share/julia/ui/"
  -    cp external/lighttpd.conf "$out/share/julia/ui/"
  +   mkdir -p "$out/share/julia/ui/"
  +   cp -r ui/website "$out/share/julia/ui/"
  +   cp deps/lighttpd.conf "$out/share/julia/ui/"
   
  -    mkdir -p "$out/share/julia/ui/webserver/"
  -    cp -r ui/webserver/{*.jl,*.h} "$out/share/julia/ui/webserver/"
  +   mkdir -p "$out/share/julia/ui/webserver/"
  +   cp -r ui/webserver/{*.jl,*.h} "$out/share/julia/ui/webserver/"
   
  -    echo -e '#!/bin/sh' >> "$out/bin/julia-webserver"
  -    echo -e "cd \"$out/share/julia\"" >> "$out/bin/julia-webserver"
  -    echo -e '${lighttpd}/sbin/lighttpd -D -f ./ui/lighttpd.conf &' >> "$out/bin/julia-webserver"
  -    echo -e './julia-release-webserver -p 2001' >> "$out/bin/julia-webserver"
  -    chmod a+x "$out/bin/julia-webserver"
  +   echo -e '#!/bin/sh' >> "$out/bin/julia-webserver"
  +   echo -e "cd \"$out/share/julia\"" >> "$out/bin/julia-webserver"
  +   echo -e '${lighttpd}/sbin/lighttpd -D -f ./ui/lighttpd.conf &' >> "$out/bin/julia-webserver"
  +   echo -e '../../bin/julia-release-webserver -p 2001' >> "$out/bin/julia-webserver"
  +   chmod a+x "$out/bin/julia-webserver"
     '';
   
     meta = {
  
positive.code: { stdenv, fetchgit, gfortran, perl, m4, llvm, gmp, pcre, blas, liblapack
   , readline, fftwSinglePrec, fftw, libunwind, suitesparse, glpk, fetchurl
   , ncurses, libunistring, lighttpd
   } :
  let
    liblapackShared = liblapack.override{shared=true;};
  
negative.code: 
    src = fetchgit {
      url = "git://github.com/JuliaLang/julia.git";
      rev = "990ffabb00f0e51d326911888facdbc473fb634d";
      sha256 = "dfcf41b2d7b62dd490bfd6f6fb962713c920de3f00afaee47423bd26eba7e3b2";
    };
  
    buildInputs = [ gfortran perl m4 gmp pcre llvm blas liblapackShared readline 
      fftw fftwSinglePrec libunwind suitesparse glpk ncurses libunistring patchelf
      ];
  
    configurePhase = ''
  