anchor.diff:  
         cd ../phobos
         mkdir $out/lib
  -      ${let bits = if stdenv.is64bit then "64" else "32"; in
  -      "cp generated/linux/release/${bits}/libphobos2.a $out/lib"
  +      ${let bits = if stdenv.is64bit then "64" else "32";
  +            osname = if stdenv.isDarwin then "osx" else "linux"; in
  +      "cp generated/${osname}/release/${bits}/libphobos2.a $out/lib"
         }
   
         cp -r std $out/include/d2
  
positive.code:     platforms = platforms.unix;
    };
  }
  
  
negative.code:   };
  
    buildInputs = [ unzip curl ];
  
    # Allow to use "clang++", commented in Makefile
    postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
        substituteInPlace src/dmd/posix.mak --replace g++ clang++
    '';
  
    buildPhase = ''
        cd src/dmd
  