about summary refs log tree commit diff
path: root/pkgs/development/compilers/terra/nix-cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/terra/nix-cflags.patch')
-rw-r--r--pkgs/development/compilers/terra/nix-cflags.patch7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/compilers/terra/nix-cflags.patch b/pkgs/development/compilers/terra/nix-cflags.patch
index be9b6a61088d..339ae23cef65 100644
--- a/pkgs/development/compilers/terra/nix-cflags.patch
+++ b/pkgs/development/compilers/terra/nix-cflags.patch
@@ -1,13 +1,16 @@
 diff --git a/src/terralib.lua b/src/terralib.lua
-index 351238d..f26591b 100644
+index 351238d..e638c90 100644
 --- a/src/terralib.lua
 +++ b/src/terralib.lua
-@@ -3395,6 +3395,14 @@ function terra.includecstring(code,cargs,target)
+@@ -3395,6 +3395,17 @@ function terra.includecstring(code,cargs,target)
      	args:insert("-internal-isystem")
      	args:insert(path)
      end
 +
 +    -- NOTE(aseipp): include relevant Nix header files
++    args:insert("-isystem")
++    args:insert("@NIX_LIBC_INCLUDE@")
++
 +    local nix_cflags = os.getenv('NIX_CFLAGS_COMPILE')
 +    if nix_cflags ~= nil then
 +        for w in nix_cflags:gmatch("%S+") do