2019-01-06 11:29:52 -08:00
|
|
|
{ stdenv, fetchFromGitHub, sconsPackages, lua }:
|
2015-03-24 11:53:10 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-26 18:57:10 -07:00
|
|
|
version = "1.0.93";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "toluapp";
|
2015-03-24 11:53:10 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-06-26 18:57:10 -07:00
|
|
|
owner = "LuaDist";
|
2015-03-24 11:53:10 -07:00
|
|
|
repo = "toluapp";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2016-06-26 18:57:10 -07:00
|
|
|
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
|
2015-03-24 11:53:10 -07:00
|
|
|
};
|
|
|
|
|
2019-01-06 11:29:52 -08:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
|
2018-11-11 18:52:07 -08:00
|
|
|
buildInputs = [ lua ];
|
2015-03-24 11:53:10 -07:00
|
|
|
|
2019-01-25 19:56:55 -08:00
|
|
|
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];
|
2015-03-24 11:53:10 -07:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace config_posix.py \
|
|
|
|
--replace /usr/local $out
|
|
|
|
'';
|
|
|
|
|
2016-06-26 18:57:10 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to integrate C/Cpp code with Lua";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.codenix.com/~tolua/";
|
2016-06-26 18:57:10 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; unix;
|
2015-03-24 11:53:10 -07:00
|
|
|
};
|
|
|
|
}
|