Author: simons
Date: Fri Jul  8 21:24:01 2011
New Revision: 27678
URL: https://svn.nixos.org/websvn/nix/?rev=27678&sc=1

Log:
lua-4: fixed build

Modified:
   nixpkgs/trunk/pkgs/development/interpreters/lua-4/default.nix

Modified: nixpkgs/trunk/pkgs/development/interpreters/lua-4/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/interpreters/lua-4/default.nix       Fri Jul 
 8 21:23:55 2011        (r27677)
+++ nixpkgs/trunk/pkgs/development/interpreters/lua-4/default.nix       Fri Jul 
 8 21:24:01 2011        (r27678)
@@ -1,10 +1,30 @@
-{stdenv, fetchurl}: 
+{stdenv, fetchurl}:
 
 stdenv.mkDerivation {
   name = "lua-4.0.1";
+
   src = fetchurl {
     url = http://www.lua.org/ftp/lua-4.0.1.tar.gz;
     md5 = "a31d963dbdf727f9b34eee1e0d29132c";
   };
-  builder= ./builder.sh;
+
+  configurePhase = "sed -i -e 's/CFLAGS= -O2/CFLAGS = -O3 -fPIC/' config";
+  buildFlags = "all so sobin";
+  installFlags = "INSTALL_ROOT=$$out";
+
+  meta = {
+    homepage = "http://www.lua.org";;
+    description = "Lua is a powerful, fast, lightweight, embeddable scripting 
language.";
+    longDescription = ''
+      Lua combines simple procedural syntax with powerful data
+      description constructs based on associative arrays and extensible
+      semantics. Lua is dynamically typed, runs by interpreting bytecode
+      for a register-based virtual machine, and has automatic memory
+      management with incremental garbage collection, making it ideal
+      for configuration, scripting, and rapid prototyping.
+    '';
+    license = "MIT";
+    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ ];
+  };
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to