Commit graph

17 commits

Author SHA1 Message Date
Vladimír Čunát aad639d8f1
terra: fix evaluation on darwin 2019-09-24 08:25:44 +02:00
Austin Seipp d5e1d57cee
terra: include libc headers by default, run tests
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-19 00:26:48 -05:00
Austin Seipp 52d3655c3d
terra: 1.0.0-beta1 -> 1.0.0pre1175_ef6a75f
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 22:13:18 -05:00
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
Austin Seipp 5cc70a7b6b
terra: touchups
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 21:44:55 -05:00
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Mario Rodas 1b95ef168b
terra: fix darwin build 2019-05-20 22:12:13 -05:00
Ryan Mulligan 6e5caa3f8a
Merge pull request #52624 from alesguzik/update-terra
terra: 2016-06-09 -> 1.0.0-beta1
2019-02-28 19:22:10 -08:00
Jörg Thalheim 1b146a8c6f
treewide: remove paxutils from stdenv
More then one year ago we removed grsecurity kernels from nixpkgs:
https://github.com/NixOS/nixpkgs/pull/25277

This removes now also paxutils from stdenv.
2018-12-22 12:55:05 +01:00
Ales Huzik 8e4651f917 terra: 2016-06-09 -> 1.0.0-beta1 2018-12-21 22:57:16 +11:00
Tuomas Tynkkynen 1ed1ed210a terra: Broken on i686 (and Darwin)
Never built successfully:

http://hydra.nixos.org/build/39402139
http://hydra.nixos.org/build/39393534
2016-09-03 03:24:25 +03:00
Tuomas Tynkkynen a17216af4c treewide: Shuffle outputs
Make either 'bin' or 'out' the first output.
2016-08-29 14:49:51 +03:00
Joachim Fasting 01804364d2
terra: set meta.platforms
Upstream claims MacOS, Linux, and Windows as supported platforms; set to unix
for now.
2016-06-23 23:28:19 +02:00
Joachim Fasting cd96d0c7d7
terra: specify tool paths via Makefile.inc
Judging by the build output, which doesn't find what it's looking for
anyway.
2016-06-23 01:31:23 +02:00
Joachim Fasting 9983937d1a
terra: apply PaX markings
For grsecurity support
2016-06-23 01:31:13 +02:00
William Casarin a34ec65659 terra: 2016-01-06 -> 2016-06-09
* llvmPackages_35 -> llvmPackages_38
* static llvm no longer needed
* multiple outputs, this generates the following results:
    - out/lib/terra.so
    - bin/bin/terra
    - dev/include/terra/*.h
    - static/lib/libterra.a

Contributed with help from @joachifm
2016-06-16 20:02:49 -07:00
William Casarin e66965fdee terra: init at git-2016-01-06 2016-01-17 17:30:01 -08:00