2022-11-27 09:42:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, lua }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.0.93";
|
|
|
|
pname = "toluapp";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LuaDist";
|
|
|
|
repo = "toluapp";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
|
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ lua ];
|
|
|
|
|
|
|
|
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to integrate C/Cpp code with Lua";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.codenix.com/~tolua/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "tolua++";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|