diff options
Diffstat (limited to 'pkgs/development/interpreters/lua-5/default.nix')
-rw-r--r-- | pkgs/development/interpreters/lua-5/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index 160f28270035..19a5599347ff 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -23,6 +23,15 @@ stdenv.mkDerivation { ''; buildInputs = [ ncurses readline ]; + crossAttrs = { + preBuild = '' + sed -i -e "s/ gcc/$crossConfig-gcc/" \ + -e "s/ ar/$crossConfig-ar/" \ + -e "s/ ranlib/$crossConfig-ranlib/" \ + src/Makefile + ''; + }; + meta = { homepage = "http://www.lua.org"; description = "Lua is a powerful, fast, lightweight, embeddable scripting language."; |