3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/toluapp/default.nix

32 lines
798 B
Nix
Raw Normal View History

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