1fa4c66b73
added: noweb, lua-5.x, lua-4.x, mk, qc-- (as qcmm) svn path=/nixpkgs/trunk/; revision=4681
23 lines
436 B
Bash
23 lines
436 B
Bash
source $stdenv/setup
|
|
|
|
configureFlags="--with-lua=$lua"
|
|
|
|
MKFLAGS="-w$lua/include/lauxlib.h,$lua/include/luadebug.h,$lua/include/lua.h,$lua/include/lualib.h"
|
|
|
|
buildPhase() {
|
|
mk timestamps
|
|
mk $MKFLAGS all all.opt
|
|
}
|
|
|
|
installPhase() {
|
|
mk $MKFLAGS install install.opt
|
|
find $out -name \*.a -exec echo stripping {} \; \
|
|
-exec strip -S {} \; || fail
|
|
patchELF $out
|
|
}
|
|
|
|
buildPhase=buildPhase
|
|
installPhase=installPhase
|
|
|
|
genericBuild
|