2024-04-20 16:09:17 +02:00
|
|
|
{ lua, lib, fetchFromGitHub }:
|
2024-04-23 21:09:41 +02:00
|
|
|
let
|
|
|
|
pname = "minisock";
|
2024-04-20 16:09:17 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "minisock";
|
2024-04-23 21:09:41 +02:00
|
|
|
owner = "telent";
|
|
|
|
rev = "f31926e8aac6922923d4e83ed3e85b727172e9c5";
|
|
|
|
hash = "sha256-/RlhnRrIrXa/86mX20RMLtzmGdoeA7zVc8uBoFyexnY=";
|
2024-04-20 16:09:17 +02:00
|
|
|
};
|
2024-04-23 21:09:41 +02:00
|
|
|
in lua.pkgs.buildLuaPackage {
|
|
|
|
inherit pname;
|
|
|
|
version = "0.1"; # :shrug:
|
2024-04-20 16:09:17 +02:00
|
|
|
|
2024-04-23 21:09:41 +02:00
|
|
|
inherit src;
|
2024-04-20 16:09:17 +02:00
|
|
|
makeFlags = [ "LUADIR=." "minisock.so" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/lua/${lua.luaversion}"
|
|
|
|
cp ${pname}.so "$out/lib/lua/${lua.luaversion}/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|