summary refs log tree commit diff
path: root/pkgs/development/interpreters/luajit
diff options
context:
space:
mode:
authorKim Simmons <zoomulator@gmail.com>2013-11-15 17:20:29 +0100
committerKim Simmons <zoomulator@gmail.com>2013-11-15 17:20:29 +0100
commita8e31672284c2f894290fba5ff9e1aa6fd7c3a08 (patch)
tree3169eb996b5eb93e66414d528fc6894c8a534b28 /pkgs/development/interpreters/luajit
parentfd7bc4ebfd0bd86a86606cbc4ee22fbab44c5515 (diff)
downloadnixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar.gz
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar.bz2
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar.lz
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar.xz
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.tar.zst
nixpkgs-a8e31672284c2f894290fba5ff9e1aa6fd7c3a08.zip
LuaJIT: New package
Just-in-time compiler for lua 5.1 with strong focus on performance.
Uses the same API as lua 5.1 which makes it extremely easy to integrate.
Diffstat (limited to 'pkgs/development/interpreters/luajit')
-rw-r--r--pkgs/development/interpreters/luajit/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/luajit/default.nix b/pkgs/development/interpreters/luajit/default.nix
new file mode 100644
index 00000000000..f4a8e316927
--- /dev/null
+++ b/pkgs/development/interpreters/luajit/default.nix
@@ -0,0 +1,22 @@
+{stdenv, fetchurl} :
+
+stdenv.mkDerivation rec{
+    version = "2.0.2";
+    name = "LuaJIT-${version}";
+
+    src = fetchurl {
+        url="http://luajit.org/download/LuaJIT-2.0.2.tar.gz";
+        sha256="0f3cykihfdn3gi6na9p0xjd4jnv26z18m441n5vyg42q9abh4ln0";
+    };
+
+    installPhase = ''
+        mkdir -p $out
+        make install PREFIX=$out
+    '';
+
+    meta = {
+        description= "Just-in-time compiler and interpreter for lua 5.1.";
+        homepage = http://luajit.org;
+        license = stdenv.lib.licenses.mit;
+    };
+}