anchor.diff:        rm ldc-${version}-src/tests/d2/dmd-testsuite/fail_compilation/mixin_gc.d
         rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/xtest46_gc.d
         rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/testptrref_gc.d
  +
  +      # test depends on current year
  +      rm ldc-${version}-src/tests/d2/dmd-testsuite/compilable/ddocYear.d
     ''
   
     + stdenv.lib.optionalString (!bootstrapVersion && stdenv.hostPlatform.isDarwin) ''
         # https://github.com/NixOS/nixpkgs/issues/34817
         rm -r ldc-${version}-src/tests/plugins/addFuncEntryCall
  -  ''
  -
  -  + stdenv.lib.optionalString (!bootstrapVersion) ''
  -      echo ${tzdata}/share/zoneinfo/ > ldc-${version}-src/TZDatabaseDirFile
  -
  -      echo ${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary} > ldc-${version}-src/LibcurlPathFile
     '';
   
     postPatch = ''
  
positive.code:   else
      "";
  
  in
  
  stdenv.mkDerivation rec {
  
negative.code:   buildInputs = [ curl tzdata ];
  
    cmakeFlags = stdenv.lib.optionals (!bootstrapVersion) [
      "-DD_FLAGS=-d-version=TZDatabaseDir;-d-version=LibcurlPath;-J${pathConfig}"
      "-DCMAKE_BUILD_TYPE=Release"
    ];
  
  