From bbf2f53c0e79a4a345955f53d45a3a4a903dff0a Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 24 Apr 2024 18:28:14 +0100 Subject: [PATCH] cross-compile lualinux --- pkgs/lualinux/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/lualinux/default.nix b/pkgs/lualinux/default.nix index 62be57a..1468be8 100644 --- a/pkgs/lualinux/default.nix +++ b/pkgs/lualinux/default.nix @@ -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}"