anchor.diff:    meta = {
        description = "Quantum chemistry program supporting HF/CI/MP/CC";
        homepage    =  http://www.msg.ameslab.gov/gamess;
  -     license = stdenv.lib.licences.unfree;
  +     licenses = stdenv.lib.licences.unfree;
        platforms = [ "x86_64-linux" ]; 
     };
   }
  
positive.code:      # patch gms-files.csh
       sed -i "s:\$GMSPATH/auxdata:$out/share/auxdata:" gms-files.csh
  
       '';
   buildPhase = ''
      cd build
      make ${if enableParallelBuilding then "-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES" else ""}
       '';
  
   configurePhase = ''
   	./config
       '';
  
    installPhase = ''
       mkdir -p $out/bin
       cp ../rungms $out/bin
       cp ../gms-files.csh $out/bin
  
       cp -a *.x $out/bin
  
       mkdir -p $out/share
  
       cp install.info $out/share # keep it for documentation purposes
       cp -a ../auxdata $out/share
       '';
  
  
    enableParallelBuilding = true;
  
negative.code:      csh=`which tcsh`
       gver=`gfortran -dumpversion | sed "s/.[0-9]$//"`
  
       # There's a csh in nix but its binary is tcsh
       find -type f -executable -exec sed -i "s:/bin/csh:$csh:" \{} \;
  
       gver="5.3"
  