cross-compile lualinux

main
Daniel Barlow 2024-04-24 18:28:14 +01:00
parent 032d0f8aca
commit bbf2f53c0e
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ in lua.pkgs.buildLuaPackage {
version = "0.1"; # :shrug:
inherit src;
makeFlags = [ "LUADIR=." "lualinux.so" ];
postPatch = ''
sed -i -e '/strip/d' Makefile
'';
makeFlags = [ "LUADIR=." "CC:=$(CC)" "STRIP=true" "lualinux.so" ];
installPhase = ''
mkdir -p "$out/lib/lua/${lua.luaversion}"