1
0
liminix/pkgs/lualinux/default.nix

36 lines
660 B
Nix
Raw Normal View History

2024-06-29 21:59:27 +00:00
{ lua, fetchFromGitHub }:
2024-04-23 21:41:38 +00:00
let
pname = "lualinux";
src = fetchFromGitHub {
repo = "lualinux";
owner = "philanc";
rev = "1d4c962aad9cbe01c05df741b91e8b39c356362c";
hash = "sha256-+Ys4sERG+TI8nRzG38UP+KqbH0efspaX0j4IHCt56RI=";
};
in
lua.pkgs.buildLuaPackage {
2024-04-23 21:41:38 +00:00
inherit pname;
version = "0.1"; # :shrug:
2024-04-23 21:41:38 +00:00
inherit src;
2025-03-24 22:39:59 +00:00
patches = [
./0001-realpath.patch
];
2024-04-24 17:28:14 +00:00
postPatch = ''
sed -i -e '/strip/d' Makefile
'';
makeFlags = [
"LUADIR=."
"CC:=$(CC)"
"STRIP=true"
"lualinux.so"
];
2024-04-23 21:41:38 +00:00
installPhase = ''
mkdir -p "$out/lib/lua/${lua.luaversion}"
cp ${pname}.so "$out/lib/lua/${lua.luaversion}/"
'';
}