1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

terra: init at git-2016-01-06

This commit is contained in:
William Casarin 2016-01-17 16:50:10 -08:00
parent 7f2d6d8ee6
commit e66965fdee
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ stdenv, lua, fetchFromGitHub, fetchurl, which, llvm, clang, ncurses }:
let luajitArchive = "LuaJIT-2.0.4.tar.gz";
luajitSrc = fetchurl {
url = "http://luajit.org/download/${luajitArchive}";
sha256 = "0zc0y7p6nx1c0pp4nhgbdgjljpfxsb5kgwp4ysz22l1p2bms83v2";
};
in stdenv.mkDerivation rec {
name = "terra-git-${version}";
version = "2016-01-06";
src = fetchFromGitHub {
owner = "zdevito";
repo = "terra";
rev = "914cb98b8adcd50b2ec8205ef5d6914d3547e281";
sha256 = "1q0dm9gkx2lh2d2sfgly6j5nw32qigmlj3phdvjp26bz99cvxq46";
};
patchPhase = ''
substituteInPlace Makefile --replace \
'-lcurses' '-lncurses'
'';
configurePhase = ''
mkdir -p build
cp ${luajitSrc} build/${luajitArchive}
'';
installPhase = ''
mkdir -p $out
cp -r "release/"* $out
'';
buildInputs = [ which lua llvm clang ncurses ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "A low-level counterpart to Lua";
maintainers = with maintainers; [ jb55 ];
license = licenses.mit;
};
}

View file

@ -4966,6 +4966,12 @@ let
tbb = callPackage ../development/libraries/tbb { };
terra = callPackage ../development/compilers/terra {
llvm = llvmPackages_35.llvm.override { enableSharedLibraries = false; };
clang = clang_35;
lua = lua5_1;
};
teyjus = callPackage ../development/compilers/teyjus {
omake = omake_rc1;
};