mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
3c68c34ee7
svn path=/nixpkgs/trunk/; revision=4682
31 lines
578 B
Bash
31 lines
578 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.opt
|
|
}
|
|
|
|
installPhase() {
|
|
mk $MKFLAGS install.opt
|
|
|
|
for file in $out/bin/*.opt; do
|
|
mv $file ${file%.opt}
|
|
done
|
|
|
|
find $out/man -type f -exec gzip -9 {} \;
|
|
|
|
find $out -name \*.a -exec echo stripping {} \; \
|
|
-exec strip -S {} \; || fail
|
|
|
|
patchELF $out
|
|
}
|
|
|
|
buildPhase=buildPhase
|
|
installPhase=installPhase
|
|
checkPhase="mk $MKFLAGS test.opt"
|
|
|
|
genericBuild
|