···5454 patches = [
5555 ./0001-Makefile.patch
56565757+ # clang.cc does not have any paths in the include path.
5858+ # For TinyGo, we want to have no include paths, _except_ for the built-in
5959+ # Clang header files (things like stdint.h). That's why we use -nostdlibinc.
6060+ # So to make Clang work like we want, we will have to manually add this one
6161+ # include path.
6262+ # We can't use a regular clang command (something like
6363+ # llvmPackages.clangUseLLVM) because there are various bugs, see:
6464+ # https://github.com/NixOS/nixpkgs/issues/259397
6565+ # https://github.com/NixOS/nixpkgs/issues/259386
5766 (substituteAll {
5867 src = ./0002-Add-clang-header-path.patch;
5968 clang_include = "${clang.cc.lib}/lib/clang/${llvmMajor}/include";
···108117 substituteInPlace builder/buildid.go \
109118 --replace "OUT_PATH" "$out"
110119111111- # TODO: Fix mingw and darwin
112112- # Disable windows and darwin cross-compile tests
120120+ # TODO: Fix mingw
121121+ # Disable windows cross-compile tests
113122 sed -i "/GOOS=windows/d" Makefile
114114- sed -i "/GOOS=darwin/d" Makefile
115123 '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
116124 substituteInPlace Makefile \
117125 --replace "./build/tinygo" "${buildPackages.tinygo}/bin/tinygo"