anchor.diff:        mv dmd-v${version}-src dmd
         mv druntime-v${version}-src druntime
         mv phobos-v${version}-src phobos
  +
  +      # Remove cppa test for now because it doesn't work.
  +      rm dmd/test/runnable/cppa.d
  +      rm dmd/test/runnable/extra-files/cppb.cpp
     '';
   
     # Compile with PIC to prevent colliding modules with binutils 2.28.
  
positive.code:             --replace MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET_
      '';
  
    nativeBuildInputs = [ bootstrapDmd makeWrapper unzip which ];
    buildInputs = [ curl tzdata ];
  
    # Buid and install are based on http://wiki.dlang.org/Building_DMD
    buildPhase = ''
        cd dmd
        make -f posix.mak INSTALL_DIR=$out
        ${
            let bits = builtins.toString stdenv.hostPlatform.parsed.cpu.bits;
            osname = if stdenv.hostPlatform.isDarwin then "osx" else stdenv.hostPlatform.parsed.kernel.name; in
            "export DMD=$PWD/generated/${osname}/release/${bits}/dmd"
        }
        cd ../druntime
        make -f posix.mak PIC=${usePIC} INSTALL_DIR=$out DMD=$DMD
        cd ../phobos
        make -f posix.mak PIC=${usePIC} INSTALL_DIR=$out DMD=$DMD
        cd ..
    '';
  
  
negative.code:           osname = if stdenv.hostPlatform.isDarwin then "osx" else stdenv.hostPlatform.parsed.kernel.name; in
            "export DMD=$PWD/generated/${osname}/release/${bits}/dmd"
        }
        make -j$NIX_BUILD_CORES -C test -f Makefile PIC=${usePIC} DMD=$DMD BUILD=release SHARED=0
        cd ../druntime
        make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=${usePIC} DMD=$DMD BUILD=release
        cd ../phobos
        make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=${usePIC} DMD=$DMD BUILD=release
        cd ..
    '';
  
  