2024-06-29 21:59:27 +00:00
|
|
|
{ lua, fetchFromGitHub }:
|
2024-04-23 19:09:41 +00:00
|
|
|
let
|
|
|
|
pname = "minisock";
|
2024-04-20 14:09:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "minisock";
|
2024-04-23 19:09:41 +00:00
|
|
|
owner = "telent";
|
2024-04-23 19:19:33 +00:00
|
|
|
rev = "46e0470ff88c68f3a873dedbcf1dc351f4916b1a";
|
|
|
|
hash = "sha256-uTV5gpfEMvHMBgdu41Gy2uizc3K9bXtO5BiCY70cYUs=";
|
2024-04-20 14:09:17 +00:00
|
|
|
};
|
2025-02-10 21:55:08 +00:00
|
|
|
in
|
|
|
|
lua.pkgs.buildLuaPackage {
|
2024-04-23 19:09:41 +00:00
|
|
|
inherit pname;
|
2025-02-10 21:55:08 +00:00
|
|
|
version = "0.1"; # :shrug:
|
2024-04-20 14:09:17 +00:00
|
|
|
|
2024-04-23 19:09:41 +00:00
|
|
|
inherit src;
|
2025-02-10 21:55:08 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LUADIR=."
|
|
|
|
"minisock.so"
|
|
|
|
];
|
2024-04-20 14:09:17 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/lua/${lua.luaversion}"
|
|
|
|
cp ${pname}.so "$out/lib/lua/${lua.luaversion}/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|