3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers
Austin Seipp 3288d3670f
terra: patch to use NIX_CFLAGS_COMPILE for includes
Terra heavily depends on its ability to interface with C APIs, but
without scanning NIX_CFLAGS_COMPILE, it's awkward and annoying to set up
imports correctly (by scanning and adding the flags yourself) in every
single project.

Luckily most of the Clang initialization is hidden away, but the Lua
code for the Terra library handles all the high-level stuff, so we patch
it in there.

This allows simple examples like:

    C = terralib.includec("zlib.h")

to work instantly, provided `zlib` is a Nix dependency.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 21:45:34 -05:00
..
abcl treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
adoptopenjdk-bin treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
adoptopenjdk-icedtea-web Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
aldor
aliceml treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
apache-flex-sdk treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
arachne-pnr treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
as31 treewide: name -> pname 2019-08-17 10:54:38 +00:00
asn1c treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
aspectj aspectj: Add license 2019-03-27 12:00:00 +01:00
ats treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
ats2 treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
avian treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
avra
bigloo treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
binaryen treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
bupc treewide: update homepages to https where available 2019-04-15 10:10:05 -04:00
carp treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ccl treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
chez chez: fix build on darwin 2019-09-13 22:00:00 -05:00
chicken treewide: name -> pname 2019-08-17 10:54:38 +00:00
clasp treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
clean treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
closure treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
cmdstan treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
cmucl treewide: name -> pname 2019-08-17 10:54:38 +00:00
colm treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
compcert Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
coreclr treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
crystal Merge staging-next into staging 2019-08-31 10:04:20 +02:00
cudatoolkit treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
dale treewide: name -> pname 2019-08-17 10:54:38 +00:00
dev86 treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
dmd treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
dotnet/sdk dotnet.sdk: 2.2.300/2.2.5 -> 2.2.401/2.2.6 2019-08-12 22:07:49 +02:00
dtc Merge pull request #68889 from nspin/pr/various-cross-2 2019-09-17 19:35:44 -04:00
ecl treewide: mark packages as buildable on darwin (PR #45364) 2019-09-15 10:50:08 +02:00
edk2 Merge remote-tracking branch 'upstream/master' into gcc-8 2019-08-25 18:55:46 +02:00
eli treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
elm elmPackages.elm-language-server: Init at 1.4.1 2019-09-15 16:36:17 +02:00
emscripten emscripten: 1.37.36 -> 1.38.28 2019-02-25 13:13:55 +01:00
eql treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
factor-lang treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
fasm treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
flux flux: init at 2013-09-20 2019-08-18 23:17:58 -04:00
fpc treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
fsharp treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
fsharp41 Merge master into staging-next 2019-08-27 16:36:47 +02:00
fstar treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gambit treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
gcc Merge remote-tracking branch 'upstream/gcc8' into staging-next 2019-09-06 23:25:18 +02:00
gcc-arm-embedded Merge master into staging-next 2019-08-31 09:50:38 +02:00
gcl treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
gerbil treewide: name -> pname 2019-08-17 10:54:38 +00:00
gforth treewide: name -> pname 2019-08-17 10:54:38 +00:00
ghc ghc: don’t use dwarf on windows 2019-09-13 16:00:30 -04:00
ghcjs treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ghcjs-ng treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
glslang treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gnu-cobol treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gnu-smalltalk treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
go go_1_11: Drop package 2019-09-11 14:33:13 +01:00
go-jsonnet treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gprolog
graalvm Merge branch 'master' into staging-next 2019-08-25 14:57:11 +02:00
gwt
halide treewide: mesa_noglu, mesa_drivers, libGL_driver -> mesa 2019-06-17 14:43:18 -04:00
haxe treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
hhvm treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
hop
iasl iasl: drop uneeded patch 2019-09-09 16:20:50 -04:00
inform7 treewide: name -> pname 2019-08-17 10:54:38 +00:00
intercal treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
ios-cross-compile
ispc treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
javacard-devkit treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
jetbrains-jdk treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
jikes
jsonnet treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
julia Merge staging-next into staging 2019-08-28 08:26:42 +02:00
jwasm treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
kotlin treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ldc treewide: name -> pname 2019-08-17 10:54:38 +00:00
llvm Merge remote-tracking branch 'upstream/gcc-8' into staging-next 2019-09-08 20:44:26 +02:00
manticore treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
matter-compiler bundlerUpdateScript: init and use (#64822) 2019-07-22 12:02:47 +00:00
mcpp mcpp: pname-ify 2019-09-06 19:11:07 +03:00
mercury treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
meta-environment/meta-build-env
mezzo
microscheme treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mint mint: Use buildCrystalPackage 2019-08-26 20:05:23 +02:00
mit-scheme
mkcl treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mlton treewide: name -> pname 2019-08-17 10:54:38 +00:00
mono treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
mosml Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
mozart treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
mruby mruby: 2.0.0 -> 2.0.1 2019-05-13 19:27:27 -04:00
nasm Merge remote-tracking branch 'upstream/gcc8' into staging-next 2019-09-06 23:25:18 +02:00
neko treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
nextpnr nextpnr: (hopefully) fix build on Darwin 2019-09-02 16:11:17 -05:00
nim nim: 0.20.0 -> 0.20.2 2019-07-26 14:51:43 +02:00
nvidia-cg-toolkit treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
obliv-c treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
ocaml treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
opa treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
opendylan
openjdk openjdk8: use lndir instead of single symlink to JRE 2019-09-10 22:20:27 +02:00
openspin treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
oraclejdk gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
orc Merge pull request #62896 from womfoo/fix/orc-skip-tests-on-armv7l 2019-06-11 17:34:15 -04:00
osl osl: 1.10.5 -> 1.10.6 2019-07-15 19:19:34 -07:00
owl-lisp owl-lisp: 0.1.16 -> 0.1.19 2019-08-21 13:39:24 +08:00
pakcs pakcs: 2.0.2 -> 2.1.1 2019-03-17 00:15:54 +03:00
pforth treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
picat
polyml treewide: name -> pname 2019-08-17 10:54:38 +00:00
ponyc Merge staging-next into staging 2019-08-17 09:39:23 +02:00
purescript purescript: add test that compiles & runs a minimal module 2019-06-04 13:55:58 +02:00
qbe qbe: unstable-2019-05-15 -> unstable-2019-07-11 2019-07-29 16:21:00 +02:00
reason reason: 3.3.7 -> 3.5.0 2019-08-02 08:30:13 +00:00
rgbds treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
rust treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
sagittarius-scheme sagittarius-scheme: init at 0.9.6 2019-08-11 21:47:41 +05:30
sbcl Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
scala treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
sdcc sdcc: extend platforms 2019-09-01 14:22:49 -05:00
seexpr treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
serpent treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
shaderc treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
smlnj treewide: name -> pname 2019-08-17 10:54:38 +00:00
solc Merge branch 'master' into staging-next 2019-08-25 14:57:11 +02:00
souffle treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
squeak treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
stalin
swi-prolog treewide: name -> pname 2019-08-17 10:54:38 +00:00
swift treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
terra terra: patch to use NIX_CFLAGS_COMPILE for includes 2019-09-18 21:45:34 -05:00
teyjus treewide: name -> pname 2019-08-17 10:54:38 +00:00
tinycc treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
unison unison-ucm: 1.0.M1c-alpha -> 1.0.M1d-alpha 2019-09-14 21:43:25 -04:00
urn treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
urweb treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
vala Merge pull request #66196 from r-ryantm/auto-update/vala 2019-08-08 09:20:14 -04:00
vlang treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
wcc treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
wla-dx wla-dx: git-2017-06-05 -> 9.8 2019-07-02 23:04:01 -06:00
x11basic treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
yap treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
yasm
yosys yosys: 2019.08.22 -> 2019.09.01 2019-09-01 14:22:49 -05:00
z88dk treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
zig zig: 0.3.0 -> 0.4.0 2019-04-09 00:51:35 -05:00
zulu treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00