anchor.diff:        clang-unwrapped.lib
       ];
     };
  +
     cuda = cudaPackages.cudatoolkit_11;
  +
  +  clangVersion = llvmPackages.clang-unwrapped.version;
  +
   in stdenv.mkDerivation rec {
     pname = "terra";
     version = "1.0.0-beta3";
  
positive.code:   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";
  
    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 = ''
  
negative.code:     url = "https://github.com/LuaJIT/LuaJIT/archive/${luajitRev}.tar.gz";
      sha256 = "0kasmyk40ic4b9dwd4wixm0qk10l88ardrfimwmq36yc5dhnizmy";
    };
  
    llvmMerged = symlinkJoin {
      name = "llvmClangMerged";
      paths = with llvmPackages; [
  