cross-compile lualinux

This commit is contained in:
Daniel Barlow 2024-04-24 18:28:14 +01:00
parent 032d0f8aca
commit bbf2f53c0e

View file

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