anchor.diff:    hardeningDisable = [ "fortify" ];
     outputs = [ "bin" "dev" "out" "static" ];
   
  -  patches = [
  -    # Should be removed as https://github.com/terralang/terra/pull/496 get merged and released.
  -    ./get-compiler-from-envvar-fix-cpu-detection.patch
  -    ./nix-cflags.patch
  -    ./disable-luajit-file-download.patch
  -    ./nix-add-test-paths.patch
  -  ];
  -
  -  INCLUDE_PATH = "${llvmMerged}/lib/clang/10.0.1/include";
  +  patches = [ ./nix-cflags.patch ./disable-luajit-file-download.patch ];
   
     postPatch = ''
       substituteInPlace src/terralib.lua \
         --subst-var-by NIX_LIBC_INCLUDE ${lib.getDev stdenv.cc.libc}/include
  -
  -    substituteInPlace src/CMakeLists.txt \
  -      --subst-var INCLUDE_PATH
     '';
   
     preConfigure = ''
  
positive.code: 
    cmakeFlags = [
      "-DHAS_TERRA_VERSION=0"
      "-DTERRA_VERSION=${src.rev}"
      "-DTERRA_LUA=luajit"
    ] ++ lib.optional enableCUDA "-DTERRA_ENABLE_CUDA=ON";
  
    doCheck = true;
  
negative.code:     url = "https://github.com/LuaJIT/LuaJIT/archive/${luajitRev}.tar.gz";
      sha256 = "0kasmyk40ic4b9dwd4wixm0qk10l88ardrfimwmq36yc5dhnizmy";
    };
  
    llvmMerged = symlinkJoin {
      name = "llvmClangMerged";
      paths = with llvmPackages; [
  