cross-compile lualinux

This commit is contained in:
Daniel Barlow committed 2024-04-24 18:28:14 +01:00
1 parent 032d0f8aca
commit bbf2f53c0e
1 file changed
+4 -1
+4 -1
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}"